<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Michael N. Dundas &#187; Encryption</title>
	<atom:link href="http://michaeldundas.com/category/encryption/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaeldundas.com</link>
	<description>Precision, Integrity, Communication</description>
	<lastBuildDate>Fri, 04 May 2012 20:56:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Encryption can decrease security</title>
		<link>http://michaeldundas.com/2010/10/20/encryption-can-decrease-security/</link>
		<comments>http://michaeldundas.com/2010/10/20/encryption-can-decrease-security/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 08:49:44 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=2191</guid>
		<description><![CDATA[There are lots of people that think that encryption always increases security. While encryption is good and necessary, sometimes having it can actually decrease security.  I have been running into this issue enough lately that I feel the need to write about it.   To illustrate lets use a really simple example. Here we have a [...]]]></description>
			<content:encoded><![CDATA[<p>There are lots of people that think that encryption always increases security. While encryption is good and necessary, sometimes having it can actually decrease security.  I have been running into this issue enough lately that I feel the need to write about it.   To illustrate lets use a really simple example.</p>
<p><a href="http://michaeldundas.com/wp-content/uploads/2010/10/websrvFwIpsDbServ1.png"></a><a href="http://michaeldundas.com/wp-content/uploads/2010/10/websrvFwIpsDbServ2.png"><img class="aligncenter size-full wp-image-2195" title="websrvFwIpsDbServ2" src="http://michaeldundas.com/wp-content/uploads/2010/10/websrvFwIpsDbServ2.png" alt="" width="400" height="120" /></a><br />
Here we have a web server that sends SQL queries to a back end database server.  In between the two servers is a combination firewall / Intrusion Prevention System (IPS) that is configured to detect malicious SQL injection attacks, block the attack and alert security response teams when necessary.  The IPS/Firewall system is independent of the web server and the database server.  It is a independent system designed to simply detect and respond to attacks by watching the communication between devices.</p>
<p>Eventually, a security consultant is hired to conduct a security review.  One recommendation she makes is that the information being transmitted between the web server and the database server contains confidential information and therefore should be encrypted.   Turning on encryption seems like a good idea, now the data between the web server and database server can not be viewed by anything but the intended servers.  The problem is that includes the IPS system which is designed to protect the database server from SQL injection attacks.   Now an attacker can attack the system feeling secure that their attacks are hidden inside the encryption and undetectable.</p>
<p>Security policies that recommend a particular type of data should be encrypted need to take into account more than just the data.  They also need to take into account the location of the source and destination of the transmission, the physical and other security controls and systems involved in and around the transmission.  No one would argue that a credit card being transmitted on the Internet should be encrypted.  It will pass through networks and devices that are not under the sender or receivers control and therefore has a high risk of interception.  If that same credit card number is being transmitted from a sender to receiver where both are in the same data center, access to devices in the data center are tightly controlled, then adding encryption only increases the complexity, hides attackers, and offers minimal to no value.  Some suggest that  in the data center someone might be able to gain access, and sniff the traffic to obtain the transmitted credit card therefore you have to encrypt the data.  If that is truly the case, I&#8217;d suggest they have much bigger security concerns than someone sniffing data.</p>
<p>When making a decision on weather to encrypt data, does your organization take a look at the data, application, network design and other factors when assessing risk, or do they just look at the data?</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/10/20/encryption-can-decrease-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Money always trumps security when they are in opposition</title>
		<link>http://michaeldundas.com/2010/08/09/money-always-trumps-security-when-they-are-in-opposition/</link>
		<comments>http://michaeldundas.com/2010/08/09/money-always-trumps-security-when-they-are-in-opposition/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 03:35:57 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Privacy and Anonymity]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=1977</guid>
		<description><![CDATA[I have been following the RIM security saga with India and Saudi Arabia.  I have previously mentioned, I have been in the U.A.E. in the past performing security consulting.  A few facts I know: All HTTP goes through a proxy. If you connect to a service provider, all your flows go through an HTTP proxy [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2010/08/Flag_of_the_United_Arab_Emirates.png"><img class="alignright size-full wp-image-1995" title="Flag_of_the_United_Arab_Emirates" src="http://michaeldundas.com/wp-content/uploads/2010/08/Flag_of_the_United_Arab_Emirates.png" alt="" width="200" height="100" /></a>I have been following the <a href="http://www.rim.net">RIM</a> security saga with India and Saudi Arabia.  I have previously mentioned, I have been in the <a href="http://en.wikipedia.org/wiki/United_Arab_Emirates">U.A.E.</a> in the past performing security consulting.  A few facts I know:</p>
<p><strong>All HTTP goes through a proxy. </strong>If you connect to a service provider, all your flows go through an HTTP proxy system.  The proxy system scans requests and compares them to a database of categorized sites.   The government provides policies to the service providers, and it is required by law they are enforced.  They are enforced in real time.  Attempting to visit an unauthorized site you will be re-directed to a page in Arabic explaining that it is not permitted.  I actually kept a screen capture of the page and was going to post it, but I can&#8217;t find it.  However, if you are in Dubai, just try to go to a site that has questionable material.  You will be re-directed.  Anyone can do it, it is not a secret.</p>
<p><strong>HTTPS was ready to be implemented. </strong>Approximately 2 years ago, they were testing the ability to decrypt SSL on the fly so that they could perform analysis on the requests and grant or deny access as with HTTP traffic.  I am sure this is deployed by now.</p>
<p><strong>Voice Over IP, Instant messaging and other protocols had specific policies.</strong> I won&#8217;t go into the details here, as I don&#8217;t know how public this information is, but there were active policies deployed around these and other protocols.</p>
<p><strong>Privacy is not the same as North America.</strong> In North America, we many feel that privacy is slowly being eroded.  In comparison to Dubai our policies with respect to privacy are impressive.  The ISP has the right to watch what you are doing and actively grant, block, and log your activities.  It is actually a requirement in order to get a license to be an ISP from the Government.</p>
<p>When Saudi Arabia indicated they were going to ban Research In Motion devices due to the fact the government was unable to decrypt communications as needed, I was hopeful that RIM would say too bad.  Of course that was the idealist in me hoping that RIM, a Canadian company with one of their key features they market is  about Blackberry and its security would not be compromised.  The realist in me understands that the Middle East is a growing market and from a business perspective RIM has no choice but to be a part of it.  If you want to do business in Canada you have to play by our rules, so it only makes sense that if you want to do business in the U.A.E., you have to play by their rules.  As expected, RIM <a href="http://www.thestar.com/business/companies/rim/article/845265--rim-reaches-deal-with-saudi-arabia-dodging-blackberry-ban">reached a deal with Saudi Arabia</a>.  They also<a href="http://www.reuters.com/article/idUSTRE6720A320100803"> reached a deal with India</a> earlier this week.</p>
<p>What I find amusing is the <a href="http://www.reuters.com/article/idUSTRE67151F20100802">latest Spin they have put on security</a> given the situation.</p>
<blockquote><p>RIM made no direct comment on any discussions  with the UAE or others, but it sought to reassure customers about the  security of their data on BlackBerry networks.  &#8220;While  RIM does not disclose confidential regulatory discussions that take  place with any government, RIM assures its customers that it is  committed to continue delivering highly secure and innovative products  that satisfy the needs of both customers and governments,&#8221; the company  said in a statement to customers.</p>
<p>A RIM spokeswoman could not be reached for comment.</p>
<p>RIM  said in its statement that under its security system customers have  their own encryption key and &#8220;only the customer ever possesses a copy&#8221;  of that key.</p></blockquote>
<p>While I am sure they have not lied, you can&#8217;t have it both ways.  Either you comply with the government request that they can decrypt messages and data as they require, or you don&#8217;t.  Any other suggestion implies that the laws within the UAE have changed.  I am not a lawyer, but I haven&#8217;t seen any news about new laws protecting UAE citizens privacy.  The best part is the last statement how the customers have their own encryption key that only they possess.  I am sure that statement is true.   But it is what is not said that is telling.  Are there any more encryption keys other than the one the customer possesses with respect to the customer&#8217;s messages?   Companies that deploy encryption and decryption of email, files, and data in general give each employee a copy of their own key that only they possess.  When encrypting data, the system creates some sort of a unique key (lets call it E) that is actually used to encrypt or decrypt the data.  The E key is then encrypted with the customers encryption key (lets call that key Ec).  The trick with businesses, is that the E key&#8217; is also encrypted with their own key (lets call it Eb).  If you loose your key (Ec) or refuse to give it when asked, they can use their key Eb to decrypt and obtain E key.  Once they have the E key, they can then decrypt the message.  There are several variations to this but the basic premise from a recovery perspective are the same.</p>
<p style="text-align: center;"><a href="http://michaeldundas.com/wp-content/uploads/2010/08/emailEncRecovProcessHighLevel2.png"><img class="size-full wp-image-1987 aligncenter" title="emailEncRecovProcessHighLevel2" src="http://michaeldundas.com/wp-content/uploads/2010/08/emailEncRecovProcessHighLevel2.png" alt="" width="508" height="311" /></a></p>
<p>This is not the first time this has happened either.  Not sure how many people remember <a href="http://www.hushmail.com/">Hushmail</a>.  I wrote about them <a href="http://michaeldundas.com/2009/06/20/outsourcing-i-t-to-google-part-i-the-concerns/">here</a>.  Hushmail marketing was based on the fact that if you used them for email, no one but you could retrieve your email stored on their servers.  Even Hushmail staff was not able to retrieve the email if they wanted to as they did not have the keys.  (Sound familiar to the RIM article above?).  Yet, when U.S. law enforcement contacted them about an individual they were investigating, Hushmail was able to <a href="http://www.wired.com/threatlevel/2007/11/hushmail-to-war/">provide them with 12 CDs filled with unencrypted emails of the individual under investigation</a>.</p>
<p>While I don&#8217;t blame RIM for their bowing to the governments of India and Saudi Arabia if they wish to do business in their countries, I dislike the spin they are placing on security.   They are mis-leading the public and playing on the fact that many people do not understand the intricacies of security.  While they are not lying, I strongly suspect they are not being forthright.</p>
<p>When all the dust settles, it is important that people realize that money is what drives business.  You can claim all morals, goals, and visions you want.  But if at some these come into conflict that causes enough money to be at stake compromises will be made.  Security unfortunately is no different.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/08/09/money-always-trumps-security-when-they-are-in-opposition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Investigation of encrypted traffic</title>
		<link>http://michaeldundas.com/2009/11/23/investigation-of-encrypted-traffic/</link>
		<comments>http://michaeldundas.com/2009/11/23/investigation-of-encrypted-traffic/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 22:15:57 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Profiling]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=1144</guid>
		<description><![CDATA[As the traffic on the Internet becomes more and more encrypted due to privacy concerns, the need to protect data from third parties, prying eyes, marketers, service providers and others, behavioural profiling of network sessions will become more and more necessary.  Already, there are many products that claim to do behavioural profiling of network activity [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1189" title="onyx1" src="http://michaeldundas.com/wp-content/uploads/2009/11/onyx1.jpg" alt="onyx1" width="134" height="178" />As the traffic on the Internet becomes more and more encrypted due to privacy concerns, the need to protect data from third parties, prying eyes, marketers, service providers and others, behavioural profiling of network sessions will become more and more necessary.  Already, there are many products that claim to do behavioural profiling of network activity in varying degrees to assist with behaviour detection.  There is more and more active research in this area by vendors, law enforcement, bad guys and others.</p>
<p>I reviewed a report where it was indicated that because the data was encrypted it was impossible to determine anything useful.  This is not always the case, but I have seen this conclusion in reports and investigations many times when dealing with encrypted or unidentified data.  Aside from the marketing which says that if my Internet sessions are encrypted then one is safe (nothing could be further from the truth), many network administrators do not understand or have had much experience with behavioural profiling.  Behavioural profiling of networks can be very complex, and research is relatively new in this area.  To give some insight into how one might profile network sessions and show how one can use behavioural profiling to extract information, I decided to walk through a simple example and answer a simple question.  Specifically, what are the differences between an encrypted network session where one is watching a program or video (user providing no input), compared to an interactive type of network session where one is interacting (providing input)?  I used the SSH protocol to illustrate.</p>
<p>I used video over SSH to watch a program.  The program was approximately 24 minutes in duration and was hosted on a server at my ISP.   There were no problems watching the program, it didn&#8217;t pause or stop, and it was just like watching a typical television program (in fact I watched it on my flat screen TV).  I used a device to capture the traffic between the server hosting the program and my home for the entire duration of the program.  Finally, I captured an interactive SSH session which was me logged into a server at my ISP, where I was doing some coding and some shell commands.</p>
<p>Attempts to look at the actual data of either of these captures will be useless.  Since the data is encrypted, without access to the session keys knowing what was transmitted is close to if not impossible.  That being stated, what behaviour characteristics can we observe to tell us what might be going on?</p>
<p>I separated the direction of each of two captures which gave me 4 capture files, video received, video transmitted, interactive data received and interactive data transmitted.</p>
<p><strong>Bandwidth</strong></p>
<table border="0">
<tbody>
<tr>
<td></td>
<td><strong>Received</strong></td>
<td><strong>Transmitted</strong></td>
<td><strong>Ratio</strong></td>
</tr>
<tr>
<td><strong>Video</strong></td>
<td>193.2 MB</td>
<td>7.0 MB</td>
<td>0.036</td>
</tr>
<tr>
<td><strong>Interactive</strong></td>
<td>0.59 MB</td>
<td>0.58 MB</td>
<td>0.98</td>
</tr>
</tbody>
</table>
<p>Looking at the chart above, the video watching has a much larger amount of data received than transmitted compared to the interactive session where a similar amount of data is transmitted and received.  Analysis of most video streaming and flows where downloading is occurring will yield a similar results.  The ratio of received to transmitted data will be high.  Interactive sessions tend to have a more balanced ratio of transmitted to received data compared to a video session.  This of course has dependencies on what the user is doing in the interactive session, but typically this has been the case in my experience.</p>
<p><strong>Inter-packet timing</strong></p>
<p>Another interesting metric is the time difference or delta between two packets.  Watching a video or listening to music, the delta between two packets tends to be small in comparison to an interactive type of session.  There are a few reason for this.  Since the video is being viewed, it is important to ensure that the data arrives in a timely manner so as to not have the video &#8216;freeze&#8217; while being watched.   Some software attempts to write the video data to disk in advance of viewing to help mitigate this problem, but that leaves an exposure where an savvy individual can obtain a copy of the video by simply making a copy of the temporary file.  As a result, newer software tends to attempt to keep the data in memory and not write it to disk.  The result is the need to ensure a smooth delivery of data, minimizing delay between packets (known as Jitter).</p>
<table border="0">
<tbody>
<tr>
<td></td>
<td colspan="3"><strong>Received (seconds)<br />
</strong></td>
<td colspan="3"><strong>Transmitted (seconds)<br />
</strong></td>
</tr>
<tr>
<td></td>
<td><strong>Maximum</strong></td>
<td><strong>Mean</strong></td>
<td><strong>Std Dev.</strong></td>
<td><strong>Maximum</strong></td>
<td><strong>Mean</strong></td>
<td><strong>Std Dev.</strong></td>
</tr>
<tr>
<td><strong>Video</strong></td>
<td>3.065</td>
<td>0.021</td>
<td>0.094</td>
<td>3.051</td>
<td>0.014</td>
<td>0.076</td>
</tr>
<tr>
<td><strong>Interactive</strong></td>
<td>4028.555</td>
<td>3.568</td>
<td>88.736</td>
<td>4028.544</td>
<td>2.162</td>
<td>69.137</td>
</tr>
</tbody>
</table>
<p>I <a href="http://michaeldundas.com/src/calcFrameTimeDelta.py">wrote a simple python script</a> which will take as input a capture file, calculates the inter-packet timing for each pair of packets and then outputs among other information, the results you see in the table above.  The Maximum field is the largest time between packets, the mean is the average time between packets, and the standard deviation is a measure of how &#8216;different&#8217; the inter packet times are from the &#8216;normal&#8217;.  For those that don&#8217;t know or wish to have a refresher in standard deviation, <a href="http://en.wikipedia.org/wiki/Standard_deviation">here</a> is a good place to start. However, most languages and spreadsheets have functions to calculate this for you if you do not wish to learn the math.  In simple terms and using our specific example, if all the packets had the exact same time between them then the standard deviation would be 0.  The greater the difference in timing between packets, the greater the standard deviation will be.</p>
<p>Notice that the standard deviation is much higher for the interactive session then the video session.  Sessions that stream data, tend to have a low standard deviation for inter-packet timing.  If you think about it this makes sense, as an interactive session you can walk away from the computer, or the program could be waiting for input from the user so data transmission will fluctuate more.</p>
<p>Bandwidth, inter-packet timing, and methods such as standard deviation and mean are just a few things that can be used to narrow down what a particular subjects activities might be.  In corporate or law enforcement investigations, profiling network behaviour can be a useful tool to determine if you need to spend more time on the investigation or if you have the right target.  Using our example above,  suppose a corporation wants to determine which employees are watching streaming videos.  A scan of the network data reveals an individual who has encrypted sessions, but these sessions show a transmit / receive ratio that is in line with typical interactive sessions and not video sessions.  Also, the standard deviation of the inter-packet timing is higher for these sessions, then you can rule them out as an individual of interest immediately.  This has the advantage of focusing your investigation, not encroaching on privacy issues unnecessarily,  and saves time by allowing you to focus on the users that have network sessions with characteristics that fit the behaviour you are looking for.</p>
<p>For those of you that feel comfortable because the data is &#8216;encrypted&#8217; it can be a false sense of security.  These are two of the many metrics and theorems that can be used on the data.  This area has active research and there are many products that will do this type of analysis in an automated fashion.  For those interested in this, although older now, this is a <a href="http://www.cs.washington.edu/research/security/usenix07devices.pdf">great paper</a> where an experiment was conducted to determine what movie people were watching even though the movie data was encrypted.  They used behavioural data to fingerprint the movies, then applied the fingerprints to encrypted transmitted data.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2009/11/23/investigation-of-encrypted-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tracking with Local Shared Objects (LSO)</title>
		<link>http://michaeldundas.com/2009/09/15/tracking-with-local-shared-objects-lso/</link>
		<comments>http://michaeldundas.com/2009/09/15/tracking-with-local-shared-objects-lso/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 02:44:32 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Privacy and Anonymity]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=926</guid>
		<description><![CDATA[There has been lots of discussion lately about Flash websites using Local Shared Objects (LSO) to track users selections, browsing habits, and other information.  One of the advantages for websites has been that until now they have not been well known.  From my basic searching they have been around since at least 2004 and probably [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-927" title="Adobe Flash Logo" src="http://michaeldundas.com/wp-content/uploads/2009/09/flashLogo1.png" alt="Adobe Flash Logo" width="63" height="63" /></p>
<p>There has been lots of discussion lately about <a href="http://www.adobe.com/products/flashplayer/">Flash</a> websites using Local Shared Objects (LSO) to track users selections, browsing habits, and other information.  One of the advantages for websites has been that until now they have not been well known.  From my basic searching they have been around since at least 2004 and probably earlier.  A user may configure their browser to remove or delete all &#8216;cookies&#8217;, but LSOs stay.  According to some, many of the top websites use them.</p>
<p>I tried a little experiment to see how LSOs are stored.  The directory that they are stored varies depending upon your operating system.  For me I use Linux as my primary O/S.  The default directory for LSOs is ~/.macromedia/Flash_Player.</p>
<p><img class="aligncenter size-full wp-image-929" title="Clean Macromedia directory" src="http://michaeldundas.com/wp-content/uploads/2009/09/cleanMacroMediaDirectory1.png" alt="Clean Macromedia directory" width="745" height="321" /></p>
<p>Under the &#8216;Flash_Player&#8217; there are two directories and under each of these directories are the security configuration and the binary installer for the Flash Air application.  Nothing interesting.  Next, I started Firefox and went to youtube.com and selected a video.  After the video completed, I took another look at the ~/.macromedia/Flash_Player directory.</p>
<p><img class="aligncenter size-full wp-image-931" title="macroMediaDirAfterYouTube1" src="http://michaeldundas.com/wp-content/uploads/2009/09/macroMediaDirAfterYouTube1.png" alt="macroMediaDirAfterYouTube1" width="1055" height="796" /></p>
<p>Under~/.macromedia/Flash_Player we now have two new directories, macromedia.com and #SharedObjects.  If we decend the macromedia.com directory, we find 3 nested single directories called support, flashplayer, and sys respectively.  Under the &#8216;sys&#8217; directory we find a binary file called settings.sol and a subdirectory which is #s.ytimg.com owned by <a href="http://google.ca">Google</a>.  The #s.ytimg.com directory contains a separate settings.sol which is binary.</p>
<p><img class="aligncenter size-full wp-image-935" title="macroMediaDirAfterYouTube2" src="http://michaeldundas.com/wp-content/uploads/2009/09/macroMediaDirAfterYouTube2.png" alt="macroMediaDirAfterYouTube2" width="1055" height="511" /></p>
<p>Under the #SharedObjects directory, there is a single oddly named directory &#8217;3BJH4AW6&#8242;, then a directory for the website &#8216;s.ytimg.com&#8217;, a domain owned by Google.  Below this are two files entitled videostats.sol and soundData.sol, both containing binary data.</p>
<p>I haven&#8217;t investigated the format or contents of the .sol files, but it is obviously where the metadata is stored.  I may try to investigate the format or see if anyone else has already figured it out as I am curious.  The bigger question in my mind is how does one properly erase this data.  There is a Firefox add-on called <a href="https://addons.mozilla.org/en-US/firefox/addon/6623">BetterPrivacy</a> which will do just that. It can be configured to delete LSOs on request or remove all the LSOs when you shutdown Firefox.  I installed BetterPrivacy and tried it.  Sure enough, upon shutting down Firefox I was greeted with this window:</p>
<p><img class="aligncenter size-full wp-image-937" title="betterPrivacyConfirm1" src="http://michaeldundas.com/wp-content/uploads/2009/09/betterPrivacyConfirm1.png" alt="betterPrivacyConfirm1" width="519" height="160" /></p>
<p>Selecting OK, put my ~/.macromedia/Flash_Player directory back to its original state with no LSOs or website directories present.  For the normal user that should suffice.  However, these are files and they have been deleted.  Most people should know that files these days that are deleted are typically still recoverable.   File systems such as NTFS (windows), ext2/ext3 (*nix) all can have files deleted on them recovered.  In the case of ext3, it is a journal file system and the default file system installed on most *nix platforms today.  Without getting into the details in this post, this effectively means that even if you wipe a file it can potentially still be recovered.</p>
<p>If you carry around sensitive information on your laptop, I recommend you create an encrypted volume on your hard drive using a package such as <a href="http://www.truecrypt.org/">TrueCrypt</a>, <a href="http://www.pgp.com/">PGP</a>.  In the case of my system, I formatted the encrypted file system to be ext2.  This means there is no journaling.  This has the disadvantage of being less &#8216;recoverable&#8217; but it has the advantage that if you wipe a file with &#8216;wipe&#8217;, &#8216;shred&#8217; or some other wiping software it is unlikely to be recovered.  Next, I point my ~/.macromedia directory to the encrypted file system.</p>
<p><img class="aligncenter size-full wp-image-939" title="dirsToEncryptedFS1" src="http://michaeldundas.com/wp-content/uploads/2009/09/dirsToEncryptedFS1.png" alt="dirsToEncryptedFS1" width="1055" height="302" />You can see the ~/mndData file which is the truecrypt fileystem.  ~/.macromedia is symbolically linked to the encrypted filesystem.  For those interested, you can see that my Evolution (~/.evolution), Google Desktop (~/.google), Firefox Cache and bookmarks (~/.mozilla), IM client (~/.purple) and Skype (~/.Skype) all write to the encrypted file system.  You have to be able to mount the ~/mndData to get at any of the email, browser cache, bookmarks, IM conversations and now LSOs.  It isn&#8217;t fool proof, but it offers another layer of protection so that client data remains unviewable in the event of my laptop being stolen.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2009/09/15/tracking-with-local-shared-objects-lso/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google and Encryption with TLS/SSL (HTTPS)</title>
		<link>http://michaeldundas.com/2009/06/26/google-and-encryption-with-tlsssl-https/</link>
		<comments>http://michaeldundas.com/2009/06/26/google-and-encryption-with-tlsssl-https/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 17:02:44 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=656</guid>
		<description><![CDATA[Just a quick entry as I am busy studying for a two day exam that is this weekend. Earlier in June, Google posted a response to an open letter on one of their blogs that indicated they are looking into the feasibility having Gmail encryption always on. Other Google applications such as Google Docs can [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_657" class="wp-caption alignleft" style="width: 114px"><img class="size-full wp-image-657" title="padlock1" src="http://michaeldundas.com/wp-content/uploads/2009/06/padlock1.jpg" alt="http://www.flickr.com/photos/renaissancechambara/349206957/" width="104" height="104" /><p class="wp-caption-text">http://www.flickr.com/photos/renaissancechambara/349206957/</p></div>
<p>Just a quick entry as I am busy studying for a two day exam that is this weekend.<br />
Earlier in June, Google <a href="http://googlepublicpolicy.blogspot.com/2009/06/https-security-for-web-applications.html">posted a response</a> to an open letter on one of their blogs that indicated they are looking into the feasibility having Gmail encryption always on.  Other Google applications such as Google Docs can use TLS/SSL, but it is currently not required unless the user specifies it.</p>
<p>Last year <a href="http://www.rogers.com">Rogers</a> attempted to<a href="http://www.wired.com/threatlevel/2007/12/canadian-isps-p/"> insert pages and frames</a> into their subscribers browsers when they were surfing, and Google was <a href="http://www.thestar.com/Business/article/284761">not impressed</a>.  According to Michael Geist, <a href="http://www.michaelgeist.ca/content/view/4083/125/">it is back</a>.</p>
<p>Anyone want to make any guesses as to how long before Google and other web services just turn on HTTPS to stop this and deal with the increased performance requirements?</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2009/06/26/google-and-encryption-with-tlsssl-https/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anti-Forensics &#8211; not as easy as once thought</title>
		<link>http://michaeldundas.com/2009/04/04/anti-forensics-not-as-easy-as-once-thought/</link>
		<comments>http://michaeldundas.com/2009/04/04/anti-forensics-not-as-easy-as-once-thought/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 11:46:05 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Forensics]]></category>
		<category><![CDATA[antiForensics]]></category>

		<guid isPermaLink="false">http://kaizen.michaeldundas.com/?p=255</guid>
		<description><![CDATA[My laptop is pretty secure. I am not silly enough to think that is is 100% secure or that no one could get into it, but relative to most laptops out there it&#8217;s not too bad. There are weaknesses due to time or software requirements, but I think I am aware of most of them. [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 510px"><img src="http://michaeldundas.com/images/blog/delhaizeTrashbin.jpg" alt="image by wchulseiee (http://www.flickr.com/photos/wchulseiee/2427418216/)" width="500" height="375" /><p class="wp-caption-text">image by wchulseiee (http://www.flickr.com/photos/wchulseiee/2427418216/)</p></div>
<p>My laptop is pretty secure.  I am not silly enough to think that is is 100% secure or that no one could get into it, but relative to most laptops out there it&#8217;s not too bad.  There are weaknesses due to time or software requirements, but I think I am aware of most of them.  I don&#8217;t encrypt the operating system (yet), but all data partitions are encrypted. It has been configured with the goal that all sensitive data and metadata  (web browser, IM, video, audio, cache, bookmarks)   is encrypted.<br />
once data is no longer &#8216;required it is stored on the servers at the office and then &#8216;wiped&#8217; off the encrypted drives at regular intervals .    All metadata  is wiped from the encrypted drives each weekend, which gives at most one week of metadata, assuming an attacker can get into the encrypted drives to view it.  The main reason for all this is to protect customer data.  I like others in my industry work with institutions and their data.  In many cases that data can be politically, financially, or image &#8216;sensitive&#8217; in nature if it was to get into the wrong hands.   Should my laptop ever be stolen, I want to at least make it difficult for an attacker to gain easy access to the data in a reasonable period of time.</p>
<p>Imagine my surprise when I was re-configuring my laptop and I discovered that my deleted file metadata had somehow been reset  to write to a different area, on an unencrypted area of my drive.  The following is a partial view of the files I discovered.  The files went back as far as November, 2008.</p>
<div class="wp-caption aligncenter" style="width: 835px"><img title="Trash Meta Directory on laptop" src="http://michaeldundas.com/images/blog/partialViewOfTrashDirOnPC.png" alt="Trash Meta Directory on laptop" width="825" height="283" /><p class="wp-caption-text">Trash Meta Directory on laptop</p></div>
<p>These are standard text files with information about each file that was deleted.   The information includes the original file location as well as a timestamp indicating when the file was deleted.</p>
<div class="wp-caption aligncenter" style="width: 835px"><img title="Trash meta data file details" src="http://michaeldundas.com/images/blog/trashMetaDataFileExample.png" alt="Trash meta data file details" width="825" height="283" /><p class="wp-caption-text">Trash meta data file details</p></div>
<p>Even though the actual data files were not present, there is a lot of information here.  Just from working with the data contained in the files above, one could easily determine names of files worked on, importance, directory structure of encrypted partitions, date file was deleted and more.  You could very easily put together a time line of a customer, projects being worked on, dates of project activity, useful information that can be sold, used to a competing company or party&#8217;s advantage in court, for a bid, or a competitive product or service.</p>
<p>There is a lot of &#8216;negativity&#8217; with Anti-Forensics lately, especially in the forensics community.   Although I understand and appreciate the problems and concerns they have, I believe anti-forensics is necessary and a good thing.   It all depends on who is using it and why.  Needless to say, I have fixed the problem with my laptop, and &#8216;double checked&#8217; my drive encryption and scripts to ensure correct execution.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2009/04/04/anti-forensics-not-as-easy-as-once-thought/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Device security and encryption</title>
		<link>http://michaeldundas.com/2009/01/31/device-security-and-encryption/</link>
		<comments>http://michaeldundas.com/2009/01/31/device-security-and-encryption/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 16:08:42 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[law enforcement]]></category>
		<category><![CDATA[Privacy and Anonymity]]></category>

		<guid isPermaLink="false">http://kaizen.michaeldundas.com/?p=193</guid>
		<description><![CDATA[Title of this article doesn&#8217;t really do it justice. It is a good article that gives a high-level understanding of the concept of Trusted Booting of a device. Good read for individuals in or working with law enforcement and digital forensics. As this type of technology becomes more and more mainstream, it will become much [...]]]></description>
			<content:encoded><![CDATA[<p>Title of <a href="http://theinvisiblethings.blogspot.com/2009/01/why-do-i-miss-microsoft-bitlocker.html">this article</a> doesn&#8217;t really do it justice.  It is a good article that gives a high-level understanding of the concept of Trusted Booting of a device.   Good read for individuals in or working with law enforcement and digital forensics.  As this type of technology becomes more and more mainstream, it will become much more difficult to surreptitiously obtain access to or data from devices without the owners cooperation.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2009/01/31/device-security-and-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deniable File Systems and Truecrypt</title>
		<link>http://michaeldundas.com/2008/07/19/deniable-file-systems-and-truecrypt/</link>
		<comments>http://michaeldundas.com/2008/07/19/deniable-file-systems-and-truecrypt/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 22:58:00 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://clear2go.wordpress.com/2008/07/19/deniable-file-systems-and-truecrypt/</guid>
		<description><![CDATA[An interesting research paper on the vulnerabilities of using Deniable File Systems (DFS). The popular open-source package TrueCrypt is used as the primary example, although it would apply to other DFS applications. The authors (A.Czeskis, D. J. St. Hilaire, K. Koscher, S.D. Gribble, T.Kohno, B. Schneier) note that given the current political environment in many [...]]]></description>
			<content:encoded><![CDATA[<p>An <a href="http://www.schneier.com/paper-truecrypt-dfs.html">interesting research paper</a> on the vulnerabilities of using Deniable File Systems (DFS).  The popular open-source package TrueCrypt is used as the primary example, although it would apply to other DFS applications.</p>
<p>The authors (A.Czeskis, D. J. St. Hilaire, K. Koscher, S.D. Gribble, T.Kohno, <a href="http://www.schneier.com/">B. Schneier</a>)  note that given the current political environment  in many countries today, users of DFS may think that utilizing a DFS application permits the data stored in the DFS to not be discoverable.  The authors  highlight how this is a false belief.</p>
<p>Two of the key points I found interesting were:
<ol>
<li>Most applications and operating systems are not designed to preserved plausible deniability and often &#8216;leak&#8217; information that reveals the existence of a DFS.</p>
</li>
<li>Many common applications such as Microsoft Word make a copy of a file that is located in a DFS, typically in a non DFS and non encrypted location while the user is working on a file.   If the application is properly closed, the file is deleted, but not securely allowing a recovery agent to extract the contents of the secret file without need to access the hidden file system.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2008/07/19/deniable-file-systems-and-truecrypt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring E-Mail</title>
		<link>http://michaeldundas.com/2008/06/05/monitoring-e-mail/</link>
		<comments>http://michaeldundas.com/2008/06/05/monitoring-e-mail/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 01:10:00 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Privacy and Anonymity]]></category>
		<category><![CDATA[Surveillance]]></category>

		<guid isPermaLink="false">http://clear2go.wordpress.com/2008/06/05/monitoring-e-mail/</guid>
		<description><![CDATA[Today on CBC Search Engine, there was discussion about companies that read employee e-mail, why companies read e-mail and the fact that many have a manual process for accomplishing this task. The company that was interviewed by Search Engine was Proofpoint. They make several automated solutions to accomplish monitoring e-mail. One of the comments made [...]]]></description>
			<content:encoded><![CDATA[<p>Today on <a href="http://www.cbc.ca/searchengine/blog/2008/06/this_weeks_show_june_0508_links.html">CBC Search Engine</a>, there was discussion about companies that read employee e-mail, why companies read e-mail and the fact that many have a manual process for accomplishing this task.  The company that was interviewed by Search Engine was <a href="http://www.proofpoint.com/">Proofpoint.</a>  They make several automated solutions to accomplish monitoring e-mail.  One of the comments made was that they can monitor e-mails via Hyper Text Transfer Protocol (HTTP) or web based e-mail, such as Gmail, Hotmail or other type of web based mail services.  This is all true and very possible. </p>
<p>What I find amusing is there are so many simple ways to smuggle out information from a company that monitoring e-mail seems to be a waste of time and money.  One could copy the information to a laptop and download it to a computer at home.  Copy the information to a USB key, CD or DVD and take it home.  One could print the information out on paper (since most companies don&#8217;t monitor what is printed).   None of these methods require expensive, or complicated technology.  If I wanted to get information out of the office and I even suspected that e-mail, IM or transmissions were being monitored these ways are the simplest and least to arouse suspicion.  Unless a company plans to manually search you and your belongings every time you enter or exit the building including checks of laptops, USB keys, and other media investment in technology to monitor e-mail I don&#8217;t see the point.</p>
<p>Proofpoint stated that it is often used to watch for employees spending too much time on personal versus work related issues.  I suppose this is a valid use, but personally I don&#8217;t manage that way and I doubt I would ever work for a company that did manage that way.  If people are getting their work done then I&#8217;m not going to worry if they send personal e-mail, surf the web or decide to take an extra 10 minutes at lunch.   I believe it is important that you can trust your employees and they feel a sense of responsibility towards their work.  If this is missing then the company has bigger issues that monitoring e-mail or other flows of information will not solve. </p>
<p>The other concern I have with all this &#8220;monitoring&#8221; going on is that it will increase the adoption rate of encryption and other stealth technologies .  Governments, businesses, and law enforcement wanting to monitor people&#8217;s e-mail, web surfing, files shared and download will force software and developers to add encryption and other forms of covert data transmission into the software more quickly.  Most E-Mail servers for example have encryption (TLS) support now.  As encryption becomes more available in e-mail clients and set to be the default mode of communication the encryption will be transparent to the user.  Encryption is something that law enforcement is running into more and more.  It hampers their investigations.  This is bad when you are actually trying to catch the bad people distributing drugs or child pornography.   I picture an Internet where all communication is encrypted or obfuscated in different ways to avoid &#8220;monitoring.&#8221;  What will we do then?   Probably have discussions about key escrow,outlawing encryption, and other silly conversations we have had in the past and never worked.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2008/06/05/monitoring-e-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TrueCrypt 5.x on Fedora 8</title>
		<link>http://michaeldundas.com/2008/04/26/truecrypt-5x-on-fedora-8/</link>
		<comments>http://michaeldundas.com/2008/04/26/truecrypt-5x-on-fedora-8/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 19:46:00 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://clear2go.wordpress.com/2008/04/26/truecrypt-5x-on-fedora-8/</guid>
		<description><![CDATA[I was rebuilding my Fedora VMware image today. Attempting to install TrueCrypt 5.x, I became very frustrated. It made me realize my expectations have changed. I no longer want to have to understand every single application I use, how to compile it, its associated dependencies and specifics. On one hand learning this still interests me [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://bp0.blogger.com/_U-pnnFr2hYU/SBOJzEPXRzI/AAAAAAAAACw/14HWwSf3Tmw/s1600-h/trueCrypt.jpg"><img style="float:left;cursor:pointer;margin:0 10px 10px 0;" src="http://bp0.blogger.com/_U-pnnFr2hYU/SBOJzEPXRzI/AAAAAAAAACw/14HWwSf3Tmw/s320/trueCrypt.jpg" alt="" border="0" /></a>I was rebuilding my Fedora VMware image today.  Attempting to install <a href="http://www.truecrypt.org/">TrueCrypt 5.x</a>, I became very frustrated.  It made me realize my expectations have changed.  I no longer want to have to understand every single application I use, how to compile it, its associated dependencies and specifics.  On one hand learning this still interests me to this day.  Unfortunately, I no longer have the free time I once had to do this for every application I require &#8212; so I just want it to work.  Since a quick install didn&#8217;t seem to be an option, I started compiling TrueCrypt from source and adding in all the dependency libraries etc.   During this process, I discovered a <a href="http://howtoforge.com/encrypting-file-systems-with-truecrypt-on-fedora8">entry</a> by Oliver Meyer.  He published a simple step by step procedure.  It is easy to understand and well done.    Highly recommend it.</p>
<p>-mike.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2008/04/26/truecrypt-5x-on-fedora-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

