<?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>A place to record my thoughts and musings.</description>
	<lastBuildDate>Tue, 20 Jul 2010 03:13:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SSL Decryption is becoming the norm</title>
		<link>http://michaeldundas.com/2010/06/22/ssl-decryption-is-becoming-the-norm/</link>
		<comments>http://michaeldundas.com/2010/06/22/ssl-decryption-is-becoming-the-norm/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 15:23:20 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Auditing]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Privacy / Anonymity]]></category>
		<category><![CDATA[monitoring]]></category>

		<guid isPermaLink="false">http://michaeldundas.com/?p=1838</guid>
		<description><![CDATA[A couple of years ago I was at a client&#8217;s site in Dubai.  The client was an telco, and I was doing some security consulting for them.   Like many countries in the Middle East, Dubai actively monitors data entering and leaving the country.  Privacy laws as far as I could determine do not exist.  All [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://michaeldundas.com/wp-content/uploads/2010/06/eavesdroppingOnApartmentDoor.png"><img class="alignright size-full wp-image-1860" title="eavesdroppingOnApartmentDoor" src="http://michaeldundas.com/wp-content/uploads/2010/06/eavesdroppingOnApartmentDoor.png" alt="" width="211" height="320" /></a>A couple of years ago I was at a client&#8217;s site in Dubai.  The client was an telco, and I was doing some security consulting for them.   Like many countries in the Middle East, Dubai actively monitors data entering and leaving the country.  Privacy laws as far as I could determine do not exist.  All internet communications are actively monitored.  It is quite common to suddenly see a web page pop up explaining in Arabic that the site you are trying to view is not authorized and you have been denied.  Telcos there have spent millions of dollars on infrastructure in order to enforce these requirements.  The design is not as complex as one might think, just resource intensive.  Resources are required to process the data real-time and staff is required to maintain the infrastructure, look into events and other tasks.  Telcos do this because it is required  by law.  You can not obtain a license as a Telco unless you have monitoring capabilities deployed.</p>
<p>My first day in Dubai, I went to lunch with one of the executives of the Telco.  During our lunch, I asked him how they manage encrypted connections.  He explained that they were currently getting ready to deploy a solution to solve that.  The infrastructure was being upgraded to decrypt all SSL sessions and parse the data as required.   Aside from opening my eyes to the difference in privacy between North America and the Middle East from a privacy perspective, I found it interesting that SSL decrypting was so easily available.   Previously, I had seen software that law enforcement used for this purpose.  I myself had done it for clients using available tools during a engagement.  But these tools were designed more for targeted surveillance, not mass scale.  Like all technology, it improves and gets less expensive over time I guess.</p>
<p>Today, there are many more companies in North America and abroad that either have deployed SSL decrypting capabilities or are in the process of doing so.  Security, diagnostics, audit and legal requirements to know what is coming and leaving their networks and being able to log and trace back data transmissions to the originator are some of the reasons.  One driver is Data Leakage Protection (DLP), currently a very &#8216;hot&#8217; topic with many new vendors jumping on the opportunity with solutions.  In order to look for data leakage, you need to see past any encryption that might be present.  <a href="http://cisco.com/">Cisco</a>, <a href="http://www.bluecoat.com/">Bluecoat</a>, <a href="http://www.paloaltonetworks.com/">PaloAlto</a>, <a href="http://www.fortinet.com/">Fortinet</a> are just a few companies that offer products for SSL decryption.</p>
<p>With Google deploying encryption for <a href="https://gmail.com">Gmail </a>and more recently <a href="https://www.google.com/">searching</a>, plug-ins such as the <a href="http://www.eff.org/deeplinks/2010/06/encrypt-web-https-everywhere-firefox-extension">EFF Firefox plug-in</a> to help secure your communications, companies are feeling more and more concerned about what data is coming and going.  What worries me is that all these security, legal and audit requirements companies face are actually not helping them in the long run.   If these companies are decrypting SSL sessions that egress and ingress their network, you can be sure that other companies are doing the same to theirs.  The net result is that everything is decrypted and no one has any privacy.</p>
<p>Next time you connect to your bank, doctor&#8217;s office, insurance company, Gmail or any site and see secure indications from your browser similar to these<a href="http://michaeldundas.com/wp-content/uploads/2010/06/httpsGmailURL.png"><img class="aligncenter size-full wp-image-1856" title="httpsGmailURL" src="http://michaeldundas.com/wp-content/uploads/2010/06/httpsGmailURL.png" alt="" width="284" height="27" /></a><a href="http://michaeldundas.com/wp-content/uploads/2010/06/firefoxSSLLock.png"><img class="aligncenter size-full wp-image-1857" title="firefoxSSLLock" src="http://michaeldundas.com/wp-content/uploads/2010/06/firefoxSSLLock.png" alt="" width="110" height="22" /></a></p>
<p>along with the companies re-assurances that the site is secure, keep in mind things may not be as they appear &#8211; today even more so than yesterday.</p>
<p>Do you deploy any type of decryption on your network?  If it is deployed are you aware of it?</p>
<p style="text-align: right;"><a href="http://www.flickr.com/photos/joehowell/2314400543/"><em>photo credit</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2010/06/22/ssl-decryption-is-becoming-the-norm/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[Behavioural Profiling - Network]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Forensics]]></category>
		<category><![CDATA[monitoring]]></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 / Anonymity]]></category>
		<category><![CDATA[monitoring]]></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 &#8217;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 &#8216;3BJH4AW6&#8242;, then a directory for the website &#8217;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;, &#8217;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>0</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 12:46:05 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Anti-Forensics]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Forensics]]></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 [...]]]></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 &#8217;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[Privacy / Anonymity]]></category>
		<category><![CDATA[law enforcement]]></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, [...]]]></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  [...]]]></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 / Anonymity]]></category>
		<category><![CDATA[monitoring]]></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 [...]]]></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 [...]]]></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>
		<item>
		<title>Breaching Disk Encryption</title>
		<link>http://michaeldundas.com/2008/04/07/breaching-disk-encryption/</link>
		<comments>http://michaeldundas.com/2008/04/07/breaching-disk-encryption/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 13:29:00 +0000</pubDate>
		<dc:creator>Clear2Go</dc:creator>
				<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Forensics]]></category>

		<guid isPermaLink="false">http://clear2go.wordpress.com/2008/04/07/breaching-disk-encryption/</guid>
		<description><![CDATA[Many of the latest operating systems including Windows Vista, Mac OS 10, and Linux now offer disk encryption to protect data against laptops and devices that are stolen or &#8216;prying&#8217; eyes.  There is an excellent open source disk encryption tool I have used for years called Truecrypt which is cross compatible for Linux and [...]]]></description>
			<content:encoded><![CDATA[<p>Many of the latest operating systems including Windows Vista, Mac OS 10, and Linux now offer disk encryption to protect data against laptops and devices that are stolen or &#8216;prying&#8217; eyes.  There is an excellent open source disk encryption tool I have used for years called <a href="http://kaizen.michaeldundas.com/2008/03/truecrypt-50-review.html">Truecrypt</a> which is cross compatible for Linux and Windows.  Disk encryption often presents a problem for law enforcement during an investigation.  With the proliferation of build in disk encryption this problem is exasperated.  </p>
<p>Some really cool research done by Princeton University on defeating these forms of disk encryption was published.   <a href="http://citp.princeton.edu/pub/coldboot.pdf">The paper</a> gets quite technical into key reconstruction and other related math, but the <a href="http://citp.princeton.edu/memory/">blog entry</a> has a <a href="http://www.youtube.com/v/JDaicPIgn9U">video</a> that shows a recovery procedure, including the use of off the shelf products to sufficiently cool memory to permit data extraction.</p>
<p>I am going to have to try this out on my laptop.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaeldundas.com/2008/04/07/breaching-disk-encryption/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
