<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://homeostasis.scs.carleton.ca/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gautam</id>
	<title>Soma-notes - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://homeostasis.scs.carleton.ca/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Gautam"/>
	<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php/Special:Contributions/Gautam"/>
	<updated>2026-06-02T19:43:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6088</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6088"/>
		<updated>2010-12-02T02:14:28Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Additional questions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf [2&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;][http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec [4&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] &lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm [6&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf [7&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf [8&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf [9&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf [10&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf [9&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ [4&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf [11&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html [4&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf [11&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf [9&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf [11&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=6087</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=6087"/>
		<updated>2010-12-02T02:09:54Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Work Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Group Members&lt;br /&gt;
&lt;br /&gt;
Trevor Bonesaw Malone - tmalone@connect.carleton.ca //FIRST POST!&lt;br /&gt;
&lt;br /&gt;
Qi Zhang   - qzhang13@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gregory Bint - gbint@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gautam Akiwate - gakiwate@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Corey Ling - cling@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Sarah Liske&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Work Plan ==&lt;br /&gt;
&lt;br /&gt;
As Trevor intimated, we should have clear division of work going forward.  This is sort of the break down as I see it.  Please edit as you think of new ideas!&lt;br /&gt;
&lt;br /&gt;
* Background Concepts&lt;br /&gt;
** Information Flow Theory. (Implicit and Explicit Flows.) --Done[--[[User:Gautam|Gautam]] 03:54, 28 November 2010 (UTC)]&lt;br /&gt;
** What is dynamic taint analysis --Done[--[[User:Gautam|Gautam]] 05:07, 28 November 2010 (UTC)]&lt;br /&gt;
** What is the difference between dynamic and static analysis --Done[--[[User:Gautam|Gautam]] 03:54, 30 November 2010 (UTC)]]&lt;br /&gt;
* Research Problem&lt;br /&gt;
** How do we build a DTA engine for a phone? - done, but by who?&lt;br /&gt;
** Why do we want to?  (information misuse) - done, but by who?&lt;br /&gt;
* Contribution&lt;br /&gt;
** How did they implement their DTA engine (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** What did they find about information misuse (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** Compared to the existing taint tracking approaches. [[User:Zhangqi|Zhangqi]] 07:11, 27 November 2010 (UTC)&lt;br /&gt;
** (What else should be in the contributions? Anything need fleshing out?) (Working on that now :) ) sliske&lt;br /&gt;
* Critique&lt;br /&gt;
**Added two paragraphs at the end of the present critique. Please incorporate it into your content as you deem fit.--[[User:Gautam|Gautam]] 09:07, 30 November 2010 (UTC) &lt;br /&gt;
**^ done. fleshed out critique, and added a bit about how taintdroid doesn&#039;t track implicit flow. Also reworded (the entire essay) for clarity where necessary/checked spelling. It would be a good idea for everyone to read it over once for spelling/clarity before thursday, just in case something doesn&#039;t make sense - sliske&lt;br /&gt;
* References&lt;br /&gt;
** The article has 61 references!  We can probably use some of them&lt;br /&gt;
**whee! reading papers and sticking in information as need be. Also working out how to cite properly, as there are two citations used currently&lt;br /&gt;
references added and citations taken care of. will go over fill in a few places where information may be lacking after class sliske&lt;br /&gt;
**Referencing is a little askew. The numbers don&#039;t match the papers as listed in the referencing. Also the papers are usually cited with a number and enclosed in &amp;quot;[]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
List of information we need to find external sources for:&lt;br /&gt;
* History of taint analysis&lt;br /&gt;
* History of privacy research relating to smart phones&lt;br /&gt;
&lt;br /&gt;
== Work In Progress ==&lt;br /&gt;
&lt;br /&gt;
Log what you are working on *right now* so that other people don&#039;t try to do the same thing.  Make sure to clear your name from here when you are done.&lt;br /&gt;
&lt;br /&gt;
* Gregory Bint:  Research Problem&lt;br /&gt;
** Need to find some history on smart phone security research for the second part.&lt;br /&gt;
&lt;br /&gt;
* Gautam Akiwate:  Background Concepts&lt;br /&gt;
** Any resources on Dynamic taint Analysis would be appreciated!&lt;br /&gt;
&lt;br /&gt;
* Qi Zhang, Corey Ling: Contributions&lt;br /&gt;
&lt;br /&gt;
* Trevor Malone: Critique&lt;br /&gt;
&lt;br /&gt;
* Sarah Liske: References and Questions, Clarity/Spelling.&lt;br /&gt;
&lt;br /&gt;
== Some Notes from the Video ==&lt;br /&gt;
&lt;br /&gt;
Tracking of privacy sensitive data through Dynamic Taint Analysis (aka. Taint Tracking).  The trick is to mark private data as it sourced, and then follow those marks until (unless) they leave the phone.&lt;br /&gt;
	&lt;br /&gt;
Android phones run Java apps, which are compiled into DEX, and then run on top of the Dalvik VM.  It is this VM that we modify so that we can support the storage and tracking of taint tags.&lt;br /&gt;
&lt;br /&gt;
Taint sources&lt;br /&gt;
* low -bandwidth sensors&lt;br /&gt;
** Location&lt;br /&gt;
** Accelerometer&lt;br /&gt;
* High-bandwidth sensors&lt;br /&gt;
** Mic&lt;br /&gt;
** Camera&lt;br /&gt;
* Information DB&lt;br /&gt;
** Address book&lt;br /&gt;
** SMS storage&lt;br /&gt;
* Device ID&lt;br /&gt;
** IMEI&lt;br /&gt;
** IMSI   (don&#039;t actually track this one because of false positives)&lt;br /&gt;
** ICC_ID&lt;br /&gt;
** Phone Number&lt;br /&gt;
&lt;br /&gt;
Taint sink  (where marked data can leave the phone)&lt;br /&gt;
* Network Taint Sink&lt;br /&gt;
&lt;br /&gt;
Taint propagation&lt;br /&gt;
* ???&lt;br /&gt;
&lt;br /&gt;
Taint tags are stored in memory interleaved with the variables they are tracking&lt;br /&gt;
&lt;br /&gt;
Some standard Data Flow technique is used to propagate these tags, especially as one variable that is marked may be assigned to another, so now that variable needs to be tracked as well.&lt;br /&gt;
&lt;br /&gt;
Tracks explicit flows of data, not implicit&lt;br /&gt;
	To fully capture implicit flows, you need to do static analysis, which is hard with closed-source apps, and cannot be done real-time&lt;br /&gt;
	&lt;br /&gt;
Implicit flows are not tracked&lt;br /&gt;
* Implicit flows can involve &amp;quot;taint-scope&amp;quot;, tracking based on conditionals in code&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The goal is to create a real time tracking system, so the TaintDroid&#039;s performance impact is of some importance&lt;br /&gt;
&lt;br /&gt;
14% CPU overhead&lt;br /&gt;
4.4% memory overhead&lt;br /&gt;
&lt;br /&gt;
Macro benchmarks  (to get a feel for what the phone&#039;s usability is like with TD running)&lt;br /&gt;
* App load:  3%  (2ms) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Findings ===&lt;br /&gt;
&lt;br /&gt;
20 out of 30 tested applications share data in a way that is not expected.&lt;br /&gt;
&lt;br /&gt;
67 of 105 flagged pieces of data leaving the device had no obviously legitimate purpose (verified by the authors).&lt;br /&gt;
&lt;br /&gt;
Many apps sent location data and other unique identifiers to advertising servers.&lt;br /&gt;
&lt;br /&gt;
Most apps do not mention anything to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
&lt;br /&gt;
Tracks only explicit data flows.&lt;br /&gt;
&lt;br /&gt;
An application *could* launder the tags off of the data, if they really wanted to hide this sort of thing from TaintDroid.&lt;br /&gt;
&lt;br /&gt;
There are methods that could be used to protect against this, but they go against the goal of a light-weight, real-time tracking system.  TD is not necessarily about catching truly malicious programs, but rather just those that leak information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do apps take this information?&lt;br /&gt;
* Lazy;  in the demo video, the wallpaper app seems to use the IMEI just as a ready made unique ID&lt;br /&gt;
* Overzealous;  the developer might thing they *need* the data for something, but actually &lt;br /&gt;
* Ads;  advertises do seem a little presumptuous in their data collection&lt;br /&gt;
* Spying;  bosses or spouses&lt;br /&gt;
* Malicious;  &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
=== QA Period ===&lt;br /&gt;
&lt;br /&gt;
Q:  how do we prevent a malicious app from removing a taint attribute on a file&lt;br /&gt;
&lt;br /&gt;
A:  TD operates a too low a level for this to be a problem;  TD assumes that the native code is trusted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q:  It seems like you had a lot of false positives&lt;br /&gt;
&lt;br /&gt;
A:  The point of this tool was to identify privacy sensitive information as having left the phone, not whether or not a privacy violation has taken place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q: Now that TD is released; couldn&#039;t malicious apps use some of the methods described in the paper to get around it?    &lt;br /&gt;
&lt;br /&gt;
A: Well, yes, but it is not just about maliciousness, it could just laziness or over-zealous ad stuff.&lt;br /&gt;
&lt;br /&gt;
==Other Information==&lt;br /&gt;
&lt;br /&gt;
Hey guys, thought I would just post a generalized paragraph about our essay.&lt;br /&gt;
&lt;br /&gt;
In today’s society, Smartphones are the new big thing. To me that’s what makes this paper so interesting. This paper focuses on private information in android phones and the misuse of this information. The misuse of information includes the SIM card, the ID of the device, or the phone number. TaintDroid is used on smart phones with an efficient taint tracking and analysis system. It has the ability to track sensitive data from multiple sources and examines the misuse of such data. In their study, out of 80 popular third-party applications, TaintDroid monitored that 68 applications had potential misuse of user’s private data. This tool is great for knowing with applications are safe and which are not, so your private data can remained private.&lt;br /&gt;
&lt;br /&gt;
Also, we should really think of splitting up the work in some way. If some people have specific sections they would like to do lets figure that out now so we can divide the workload and get it done over the next couple of days. I don&#039;t personally care what part I&#039;m going to have to do, so lets get this going. Any other information people wanna post feel free the more the better, even if we don&#039;t end up using it.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;br /&gt;
&lt;br /&gt;
Hey guys! Anything else we need to get done? Let me know and I can help in anyway possible.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;br /&gt;
&lt;br /&gt;
==Relevant Sources==&lt;br /&gt;
*NEWSOME,J.,AND SONG,D.Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection]&lt;br /&gt;
&amp;lt;u&amp;gt;Seems to be THE Dynamic Taint Analysis Paper.Talks about implementation on TaintCheck. Could be also useful for critique section&amp;lt;/u&amp;gt; -[Gautam]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=6086</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=6086"/>
		<updated>2010-12-02T02:08:47Z</updated>

		<summary type="html">&lt;p&gt;Gautam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Group Members&lt;br /&gt;
&lt;br /&gt;
Trevor Bonesaw Malone - tmalone@connect.carleton.ca //FIRST POST!&lt;br /&gt;
&lt;br /&gt;
Qi Zhang   - qzhang13@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gregory Bint - gbint@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gautam Akiwate - gakiwate@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Corey Ling - cling@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Sarah Liske&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Work Plan ==&lt;br /&gt;
&lt;br /&gt;
As Trevor intimated, we should have clear division of work going forward.  This is sort of the break down as I see it.  Please edit as you think of new ideas!&lt;br /&gt;
&lt;br /&gt;
* Background Concepts&lt;br /&gt;
** Information Flow Theory. (Implicit and Explicit Flows.) --Done[--[[User:Gautam|Gautam]] 03:54, 28 November 2010 (UTC)]&lt;br /&gt;
** What is dynamic taint analysis --Done[--[[User:Gautam|Gautam]] 05:07, 28 November 2010 (UTC)]&lt;br /&gt;
** What is the difference between dynamic and static analysis - it&#039;s there, who added it?&lt;br /&gt;
* Research Problem&lt;br /&gt;
** How do we build a DTA engine for a phone? - done, but by who?&lt;br /&gt;
** Why do we want to?  (information misuse) - done, but by who?&lt;br /&gt;
* Contribution&lt;br /&gt;
** How did they implement their DTA engine (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** What did they find about information misuse (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** Compared to the existing taint tracking approaches. [[User:Zhangqi|Zhangqi]] 07:11, 27 November 2010 (UTC)&lt;br /&gt;
** (What else should be in the contributions? Anything need fleshing out?) (Working on that now :) ) sliske&lt;br /&gt;
* Critique&lt;br /&gt;
**Added two paragraphs at the end of the present critique. Please incorporate it into your content as you deem fit.--[[User:Gautam|Gautam]] 09:07, 30 November 2010 (UTC) &lt;br /&gt;
**^ done. fleshed out critique, and added a bit about how taintdroid doesn&#039;t track implicit flow. Also reworded (the entire essay) for clarity where necessary/checked spelling. It would be a good idea for everyone to read it over once for spelling/clarity before thursday, just in case something doesn&#039;t make sense - sliske&lt;br /&gt;
* References&lt;br /&gt;
** The article has 61 references!  We can probably use some of them&lt;br /&gt;
**whee! reading papers and sticking in information as need be. Also working out how to cite properly, as there are two citations used currently&lt;br /&gt;
references added and citations taken care of. will go over fill in a few places where information may be lacking after class sliske&lt;br /&gt;
**Referencing is a little askew. The numbers don&#039;t match the papers as listed in the referencing. Also the papers are usually cited with a number and enclosed in &amp;quot;[]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
List of information we need to find external sources for:&lt;br /&gt;
* History of taint analysis&lt;br /&gt;
* History of privacy research relating to smart phones&lt;br /&gt;
&lt;br /&gt;
== Work In Progress ==&lt;br /&gt;
&lt;br /&gt;
Log what you are working on *right now* so that other people don&#039;t try to do the same thing.  Make sure to clear your name from here when you are done.&lt;br /&gt;
&lt;br /&gt;
* Gregory Bint:  Research Problem&lt;br /&gt;
** Need to find some history on smart phone security research for the second part.&lt;br /&gt;
&lt;br /&gt;
* Gautam Akiwate:  Background Concepts&lt;br /&gt;
** Any resources on Dynamic taint Analysis would be appreciated!&lt;br /&gt;
&lt;br /&gt;
* Qi Zhang, Corey Ling: Contributions&lt;br /&gt;
&lt;br /&gt;
* Trevor Malone: Critique&lt;br /&gt;
&lt;br /&gt;
* Sarah Liske: References and Questions, Clarity/Spelling.&lt;br /&gt;
&lt;br /&gt;
== Some Notes from the Video ==&lt;br /&gt;
&lt;br /&gt;
Tracking of privacy sensitive data through Dynamic Taint Analysis (aka. Taint Tracking).  The trick is to mark private data as it sourced, and then follow those marks until (unless) they leave the phone.&lt;br /&gt;
	&lt;br /&gt;
Android phones run Java apps, which are compiled into DEX, and then run on top of the Dalvik VM.  It is this VM that we modify so that we can support the storage and tracking of taint tags.&lt;br /&gt;
&lt;br /&gt;
Taint sources&lt;br /&gt;
* low -bandwidth sensors&lt;br /&gt;
** Location&lt;br /&gt;
** Accelerometer&lt;br /&gt;
* High-bandwidth sensors&lt;br /&gt;
** Mic&lt;br /&gt;
** Camera&lt;br /&gt;
* Information DB&lt;br /&gt;
** Address book&lt;br /&gt;
** SMS storage&lt;br /&gt;
* Device ID&lt;br /&gt;
** IMEI&lt;br /&gt;
** IMSI   (don&#039;t actually track this one because of false positives)&lt;br /&gt;
** ICC_ID&lt;br /&gt;
** Phone Number&lt;br /&gt;
&lt;br /&gt;
Taint sink  (where marked data can leave the phone)&lt;br /&gt;
* Network Taint Sink&lt;br /&gt;
&lt;br /&gt;
Taint propagation&lt;br /&gt;
* ???&lt;br /&gt;
&lt;br /&gt;
Taint tags are stored in memory interleaved with the variables they are tracking&lt;br /&gt;
&lt;br /&gt;
Some standard Data Flow technique is used to propagate these tags, especially as one variable that is marked may be assigned to another, so now that variable needs to be tracked as well.&lt;br /&gt;
&lt;br /&gt;
Tracks explicit flows of data, not implicit&lt;br /&gt;
	To fully capture implicit flows, you need to do static analysis, which is hard with closed-source apps, and cannot be done real-time&lt;br /&gt;
	&lt;br /&gt;
Implicit flows are not tracked&lt;br /&gt;
* Implicit flows can involve &amp;quot;taint-scope&amp;quot;, tracking based on conditionals in code&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The goal is to create a real time tracking system, so the TaintDroid&#039;s performance impact is of some importance&lt;br /&gt;
&lt;br /&gt;
14% CPU overhead&lt;br /&gt;
4.4% memory overhead&lt;br /&gt;
&lt;br /&gt;
Macro benchmarks  (to get a feel for what the phone&#039;s usability is like with TD running)&lt;br /&gt;
* App load:  3%  (2ms) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Findings ===&lt;br /&gt;
&lt;br /&gt;
20 out of 30 tested applications share data in a way that is not expected.&lt;br /&gt;
&lt;br /&gt;
67 of 105 flagged pieces of data leaving the device had no obviously legitimate purpose (verified by the authors).&lt;br /&gt;
&lt;br /&gt;
Many apps sent location data and other unique identifiers to advertising servers.&lt;br /&gt;
&lt;br /&gt;
Most apps do not mention anything to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
&lt;br /&gt;
Tracks only explicit data flows.&lt;br /&gt;
&lt;br /&gt;
An application *could* launder the tags off of the data, if they really wanted to hide this sort of thing from TaintDroid.&lt;br /&gt;
&lt;br /&gt;
There are methods that could be used to protect against this, but they go against the goal of a light-weight, real-time tracking system.  TD is not necessarily about catching truly malicious programs, but rather just those that leak information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do apps take this information?&lt;br /&gt;
* Lazy;  in the demo video, the wallpaper app seems to use the IMEI just as a ready made unique ID&lt;br /&gt;
* Overzealous;  the developer might thing they *need* the data for something, but actually &lt;br /&gt;
* Ads;  advertises do seem a little presumptuous in their data collection&lt;br /&gt;
* Spying;  bosses or spouses&lt;br /&gt;
* Malicious;  &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
=== QA Period ===&lt;br /&gt;
&lt;br /&gt;
Q:  how do we prevent a malicious app from removing a taint attribute on a file&lt;br /&gt;
&lt;br /&gt;
A:  TD operates a too low a level for this to be a problem;  TD assumes that the native code is trusted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q:  It seems like you had a lot of false positives&lt;br /&gt;
&lt;br /&gt;
A:  The point of this tool was to identify privacy sensitive information as having left the phone, not whether or not a privacy violation has taken place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q: Now that TD is released; couldn&#039;t malicious apps use some of the methods described in the paper to get around it?    &lt;br /&gt;
&lt;br /&gt;
A: Well, yes, but it is not just about maliciousness, it could just laziness or over-zealous ad stuff.&lt;br /&gt;
&lt;br /&gt;
==Other Information==&lt;br /&gt;
&lt;br /&gt;
Hey guys, thought I would just post a generalized paragraph about our essay.&lt;br /&gt;
&lt;br /&gt;
In today’s society, Smartphones are the new big thing. To me that’s what makes this paper so interesting. This paper focuses on private information in android phones and the misuse of this information. The misuse of information includes the SIM card, the ID of the device, or the phone number. TaintDroid is used on smart phones with an efficient taint tracking and analysis system. It has the ability to track sensitive data from multiple sources and examines the misuse of such data. In their study, out of 80 popular third-party applications, TaintDroid monitored that 68 applications had potential misuse of user’s private data. This tool is great for knowing with applications are safe and which are not, so your private data can remained private.&lt;br /&gt;
&lt;br /&gt;
Also, we should really think of splitting up the work in some way. If some people have specific sections they would like to do lets figure that out now so we can divide the workload and get it done over the next couple of days. I don&#039;t personally care what part I&#039;m going to have to do, so lets get this going. Any other information people wanna post feel free the more the better, even if we don&#039;t end up using it.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;br /&gt;
&lt;br /&gt;
Hey guys! Anything else we need to get done? Let me know and I can help in anyway possible.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;br /&gt;
&lt;br /&gt;
==Relevant Sources==&lt;br /&gt;
*NEWSOME,J.,AND SONG,D.Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection]&lt;br /&gt;
&amp;lt;u&amp;gt;Seems to be THE Dynamic Taint Analysis Paper.Talks about implementation on TaintCheck. Could be also useful for critique section&amp;lt;/u&amp;gt; -[Gautam]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6085</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6085"/>
		<updated>2010-12-02T02:06:33Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Contribution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf [2&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;][http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec [4&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] &lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm [6&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf [7&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf [8&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf [9&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf [10&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf [9&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ [4&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf [11&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html [4&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf [11&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf [9&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6084</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6084"/>
		<updated>2010-12-02T02:05:20Z</updated>

		<summary type="html">&lt;p&gt;Gautam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf [2&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;][http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec [4&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] &lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm [6&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf [7&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf [8&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf [9&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf [10&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf [9&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf [11&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf [11&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf [9&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6083</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6083"/>
		<updated>2010-12-02T02:01:26Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Taint Analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf [2&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;][http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec [4&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] &lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6082</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6082"/>
		<updated>2010-12-02T02:00:55Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Taint Analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf [2&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec [4&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf [5&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf [3&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6080</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6080"/>
		<updated>2010-12-02T01:58:53Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Taint Analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf [2&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec 4]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf 5] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6078</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6078"/>
		<updated>2010-12-02T01:57:52Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Information Flow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf 2]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec 4]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf 5] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6074</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6074"/>
		<updated>2010-12-02T01:55:05Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Information Flow */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf [1]] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf 2]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec 4]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf 5] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=6073</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=6073"/>
		<updated>2010-12-02T01:54:33Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Work Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Group Members&lt;br /&gt;
&lt;br /&gt;
Trevor Bonesaw Malone - tmalone@connect.carleton.ca //FIRST POST!&lt;br /&gt;
&lt;br /&gt;
Qi Zhang   - qzhang13@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gregory Bint - gbint@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gautam Akiwate - gakiwate@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Corey Ling - cling@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Sarah Liske&lt;br /&gt;
&lt;br /&gt;
==Relevant Sources==&lt;br /&gt;
*NEWSOME,J.,AND SONG,D.Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection]&lt;br /&gt;
&amp;lt;u&amp;gt;Seems to be THE Dynamic Taint Analysis Paper.Talks about implementation on TaintCheck. Could be also useful for critique section&amp;lt;/u&amp;gt; -[Gautam]&lt;br /&gt;
&lt;br /&gt;
== Work Plan ==&lt;br /&gt;
&lt;br /&gt;
As Trevor intimated, we should have clear division of work going forward.  This is sort of the break down as I see it.  Please edit as you think of new ideas!&lt;br /&gt;
&lt;br /&gt;
* Background Concepts&lt;br /&gt;
** Information Flow Theory. (Implicit and Explicit Flows.) --Done[--[[User:Gautam|Gautam]] 03:54, 28 November 2010 (UTC)]&lt;br /&gt;
** What is dynamic taint analysis --Done[--[[User:Gautam|Gautam]] 05:07, 28 November 2010 (UTC)]&lt;br /&gt;
** What is the difference between dynamic and static analysis - it&#039;s there, who added it?&lt;br /&gt;
* Research Problem&lt;br /&gt;
** How do we build a DTA engine for a phone? - done, but by who?&lt;br /&gt;
** Why do we want to?  (information misuse) - done, but by who?&lt;br /&gt;
* Contribution&lt;br /&gt;
** How did they implement their DTA engine (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** What did they find about information misuse (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** Compared to the existing taint tracking approaches. [[User:Zhangqi|Zhangqi]] 07:11, 27 November 2010 (UTC)&lt;br /&gt;
** (What else should be in the contributions? Anything need fleshing out?) (Working on that now :) ) sliske&lt;br /&gt;
* Critique&lt;br /&gt;
**Added two paragraphs at the end of the present critique. Please incorporate it into your content as you deem fit.--[[User:Gautam|Gautam]] 09:07, 30 November 2010 (UTC) &lt;br /&gt;
**^ done. fleshed out critique, and added a bit about how taintdroid doesn&#039;t track implicit flow. Also reworded (the entire essay) for clarity where necessary/checked spelling. It would be a good idea for everyone to read it over once for spelling/clarity before thursday, just in case something doesn&#039;t make sense - sliske&lt;br /&gt;
* References&lt;br /&gt;
** The article has 61 references!  We can probably use some of them&lt;br /&gt;
**whee! reading papers and sticking in information as need be. Also working out how to cite properly, as there are two citations used currently&lt;br /&gt;
references added and citations taken care of. will go over fill in a few places where information may be lacking after class sliske&lt;br /&gt;
**Referencing is a little askew. The numbers don&#039;t match the papers as listed in the referencing. Also the papers are usually cited with a number and enclosed in &amp;quot;[]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
List of information we need to find external sources for:&lt;br /&gt;
* History of taint analysis&lt;br /&gt;
* History of privacy research relating to smart phones&lt;br /&gt;
&lt;br /&gt;
== Work In Progress ==&lt;br /&gt;
&lt;br /&gt;
Log what you are working on *right now* so that other people don&#039;t try to do the same thing.  Make sure to clear your name from here when you are done.&lt;br /&gt;
&lt;br /&gt;
* Gregory Bint:  Research Problem&lt;br /&gt;
** Need to find some history on smart phone security research for the second part.&lt;br /&gt;
&lt;br /&gt;
* Gautam Akiwate:  Background Concepts&lt;br /&gt;
** Any resources on Dynamic taint Analysis would be appreciated!&lt;br /&gt;
&lt;br /&gt;
* Qi Zhang, Corey Ling: Contributions&lt;br /&gt;
&lt;br /&gt;
* Trevor Malone: Critique&lt;br /&gt;
&lt;br /&gt;
* Sarah Liske: References and Questions, Clarity/Spelling.&lt;br /&gt;
&lt;br /&gt;
== Some Notes from the Video ==&lt;br /&gt;
&lt;br /&gt;
Tracking of privacy sensitive data through Dynamic Taint Analysis (aka. Taint Tracking).  The trick is to mark private data as it sourced, and then follow those marks until (unless) they leave the phone.&lt;br /&gt;
	&lt;br /&gt;
Android phones run Java apps, which are compiled into DEX, and then run on top of the Dalvik VM.  It is this VM that we modify so that we can support the storage and tracking of taint tags.&lt;br /&gt;
&lt;br /&gt;
Taint sources&lt;br /&gt;
* low -bandwidth sensors&lt;br /&gt;
** Location&lt;br /&gt;
** Accelerometer&lt;br /&gt;
* High-bandwidth sensors&lt;br /&gt;
** Mic&lt;br /&gt;
** Camera&lt;br /&gt;
* Information DB&lt;br /&gt;
** Address book&lt;br /&gt;
** SMS storage&lt;br /&gt;
* Device ID&lt;br /&gt;
** IMEI&lt;br /&gt;
** IMSI   (don&#039;t actually track this one because of false positives)&lt;br /&gt;
** ICC_ID&lt;br /&gt;
** Phone Number&lt;br /&gt;
&lt;br /&gt;
Taint sink  (where marked data can leave the phone)&lt;br /&gt;
* Network Taint Sink&lt;br /&gt;
&lt;br /&gt;
Taint propagation&lt;br /&gt;
* ???&lt;br /&gt;
&lt;br /&gt;
Taint tags are stored in memory interleaved with the variables they are tracking&lt;br /&gt;
&lt;br /&gt;
Some standard Data Flow technique is used to propagate these tags, especially as one variable that is marked may be assigned to another, so now that variable needs to be tracked as well.&lt;br /&gt;
&lt;br /&gt;
Tracks explicit flows of data, not implicit&lt;br /&gt;
	To fully capture implicit flows, you need to do static analysis, which is hard with closed-source apps, and cannot be done real-time&lt;br /&gt;
	&lt;br /&gt;
Implicit flows are not tracked&lt;br /&gt;
* Implicit flows can involve &amp;quot;taint-scope&amp;quot;, tracking based on conditionals in code&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The goal is to create a real time tracking system, so the TaintDroid&#039;s performance impact is of some importance&lt;br /&gt;
&lt;br /&gt;
14% CPU overhead&lt;br /&gt;
4.4% memory overhead&lt;br /&gt;
&lt;br /&gt;
Macro benchmarks  (to get a feel for what the phone&#039;s usability is like with TD running)&lt;br /&gt;
* App load:  3%  (2ms) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Findings ===&lt;br /&gt;
&lt;br /&gt;
20 out of 30 tested applications share data in a way that is not expected.&lt;br /&gt;
&lt;br /&gt;
67 of 105 flagged pieces of data leaving the device had no obviously legitimate purpose (verified by the authors).&lt;br /&gt;
&lt;br /&gt;
Many apps sent location data and other unique identifiers to advertising servers.&lt;br /&gt;
&lt;br /&gt;
Most apps do not mention anything to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
&lt;br /&gt;
Tracks only explicit data flows.&lt;br /&gt;
&lt;br /&gt;
An application *could* launder the tags off of the data, if they really wanted to hide this sort of thing from TaintDroid.&lt;br /&gt;
&lt;br /&gt;
There are methods that could be used to protect against this, but they go against the goal of a light-weight, real-time tracking system.  TD is not necessarily about catching truly malicious programs, but rather just those that leak information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do apps take this information?&lt;br /&gt;
* Lazy;  in the demo video, the wallpaper app seems to use the IMEI just as a ready made unique ID&lt;br /&gt;
* Overzealous;  the developer might thing they *need* the data for something, but actually &lt;br /&gt;
* Ads;  advertises do seem a little presumptuous in their data collection&lt;br /&gt;
* Spying;  bosses or spouses&lt;br /&gt;
* Malicious;  &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
=== QA Period ===&lt;br /&gt;
&lt;br /&gt;
Q:  how do we prevent a malicious app from removing a taint attribute on a file&lt;br /&gt;
&lt;br /&gt;
A:  TD operates a too low a level for this to be a problem;  TD assumes that the native code is trusted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q:  It seems like you had a lot of false positives&lt;br /&gt;
&lt;br /&gt;
A:  The point of this tool was to identify privacy sensitive information as having left the phone, not whether or not a privacy violation has taken place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q: Now that TD is released; couldn&#039;t malicious apps use some of the methods described in the paper to get around it?    &lt;br /&gt;
&lt;br /&gt;
A: Well, yes, but it is not just about maliciousness, it could just laziness or over-zealous ad stuff.&lt;br /&gt;
&lt;br /&gt;
==Other Information==&lt;br /&gt;
&lt;br /&gt;
Hey guys, thought I would just post a generalized paragraph about our essay.&lt;br /&gt;
&lt;br /&gt;
In today’s society, Smartphones are the new big thing. To me that’s what makes this paper so interesting. This paper focuses on private information in android phones and the misuse of this information. The misuse of information includes the SIM card, the ID of the device, or the phone number. TaintDroid is used on smart phones with an efficient taint tracking and analysis system. It has the ability to track sensitive data from multiple sources and examines the misuse of such data. In their study, out of 80 popular third-party applications, TaintDroid monitored that 68 applications had potential misuse of user’s private data. This tool is great for knowing with applications are safe and which are not, so your private data can remained private.&lt;br /&gt;
&lt;br /&gt;
Also, we should really think of splitting up the work in some way. If some people have specific sections they would like to do lets figure that out now so we can divide the workload and get it done over the next couple of days. I don&#039;t personally care what part I&#039;m going to have to do, so lets get this going. Any other information people wanna post feel free the more the better, even if we don&#039;t end up using it.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;br /&gt;
&lt;br /&gt;
Hey guys! Anything else we need to get done? Let me know and I can help in anyway possible.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6071</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6071"/>
		<updated>2010-12-02T01:44:52Z</updated>

		<summary type="html">&lt;p&gt;Gautam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf 2]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec 4]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf 5] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6070</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6070"/>
		<updated>2010-12-02T01:44:07Z</updated>

		<summary type="html">&lt;p&gt;Gautam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf 2]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec 4]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf 5] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6068</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6068"/>
		<updated>2010-12-02T01:41:32Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Critique */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf 2]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec 4]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf 5] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. Essentially, this to make an arguement that TaintDroid could have been made with a set of better design choices.   &lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6063</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6063"/>
		<updated>2010-12-02T01:22:45Z</updated>

		<summary type="html">&lt;p&gt;Gautam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf 2]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec 4]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf 5] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information. However, in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone.&lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6060</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6060"/>
		<updated>2010-12-02T01:20:27Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow the ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf 2]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec 4]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf 5] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone.&lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6059</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=6059"/>
		<updated>2010-12-02T01:19:28Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung, Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow these ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf 2]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec 4]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf 5] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf 1]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. &#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm 6]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf 7] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 8]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.1353&amp;amp;rep=rep1&amp;amp;type=pdf 3]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf 10]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed, as opposed to relying on heuristics or manual labels. [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [http://www.usenix.org/events/sec04/tech/chow/chow_html/ 4], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11], rely on instruction-level dynamic taint analysis using whole system emulation. Panorama Taint System is able to perform OS-aware whole system taint analysis to detect and analyze malicious code&#039;s information processing behavior. The core feature of this kind of taint analysis is realtime. But this method will lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html 4][http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf 11] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf 9] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone.&lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf 3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects. TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid is implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf 11].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. &#039;&#039;Communications of the ACM 19, 5&#039;&#039; (May 1976), 236–243&lt;br /&gt;
&lt;br /&gt;
[2] HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. &#039;&#039;Twenty-First Annual Computer Security Applications Confrence (ACSAC),&#039;&#039; (2005)&lt;br /&gt;
&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] &#039;&#039;Proceedings of the Network and Distributed System Security Symposium&#039;&#039; (NDSS 2005)&lt;br /&gt;
&lt;br /&gt;
[4] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., AND ROSENBLUM, M. [http://www.usenix.org/events/sec04/tech/chow/chow_html/ Understanding Data Lifetime via Whole System Simulation]. &#039;&#039;Proceedings of the 13th USENIX Security&lt;br /&gt;
Symposium&#039;&#039; (August 2004).&lt;br /&gt;
&lt;br /&gt;
[5] CEARA, D., POTET, ML., et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] &#039;&#039;GINP ENSIMAG GoogleCode&#039;&#039;(2009)&lt;br /&gt;
&lt;br /&gt;
[6] FITZPATRICK, M. [http://news.bbc.co.uk/2/hi/technology/8559683.stm Mobile that allows bosses to snoop on staff developed]. &#039;&#039;BBC News, Technology&#039;&#039; (March 2010) &lt;br /&gt;
&lt;br /&gt;
[7] SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] &#039;&#039;http://pskl.us&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[8] NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] &#039;&#039;International Workshop on Run Time Enforcement for Mobile and Distributed Systems&#039;&#039; (REM 2007)&lt;br /&gt;
&lt;br /&gt;
[9] ZHU, Y., JUNG, J., KOHNO, T., WETHERALL, D., [http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-145.pdf Privacy Scope: A Precise Information Flow Tracking System For Finding Application Leaks]. &#039;&#039;Technical Report No. UCB/EECS-2009-145, University of California, Berkeley&#039;&#039; (2009)&lt;br /&gt;
&lt;br /&gt;
[10] CHUNG LAM, L., CHIUEH, T., [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.74.1478&amp;amp;rep=rep1&amp;amp;type=pdf A General Dynamic Information Flow Tracking Framework for Security Applications]. &#039;&#039;Proceedings of the Annual Computer Security Applications Conference (ACSAC)&#039;&#039; (2006)&lt;br /&gt;
&lt;br /&gt;
[11] YIN, H., SONG, D., EGELE, M., KRUEGEL, C., AND KIRDA, E. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.3789&amp;amp;rep=rep1&amp;amp;type=pdf Panorama: Capturing system-wide Information Flow for Malware Detection and Analysis]. In &#039;&#039;Proceedings of ACM Computer and Communications Security&#039;&#039; (2007)&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5917</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5917"/>
		<updated>2010-12-01T05:12:43Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Mathematical Model */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow these ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [REF] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [REF]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;br&amp;gt; For more detailed information on Taint Analysis refer &amp;quot;Detecting Software Vulnerabilities Static Taint Analysis&amp;quot;[2]&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[REF]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.[REF]&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[REF]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[REF]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[REF]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed. [REF] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. [REF] Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).[REF]&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [REF], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System, rely on instruction-level dynamic taint analysis using whole system emulation. This method can lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec:future] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[REF] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone.&lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects, as TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid has been implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&amp;lt;br&amp;gt;&lt;br /&gt;
[] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., ROSENBLUM, M., [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec:future Understanding Data Lifetime via Whole System Simulation] USENIX Secutiry &#039;04 &amp;lt;br&amp;gt;&lt;br /&gt;
[]HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. University of California.&lt;br /&gt;
[]SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] http://pskl.us&amp;lt;br&amp;gt;&lt;br /&gt;
[]NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] International Workshop&lt;br /&gt;
on Run Time Enforcement for Mobile and Distributed Systems (REM 2007) &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5916</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5916"/>
		<updated>2010-12-01T05:12:15Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Mathematical Model */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow these ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is logged. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf]  This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed. [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. [REF] The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. [REF]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;br&amp;gt; For more detailed information on Taint Analysis refer &amp;quot;Detecting Software Vulnerabilities Static Taint Analysis&amp;quot;[2]&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little. [http://news.bbc.co.uk/2/hi/technology/8559683.stm]&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.[http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf] Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.[REF]&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.[REF]&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.[REF]&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.[REF]&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?[REF]&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. TaintDroid only causes roughly a 14% CPU overhead and approximately 4.4% memory overhead when tracking 32 taint markings per tainted data unit. It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;(Enck et al., YEAR, p1)&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed. [REF] Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; (Enck et al., YEAR, p3) so they can keep track of information transfer via native code. [REF] Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; (Enck et al., YEAR, p3).[REF]&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation [REF], the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System, rely on instruction-level dynamic taint analysis using whole system emulation. This method can lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis.[http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec:future] Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. [REF] However, TaintDroid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks.[REF] It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &lt;br /&gt;
&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. &lt;br /&gt;
&lt;br /&gt;
To prevent additional overhead, TaintDroid does not track implicit data flow or control flow. This partially is because the applications being tested are loaded onto the phone as black-box, precompiled binaries; but mostly because the Android JVM does not maintain branch structures, which TaintDroid could use to track implicit flow dynamically. It is presumed that branch structures are maintained at a kernel level, as a static analysis could uncover data leak stemming from implicit data flow, but dynamic analysis such as TaintDroid cannot. This means that applications can bypass the taint analysis by using implicit flow. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone.&lt;br /&gt;
&lt;br /&gt;
Consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
Possible exam questions and brief answers are listed below, along with the section to go to to find more information pertaining to that question.&lt;br /&gt;
&lt;br /&gt;
===Anil&#039;s questions===&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak. (Critique - Content)&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is not a part of the kernel. Dalvic runs on top of the Android kernel as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking. (Contribution)&lt;br /&gt;
&lt;br /&gt;
===Additional questions===&lt;br /&gt;
* Although TaintDroid is adept at catching information leak, there are ways an application can bypass the TaintDroid filter. Describe one. &lt;br /&gt;
** An application could use implicit flow to derive data from tainted objects, as TaintDroid has no way to inspect implicit flow dynamically, due to no branch structures being maintained at the JVM layer, where TaintDroid has been implemented. Instead, control structures would be part of the pre-compiled application binaries, which, while not entirely black boxes, are impractical to investigate dynamically. Implicit flow data leaks can, however, be caught by a static analysis [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf].&lt;br /&gt;
* hmmm&lt;br /&gt;
** words go here&lt;br /&gt;
* hmmmmmmmmmm&lt;br /&gt;
** words go here&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow]. Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&amp;lt;br&amp;gt;&lt;br /&gt;
[] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[] CHOW, J., PFAFF, B., GARFINKEL, T., CHRISTOPHER, K., ROSENBLUM, M., [http://www.usenix.org/events/sec04/tech/chow/chow_html/index.html#sec:future Understanding Data Lifetime via Whole System Simulation] USENIX Secutiry &#039;04 &amp;lt;br&amp;gt;&lt;br /&gt;
[]HALDAR, V., CHANDRA, D., FRANZ, M. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.94.3118&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Propagation for Java]. University of California.&lt;br /&gt;
[]SMITH, E. [http://www.pskl.us/wp/wp-content/uploads/2010/09/iPhone-Applications-Privacy-Issues.pdf iPhone Applications &amp;amp; Privacy Issues: An Analysis of Application Transmission of iPhone Unique Device Identifiers (UDIDs).] http://pskl.us&amp;lt;br&amp;gt;&lt;br /&gt;
[]NAIR, S. K., SIMPSON, P. N., CRISPO, B., AND TANENBAUM, [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.129.2676&amp;amp;rep=rep1&amp;amp;type=pdf A. S. A Virtual Machine Based Information Flow Control Systemfor Policy Enforcement.] International Workshop&lt;br /&gt;
on Run Time Enforcement for Mobile and Distributed Systems (REM 2007) &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5857</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5857"/>
		<updated>2010-11-30T23:07:52Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Mathematical Model */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones=&lt;br /&gt;
&#039;&#039;&#039;Authors:&#039;&#039;&#039; &amp;lt;br&amp;gt;&lt;br /&gt;
* William Enck, Patrick McDaniel &#039;&#039;The Pennsylvania State University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Peter Gilbert, Landon P. Cox &#039;&#039;Duke University&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
* Byung-Gon Chun, Jaeyeon Jung Anmol N. Sheth &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://appanalysis.org/tdroid10.pdf Direct Link]&lt;br /&gt;
&lt;br /&gt;
[http://www.appanalysis.org/ Official Website]&lt;br /&gt;
&lt;br /&gt;
[http://www.youtube.com/watch?v=qnLujX1Dw4Y Video Demonstration]&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
To follow these ideas in this paper, the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
==Information Flow==&lt;br /&gt;
Information flow as the name suggests is the transfer of information. This transfer of information can be between two processes or within a given process, for example, between variables. [REF] Information Flow Theory tries to quantify this flow of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the information flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
===Explicit Flow===&lt;br /&gt;
Explicit flow is when information subject to security classifications is transferred to a variable or process which is not subject to the same or higher level of security, causing a security breach. [REF] The breach occurs because information is now more visible than it was intended to be. An example of explicit flow is shown below:&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure = secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an information leak. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Implicit Flow===&lt;br /&gt;
Implicit Flow is when information subject to security classifications is deduced indirectly. This the leakage of information occurs through the program control flow. [REF] Depending on the flow of the program the secure information can be compromised, as shown below&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Since can determine the value of information in &amp;lt;i&amp;gt;secure&amp;lt;/i&amp;gt; using logic statements, we can indirectly access the secure information. Information leak due to implicit flows is much harder to detect and protect from, due to the indirect nature of implicit flows.&lt;br /&gt;
&lt;br /&gt;
==Taint Analysis==&lt;br /&gt;
&lt;br /&gt;
The basic premise of taint analysis is to follow the information flow of &amp;quot;tainted&amp;quot; variables to ensure that they do not create a security breach. Any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. Through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable, propagating it. When a tainted variable is used to execute potentially dangerous commands a breach is logged, allowing detection of possible security concerns. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Dynamic Taint Analysis===&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in memory and when such data is used in a potentially dangerous situation, a leak is detected. This approach offers the capabilities to detect most input validation vulnerabilities with a very low false positive rate. However, the execution of the program is slower because of the additional checks being preformed.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Static Taint Analysis===&lt;br /&gt;
Static taint analysis is the technique used for detecting the over approximation of the set of instructions that are influenced by user input. The set of tainted instructions is computed statically by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be as accurate as a dynamic analysis because the static analysis does not have access to any additional run-time information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Mathematical Model===&lt;br /&gt;
&amp;lt;code&amp;gt;For all variables V = {T,U} ;T are tainted and U are untainted:&amp;lt;br&amp;gt;&lt;br /&gt;
Using &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V, x, y ∈ V &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = T; x = T OR y = T&amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y = U, if x = U AND y = U&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is now easy to see that whenever a tainted variable is used by another variable, the variable that used the tainted variable becomes tainted as well; the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, which can then be tracked or used as wanted. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;br&amp;gt; For more detailed information on Taint Analysis refer &amp;quot;Detecting Software Vulnerabilities Static Taint Analysis&amp;quot;[2]&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are a prominent new technology. Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data smartphones make available, such as location data. Smartphones also have the ability to download and run third party applications which can connect to the internet; indeed, this is why we call them &amp;quot;smart&amp;quot;. Except for the odd tunnel or elevator, these phones are constantly connected to the internet. When you combine third party applications with an internet connection on a device that stores an immense amount of personal data, you suddenly find yourself unsure of how your data is being used; what is to stop a third party application from disseminating our private information? As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer. Once the app is running on your phone, it can typically access any of the information on your phone that it has been given permission to access, and it is not necessarily clear when the application has accessed data, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking. The basic idea being to mark (or &#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as the data moves through a system. In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone. Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some implementation difficulties are:&lt;br /&gt;
* Smart phones are resource constrained. Processing power and memory are limited, and any processing that we do perform will consume battery power. If the tracking system is to be real-time, the phone must be considered &amp;quot;usable&amp;quot; by the end user, and so the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format; we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data. It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network. More likely is that the application will use that data in some way, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one. With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do. On a real device, how can we get low-level enough to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The main contribution of the TaintDroid paper is not that they achieved information flow tracking, but that they made it efficient enough to run in real time on real constrained hardware devices with minimal overhead. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; [CITE] It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This low overhead is achieved by modifying the code directly at the Java Virtual Machine (JVM) layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, is stored and accessed. Next, they modified the Java Native Interface (JNI) to provide message-level tracking which allows them to monitor inter-process, a.k.a. inter-application, communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; [CITE] so they can keep track of information transfer via native code. Finally, by modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot; [CITE].&lt;br /&gt;
&lt;br /&gt;
Another contribution of TaintDroid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight, whole-system emulation, the virtualized architecture of Android allows four levels of taint propagation: variable, method, message, and file. The granularity and flow semantics that TaintDroid offers highly influences the performance and accuracy of TaintDroid. Existing taint tracking approaches, like Panorama Taint System, rely on instruction-level dynamic taint analysis using whole system emulation. This method can lead to the system preforming from 2-20 times slower than normal, which is not suitable at all for the trend of realtime analysis. Moreover, instruction-level tracking faces a serious problem, taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However, TaintDorid solved this problem with the combination of 4 levels of tracking. For example, the variable level allows TaintDroid to provide flow semantics for taint propagation, allowing distinction between different data pointers at different levels to ensure accuracy.&lt;br /&gt;
&lt;br /&gt;
By combining these four levels (variable, method, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected, popular, 3rd party android applications. In doing so TaintDroid correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate risks. It also determined that 50% of the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number. Clearly, the higher granularity is needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
&lt;br /&gt;
==Style==&lt;br /&gt;
This paper has quite a bit of information, but has a very strong structure in explaining what TaintDroid is and what it does, which makes it easy to read. The paper begins with a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. &amp;lt;br&amp;gt;&lt;br /&gt;
Readability of the paper could be improved by explaining more of the Android phone architecture first, before beginning the overview of the TaintDroid process. That way the concepts of the implementation would be easier to understand. Another possible improvement would be for this paper to provide some solutions to the problem it found, by suggesting future smartphone security measures, or what possible updates to current programs can be implemented to further improve the tracking of misuse of information, and even prevent it from occurring. &lt;br /&gt;
&lt;br /&gt;
==Content==&lt;br /&gt;
Challenges of monitoring network disclosure of privacy sensitive information are well outlined, as are TaintDroid&#039;s workarounds for these challenges. TaintDroid uses dynamic taint analysis to find a way around the challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. It is easy to see that this research was effective, due to the impressive number of information leaks that were found. TaintDroid effectively identifies information misuse at a high percentage. However, while the implementation is strong in that the overhead is so low and accuracy is high, there are trade-offs that were incurred to meet that overhead. For example, TaintDroid only tracks data flow and does not track control flow, which means there are ways to bypass the TaintDroid filters. There are also other issues, particularly in Taint Tag Storage, which are due to the fact that most string objects have the same tag. Because of the similar tags, it is possible for false positives to occur.&amp;lt;br&amp;gt;&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone.&amp;lt;br&amp;gt;&lt;br /&gt;
For example, consider a possible alternative implementation of TaintDroid. TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
REFERENCES&lt;br /&gt;
&lt;br /&gt;
=Questions=&lt;br /&gt;
From Anil&#039;s questions:&lt;br /&gt;
* What is one source of false positives in TaintDroid? (In other words, what kind of code/data behavior leads to false alarms?)&lt;br /&gt;
** Answer: Some applications are making legitimate use of sensitive data; for example, Google Maps needs to know your location in order to work, and the use of this data is known by the user.  TaintDroid cannot know whether the user has consented to the use of some data, and so flags it as a leak.&lt;br /&gt;
* What part of Android was modified for TaintDroid? Is this part of Android&#039;s kernel? Explain briefly. &lt;br /&gt;
** The Dalvic VM is modified.  Dalvic is the java virtual machine used by Android to run user applications.  Although Dalvic is a core part of the Android operating system, it is &amp;lt;u&amp;gt;not&amp;lt;/u&amp;gt; a part of the kernel. Dalvic runs on top of the Android kernel (itself a Linux kernel) as a user process.  All third party user applications run on top of Dalvic, however, so it is a sufficiently &amp;quot;low-level&amp;quot; point of the system to implement taint tracking.&lt;br /&gt;
&lt;br /&gt;
Additional questions:&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&amp;lt;br&amp;gt;&lt;br /&gt;
[] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5722</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5722"/>
		<updated>2010-11-30T09:07:39Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Work In Progress */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Group Members&lt;br /&gt;
&lt;br /&gt;
Trevor Bonesaw Malone - tmalone@connect.carleton.ca //FIRST POST!&lt;br /&gt;
&lt;br /&gt;
Qi Zhang   - qzhang13@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gregory Bint - gbint@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gautam Akiwate - gakiwate@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Corey Ling - cling@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
==Relevant Sources==&lt;br /&gt;
*NEWSOME,J.,AND SONG,D.Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection]&lt;br /&gt;
&amp;lt;u&amp;gt;Seems to be THE Dynamic Taint Analysis Paper.Talks about implementation on TaintCheck. Could be also useful for critique section&amp;lt;/u&amp;gt; -[Gautam]&lt;br /&gt;
&lt;br /&gt;
== Work Plan ==&lt;br /&gt;
&lt;br /&gt;
As Trevor intimated, we should have clear division of work going forward.  This is sort of the break down as I see it.  Please edit as you think of new ideas!&lt;br /&gt;
&lt;br /&gt;
* Background Concepts&lt;br /&gt;
** Information Flow Theory. (Implicit and Explicit Flows.) --Done[--[[User:Gautam|Gautam]] 03:54, 28 November 2010 (UTC)]&lt;br /&gt;
** What is dynamic taint analysis --Done[--[[User:Gautam|Gautam]] 05:07, 28 November 2010 (UTC)]&lt;br /&gt;
** What is the difference between dynamic and static analysis&lt;br /&gt;
* Research Problem&lt;br /&gt;
** How do we build a DTA engine for a phone?&lt;br /&gt;
** Why do we want to?  (information misuse)&lt;br /&gt;
* Contribution&lt;br /&gt;
** How did they implement their DTA engine (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** What did they find about information misuse (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** Compared to the existing taint tracking approaches. [[User:Zhangqi|Zhangqi]] 07:11, 27 November 2010 (UTC) (Added something. Still looking for other examples,in progress)&lt;br /&gt;
** (What else should be in the contributions? Anything need fleshing out?)&lt;br /&gt;
* Critique&lt;br /&gt;
**Added two paragraphs at the end of the present critique. Please incorporate it into your content as you deem fit.--[[User:Gautam|Gautam]] 09:07, 30 November 2010 (UTC)&lt;br /&gt;
* References&lt;br /&gt;
** The article has 61 references!  We can probably use some of them&lt;br /&gt;
&lt;br /&gt;
List of information we need to find external sources for:&lt;br /&gt;
* History of taint analysis&lt;br /&gt;
* History of privacy research relating to smart phones&lt;br /&gt;
&lt;br /&gt;
== Work In Progress ==&lt;br /&gt;
&lt;br /&gt;
Log what you are working on *right now* so that other people don&#039;t try to do the same thing.  Make sure to clear your name from here when you are done.&lt;br /&gt;
&lt;br /&gt;
* Gregory Bint:  Research Problem&lt;br /&gt;
** I&#039;ve got what you will hopefully find to be a reasonable introduction to the problem.  I&#039;ve tried to ask mostly questions here, expecting the details to be covered in Background Concepts and in Contributions.&lt;br /&gt;
** I&#039;m going to try to find some history on smart phone security research for the second part.&lt;br /&gt;
&lt;br /&gt;
* Gautam Akiwate:  Background Concepts&lt;br /&gt;
** Any resources on Dynamic taint Analysis would be appreciated!&lt;br /&gt;
&lt;br /&gt;
* Corey Ling: Contributions (Qi Zhang) &lt;br /&gt;
&lt;br /&gt;
* Trevor Malone: Critique&lt;br /&gt;
&lt;br /&gt;
== Some Notes from the Video ==&lt;br /&gt;
&lt;br /&gt;
Tracking of privacy sensitive data through Dynamic Taint Analysis (aka. Taint Tracking).  The trick is to mark private data as it sourced, and then follow those marks until (unless) they leave the phone.&lt;br /&gt;
	&lt;br /&gt;
Android phones run Java apps, which are compiled into DEX, and then run on top of the Dalvik VM.  It is this VM that we modify so that we can support the storage and tracking of taint tags.&lt;br /&gt;
&lt;br /&gt;
Taint sources&lt;br /&gt;
* low -bandwidth sensors&lt;br /&gt;
** Location&lt;br /&gt;
** Accelerometer&lt;br /&gt;
* High-bandwidth sensors&lt;br /&gt;
** Mic&lt;br /&gt;
** Camera&lt;br /&gt;
* Information DB&lt;br /&gt;
** Address book&lt;br /&gt;
** SMS storage&lt;br /&gt;
* Device ID&lt;br /&gt;
** IMEI&lt;br /&gt;
** IMSI   (don&#039;t actually track this one because of false positives)&lt;br /&gt;
** ICC_ID&lt;br /&gt;
** Phone Number&lt;br /&gt;
&lt;br /&gt;
Taint sink  (where marked data can leave the phone)&lt;br /&gt;
* Network Taint Sink&lt;br /&gt;
&lt;br /&gt;
Taint propagation&lt;br /&gt;
* ???&lt;br /&gt;
&lt;br /&gt;
Taint tags are stored in memory interleaved with the variables they are tracking&lt;br /&gt;
&lt;br /&gt;
Some standard Data Flow technique is used to propagate these tags, especially as one variable that is marked may be assigned to another, so now that variable needs to be tracked as well.&lt;br /&gt;
&lt;br /&gt;
Tracks explicit flows of data, not implicit&lt;br /&gt;
	To fully capture implicit flows, you need to do static analysis, which is hard with closed-source apps, and cannot be done real-time&lt;br /&gt;
	&lt;br /&gt;
Implicit flows are not tracked&lt;br /&gt;
* Implicit flows can involve &amp;quot;taint-scope&amp;quot;, tracking based on conditionals in code&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The goal is to create a real time tracking system, so the TaintDroid&#039;s performance impact is of some importance&lt;br /&gt;
&lt;br /&gt;
14% CPU overhead&lt;br /&gt;
4.4% memory overhead&lt;br /&gt;
&lt;br /&gt;
Macro benchmarks  (to get a feel for what the phone&#039;s usability is like with TD running)&lt;br /&gt;
* App load:  3%  (2ms) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Findings ===&lt;br /&gt;
&lt;br /&gt;
20 out of 30 tested applications share data in a way that is not expected.&lt;br /&gt;
&lt;br /&gt;
67 of 105 flagged pieces of data leaving the device had no obviously legitimate purpose (verified by the authors).&lt;br /&gt;
&lt;br /&gt;
Many apps sent location data and other unique identifiers to advertising servers.&lt;br /&gt;
&lt;br /&gt;
Most apps do not mention anything to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
&lt;br /&gt;
Tracks only explicit data flows.&lt;br /&gt;
&lt;br /&gt;
An application *could* launder the tags off of the data, if they really wanted to hide this sort of thing from TaintDroid.&lt;br /&gt;
&lt;br /&gt;
There are methods that could be used to protect against this, but they go against the goal of a light-weight, real-time tracking system.  TD is not necessarily about catching truly malicious programs, but rather just those that leak information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do apps take this information?&lt;br /&gt;
* Lazy;  in the demo video, the wallpaper app seems to use the IMEI just as a ready made unique ID&lt;br /&gt;
* Overzealous;  the developer might thing they *need* the data for something, but actually &lt;br /&gt;
* Ads;  advertises do seem a little presumptuous in their data collection&lt;br /&gt;
* Spying;  bosses or spouses&lt;br /&gt;
* Malicious;  &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
=== QA Period ===&lt;br /&gt;
&lt;br /&gt;
Q:  how do we prevent a malicious app from removing a taint attribute on a file&lt;br /&gt;
&lt;br /&gt;
A:  TD operates a too low a level for this to be a problem;  TD assumes that the native code is trusted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q:  It seems like you had a lot of false positives&lt;br /&gt;
&lt;br /&gt;
A:  The point of this tool was to identify privacy sensitive information as having left the phone, not whether or not a privacy violation has taken place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q: Now that TD is released; couldn&#039;t malicious apps use some of the methods described in the paper to get around it?    &lt;br /&gt;
&lt;br /&gt;
A: Well, yes, but it is not just about maliciousness, it could just laziness or over-zealous ad stuff.&lt;br /&gt;
&lt;br /&gt;
==Other Information==&lt;br /&gt;
&lt;br /&gt;
Hey guys, thought I would just post a generalized paragraph about our essay.&lt;br /&gt;
&lt;br /&gt;
In today’s society, Smartphones are the new big thing. To me that’s what makes this paper so interesting. This paper focuses on private information in android phones and the misuse of this information. The misuse of information includes the SIM card, the ID of the device, or the phone number. TaintDroid is used on smart phones with an efficient taint tracking and analysis system. It has the ability to track sensitive data from multiple sources and examines the misuse of such data. In their study, out of 80 popular third-party applications, TaintDroid monitored that 68 applications had potential misuse of user’s private data. This tool is great for knowing with applications are safe and which are not, so your private data can remained private.&lt;br /&gt;
&lt;br /&gt;
Also, we should really think of splitting up the work in some way. If some people have specific sections they would like to do lets figure that out now so we can divide the workload and get it done over the next couple of days. I don&#039;t personally care what part I&#039;m going to have to do, so lets get this going. Any other information people wanna post feel free the more the better, even if we don&#039;t end up using it.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5721</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5721"/>
		<updated>2010-11-30T09:07:18Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Work Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Group Members&lt;br /&gt;
&lt;br /&gt;
Trevor Bonesaw Malone - tmalone@connect.carleton.ca //FIRST POST!&lt;br /&gt;
&lt;br /&gt;
Qi Zhang   - qzhang13@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gregory Bint - gbint@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gautam Akiwate - gakiwate@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Corey Ling - cling@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
==Relevant Sources==&lt;br /&gt;
*NEWSOME,J.,AND SONG,D.Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection]&lt;br /&gt;
&amp;lt;u&amp;gt;Seems to be THE Dynamic Taint Analysis Paper.Talks about implementation on TaintCheck. Could be also useful for critique section&amp;lt;/u&amp;gt; -[Gautam]&lt;br /&gt;
&lt;br /&gt;
== Work Plan ==&lt;br /&gt;
&lt;br /&gt;
As Trevor intimated, we should have clear division of work going forward.  This is sort of the break down as I see it.  Please edit as you think of new ideas!&lt;br /&gt;
&lt;br /&gt;
* Background Concepts&lt;br /&gt;
** Information Flow Theory. (Implicit and Explicit Flows.) --Done[--[[User:Gautam|Gautam]] 03:54, 28 November 2010 (UTC)]&lt;br /&gt;
** What is dynamic taint analysis --Done[--[[User:Gautam|Gautam]] 05:07, 28 November 2010 (UTC)]&lt;br /&gt;
** What is the difference between dynamic and static analysis&lt;br /&gt;
* Research Problem&lt;br /&gt;
** How do we build a DTA engine for a phone?&lt;br /&gt;
** Why do we want to?  (information misuse)&lt;br /&gt;
* Contribution&lt;br /&gt;
** How did they implement their DTA engine (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** What did they find about information misuse (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** Compared to the existing taint tracking approaches. [[User:Zhangqi|Zhangqi]] 07:11, 27 November 2010 (UTC) (Added something. Still looking for other examples,in progress)&lt;br /&gt;
** (What else should be in the contributions? Anything need fleshing out?)&lt;br /&gt;
* Critique&lt;br /&gt;
**Added two paragraphs at the end of the present critique. Please incorporate it into your content as you deem fit.--[[User:Gautam|Gautam]] 09:07, 30 November 2010 (UTC)&lt;br /&gt;
* References&lt;br /&gt;
** The article has 61 references!  We can probably use some of them&lt;br /&gt;
&lt;br /&gt;
List of information we need to find external sources for:&lt;br /&gt;
* History of taint analysis&lt;br /&gt;
* History of privacy research relating to smart phones&lt;br /&gt;
&lt;br /&gt;
== Work In Progress ==&lt;br /&gt;
&lt;br /&gt;
Log what you are working on *right now* so that other people don&#039;t try to do the same thing.  Make sure to clear your name from here when you are done.&lt;br /&gt;
&lt;br /&gt;
* Gregory Bint:  Research Problem&lt;br /&gt;
** I&#039;ve got what you will hopefully find to be a reasonable introduction to the problem.  I&#039;ve tried to ask mostly questions here, expecting the details to be covered in Background Concepts and in Contributions.&lt;br /&gt;
** I&#039;m going to try to find some history on smart phone security research for the second part.&lt;br /&gt;
&lt;br /&gt;
* Gautam Akiwate:  Background Concepts&lt;br /&gt;
** Any resources on Dynamic taint Analysis would be appreciated!&lt;br /&gt;
&lt;br /&gt;
* Corey Ling: Contributions (Qi Zhang) &lt;br /&gt;
&lt;br /&gt;
* Trevor Malone: Critique &lt;br /&gt;
[I have added two paragraphs at the end of your writing. Please incorporate that into your content as you deem fit.--[[User:Gautam|Gautam]] 09:05, 30 November 2010 (UTC)]&lt;br /&gt;
&lt;br /&gt;
== Some Notes from the Video ==&lt;br /&gt;
&lt;br /&gt;
Tracking of privacy sensitive data through Dynamic Taint Analysis (aka. Taint Tracking).  The trick is to mark private data as it sourced, and then follow those marks until (unless) they leave the phone.&lt;br /&gt;
	&lt;br /&gt;
Android phones run Java apps, which are compiled into DEX, and then run on top of the Dalvik VM.  It is this VM that we modify so that we can support the storage and tracking of taint tags.&lt;br /&gt;
&lt;br /&gt;
Taint sources&lt;br /&gt;
* low -bandwidth sensors&lt;br /&gt;
** Location&lt;br /&gt;
** Accelerometer&lt;br /&gt;
* High-bandwidth sensors&lt;br /&gt;
** Mic&lt;br /&gt;
** Camera&lt;br /&gt;
* Information DB&lt;br /&gt;
** Address book&lt;br /&gt;
** SMS storage&lt;br /&gt;
* Device ID&lt;br /&gt;
** IMEI&lt;br /&gt;
** IMSI   (don&#039;t actually track this one because of false positives)&lt;br /&gt;
** ICC_ID&lt;br /&gt;
** Phone Number&lt;br /&gt;
&lt;br /&gt;
Taint sink  (where marked data can leave the phone)&lt;br /&gt;
* Network Taint Sink&lt;br /&gt;
&lt;br /&gt;
Taint propagation&lt;br /&gt;
* ???&lt;br /&gt;
&lt;br /&gt;
Taint tags are stored in memory interleaved with the variables they are tracking&lt;br /&gt;
&lt;br /&gt;
Some standard Data Flow technique is used to propagate these tags, especially as one variable that is marked may be assigned to another, so now that variable needs to be tracked as well.&lt;br /&gt;
&lt;br /&gt;
Tracks explicit flows of data, not implicit&lt;br /&gt;
	To fully capture implicit flows, you need to do static analysis, which is hard with closed-source apps, and cannot be done real-time&lt;br /&gt;
	&lt;br /&gt;
Implicit flows are not tracked&lt;br /&gt;
* Implicit flows can involve &amp;quot;taint-scope&amp;quot;, tracking based on conditionals in code&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The goal is to create a real time tracking system, so the TaintDroid&#039;s performance impact is of some importance&lt;br /&gt;
&lt;br /&gt;
14% CPU overhead&lt;br /&gt;
4.4% memory overhead&lt;br /&gt;
&lt;br /&gt;
Macro benchmarks  (to get a feel for what the phone&#039;s usability is like with TD running)&lt;br /&gt;
* App load:  3%  (2ms) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Findings ===&lt;br /&gt;
&lt;br /&gt;
20 out of 30 tested applications share data in a way that is not expected.&lt;br /&gt;
&lt;br /&gt;
67 of 105 flagged pieces of data leaving the device had no obviously legitimate purpose (verified by the authors).&lt;br /&gt;
&lt;br /&gt;
Many apps sent location data and other unique identifiers to advertising servers.&lt;br /&gt;
&lt;br /&gt;
Most apps do not mention anything to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
&lt;br /&gt;
Tracks only explicit data flows.&lt;br /&gt;
&lt;br /&gt;
An application *could* launder the tags off of the data, if they really wanted to hide this sort of thing from TaintDroid.&lt;br /&gt;
&lt;br /&gt;
There are methods that could be used to protect against this, but they go against the goal of a light-weight, real-time tracking system.  TD is not necessarily about catching truly malicious programs, but rather just those that leak information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do apps take this information?&lt;br /&gt;
* Lazy;  in the demo video, the wallpaper app seems to use the IMEI just as a ready made unique ID&lt;br /&gt;
* Overzealous;  the developer might thing they *need* the data for something, but actually &lt;br /&gt;
* Ads;  advertises do seem a little presumptuous in their data collection&lt;br /&gt;
* Spying;  bosses or spouses&lt;br /&gt;
* Malicious;  &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
=== QA Period ===&lt;br /&gt;
&lt;br /&gt;
Q:  how do we prevent a malicious app from removing a taint attribute on a file&lt;br /&gt;
&lt;br /&gt;
A:  TD operates a too low a level for this to be a problem;  TD assumes that the native code is trusted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q:  It seems like you had a lot of false positives&lt;br /&gt;
&lt;br /&gt;
A:  The point of this tool was to identify privacy sensitive information as having left the phone, not whether or not a privacy violation has taken place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q: Now that TD is released; couldn&#039;t malicious apps use some of the methods described in the paper to get around it?    &lt;br /&gt;
&lt;br /&gt;
A: Well, yes, but it is not just about maliciousness, it could just laziness or over-zealous ad stuff.&lt;br /&gt;
&lt;br /&gt;
==Other Information==&lt;br /&gt;
&lt;br /&gt;
Hey guys, thought I would just post a generalized paragraph about our essay.&lt;br /&gt;
&lt;br /&gt;
In today’s society, Smartphones are the new big thing. To me that’s what makes this paper so interesting. This paper focuses on private information in android phones and the misuse of this information. The misuse of information includes the SIM card, the ID of the device, or the phone number. TaintDroid is used on smart phones with an efficient taint tracking and analysis system. It has the ability to track sensitive data from multiple sources and examines the misuse of such data. In their study, out of 80 popular third-party applications, TaintDroid monitored that 68 applications had potential misuse of user’s private data. This tool is great for knowing with applications are safe and which are not, so your private data can remained private.&lt;br /&gt;
&lt;br /&gt;
Also, we should really think of splitting up the work in some way. If some people have specific sections they would like to do lets figure that out now so we can divide the workload and get it done over the next couple of days. I don&#039;t personally care what part I&#039;m going to have to do, so lets get this going. Any other information people wanna post feel free the more the better, even if we don&#039;t end up using it.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5720</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5720"/>
		<updated>2010-11-30T09:06:11Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Work In Progress */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Group Members&lt;br /&gt;
&lt;br /&gt;
Trevor Bonesaw Malone - tmalone@connect.carleton.ca //FIRST POST!&lt;br /&gt;
&lt;br /&gt;
Qi Zhang   - qzhang13@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gregory Bint - gbint@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gautam Akiwate - gakiwate@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Corey Ling - cling@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
==Relevant Sources==&lt;br /&gt;
*NEWSOME,J.,AND SONG,D.Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection]&lt;br /&gt;
&amp;lt;u&amp;gt;Seems to be THE Dynamic Taint Analysis Paper.Talks about implementation on TaintCheck. Could be also useful for critique section&amp;lt;/u&amp;gt; -[Gautam]&lt;br /&gt;
&lt;br /&gt;
== Work Plan ==&lt;br /&gt;
&lt;br /&gt;
As Trevor intimated, we should have clear division of work going forward.  This is sort of the break down as I see it.  Please edit as you think of new ideas!&lt;br /&gt;
&lt;br /&gt;
* Background Concepts&lt;br /&gt;
** Information Flow Theory. (Implicit and Explicit Flows.) --Done[--[[User:Gautam|Gautam]] 03:54, 28 November 2010 (UTC)]&lt;br /&gt;
** What is dynamic taint analysis --Done[--[[User:Gautam|Gautam]] 05:07, 28 November 2010 (UTC)]&lt;br /&gt;
** What is the difference between dynamic and static analysis&lt;br /&gt;
* Research Problem&lt;br /&gt;
** How do we build a DTA engine for a phone?&lt;br /&gt;
** Why do we want to?  (information misuse)&lt;br /&gt;
* Contribution&lt;br /&gt;
** How did they implement their DTA engine (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** What did they find about information misuse (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** Compared to the existing taint tracking approaches. [[User:Zhangqi|Zhangqi]] 07:11, 27 November 2010 (UTC) (Added something. Still looking for other examples,in progress)&lt;br /&gt;
** (What else should be in the contributions? Anything need fleshing out?)&lt;br /&gt;
* Critique&lt;br /&gt;
* References&lt;br /&gt;
** The article has 61 references!  We can probably use some of them&lt;br /&gt;
&lt;br /&gt;
List of information we need to find external sources for:&lt;br /&gt;
* History of taint analysis&lt;br /&gt;
* History of privacy research relating to smart phones&lt;br /&gt;
&lt;br /&gt;
== Work In Progress ==&lt;br /&gt;
&lt;br /&gt;
Log what you are working on *right now* so that other people don&#039;t try to do the same thing.  Make sure to clear your name from here when you are done.&lt;br /&gt;
&lt;br /&gt;
* Gregory Bint:  Research Problem&lt;br /&gt;
** I&#039;ve got what you will hopefully find to be a reasonable introduction to the problem.  I&#039;ve tried to ask mostly questions here, expecting the details to be covered in Background Concepts and in Contributions.&lt;br /&gt;
** I&#039;m going to try to find some history on smart phone security research for the second part.&lt;br /&gt;
&lt;br /&gt;
* Gautam Akiwate:  Background Concepts&lt;br /&gt;
** Any resources on Dynamic taint Analysis would be appreciated!&lt;br /&gt;
&lt;br /&gt;
* Corey Ling: Contributions (Qi Zhang) &lt;br /&gt;
&lt;br /&gt;
* Trevor Malone: Critique &lt;br /&gt;
[I have added two paragraphs at the end of your writing. Please incorporate that into your content as you deem fit.--[[User:Gautam|Gautam]] 09:05, 30 November 2010 (UTC)]&lt;br /&gt;
&lt;br /&gt;
== Some Notes from the Video ==&lt;br /&gt;
&lt;br /&gt;
Tracking of privacy sensitive data through Dynamic Taint Analysis (aka. Taint Tracking).  The trick is to mark private data as it sourced, and then follow those marks until (unless) they leave the phone.&lt;br /&gt;
	&lt;br /&gt;
Android phones run Java apps, which are compiled into DEX, and then run on top of the Dalvik VM.  It is this VM that we modify so that we can support the storage and tracking of taint tags.&lt;br /&gt;
&lt;br /&gt;
Taint sources&lt;br /&gt;
* low -bandwidth sensors&lt;br /&gt;
** Location&lt;br /&gt;
** Accelerometer&lt;br /&gt;
* High-bandwidth sensors&lt;br /&gt;
** Mic&lt;br /&gt;
** Camera&lt;br /&gt;
* Information DB&lt;br /&gt;
** Address book&lt;br /&gt;
** SMS storage&lt;br /&gt;
* Device ID&lt;br /&gt;
** IMEI&lt;br /&gt;
** IMSI   (don&#039;t actually track this one because of false positives)&lt;br /&gt;
** ICC_ID&lt;br /&gt;
** Phone Number&lt;br /&gt;
&lt;br /&gt;
Taint sink  (where marked data can leave the phone)&lt;br /&gt;
* Network Taint Sink&lt;br /&gt;
&lt;br /&gt;
Taint propagation&lt;br /&gt;
* ???&lt;br /&gt;
&lt;br /&gt;
Taint tags are stored in memory interleaved with the variables they are tracking&lt;br /&gt;
&lt;br /&gt;
Some standard Data Flow technique is used to propagate these tags, especially as one variable that is marked may be assigned to another, so now that variable needs to be tracked as well.&lt;br /&gt;
&lt;br /&gt;
Tracks explicit flows of data, not implicit&lt;br /&gt;
	To fully capture implicit flows, you need to do static analysis, which is hard with closed-source apps, and cannot be done real-time&lt;br /&gt;
	&lt;br /&gt;
Implicit flows are not tracked&lt;br /&gt;
* Implicit flows can involve &amp;quot;taint-scope&amp;quot;, tracking based on conditionals in code&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The goal is to create a real time tracking system, so the TaintDroid&#039;s performance impact is of some importance&lt;br /&gt;
&lt;br /&gt;
14% CPU overhead&lt;br /&gt;
4.4% memory overhead&lt;br /&gt;
&lt;br /&gt;
Macro benchmarks  (to get a feel for what the phone&#039;s usability is like with TD running)&lt;br /&gt;
* App load:  3%  (2ms) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Findings ===&lt;br /&gt;
&lt;br /&gt;
20 out of 30 tested applications share data in a way that is not expected.&lt;br /&gt;
&lt;br /&gt;
67 of 105 flagged pieces of data leaving the device had no obviously legitimate purpose (verified by the authors).&lt;br /&gt;
&lt;br /&gt;
Many apps sent location data and other unique identifiers to advertising servers.&lt;br /&gt;
&lt;br /&gt;
Most apps do not mention anything to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
&lt;br /&gt;
Tracks only explicit data flows.&lt;br /&gt;
&lt;br /&gt;
An application *could* launder the tags off of the data, if they really wanted to hide this sort of thing from TaintDroid.&lt;br /&gt;
&lt;br /&gt;
There are methods that could be used to protect against this, but they go against the goal of a light-weight, real-time tracking system.  TD is not necessarily about catching truly malicious programs, but rather just those that leak information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do apps take this information?&lt;br /&gt;
* Lazy;  in the demo video, the wallpaper app seems to use the IMEI just as a ready made unique ID&lt;br /&gt;
* Overzealous;  the developer might thing they *need* the data for something, but actually &lt;br /&gt;
* Ads;  advertises do seem a little presumptuous in their data collection&lt;br /&gt;
* Spying;  bosses or spouses&lt;br /&gt;
* Malicious;  &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
=== QA Period ===&lt;br /&gt;
&lt;br /&gt;
Q:  how do we prevent a malicious app from removing a taint attribute on a file&lt;br /&gt;
&lt;br /&gt;
A:  TD operates a too low a level for this to be a problem;  TD assumes that the native code is trusted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q:  It seems like you had a lot of false positives&lt;br /&gt;
&lt;br /&gt;
A:  The point of this tool was to identify privacy sensitive information as having left the phone, not whether or not a privacy violation has taken place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q: Now that TD is released; couldn&#039;t malicious apps use some of the methods described in the paper to get around it?    &lt;br /&gt;
&lt;br /&gt;
A: Well, yes, but it is not just about maliciousness, it could just laziness or over-zealous ad stuff.&lt;br /&gt;
&lt;br /&gt;
==Other Information==&lt;br /&gt;
&lt;br /&gt;
Hey guys, thought I would just post a generalized paragraph about our essay.&lt;br /&gt;
&lt;br /&gt;
In today’s society, Smartphones are the new big thing. To me that’s what makes this paper so interesting. This paper focuses on private information in android phones and the misuse of this information. The misuse of information includes the SIM card, the ID of the device, or the phone number. TaintDroid is used on smart phones with an efficient taint tracking and analysis system. It has the ability to track sensitive data from multiple sources and examines the misuse of such data. In their study, out of 80 popular third-party applications, TaintDroid monitored that 68 applications had potential misuse of user’s private data. This tool is great for knowing with applications are safe and which are not, so your private data can remained private.&lt;br /&gt;
&lt;br /&gt;
Also, we should really think of splitting up the work in some way. If some people have specific sections they would like to do lets figure that out now so we can divide the workload and get it done over the next couple of days. I don&#039;t personally care what part I&#039;m going to have to do, so lets get this going. Any other information people wanna post feel free the more the better, even if we don&#039;t end up using it.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5718</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5718"/>
		<updated>2010-11-30T09:05:31Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Work In Progress */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Group Members&lt;br /&gt;
&lt;br /&gt;
Trevor Bonesaw Malone - tmalone@connect.carleton.ca //FIRST POST!&lt;br /&gt;
&lt;br /&gt;
Qi Zhang   - qzhang13@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gregory Bint - gbint@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gautam Akiwate - gakiwate@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Corey Ling - cling@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
==Relevant Sources==&lt;br /&gt;
*NEWSOME,J.,AND SONG,D.Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection]&lt;br /&gt;
&amp;lt;u&amp;gt;Seems to be THE Dynamic Taint Analysis Paper.Talks about implementation on TaintCheck. Could be also useful for critique section&amp;lt;/u&amp;gt; -[Gautam]&lt;br /&gt;
&lt;br /&gt;
== Work Plan ==&lt;br /&gt;
&lt;br /&gt;
As Trevor intimated, we should have clear division of work going forward.  This is sort of the break down as I see it.  Please edit as you think of new ideas!&lt;br /&gt;
&lt;br /&gt;
* Background Concepts&lt;br /&gt;
** Information Flow Theory. (Implicit and Explicit Flows.) --Done[--[[User:Gautam|Gautam]] 03:54, 28 November 2010 (UTC)]&lt;br /&gt;
** What is dynamic taint analysis --Done[--[[User:Gautam|Gautam]] 05:07, 28 November 2010 (UTC)]&lt;br /&gt;
** What is the difference between dynamic and static analysis&lt;br /&gt;
* Research Problem&lt;br /&gt;
** How do we build a DTA engine for a phone?&lt;br /&gt;
** Why do we want to?  (information misuse)&lt;br /&gt;
* Contribution&lt;br /&gt;
** How did they implement their DTA engine (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** What did they find about information misuse (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** Compared to the existing taint tracking approaches. [[User:Zhangqi|Zhangqi]] 07:11, 27 November 2010 (UTC) (Added something. Still looking for other examples,in progress)&lt;br /&gt;
** (What else should be in the contributions? Anything need fleshing out?)&lt;br /&gt;
* Critique&lt;br /&gt;
* References&lt;br /&gt;
** The article has 61 references!  We can probably use some of them&lt;br /&gt;
&lt;br /&gt;
List of information we need to find external sources for:&lt;br /&gt;
* History of taint analysis&lt;br /&gt;
* History of privacy research relating to smart phones&lt;br /&gt;
&lt;br /&gt;
== Work In Progress ==&lt;br /&gt;
&lt;br /&gt;
Log what you are working on *right now* so that other people don&#039;t try to do the same thing.  Make sure to clear your name from here when you are done.&lt;br /&gt;
&lt;br /&gt;
* Gregory Bint:  Research Problem&lt;br /&gt;
** I&#039;ve got what you will hopefully find to be a reasonable introduction to the problem.  I&#039;ve tried to ask mostly questions here, expecting the details to be covered in Background Concepts and in Contributions.&lt;br /&gt;
** I&#039;m going to try to find some history on smart phone security research for the second part.&lt;br /&gt;
&lt;br /&gt;
* Gautam Akiwate:  Background Concepts&lt;br /&gt;
** Any resources on Dynamic taint Analysis would be appreciated!&lt;br /&gt;
&lt;br /&gt;
* Corey Ling: Contributions (Qi Zhang) &lt;br /&gt;
&lt;br /&gt;
* Trevor Malone: Critique &lt;br /&gt;
  [I have added two paragraphs at the end of your writing. Please incorporate that into your content as you deem fit.--[[User:Gautam|Gautam]] 09:05, 30 November 2010 (UTC)]&lt;br /&gt;
&lt;br /&gt;
== Some Notes from the Video ==&lt;br /&gt;
&lt;br /&gt;
Tracking of privacy sensitive data through Dynamic Taint Analysis (aka. Taint Tracking).  The trick is to mark private data as it sourced, and then follow those marks until (unless) they leave the phone.&lt;br /&gt;
	&lt;br /&gt;
Android phones run Java apps, which are compiled into DEX, and then run on top of the Dalvik VM.  It is this VM that we modify so that we can support the storage and tracking of taint tags.&lt;br /&gt;
&lt;br /&gt;
Taint sources&lt;br /&gt;
* low -bandwidth sensors&lt;br /&gt;
** Location&lt;br /&gt;
** Accelerometer&lt;br /&gt;
* High-bandwidth sensors&lt;br /&gt;
** Mic&lt;br /&gt;
** Camera&lt;br /&gt;
* Information DB&lt;br /&gt;
** Address book&lt;br /&gt;
** SMS storage&lt;br /&gt;
* Device ID&lt;br /&gt;
** IMEI&lt;br /&gt;
** IMSI   (don&#039;t actually track this one because of false positives)&lt;br /&gt;
** ICC_ID&lt;br /&gt;
** Phone Number&lt;br /&gt;
&lt;br /&gt;
Taint sink  (where marked data can leave the phone)&lt;br /&gt;
* Network Taint Sink&lt;br /&gt;
&lt;br /&gt;
Taint propagation&lt;br /&gt;
* ???&lt;br /&gt;
&lt;br /&gt;
Taint tags are stored in memory interleaved with the variables they are tracking&lt;br /&gt;
&lt;br /&gt;
Some standard Data Flow technique is used to propagate these tags, especially as one variable that is marked may be assigned to another, so now that variable needs to be tracked as well.&lt;br /&gt;
&lt;br /&gt;
Tracks explicit flows of data, not implicit&lt;br /&gt;
	To fully capture implicit flows, you need to do static analysis, which is hard with closed-source apps, and cannot be done real-time&lt;br /&gt;
	&lt;br /&gt;
Implicit flows are not tracked&lt;br /&gt;
* Implicit flows can involve &amp;quot;taint-scope&amp;quot;, tracking based on conditionals in code&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The goal is to create a real time tracking system, so the TaintDroid&#039;s performance impact is of some importance&lt;br /&gt;
&lt;br /&gt;
14% CPU overhead&lt;br /&gt;
4.4% memory overhead&lt;br /&gt;
&lt;br /&gt;
Macro benchmarks  (to get a feel for what the phone&#039;s usability is like with TD running)&lt;br /&gt;
* App load:  3%  (2ms) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Findings ===&lt;br /&gt;
&lt;br /&gt;
20 out of 30 tested applications share data in a way that is not expected.&lt;br /&gt;
&lt;br /&gt;
67 of 105 flagged pieces of data leaving the device had no obviously legitimate purpose (verified by the authors).&lt;br /&gt;
&lt;br /&gt;
Many apps sent location data and other unique identifiers to advertising servers.&lt;br /&gt;
&lt;br /&gt;
Most apps do not mention anything to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
&lt;br /&gt;
Tracks only explicit data flows.&lt;br /&gt;
&lt;br /&gt;
An application *could* launder the tags off of the data, if they really wanted to hide this sort of thing from TaintDroid.&lt;br /&gt;
&lt;br /&gt;
There are methods that could be used to protect against this, but they go against the goal of a light-weight, real-time tracking system.  TD is not necessarily about catching truly malicious programs, but rather just those that leak information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do apps take this information?&lt;br /&gt;
* Lazy;  in the demo video, the wallpaper app seems to use the IMEI just as a ready made unique ID&lt;br /&gt;
* Overzealous;  the developer might thing they *need* the data for something, but actually &lt;br /&gt;
* Ads;  advertises do seem a little presumptuous in their data collection&lt;br /&gt;
* Spying;  bosses or spouses&lt;br /&gt;
* Malicious;  &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
=== QA Period ===&lt;br /&gt;
&lt;br /&gt;
Q:  how do we prevent a malicious app from removing a taint attribute on a file&lt;br /&gt;
&lt;br /&gt;
A:  TD operates a too low a level for this to be a problem;  TD assumes that the native code is trusted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q:  It seems like you had a lot of false positives&lt;br /&gt;
&lt;br /&gt;
A:  The point of this tool was to identify privacy sensitive information as having left the phone, not whether or not a privacy violation has taken place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q: Now that TD is released; couldn&#039;t malicious apps use some of the methods described in the paper to get around it?    &lt;br /&gt;
&lt;br /&gt;
A: Well, yes, but it is not just about maliciousness, it could just laziness or over-zealous ad stuff.&lt;br /&gt;
&lt;br /&gt;
==Other Information==&lt;br /&gt;
&lt;br /&gt;
Hey guys, thought I would just post a generalized paragraph about our essay.&lt;br /&gt;
&lt;br /&gt;
In today’s society, Smartphones are the new big thing. To me that’s what makes this paper so interesting. This paper focuses on private information in android phones and the misuse of this information. The misuse of information includes the SIM card, the ID of the device, or the phone number. TaintDroid is used on smart phones with an efficient taint tracking and analysis system. It has the ability to track sensitive data from multiple sources and examines the misuse of such data. In their study, out of 80 popular third-party applications, TaintDroid monitored that 68 applications had potential misuse of user’s private data. This tool is great for knowing with applications are safe and which are not, so your private data can remained private.&lt;br /&gt;
&lt;br /&gt;
Also, we should really think of splitting up the work in some way. If some people have specific sections they would like to do lets figure that out now so we can divide the workload and get it done over the next couple of days. I don&#039;t personally care what part I&#039;m going to have to do, so lets get this going. Any other information people wanna post feel free the more the better, even if we don&#039;t end up using it.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5717</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5717"/>
		<updated>2010-11-30T09:03:43Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Critique */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A Math Model:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
There are two types of variables&lt;br /&gt;
*Tainted&lt;br /&gt;
*Untainted&lt;br /&gt;
Thus V = {T,U} , T denotes &amp;quot;Tainted&amp;quot;, U denotes &amp;quot;Untainted&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Binary Operator &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;big&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=T, if x = T OR y = T &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=U, if x = y = U&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
It is now intuitively easy to see that whenever a tainted variable is used it makes that variable tainted and thus the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, lets say &amp;quot;T&#039;&amp;quot; which can then be tracked or used as wanted. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;br&amp;gt; For more detailed information on Taint Analysis refer &amp;quot;Detecting Software Vulnerabilities Static Taint Analysis&amp;quot;[2]&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
This paper has quite a bit of information and has a very strong structure in explaining what TaintDroid is and what it does. The sections begin as a high-level overview of TaintDroid, then explains the history followed by an explanation of sources that are tracked by TaintDroid and its design. It continues with test results and the strengths and weaknesses of TaintDroid, with references to related work. A proposed structure to improve the readability of the paper might be to explain what the background information of the Android phone is first before explaining the overview process of the TaintDroid. That way, the concepts of the paper would be easier to understand.&lt;br /&gt;
&lt;br /&gt;
Did a good job in explaining the challenges in monitoring network disclosure of privacy sensitive information and how TaintDroid is successful despite these challenges&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Smartphones are resource constrained&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Third-party applications are entrusted with several types of privacy sensitive information&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Context-based privacy sensitive information is dynamic and can be difficult to identify even when sent in the clear&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Applications can share information&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
TaintDroid uses dynamic taint analysis to find a way around these challenges, using a taint source as the targeted sensitive information, and a taint marking to identify the information type. This paper discusses the strengths and weaknesses of the TaintDroid very effectively. The TaintDroid only tracks data flows and does not track control flows to minimize overhead. There are also other overhead issues due to the Taint Tag Storage, which is well explained due to the fact that most string objects all have the same tag. For this reason, it is possible for false positives to occur. By the test results and statistics of smartphones using TaintDroid, it is very obvious that personal information is often misused and that TaintDroid effectively identifies at a high percentage, the occurrence of this misuse. A possible improvement for this paper is the prediction of future smartphone security measures. This paper does a great job in explaining the TaintDroid, as well as related work in the security of personal information. Where this paper lacks is what changes could be made, or what possible updates to current programs can be implemented to further improve the results of tracking misuse of information, and even prevent it from occurring.&lt;br /&gt;
&lt;br /&gt;
Further more, TaintDroid is a firmware modification, not an application which raises the questions of its usability by the average user. Being a firmware modification drastically reduces its usability unless &#039;Android System&#039; itself incorporates these changes which is highly unlikely as the overheads, in this case a memory overhead of 4.4%, an IPC overhead of 27% and an overall 14% overhead, are on the higher side in an already resource constrained smartphone. &lt;br /&gt;
&lt;br /&gt;
However that brings us to a possible alternative implementation of the TaintDroid. The TaintDroid is incorporated in the firmware and hence incurs an additional overhead as the user uses the phone. Consider the implementation of &#039;TaintCheck&#039; on an x86 platform.[3] TaintCheck performs dynamic taint analysis on a program by running the program in its own emulation environment. This allows TaintCheck to monitor and control the program’s execution at a fine-grained level. All the TaintCheck needs is the binary which it the rewrites and uses it in its own emulated environment. What this essentially means is that &#039;TaintCheck&#039; is a mechanism that can perform dynamic taint analysis by performing binary rewriting at run time on an emulated envioronment. Taking this further, we can consider an implementation of TaintDroid based on similar lines. One can then envision an application in which you uploaded the &#039;application binary&#039; and then TaintDroid would return a result of whether the application is safe or not. This has the advantage of being needed to run just once before installation and hence the overheads won&#039;t be much of a concern. This can even allow TaintDroid to incorporate signature based detection of &#039;malacious applications&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Please read the above two paragraphs and incorporate them into the content above. Also verify my if my interpretation of TaintCheck is correct or not.&amp;lt;/u&amp;gt;  --[[User:Gautam|Gautam]] 09:03, 30 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&amp;lt;br&amp;gt;&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5664</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5664"/>
		<updated>2010-11-28T05:41:20Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A Math Model:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
There are two types of variables&lt;br /&gt;
*Tainted&lt;br /&gt;
*Untainted&lt;br /&gt;
Thus V = {T,U} , T denotes &amp;quot;Tainted&amp;quot;, U denotes &amp;quot;Untainted&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Binary Operator &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;big&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=T, if x = T OR y = T &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=U, if x = y = U&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
It is now intuitively easy to see that whenever a tainted variable is used it makes that variable tainted and thus the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, lets say &amp;quot;T&#039;&amp;quot; which can then be tracked or used as wanted. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;br&amp;gt; For more detailed information on Taint Analysis refer &amp;quot;Detecting Software Vulnerabilities Static Taint Analysis&amp;quot;[2]&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&amp;lt;br&amp;gt;&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5663</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5663"/>
		<updated>2010-11-28T05:07:27Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Work Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Group Members&lt;br /&gt;
&lt;br /&gt;
Trevor Bonesaw Malone - tmalone@connect.carleton.ca //FIRST POST!&lt;br /&gt;
&lt;br /&gt;
Qi Zhang   - qzhang13@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gregory Bint - gbint@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gautam Akiwate - gakiwate@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Corey Ling - cling@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
==Relevant Sources==&lt;br /&gt;
*NEWSOME,J.,AND SONG,D.Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection]&lt;br /&gt;
&amp;lt;u&amp;gt;Seems to be THE Dynamic Taint Analysis Paper.Talks about implementation on TaintCheck. Could be also useful for critique section&amp;lt;/u&amp;gt; -[Gautam]&lt;br /&gt;
&lt;br /&gt;
== Work Plan ==&lt;br /&gt;
&lt;br /&gt;
As Trevor intimated, we should have clear division of work going forward.  This is sort of the break down as I see it.  Please edit as you think of new ideas!&lt;br /&gt;
&lt;br /&gt;
* Background Concepts&lt;br /&gt;
** Information Flow Theory. (Implicit and Explicit Flows.) --Done[--[[User:Gautam|Gautam]] 03:54, 28 November 2010 (UTC)]&lt;br /&gt;
** What is dynamic taint analysis --Done[--[[User:Gautam|Gautam]] 05:07, 28 November 2010 (UTC)]&lt;br /&gt;
** What is the difference between dynamic and static analysis&lt;br /&gt;
* Research Problem&lt;br /&gt;
** How do we build a DTA engine for a phone?&lt;br /&gt;
** Why do we want to?  (information misuse)&lt;br /&gt;
* Contribution&lt;br /&gt;
** How did they implement their DTA engine (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** What did they find about information misuse (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** Compared to the existing taint tracking approaches. [[User:Zhangqi|Zhangqi]] 07:11, 27 November 2010 (UTC) (Added something. Still looking for other examples,in progress)&lt;br /&gt;
** (What else should be in the contributions? Anything need fleshing out?)&lt;br /&gt;
* Critique&lt;br /&gt;
* References&lt;br /&gt;
** The article has 61 references!  We can probably use some of them&lt;br /&gt;
&lt;br /&gt;
List of information we need to find external sources for:&lt;br /&gt;
* History of taint analysis&lt;br /&gt;
* History of privacy research relating to smart phones&lt;br /&gt;
&lt;br /&gt;
== Work In Progress ==&lt;br /&gt;
&lt;br /&gt;
Log what you are working on *right now* so that other people don&#039;t try to do the same thing.  Make sure to clear your name from here when you are done.&lt;br /&gt;
&lt;br /&gt;
* Gregory Bint:  Research Problem&lt;br /&gt;
** I&#039;ve got what you will hopefully find to be a reasonable introduction to the problem.  I&#039;ve tried to ask mostly questions here, expecting the details to be covered in Background Concepts and in Contributions.&lt;br /&gt;
** I&#039;m going to try to find some history on smart phone security research for the second part.&lt;br /&gt;
&lt;br /&gt;
* Gautam Akiwate:  Background Concepts&lt;br /&gt;
** Any resources on Dynamic taint Analysis would be appreciated!&lt;br /&gt;
&lt;br /&gt;
* Corey Ling: Contributions (Qi Zhang) &lt;br /&gt;
&lt;br /&gt;
* Trevor Malone: Critique&lt;br /&gt;
&lt;br /&gt;
== Some Notes from the Video ==&lt;br /&gt;
&lt;br /&gt;
Tracking of privacy sensitive data through Dynamic Taint Analysis (aka. Taint Tracking).  The trick is to mark private data as it sourced, and then follow those marks until (unless) they leave the phone.&lt;br /&gt;
	&lt;br /&gt;
Android phones run Java apps, which are compiled into DEX, and then run on top of the Dalvik VM.  It is this VM that we modify so that we can support the storage and tracking of taint tags.&lt;br /&gt;
&lt;br /&gt;
Taint sources&lt;br /&gt;
* low -bandwidth sensors&lt;br /&gt;
** Location&lt;br /&gt;
** Accelerometer&lt;br /&gt;
* High-bandwidth sensors&lt;br /&gt;
** Mic&lt;br /&gt;
** Camera&lt;br /&gt;
* Information DB&lt;br /&gt;
** Address book&lt;br /&gt;
** SMS storage&lt;br /&gt;
* Device ID&lt;br /&gt;
** IMEI&lt;br /&gt;
** IMSI   (don&#039;t actually track this one because of false positives)&lt;br /&gt;
** ICC_ID&lt;br /&gt;
** Phone Number&lt;br /&gt;
&lt;br /&gt;
Taint sink  (where marked data can leave the phone)&lt;br /&gt;
* Network Taint Sink&lt;br /&gt;
&lt;br /&gt;
Taint propagation&lt;br /&gt;
* ???&lt;br /&gt;
&lt;br /&gt;
Taint tags are stored in memory interleaved with the variables they are tracking&lt;br /&gt;
&lt;br /&gt;
Some standard Data Flow technique is used to propagate these tags, especially as one variable that is marked may be assigned to another, so now that variable needs to be tracked as well.&lt;br /&gt;
&lt;br /&gt;
Tracks explicit flows of data, not implicit&lt;br /&gt;
	To fully capture implicit flows, you need to do static analysis, which is hard with closed-source apps, and cannot be done real-time&lt;br /&gt;
	&lt;br /&gt;
Implicit flows are not tracked&lt;br /&gt;
* Implicit flows can involve &amp;quot;taint-scope&amp;quot;, tracking based on conditionals in code&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The goal is to create a real time tracking system, so the TaintDroid&#039;s performance impact is of some importance&lt;br /&gt;
&lt;br /&gt;
14% CPU overhead&lt;br /&gt;
4.4% memory overhead&lt;br /&gt;
&lt;br /&gt;
Macro benchmarks  (to get a feel for what the phone&#039;s usability is like with TD running)&lt;br /&gt;
* App load:  3%  (2ms) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Findings ===&lt;br /&gt;
&lt;br /&gt;
20 out of 30 tested applications share data in a way that is not expected.&lt;br /&gt;
&lt;br /&gt;
67 of 105 flagged pieces of data leaving the device had no obviously legitimate purpose (verified by the authors).&lt;br /&gt;
&lt;br /&gt;
Many apps sent location data and other unique identifiers to advertising servers.&lt;br /&gt;
&lt;br /&gt;
Most apps do not mention anything to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
&lt;br /&gt;
Tracks only explicit data flows.&lt;br /&gt;
&lt;br /&gt;
An application *could* launder the tags off of the data, if they really wanted to hide this sort of thing from TaintDroid.&lt;br /&gt;
&lt;br /&gt;
There are methods that could be used to protect against this, but they go against the goal of a light-weight, real-time tracking system.  TD is not necessarily about catching truly malicious programs, but rather just those that leak information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do apps take this information?&lt;br /&gt;
* Lazy;  in the demo video, the wallpaper app seems to use the IMEI just as a ready made unique ID&lt;br /&gt;
* Overzealous;  the developer might thing they *need* the data for something, but actually &lt;br /&gt;
* Ads;  advertises do seem a little presumptuous in their data collection&lt;br /&gt;
* Spying;  bosses or spouses&lt;br /&gt;
* Malicious;  &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
=== QA Period ===&lt;br /&gt;
&lt;br /&gt;
Q:  how do we prevent a malicious app from removing a taint attribute on a file&lt;br /&gt;
&lt;br /&gt;
A:  TD operates a too low a level for this to be a problem;  TD assumes that the native code is trusted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q:  It seems like you had a lot of false positives&lt;br /&gt;
&lt;br /&gt;
A:  The point of this tool was to identify privacy sensitive information as having left the phone, not whether or not a privacy violation has taken place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q: Now that TD is released; couldn&#039;t malicious apps use some of the methods described in the paper to get around it?    &lt;br /&gt;
&lt;br /&gt;
A: Well, yes, but it is not just about maliciousness, it could just laziness or over-zealous ad stuff.&lt;br /&gt;
&lt;br /&gt;
==Other Information==&lt;br /&gt;
&lt;br /&gt;
Hey guys, thought I would just post a generalized paragraph about our essay.&lt;br /&gt;
&lt;br /&gt;
In today’s society, Smartphones are the new big thing. To me that’s what makes this paper so interesting. This paper focuses on private information in android phones and the misuse of this information. The misuse of information includes the SIM card, the ID of the device, or the phone number. TaintDroid is used on smart phones with an efficient taint tracking and analysis system. It has the ability to track sensitive data from multiple sources and examines the misuse of such data. In their study, out of 80 popular third-party applications, TaintDroid monitored that 68 applications had potential misuse of user’s private data. This tool is great for knowing with applications are safe and which are not, so your private data can remained private.&lt;br /&gt;
&lt;br /&gt;
Also, we should really think of splitting up the work in some way. If some people have specific sections they would like to do lets figure that out now so we can divide the workload and get it done over the next couple of days. I don&#039;t personally care what part I&#039;m going to have to do, so lets get this going. Any other information people wanna post feel free the more the better, even if we don&#039;t end up using it.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5662</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5662"/>
		<updated>2010-11-28T05:06:45Z</updated>

		<summary type="html">&lt;p&gt;Gautam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A Math Model:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
There are two types of variables&lt;br /&gt;
*Tainted&lt;br /&gt;
*Untainted&lt;br /&gt;
Thus V = {T,U} , T denotes &amp;quot;Tainted&amp;quot;, U denotes &amp;quot;Untainted&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Binary Operator &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;big&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=T, if x = T OR y = T &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=U, if x = y = U&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
It is now intuitively easy to see that whenever a tainted variable is used it makes that variable tainted and thus the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, lets say &amp;quot;T&#039;&amp;quot; which can then be tracked or used as wanted. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;br&amp;gt; For more detailed information on Taint Analysis refer &amp;quot;Detecting Software Vulnerabilities Static Taint Analysis&amp;quot;[2]&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&amp;lt;br&amp;gt;&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5661</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5661"/>
		<updated>2010-11-28T05:04:08Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A Math Model:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
There are two types of variables&lt;br /&gt;
*Tainted&lt;br /&gt;
*Untainted&lt;br /&gt;
Thus V = {T,U} , T denotes &amp;quot;Tainted&amp;quot;, U denotes &amp;quot;Untainted&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Binary Operator &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;big&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=T, if x = T OR y = T &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=U, if x = y = U&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
It is now intuitively easy to see that whenever a tainted variable is used it makes that variable tainted and thus the taint is propagated. Taking this further we can see that, if needed, we can tag variables as tainted by attaching to them a tainted tag, lets say &amp;quot;T&#039;&amp;quot; which can then be tracked or used as wanted. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&amp;lt;br&amp;gt;&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5660</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5660"/>
		<updated>2010-11-28T04:56:09Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A Math Model:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
There are two types of variables&lt;br /&gt;
*Tainted&lt;br /&gt;
*Untainted&lt;br /&gt;
Thus V = {T,U} , T denotes &amp;quot;Tainted&amp;quot;, U denotes &amp;quot;Untainted&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Binary Operator &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;big&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=T, if x = T OR y = T &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=U, if x = y = U&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&amp;lt;br&amp;gt;&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5659</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5659"/>
		<updated>2010-11-28T04:55:56Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A Math Model:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
There are two types of variables&lt;br /&gt;
*Tainted&lt;br /&gt;
*Untainted&lt;br /&gt;
Thus V = {T,U} , T denotes &amp;quot;Tainted&amp;quot;, U denotes &amp;quot;Untainted&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Binary Operator &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;big&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=T, if x = T OR y = T &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=U, if x = y = U&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&lt;br /&gt;
[3] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5658</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5658"/>
		<updated>2010-11-28T04:55:18Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A Math Model:&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
There are two types of variables&lt;br /&gt;
*Tainted&lt;br /&gt;
*Untainted&lt;br /&gt;
Thus V = {T,U} , T denotes &amp;quot;Tainted&amp;quot;, U denotes &amp;quot;Untainted&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
Binary Operator &amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;: V x V -&amp;gt; V &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;big&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=T, if x = T OR y = T &amp;lt;br&amp;gt;&lt;br /&gt;
x&amp;lt;big&amp;gt;⊕&amp;lt;/big&amp;gt;y=U, if x = y = U&lt;br /&gt;
&amp;lt;/big&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;br /&gt;
[3]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5657</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5657"/>
		<updated>2010-11-28T04:45:03Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;A Math Model:&#039;&#039;&#039;&lt;br /&gt;
      T, if x = T ∨ y = T&lt;br /&gt;
x⊕y=&lt;br /&gt;
      U, if x = y = U&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;br /&gt;
[3]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5656</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5656"/>
		<updated>2010-11-28T04:42:54Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information however in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;br /&gt;
[3]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5655</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5655"/>
		<updated>2010-11-28T04:42:14Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;br /&gt;
[3]D CEARA, ML POTET et.al [http://tanalysis.googlecode.com/files/DumitruCeara_BSc.pdf Detecting Software Vulnerabilities Static Taint Analysis] GINP ENSIMAG GoogleCode(2009)&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5654</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5654"/>
		<updated>2010-11-28T04:33:57Z</updated>

		<summary type="html">&lt;p&gt;Gautam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
Static taint analysis is the technique used for detecting the overapproximation of the set of instructions that are influenced by user input. This set of tainted instructions is computed statically only by analyzing the sources of the program. The main advantage for static taint analysis is that it takes into account all the possible execution paths of the program. On the other hand the analysis may not be so accurate as the one performed dynamically because the static analyzer does not have access to the additional runtime information of the program. &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: The paper talks about Dynamic Taint Analysis. TaintDroid makes ingenious use of &amp;quot;taint&amp;quot; to taint variables that are of value and tracks their progress. Though in the actual context of Taint Analysis &amp;quot;taint&amp;quot; is used for untrusted information in this case the &amp;quot;taint&amp;quot; variables are infact important private data. (Just in case if it confused someone :D)&amp;lt;/i&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5653</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5653"/>
		<updated>2010-11-28T04:16:27Z</updated>

		<summary type="html">&lt;p&gt;Gautam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main idea behind taint analysis is that any variable that can be modified directly or indirectly by the user and can become a security vulnerability is &amp;quot;tainted&amp;quot;. The basic idea is that through various operations the &amp;quot;taint&amp;quot; can be passed from variable to variable and when a tainted variable is used to execute dangerous commands a security breach may occur. The basic premise of taint analysis is to identify these &amp;quot;tainted&amp;quot; variables and ensure that they do not create a security breach.&amp;lt;br&amp;gt;&lt;br /&gt;
Taint Analysis done at run-time is called as Dynamic Taint Analysis. The approach used in dynamic taint analysis is to label the data originating from untrusted sources as tainted. The analysis keeps track of all the tainted data in the memory and when such data is used in a dangerous situation, a possible bug is detected. This approach offers the capabilities to detect most of the input validation vulnerabilities with a very low false positive rate. However there are some disadvantages when using dynamic taint analysis. The execution of the program is slower because of the necessary additional checks.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5652</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5652"/>
		<updated>2010-11-28T03:56:05Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that to follow these ideas in this paper the ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5651</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_8&amp;diff=5651"/>
		<updated>2010-11-28T03:54:14Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Work Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Group Members&lt;br /&gt;
&lt;br /&gt;
Trevor Bonesaw Malone - tmalone@connect.carleton.ca //FIRST POST!&lt;br /&gt;
&lt;br /&gt;
Qi Zhang   - qzhang13@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gregory Bint - gbint@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Gautam Akiwate - gakiwate@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
Corey Ling - cling@connect.carleton.ca&lt;br /&gt;
&lt;br /&gt;
==Relevant Sources==&lt;br /&gt;
*NEWSOME,J.,AND SONG,D.Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection]&lt;br /&gt;
&amp;lt;u&amp;gt;Seems to be THE Dynamic Taint Analysis Paper.Talks about implementation on TaintCheck. Could be also useful for critique section&amp;lt;/u&amp;gt; -[Gautam]&lt;br /&gt;
&lt;br /&gt;
== Work Plan ==&lt;br /&gt;
&lt;br /&gt;
As Trevor intimated, we should have clear division of work going forward.  This is sort of the break down as I see it.  Please edit as you think of new ideas!&lt;br /&gt;
&lt;br /&gt;
* Background Concepts&lt;br /&gt;
** Information Flow Theory. (Implicit and Explicit Flows.) --Done[--[[User:Gautam|Gautam]] 03:54, 28 November 2010 (UTC)]&lt;br /&gt;
** What is dynamic taint analysis&lt;br /&gt;
** What is the difference between dynamic and static analysis&lt;br /&gt;
* Research Problem&lt;br /&gt;
** How do we build a DTA engine for a phone?&lt;br /&gt;
** Why do we want to?  (information misuse)&lt;br /&gt;
* Contribution&lt;br /&gt;
** How did they implement their DTA engine (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** What did they find about information misuse (Done: --[[User:Cling|Cling]] 04:50, 26 November 2010 (UTC))&lt;br /&gt;
** Compared to the existing taint tracking approaches. [[User:Zhangqi|Zhangqi]] 07:11, 27 November 2010 (UTC) (Added something. Still looking for other examples,in progress)&lt;br /&gt;
** (What else should be in the contributions? Anything need fleshing out?)&lt;br /&gt;
* Critique&lt;br /&gt;
* References&lt;br /&gt;
** The article has 61 references!  We can probably use some of them&lt;br /&gt;
&lt;br /&gt;
List of information we need to find external sources for:&lt;br /&gt;
* History of taint analysis&lt;br /&gt;
* History of privacy research relating to smart phones&lt;br /&gt;
&lt;br /&gt;
== Work In Progress ==&lt;br /&gt;
&lt;br /&gt;
Log what you are working on *right now* so that other people don&#039;t try to do the same thing.  Make sure to clear your name from here when you are done.&lt;br /&gt;
&lt;br /&gt;
* Gregory Bint:  Research Problem&lt;br /&gt;
** I&#039;ve got what you will hopefully find to be a reasonable introduction to the problem.  I&#039;ve tried to ask mostly questions here, expecting the details to be covered in Background Concepts and in Contributions.&lt;br /&gt;
** I&#039;m going to try to find some history on smart phone security research for the second part.&lt;br /&gt;
&lt;br /&gt;
* Gautam Akiwate:  Background Concepts&lt;br /&gt;
** Any resources on Dynamic taint Analysis would be appreciated!&lt;br /&gt;
&lt;br /&gt;
* Corey Ling: Contributions (Qi Zhang) &lt;br /&gt;
&lt;br /&gt;
* Trevor Malone: Critique&lt;br /&gt;
&lt;br /&gt;
== Some Notes from the Video ==&lt;br /&gt;
&lt;br /&gt;
Tracking of privacy sensitive data through Dynamic Taint Analysis (aka. Taint Tracking).  The trick is to mark private data as it sourced, and then follow those marks until (unless) they leave the phone.&lt;br /&gt;
	&lt;br /&gt;
Android phones run Java apps, which are compiled into DEX, and then run on top of the Dalvik VM.  It is this VM that we modify so that we can support the storage and tracking of taint tags.&lt;br /&gt;
&lt;br /&gt;
Taint sources&lt;br /&gt;
* low -bandwidth sensors&lt;br /&gt;
** Location&lt;br /&gt;
** Accelerometer&lt;br /&gt;
* High-bandwidth sensors&lt;br /&gt;
** Mic&lt;br /&gt;
** Camera&lt;br /&gt;
* Information DB&lt;br /&gt;
** Address book&lt;br /&gt;
** SMS storage&lt;br /&gt;
* Device ID&lt;br /&gt;
** IMEI&lt;br /&gt;
** IMSI   (don&#039;t actually track this one because of false positives)&lt;br /&gt;
** ICC_ID&lt;br /&gt;
** Phone Number&lt;br /&gt;
&lt;br /&gt;
Taint sink  (where marked data can leave the phone)&lt;br /&gt;
* Network Taint Sink&lt;br /&gt;
&lt;br /&gt;
Taint propagation&lt;br /&gt;
* ???&lt;br /&gt;
&lt;br /&gt;
Taint tags are stored in memory interleaved with the variables they are tracking&lt;br /&gt;
&lt;br /&gt;
Some standard Data Flow technique is used to propagate these tags, especially as one variable that is marked may be assigned to another, so now that variable needs to be tracked as well.&lt;br /&gt;
&lt;br /&gt;
Tracks explicit flows of data, not implicit&lt;br /&gt;
	To fully capture implicit flows, you need to do static analysis, which is hard with closed-source apps, and cannot be done real-time&lt;br /&gt;
	&lt;br /&gt;
Implicit flows are not tracked&lt;br /&gt;
* Implicit flows can involve &amp;quot;taint-scope&amp;quot;, tracking based on conditionals in code&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
=== Performance ===&lt;br /&gt;
&lt;br /&gt;
The goal is to create a real time tracking system, so the TaintDroid&#039;s performance impact is of some importance&lt;br /&gt;
&lt;br /&gt;
14% CPU overhead&lt;br /&gt;
4.4% memory overhead&lt;br /&gt;
&lt;br /&gt;
Macro benchmarks  (to get a feel for what the phone&#039;s usability is like with TD running)&lt;br /&gt;
* App load:  3%  (2ms) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Findings ===&lt;br /&gt;
&lt;br /&gt;
20 out of 30 tested applications share data in a way that is not expected.&lt;br /&gt;
&lt;br /&gt;
67 of 105 flagged pieces of data leaving the device had no obviously legitimate purpose (verified by the authors).&lt;br /&gt;
&lt;br /&gt;
Many apps sent location data and other unique identifiers to advertising servers.&lt;br /&gt;
&lt;br /&gt;
Most apps do not mention anything to the user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Limitations ===&lt;br /&gt;
&lt;br /&gt;
Tracks only explicit data flows.&lt;br /&gt;
&lt;br /&gt;
An application *could* launder the tags off of the data, if they really wanted to hide this sort of thing from TaintDroid.&lt;br /&gt;
&lt;br /&gt;
There are methods that could be used to protect against this, but they go against the goal of a light-weight, real-time tracking system.  TD is not necessarily about catching truly malicious programs, but rather just those that leak information.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Why do apps take this information?&lt;br /&gt;
* Lazy;  in the demo video, the wallpaper app seems to use the IMEI just as a ready made unique ID&lt;br /&gt;
* Overzealous;  the developer might thing they *need* the data for something, but actually &lt;br /&gt;
* Ads;  advertises do seem a little presumptuous in their data collection&lt;br /&gt;
* Spying;  bosses or spouses&lt;br /&gt;
* Malicious;  &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
=== QA Period ===&lt;br /&gt;
&lt;br /&gt;
Q:  how do we prevent a malicious app from removing a taint attribute on a file&lt;br /&gt;
&lt;br /&gt;
A:  TD operates a too low a level for this to be a problem;  TD assumes that the native code is trusted&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q:  It seems like you had a lot of false positives&lt;br /&gt;
&lt;br /&gt;
A:  The point of this tool was to identify privacy sensitive information as having left the phone, not whether or not a privacy violation has taken place.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Q: Now that TD is released; couldn&#039;t malicious apps use some of the methods described in the paper to get around it?    &lt;br /&gt;
&lt;br /&gt;
A: Well, yes, but it is not just about maliciousness, it could just laziness or over-zealous ad stuff.&lt;br /&gt;
&lt;br /&gt;
==Other Information==&lt;br /&gt;
&lt;br /&gt;
Hey guys, thought I would just post a generalized paragraph about our essay.&lt;br /&gt;
&lt;br /&gt;
In today’s society, Smartphones are the new big thing. To me that’s what makes this paper so interesting. This paper focuses on private information in android phones and the misuse of this information. The misuse of information includes the SIM card, the ID of the device, or the phone number. TaintDroid is used on smart phones with an efficient taint tracking and analysis system. It has the ability to track sensitive data from multiple sources and examines the misuse of such data. In their study, out of 80 popular third-party applications, TaintDroid monitored that 68 applications had potential misuse of user’s private data. This tool is great for knowing with applications are safe and which are not, so your private data can remained private.&lt;br /&gt;
&lt;br /&gt;
Also, we should really think of splitting up the work in some way. If some people have specific sections they would like to do lets figure that out now so we can divide the workload and get it done over the next couple of days. I don&#039;t personally care what part I&#039;m going to have to do, so lets get this going. Any other information people wanna post feel free the more the better, even if we don&#039;t end up using it.&lt;br /&gt;
&lt;br /&gt;
[[user:Tmalone|Trevor Malone]]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5650</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5650"/>
		<updated>2010-11-28T03:51:29Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that two follow this paper ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software] Proceedings of the Network and Distributed System Security Symposium (NDSS 2005)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5649</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5649"/>
		<updated>2010-11-28T03:50:07Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that two follow this paper ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf Dynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5648</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5648"/>
		<updated>2010-11-28T03:49:55Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that two follow this paper ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2] NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf DDynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5647</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5647"/>
		<updated>2010-11-28T03:49:27Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that two follow this paper ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&amp;lt;br&amp;gt;&lt;br /&gt;
[2]NEWSOME,J.,AND SONG,D. [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf DDynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5646</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5646"/>
		<updated>2010-11-28T03:49:01Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that two follow this paper ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
The contributions of the TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones paper is not that they achieved Information flow tracking but that they achieved it efficient enough to run in real time on real constrained hardware devices with minimal overheads. As stated &amp;quot;TaintDroid only incurs an approximate 14% CPU overhead and an approximate 4.4% memory overhead for simultaneously tracking 32 taint markings per data unit.&amp;quot; It should also be noted that the 14% CPU over-head is only in regards to a &amp;quot;CPU-bound micro-benchmark and imposes negligible overhead on interactive third-party applications.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This is achieved by modifying the code directly at the VM layer of the Android system to provide variable-level tracking. This allows direct control over how and what private information, such as location details from the GPS, are stored and accessed. Next they modify the JNI layer to provide message-level tracking which allows them to monitor inter-process a.k.a. inter-application communications. This also allows them to &amp;quot;patch the taint propagation on return.&amp;quot; so they can keep track of information transfer via native code. Finally modifying the network interface and secondary storage interfaces they are able to provide file-level taint tracking which enables them to ensure &amp;quot;persistent information conservatively retains its taint markings.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
By combining these three levels (variable, message and file) of taint tracking, TaintDroid was able to effectively track 30 randomly selected popular 3rd party android applications. In doing so it correctly flagged 105 instances of tainted information transmission. Of these 105, only 35 were legitimate transfers. It also determined that 50% off the applications submitted the users location to advertising servers and 5 of the applications transmitted the users device ID, phone number and SIM card serial number.&lt;br /&gt;
&lt;br /&gt;
The other contribution of TaintDorid is accuracy of tracking sensitive data. Unlike existing solutions that rely on heavy-weight whole-system emulation, the virtualized architecture of Android integrated four granularities of taint propagation:variable-level, method-level, message-level, and file-level. There are many factors influence the performance and accuracy of TaintDoroid. Taint tracking granularity and flow semantics are two of them. In the variable-level, TaintDorid treats the values at level. And the variables provide flow semantics for taint progagation to distinguish the different data pointers at different level to ensure the accuracy. Existing taint tracking approaches,like Panorama Taint System,rely on instruction-level dynamic taint analysis using whole system&lt;br /&gt;
emulation. This method leads to 2-20 times slowdown of system. Actually  it&#039;s not suitable for the trend of realtime analysis. Moreover,instruction-level tracking faces a serious problem,taint explosion. When we use some complex instructions such as CMPXCHG, REP MOV,the stack pointer may become falsely tainted or taint loss. However,TaintDorid solved this problem with the combination of 4 levels.&lt;br /&gt;
&lt;br /&gt;
From these outstanding numbers you can see that more effective higher granular permission systems are needed and TaintDroid is providing a step in the right direction, by providing a highly efficient real time tracking system.&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&lt;br /&gt;
[2]NEWSOME,J.,AND SONG,D.      [http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.2141&amp;amp;rep=rep1&amp;amp;type=pdf DDynamic Taint Analysis for Automatic Detection, Analysis, and Signature Generation of Exploits on Commodity Software]&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5591</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5591"/>
		<updated>2010-11-26T02:44:01Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;.It is evident that two follow this paper ideas which form the basis of this theory have to be understood. All in all, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
What are the research contribution(s) of this work? Specifically, what are the key research results, and what do they mean? (What was implemented? Why is it any better than what came before?)&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5590</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5590"/>
		<updated>2010-11-26T02:33:48Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;. Hence, the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
What are the research contribution(s) of this work? Specifically, what are the key research results, and what do they mean? (What was implemented? Why is it any better than what came before?)&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5589</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5589"/>
		<updated>2010-11-26T01:44:12Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;. However to understand what the above terms mean the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
*Information Flow&lt;br /&gt;
*Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
What are the research contribution(s) of this work? Specifically, what are the key research results, and what do they mean? (What was implemented? Why is it any better than what came before?)&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5588</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5588"/>
		<updated>2010-11-26T01:43:54Z</updated>

		<summary type="html">&lt;p&gt;Gautam: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
As a brief glance through the paper might suggest the paper has much to do with &amp;quot;Information Flow Tracking&amp;quot; and &amp;quot;Dynamic Taint Analysis&amp;quot;. However to understand what the above terms mean the following two concepts can be said to be central to understanding this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
#Information Flow&lt;br /&gt;
#Taint Analysis&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
What are the research contribution(s) of this work? Specifically, what are the key research results, and what do they mean? (What was implemented? Why is it any better than what came before?)&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5460</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5460"/>
		<updated>2010-11-23T09:31:16Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
There are two concepts that are central to this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.&lt;br /&gt;
  &lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
What are the research contribution(s) of this work? Specifically, what are the key research results, and what do they mean? (What was implemented? Why is it any better than what came before?)&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5459</id>
		<title>COMP 3000 Essay 2 2010 Question 8</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_8&amp;diff=5459"/>
		<updated>2010-11-23T09:28:03Z</updated>

		<summary type="html">&lt;p&gt;Gautam: /* Background Concepts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Paper=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;TaintDroid: An Information-Flow Tracking System for Realtime Privacy Monitoring on Smartphones&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Authors:&lt;br /&gt;
* William Enck, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Peter Gilbert, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Byung-Gon Chun, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Landon P. Cox, &#039;&#039;Duke University&#039;&#039;&lt;br /&gt;
* Jaeyeon Jung, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
* Patrick McDaniel, &#039;&#039;The Pennsylvania State University&#039;&#039;&lt;br /&gt;
* Anmol N. Sheth, &#039;&#039;Intel Labs&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Official Website: http://www.appanalysis.org/&lt;br /&gt;
&lt;br /&gt;
Direct Link to Paper: http://appanalysis.org/tdroid10.pdf&lt;br /&gt;
&lt;br /&gt;
Video demonstration of TaintDroid in action: http://www.youtube.com/watch?v=qnLujX1Dw4Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Background Concepts=&lt;br /&gt;
There are two concepts that are central to this paper.&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;big&amp;gt;Information Flow&amp;lt;/big&amp;gt;&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Information flow as the name suggests is essentially transfer of information. This transfer of information can be between two processes or withing a given process from let&#039;s say a variable x to a variable y. Information Flow Theory tries to quantify this &#039;&#039;&#039;flow&#039;&#039;&#039; of information into a mathematical model.&amp;lt;br&amp;gt; &lt;br /&gt;
In a security model the Information Flow can be categorized into:&amp;lt;br&amp;gt; &lt;br /&gt;
&#039;&#039;&#039;Explicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Explicit Flow is when information subject to &#039;security classifications&#039; is transfered to a variable(or process) which is not subject to the same or higher level of &#039;security&#039; causing a security breach. To put simply explicit flow is when &#039;secure&#039; information is transferred so that it is publicly observable.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
notsecure=secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
In the information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; which is PRIVATE is transferred to &amp;lt;i&amp;gt;&#039;notsecure&#039;&amp;lt;/i&amp;gt; which is PUBLIC which is an &#039;Information Leak&#039;. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Implicit Flow&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Implicit Flow is when the information subject to &#039;security classifications&#039; is deduced indirectly. In this the leakage of information is through the program control flow. Depending on the flow of the program the secure information is compromised.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;i&amp;gt;A Pseudo Code Example:&amp;lt;/i&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;PRIVATE VAR &amp;lt;big&amp;gt;secure&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
PUBLIC VAR &amp;lt;big&amp;gt;notsecure&amp;lt;br&amp;gt;&lt;br /&gt;
if secure=&amp;quot;blah blah&amp;quot; then:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=1&amp;lt;br&amp;gt;&lt;br /&gt;
else:&amp;lt;br&amp;gt;&lt;br /&gt;
insecure=0&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
We can deduce if information in &amp;lt;i&amp;gt;&#039;secure&#039;&amp;lt;/i&amp;gt; is &amp;lt;i&amp;gt;&amp;quot;blah blah&amp;quot;&amp;lt;/i&amp;gt; by checking the value of &#039;insecure&#039;. Information leakage due to implicit flows are much harder to detect and protect from.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;For more on Information Flow and its Math Model refer &amp;quot;A Lattice Model of Secure Information Flow&amp;quot;&amp;lt;/i&amp;gt; [1]&lt;br /&gt;
&amp;lt;br&amp;gt;&#039;&#039;&#039;&amp;lt;big&amp;gt;Taint Analysis&amp;lt;/big&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Explain briefly the background concepts and ideas that your fellow classmates will need to know first in order to understand your assigned paper.&lt;br /&gt;
* Background on Information Flow Theory. Explicit and Implicit Flow.&lt;br /&gt;
* Background on the taint data tracking method, how it has been used in other systems (i.e. not phones)&lt;br /&gt;
* A reader&#039;s digest version of any new articles about this kind of security vulnerability on phones, on apps that collect more personal data than users would expect.&lt;br /&gt;
&lt;br /&gt;
=Research problem=&lt;br /&gt;
&lt;br /&gt;
In today’s society, smartphones are the new big thing.   Smartphones, by their nature, are linked into many private details of our lives, including not only classic data like our contact list, but new kinds of data unique to smartphones, such as location data.  Except for the odd tunnel or elevator, these phones are constantly connected to the internet.   Smartphones also have the ability to download and run third party applications;  indeed, this is why we call them &amp;quot;smart&amp;quot;.  When you combine third party applications with an internet connection, you suddenly find yourself unsure of how your data is being used, that is, what is to stop a third party application from disseminating our private information?   As it turns out, very little.&lt;br /&gt;
&lt;br /&gt;
A telling example of this is a wallpaper application that sends your phone number back to the developer.  Once the app is running on your phone, it can typically access any of the information on your phone, and it is not necessarily clear when it has done so, or what it is doing with it.&lt;br /&gt;
&lt;br /&gt;
The authors of this paper set out to try to understand what kind of information is being collected and where that information is being sent, and in order to do that, they first needed to build a means of tracking that information.&lt;br /&gt;
&lt;br /&gt;
The strategy they chose is called Dynamic Taint Analysis, sometimes called Taint Tracking.  The basic idea being to mark (&#039;&#039;taint&#039;&#039;) sensitive information at its source, and to then follow that mark as it moves through a system.  In the context of this paper, if ever we should see marked data leave the network interface of the phone, then we know that some sensitive information has been disseminated.&lt;br /&gt;
&lt;br /&gt;
There are many difficulties associated with implementing such a system on a smartphone.  Their design goals were to create a light-weight, minimal overhead, real-time tracking system that runs directly on a real phone, with real applications.  To be really useful, the tracking system must not impact the user experience too heavily.&lt;br /&gt;
&lt;br /&gt;
Some of the difficulties include&lt;br /&gt;
* Smart phones are resource constrained.   Processing power and memory are limited, and any processing that we do perform will consume battery power.  If the tracking system is to be real-time, and for the phone to be considered &amp;quot;usable&amp;quot; by the end user, the system must be truly light weight.&lt;br /&gt;
* Third party applications arrive in a compiled format;  we cannot analyze their source code.&lt;br /&gt;
* Applications may do complex things with the sensitive data.  It is unlikely that the application will simply read a location from the GPS and dump it straight out over the network.  More likely is that the application will use that data in someway, or combine it with other data, before it is sent.  We need to be able to track sensitive data throughout this entire process if we hope to perform any useful analysis.&lt;br /&gt;
* Applications can share information with other applications, meaning that our tracking has to work across multiple processes.&lt;br /&gt;
* The tracking must operate on a real phone, not a simulated one.  With a simulated system, where we control the virtual hardware and memory, we can be certain that we can see everything that an application might do.  On a real device, how can we get &amp;quot;low enough&amp;quot; to see everything the applications do?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;How does this problem relate to past related work?&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Contribution=&lt;br /&gt;
What are the research contribution(s) of this work? Specifically, what are the key research results, and what do they mean? (What was implemented? Why is it any better than what came before?)&lt;br /&gt;
&lt;br /&gt;
=Critique=&lt;br /&gt;
What is good and not-so-good about this paper? You may discuss both the style and content; be sure to ground your discussion with specific references. Simple assertions that something is good or bad is not enough - you must explain why.&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
[1] DENNING, D. E. [http://www.cs.georgetown.edu/~denning/infosec/lattice76.pdf A Lattice Model of Secure Information Flow].&lt;br /&gt;
Communications of the ACM 19, 5 (May 1976), 236–243.&lt;/div&gt;</summary>
		<author><name>Gautam</name></author>
	</entry>
</feed>