<?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>cmdLabs</title>
	<atom:link href="http://blog.cmdlabs.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cmdlabs.com</link>
	<description></description>
	<lastBuildDate>Mon, 30 Aug 2010 15:55:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Winner of the DFRWS2010 Forensic Challenge Announced</title>
		<link>http://blog.cmdlabs.com/2010/08/30/winner-of-the-dfrws2010-forensic-challenge-announced/</link>
		<comments>http://blog.cmdlabs.com/2010/08/30/winner-of-the-dfrws2010-forensic-challenge-announced/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 15:53:25 +0000</pubDate>
		<dc:creator>eoghan</dc:creator>
				<category><![CDATA[Mobile Device Forensics]]></category>
		<category><![CDATA[Tool Validation]]></category>
		<category><![CDATA[Cell Phone Forensics]]></category>
		<category><![CDATA[Flash memory]]></category>
		<category><![CDATA[NAND]]></category>
		<category><![CDATA[NOR]]></category>
		<category><![CDATA[Physical Memory Analysis]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.com/?p=249</guid>
		<description><![CDATA[This year Eoghan Casey collaborated with the Netherlands Forensic Institute to create the DFRWS Forensic Challenge in an effort to advance forensic analysis of Flash memory in mobile devices. The winner of the challenge was Solal Jacob who used the open source Digital Forensic Framework, and provides some new modules specifically for parsing memory dumps [...]]]></description>
			<content:encoded><![CDATA[<p>This year Eoghan Casey collaborated with the <a href="http://www.forensicinstitute.nl/">Netherlands Forensic Institute</a> to create the DFRWS Forensic Challenge in an effort to advance forensic analysis of Flash memory in mobile devices. The winner of the challenge was Solal Jacob who used the open source <a href="http://www.digital-forensic.org">Digital Forensic Framework</a>, and provides some new modules specifically for parsing memory dumps of Sony Ericsson K800i devices. Complete results are posted on the <a href="http://www.dfrws.org/2010/challenge/results.shtml">DFRWS Web site</a>.</p>
<p><br clear=all>The scenario for the DFRWS2010 Forensic Challenge involves an arms dealer named Monsieur Victor (a.k.a. &#8220;The General&#8221;) who was apprehended in the Netherlands and threw Sony Ericsson K800i in a nearby canal. The Netherlands Forensic Institute acquired data from NAND and NOR chips in the water damaged mobile device using Memory toolkit. The goal of the challenge is to recover leads relating to front companies, bank accounts and cohorts.</p>
<p><br clear=all>The winning submission provides a technical analysis of data structures found in memory dump from a Sony Ericsson K800i mobile device and provides DFF plug-ins that recover wear-leveling tables, enabling a forensic analyst to reconstruct the flash abstraction layer as shown here.</p>
<p><br clear=all>
<p style="text-align: center;">
<a href="http://blog.cmdlabs.com/wp-content/uploads/2010/08/ftl-reconstruction.png"><img class="aligncenter size-full wp-image-251" title="ftl-reconstruction" src="http://blog.cmdlabs.com/wp-content/uploads/2010/08/ftl-reconstruction.png" alt="" width="718" height="366" /></a></p>
<p><br clear=all><br />
Once the desired state of memory has been reconstructed, the DFF tool can be used to interpret the partition table and file systems on the mobile device as shown here.</p>
<p style="text-align: center;">
<a href="http://blog.cmdlabs.com/wp-content/uploads/2010/08/parse-filesystem.png"><img class="aligncenter size-full wp-image-252" title="parse-filesystem" src="http://blog.cmdlabs.com/wp-content/uploads/2010/08/parse-filesystem.png" alt="" width="694" height="412" /></a></p>
<p><br clear=all><br />
The resulting logical view show metadata associated with files and folders, including deleted items.</p>
<p style="text-align: center;"><a href="http://blog.cmdlabs.com/wp-content/uploads/2010/08/file-system-deleted.png"><img class="aligncenter size-full wp-image-253" title="file-system-deleted" src="http://blog.cmdlabs.com/wp-content/uploads/2010/08/file-system-deleted.png" alt="" width="863" height="461" /></a></p>
<p><br clear=all><br />
In addition, digital photographs recovered from mobile device memory can be previewed using the DFF as shown here.</p>
<p style="text-align: center;"><a href="http://blog.cmdlabs.com/wp-content/uploads/2010/08/photo-thumbs.png"><img class="aligncenter size-full wp-image-254" title="photo-thumbs" src="http://blog.cmdlabs.com/wp-content/uploads/2010/08/photo-thumbs.png" alt="" width="818" height="408" /></a></p>
<p><br clear=all>An interesting outcome of the challenge was that several contestants were able to extract substantial amounts of information from the physical memory dumps without understanding the logical arrangement of blocks or the file system. The implication is that, once full physical dumps of NAND and/or NOR memory are obtained from a mobile device, simple text extraction and file carving techniques can provide significant amounts of useful information, including deleted data.</p>
<p><br clear=all><br />
A logical acquisition created using Microsystemation’s XRY mobile device forensic tool is now available to facilitate further development such as interpretation of foreign characters. As an example, the logical view of SMS messages on the device used in the DFRWS2010 Forensic Challenge is shown here.<br />
<br clear=all><br />
<a href="http://blog.cmdlabs.com/wp-content/uploads/2010/08/XRY-logical.png"><img class="aligncenter size-full wp-image-250" title="XRY-logical" src="http://blog.cmdlabs.com/wp-content/uploads/2010/08/XRY-logical.png" alt="" width="686" height="459" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2010/08/30/winner-of-the-dfrws2010-forensic-challenge-announced/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advances in Windows Mobile Forensics</title>
		<link>http://blog.cmdlabs.com/2010/08/29/advances-in-windows-mobile-forensics/</link>
		<comments>http://blog.cmdlabs.com/2010/08/29/advances-in-windows-mobile-forensics/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 17:25:09 +0000</pubDate>
		<dc:creator>eoghan</dc:creator>
				<category><![CDATA[Mobile Device Forensics]]></category>
		<category><![CDATA[Cell Phone Forensics]]></category>
		<category><![CDATA[Embedded Databases]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Windows Mobile Forensics]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.com/?p=207</guid>
		<description><![CDATA[Recent research into important file formats on Windows Mobile devices has led to a breakthrough in mobile device forensics. Our improved understanding of the proprietary Microsoft embedded database format enables us to recover all available data from files such as cemail.vol, including deleted items. The papers and associated tools detailing these advances in Windows Mobile [...]]]></description>
			<content:encoded><![CDATA[<p>Recent research into important file formats on Windows Mobile devices has led to a breakthrough in mobile device forensics. Our improved understanding of the proprietary Microsoft embedded database format enables us to recover all available data from files such as cemail.vol, including deleted items.<br />
<br />
The papers and associated tools detailing these advances in Windows Mobile forensic analysis are published in the <a href="http://www.digitalinvestigation.net">Journal of Digital Investigation</a>. The most recent special issue on forensic analysis of embedded systems contains two papers: <em>Introduction to Windows Mobile Forensics</em> and <em>Windows Mobile Advanced Forensics</em>.<br />
<br />
<em>Introduction to Windows Mobile Forensics</em> by Eoghan Casey, Michael Bann and John Doyle covers the fundamentals of Windows Mobile systems, embedded database formats and tools for acquiring and examining these systems in a forensic context. A table from this paper is provided here, listing potentially useful sources of evidence on Windows Mobile devices.</p>
<p style="text-align: center;"><a href="http://blog.cmdlabs.com/wp-content/uploads/2010/08/Table.jpg"><img class="aligncenter size-full wp-image-208" title="Table 1" src="http://blog.cmdlabs.com/wp-content/uploads/2010/08/Table.jpg" alt="" width="822" height="377" /></a></p>
<p style="text-align: center;">
<p><br clear=all><em>Windows Mobile Advanced Forensics</em> by Coert Klaver from the Netherlands Forensic Institute provides in-depth technical details about embedded database formats and tools for acquiring and examining this information. The author developed tools for interpreting data in embedded databases acquired from Windows Mobile devices, including deleted items.</p>
<p><br clear=all>An upcoming issues of the Journal of Digital Investigation contains the paper <em>Windows Mobile Advanced Forensics: An Alternative to Existing Tools</em> by Cpt. Frédérick Rehault from the French National Gendarmerie. The author developed custom boot loaders and file parsing tools to extract the maximum amount of information available from Windows Mobile devices. A small sample of the very detailed output from one customized tool is provided below, showing interpreted fields extracted from a text message in cemail.vol along with the location of associated content in the file system.</p>
<ul>
<code>[ MESSAGE ] &lt;&lt;&lt;&lt; VISIBLE &gt;&gt;&gt;&gt;<br />
Message Class : :  IPM.SMStext<br />
Message Flag (1:Read; 0:Unread) : 0x00000028<br />
Subject :  Love you too. Cant wait to see you tomorrow!<br />
Msg Status : 0x00040000 : SMS<br />
Delivery Time 2009-05-15 04:53:54<br />
Sender Email Address :  14435551212<br />
Sender Name :  14435551212<br />
Last Modification Date 2009-05-15 04:53:55<br />
Recipient Info: address &amp; name :   t£ lT SMS14105551212Steven…</p>
<p>-- Message Content Location --<br />
NORMALLY Stored in "\Windows\Messaging\ 453a000a xxxxxxxx.mpb "<br />
</code>
</ul>
<p>The tool also extracts the raw database record as shown here with all of the internal database fields:</p>
<ul>
<code>*************************************************************<br />
[ DEBUG ]: Found RECORD HEADER at Offset 0x000b7e9c</code></p>
<p><code>[ DEBUG ]: hRecord 		= 0x00000a47<br />
[ DEBUG ]: hDBHandle 		= 0x00000060<br />
[ DEBUG ]: DataRecordSize		= 0x00b8<br />
[ DEBUG ]: CompDataRecordSize	= 0x009e<br />
[ DEBUG ]: Nb Props found = 12<br />
[ DEBUG ]: Flag 		= 0x4000 : Data might be compressed</p>
<p>00000000 45 0a 00 3a a0 00 00 00   0f 00 00 31 28 00 00 00   |E..:.......1(...|<br />
00000010 00 00 b0 25 58 00 4c 00   6f 00 76 00 65 00 20 00   |...%X.L.o.v.e. .|<br />
00000020 79 00 6f 00 75 00 20 00   74 00 6f 00 6f 00 2e 00   |y.o.u. .t.o.o...|<br />
00000030 20 00 43 00 61 00 6e 00   74 00 20 00 77 00 61 00   | .C.a.n.t. .w.a.|<br />
00000040 69 00 74 00 20 00 74 00   6f 00 20 00 73 00 65 00   |i.t. .t.o. .s.e.|<br />
00000050 65 00 20 00 79 00 6f 00   75 00 20 00 74 00 6f 00   |e. .y.o.u. .t.o.|<br />
00000060 6d 00 6f 00 72 00 72 00   6f 00 77 00 21 00 34 00   |m.o.r.r.o.w.!.4.|<br />
00000070 00 00 04 00 00 9d b0 25   19 d5 c9 01 16 00 31 00   |.......%......1.|<br />
00000080 34 00 34 00 33 00 35 00   35 00 35 00 31 00 32 00   |4.4.3.5.5.5.1.2.|<br />
00000090 31 00 32 00 16 00 31 00   34 00 34 00 33 00 35 00   |1.2…1.4.4.3.5.|<br />
000000a0 35 00 35 00 31 00 32 00   31 00 32 00 80 33 49 26   |5.5.1.2.1.2..3I&amp;|<br />
000000b0 19 d5 c9 01 47 0a 00 3b                             |....G..;|</p>
<p>+ List of properties in record:<br />
-- PropID[ 0 ] = 0x80050013 UI4 : 0x3a000a45<br />
-- PropID[ 1 ] = 0x80110013 UI4 : 0x000000a0<br />
-- PropID[ 2 ] = 0x001a0013 UI4 : 0x3100000f<br />
-- PropID[ 3 ] = 0x0e070013 UI4 : 0x00000028<br />
-- PropID[ 4 ] = 0x003d001f LPWSTR :<br />
-- PropID[ 5 ] = 0x0037001f LPWSTR : Love you too. Cant wait to see you tomorrow!<br />
-- PropID[ 6 ] = 0x0e170013 UI4 : 0x00040000<br />
-- PropID[ 7 ] = 0x0e060040 FILETIME 0x1c9d51925b09d00<br />
-- PropID[ 8 ] = 0x0c1f001f LPWSTR : 14435551212<br />
-- PropID[ 9 ] = 0x0c1a001f LPWSTR : 14435551212<br />
-- PropID[ 10 ] = 0x30080040 FILETIME 0x1c9d51926493380<br />
-- PropID[ 11 ] = 0x80010013 UI4 : 0x3b000a47</p>
<p></code></p>
</ul>
<p><br clear=all>cmdLabs covers forensic analysis of Windows Mobile and other mobile devices in the course we develop and teach for SANS (<a href="http://www.sans.org/security-training/mobile-device-forensics-4367-tid">FOR563 &#8211; Mobile Device Forensics</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2010/08/29/advances-in-windows-mobile-forensics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Pitfalls of File Initialization for Forensic Analysts</title>
		<link>http://blog.cmdlabs.com/2010/03/17/the-pitfalls-of-file-initialization-for-forensic-analysts/</link>
		<comments>http://blog.cmdlabs.com/2010/03/17/the-pitfalls-of-file-initialization-for-forensic-analysts/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 14:07:11 +0000</pubDate>
		<dc:creator>eoghan</dc:creator>
				<category><![CDATA[Forensic Analysis]]></category>
		<category><![CDATA[Digital Forensics]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[NTFS]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.com/?p=157</guid>
		<description><![CDATA[File initialization is a normal Windows file system behavior that can create problems for forensic analysts. We have encountered file initialization behaviors in a number of cases and find that it creates significant confusion if the underlying cause is not understood. In several cases, incomplete file initialization was misinterpret as backdating, and in another matter [...]]]></description>
			<content:encoded><![CDATA[<p>File initialization is a normal Windows file system behavior that can create problems for forensic analysts. We have encountered file initialization behaviors in a number of cases and find that it creates significant confusion if the underlying cause is not understood. In several cases, incomplete file initialization was misinterpret as backdating, and in another matter it hampered data salvaging efforts.<br />
<br clear=all><strong>  File Initialization</strong><br />
File initialization is a process that Microsoft Windows uses when creating a new file system entry. Basically, when a new file is being created, an appropriate amount of unallocated space is  reserved for the data that will be stored in the new file. Under certain circumstances, the storage space reserved for the new file may not be used in its entirety, or at all.</p>
<p><br clear=all>When only a portion of the disk space that was reserved for a new file is used to store data associated with that file, this leaves a discrepancy between the logical file size and the actual amount of data stored in the file. As a result, you can have a file that appears to have a logical size larger than the actual amount of data stored for that file. The space between the end of valid data and the end of file is called uninitialized space.</p>
<ul><em>&#8220;In NTFS, there are two important concepts of file length: the End of File (EOF) marker and the Valid Data Length (VDL). The EOF indicates the actual length of the file. The VDL identifies the length of valid data on disk. Any reads between VDL and EOF automatically return 0 in order to preserve the C2 object reuse requirement.&#8221; </em>(<a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fsutil_file.mspx">Microsoft fsutil documentation</a>)</ul>
<p>  </p>
<p>Uninitialized space is similar in concept to file slack except that it is contained within the logical file size. Unlike file slack which is no longer associated with a file, data in uninitialized space is in a kind of limbo, trapped at the end of an allocated file but not actually part of that file. </p>
<p><center><img src="http://blog.cmdlabs.com/wp-content/uploads/2010/03/UninitializedDiagram.jpg" alt="Uninitialized Diagram" title="Uninitialized Diagram" width="565" height="223" class="aligncenter size-full wp-image-158" /></center></p>
<p><center><strong>Figure</strong>: Diagram of file with a logical size that is larger than its valid data length, leaving uninitialized space</center></p>
<p><br clear=all>The effect of file initialization behaviors are most easily demonstrated on Windows XP with fsutil as shown here. First, we create a new file that can contain 1024 bytes: </p>
<ul><code>C:\Test>fsutil file createnew cmdLabs-setvaliddata 1024<br />
File C:\Test\cmdLabs-setvaliddata is created<br />
</code></ul>
<p><br clear=all>Then we set the valid data length of the new file to 1000 bytes, which leaves 24 bytes unused at the end of the file.</p>
<ul>
<code>C:\Test>fsutil file setvaliddata cmdLabs-setvaliddata 1000 <br />
Valid data length is changed</code>
</ul>
<p>NTFS captures the difference between logical file size and valid data length in two MFT fields as shown here:<br />
<br clear=all><br />
<center><img src="http://blog.cmdlabs.com/wp-content/uploads/2010/03/UninitializedMFT.jpg" alt="MFT Entry" title="MFT Entry" width="617" height="482" class="aligncenter size-full wp-image-193" /></center><br />
<center><strong>Figure:</strong>MFT entry with logical size and valid data length viewed using X-Ways Forensics</center></p>
<p><br clear=all><br />
<strong>Salvaging Data from File System Limbo</strong><br />
The significance of this from a forensic analysis standpoint is that a file with a valid data length smaller than the logical file size can contain data associated with two files: data associated with the new file (VDL bytes), and data from the old file in uninitialized space (logical file size &#8211; VDL bytes). </p>
<p><br clear=all><br />
From a forensic analysis perspective, this uninitialized space can be beneficial. While various disk cleaning utilities can be configured to wipe file slack, they generally do not touch data in uninitialized space. As a result, deleted data can remain in uninitialized space indefinitely, even despite data destruction efforts, and can be salvaged by forensic analysts.</p>
<p><br clear=all><br />
However, this arrangement of data can create complications for forensic analysts, particularly when dealing with larger files that have substantial amounts of uninitialized space. For instance, when carving for certain file types, it is common to export unallocated space. However, any data in uninitialized space will not be included in unallocated space. Similarly, when performing keyword searches, a forensic analyst could incorrectly attribute a hit in the uninitialized space with the new file.</p>
<p><br clear=all><br />
In one case, several approaches were employed in an effort to salvage video fragments:</p>
<ul>
<li>examined deleted video files still referenced by file system</li>
<li>performed file carving on unallocated space only</li>
<li>processed file slack only for fragments of video files</li>
</ul>
<p>None of these approaches recovered videos from a time period of interest. It was not until we conducted a forensic analysis of uninitialized space that additional video fragment were found.</p>
<p><br clear=all><br />
<strong>Misinterpreting Normal File System Behavior as Backdating </strong><br />
Another complication from a forensic analysis standpoint arises when the file creation process is interrupted before the contents of the file is written to disk, because the new file system entry will point to a cluster that still contains data associated with an older file. When this occurs and a date can be associated with the older file, forensic analysts might think that a newer file was overwritten by an older one. This phenomenon can be misinterpreted as evidence of backdating.</p>
<p><br clear=all>As an example, consider a newly created file that has not been initialized and has not had any associated data saved to disk as shown here using fsutil:</p>
<ul>
<code>C:\Test>fsutil file createnew cmdLabs-creatnew 1024<br />
File C:\Test\cmdLabs-creatnew is created<br />
</code>
</ul>
<p><br clear=all> When a file is initialized but the associated contents was not written to disk, the initialized file system entry may point to a cluster that contains old data as shown below using EnCase. By default, EnCase shows uninitialized space in blue text. The cluster that was allocated to the new file “cmdLabs-createnew” contains older data (folder entries of files from earlier in January).<br />
  </p>
<p><img src="http://blog.cmdlabs.com/wp-content/uploads/2010/03/fsutils-fileinit.bmp" alt="fsutils file initialization example" title="fsutils file initialization example" class="aligncenter size-full wp-image-147" /></p>
<p><center><strong>Figure</strong>: EnCase showing folder entries from early January in the cluster allocated to the new initialized file system entry</center></p>
<p><br clear=all>This situation can be misinterpreted as backdating if the forensic analyst assumes that the clock had to be set back to the old date when the file contents was saved to disk.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2010/03/17/the-pitfalls-of-file-initialization-for-forensic-analysts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handbook of Digital Forensics and Investigation Released</title>
		<link>http://blog.cmdlabs.com/2010/02/03/handbook-of-digital-forensics-and-investigation-released/</link>
		<comments>http://blog.cmdlabs.com/2010/02/03/handbook-of-digital-forensics-and-investigation-released/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 19:23:39 +0000</pubDate>
		<dc:creator>eoghan</dc:creator>
				<category><![CDATA[Forensic Analysis]]></category>
		<category><![CDATA[Cell Phone Forensics]]></category>
		<category><![CDATA[Digital Forensics]]></category>
		<category><![CDATA[Digital Investigation]]></category>
		<category><![CDATA[Embedded Systems Analysis]]></category>
		<category><![CDATA[Intrusion Investigation]]></category>
		<category><![CDATA[Mac Forensic Analysis]]></category>
		<category><![CDATA[Mobile Device Forensics]]></category>
		<category><![CDATA[Network Forensics]]></category>
		<category><![CDATA[UNIX Forensic Analysis]]></category>
		<category><![CDATA[Windows Forensic Analysis]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.com/?p=130</guid>
		<description><![CDATA[At long last and with the help of many talented experts, I have put together a new Handbook. This book provides an advanced reference for conducting digital investigations and performing forensic examinations. The first part of the book provides comprehensive methodologies and practical tips from experienced practitioners in the areas of forensic analysis, electronic discovery [...]]]></description>
			<content:encoded><![CDATA[<p>At long last and with the help of many talented experts, I have put together a new Handbook. This book provides an advanced reference for conducting digital investigations and performing forensic examinations. The first part of the book provides comprehensive methodologies and practical tips from experienced practitioners in the areas of forensic analysis, electronic discovery and intrusion investigation. The second part of the book delves into technical aspects of digital evidence on computers, networks, and embedded systems. The technologies covered include Windows, UNIX, and Macintosh computers, cellular telephones and other mobile devices, networks and mobile telecommunications technology.<br />
<br clear=all><br />
The Network Investigations chapter written by cmdLabs personnel is available in PDF form <a href="https://secure.tivilon.com/CMDLABS_COM/HandbookChapter9.aspx">upon request</a>.<br />
<br clear=all><br />
F-Response is giving a copy of the Handbook with purchase of their tool:<br />
<strong><a href="http://www.f-response.com/index.php?option=com_content&amp;amp;view=article&amp;amp;id=216%3 Abuy-f-response-get-a-copy-of-the-handbook-of-digital-forensics-and-investig ation&amp;amp;catid=34%3Ablog-posts&amp;amp;Itemid=58 ">Buy F-Response, Get a copy of The Handbook of Digital Forensics and Investigation</a><strong> </strong></strong></p>
<p><br clear=all><br />
<img src="http://blog.cmdlabs.com/wp-content/uploads/2010/02/Handbook2.jpg" alt="Handbook" title="Handbook" width="240" height="240" class="aligncenter size-full wp-image-140" /></p>
<p><strong><strong><span style="font-weight: normal;"><em> My deepest thanks to the contributors: Cory Altheide (Mandiant) &#8211; Christopher Daywalt (cmdLabs) &#8211; Andrea de Donno (Lepta) &#8211; Dario Forte (DFLabs) &#8211; James Holley (Ernst &amp; Young) &#8211; Andy Johnson (University of Maryland, Baltimore County) &#8211; Ronald van der Knijff (Netherlands Forensic Institute) &#8211; Anthony Kokocinski (CSC) &#8211; Paul Luehr (Stroz Friedberg) &#8211; Terrance Maguire (cmdLabs) &#8211; Ryan Pittman (US Army) &#8211; Curtis Rose (Curtis W. Rose &amp; Associates) &#8211; Joseph Schwerha (TraceEvidence) &#8211; Dave Shaver (US Army) &#8211; Jessica Reust Smith (Stroz Friedberg).</em></span></strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2010/02/03/handbook-of-digital-forensics-and-investigation-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delving into Mobile Device File Systems</title>
		<link>http://blog.cmdlabs.com/2009/12/10/delving-into-mobile-device-file-systems/</link>
		<comments>http://blog.cmdlabs.com/2009/12/10/delving-into-mobile-device-file-systems/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:17:38 +0000</pubDate>
		<dc:creator>Christopher</dc:creator>
				<category><![CDATA[Mobile Device Forensics]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.com/?p=128</guid>
		<description><![CDATA[Mobile device forensics tools have come a long way in the past year, giving us access to more data on a wider range of devices. Even when a full copy of physical memory is not possible, for many devices the complete logical file system can be acquired. Although this generally does not include deleted items, [...]]]></description>
			<content:encoded><![CDATA[<p>Mobile device forensics tools have come a long way in the past year, giving us access to more data on a wider range of devices. Even when a full copy of physical memory is not possible, for many devices the complete logical file system can be acquired. Although this generally does not include deleted items, it can still provide access to substantial digital evidence including MMS messages, IM fragments, and Web browsing history.</p>
<p><br clear=all>However, even when a tool can acquire the entire file system from a mobile device, it may not be able to display items of interest like MMS messages. In such situations, the forensic examiner must locate the desired information within the file system and interpret it themselves.</p>
<p><br clear=all>This is one of the main reasons why it is important for practitioners to have an understanding of the underlying technology, and not be overly reliant on automated tools.</p>
<h3>Locating MMS Data</h3>
<p>A good example of when a tool can acquire but not display evidence of interest came up in a recent case involving MMS messages on a Verizon LG phone. Although the commonly used tool called Cellebrite could acquire data from the mobile device, including a copy of the file system, it did not present MMS messages in the output report. As a result, the investigating agency was only able to view the incriminating evidence through the device itself by performing a manual &#8220;scroll&#8221; examination.</p>
<p><br clear=all>Until cmdLabs came along to help…</p>
<p><br clear=all>By examining the file system acquire using Cellebrite, we found MMS messages in the &#8220;mms&#8221; folder on the LG device. For the sake of illustration, this file system location is shown using BitPim.</p>
<p style="text-align: center;"><img class="size-full wp-image-51 aligncenter" title="MMS BitPim" src="http://blog.cmdlabs.com/wp-content/uploads/2009/12/MMS-BitPim.jpg" alt="MMS BitPim" width="717" height="365" /></p>
<p><br clear=all>The MMSMsg.db file contains metadata associated with the messages, and the PDU files contain the original file name as well as the actual data of the pictures and videos in the message. The header of one PDU file is shown here, revealing some Synchronized Multimedia Integration Language (SMIL) tags and the original file name on the device (0920091201a.3g2).</p>
<p style="text-align: center;"><img class="size-full wp-image-50 aligncenter" title="PDU Header" src="http://blog.cmdlabs.com/wp-content/uploads/2009/12/XWays-PDU.jpg" alt="PDU Header" width="612" height="204" /></p>
<p><br clear=all>Even after the original video file is deleted from the device, a copy remains in the MMS message.</p>
<h3>Extracting MMS Data</h3>
<p>The media portion of the PDU message file can be extracted using simple file carving techniques. Although you could remove the file header manually using a hex editor, it is more effective to use a file carving tool like Foremost. By automating the file carving process, your process is repeatable. In addition, Foremost generates an audit log that can be useful for forensic documentation purposes.</p>
<p><br clear=all>The file header (a.k.a. signature) of the 3gp videos from an LG VX series device is &#8220;ftyp3g2a&#8221; preceded by 4 bytes. The configuration entry for the Foremost file carving tool is shown here:</p>
<ul>
<pre>3gp	y	4000000	????\x66\x74\x79\x70\x33\x67\x32\x61</pre>
</ul>
<p>Using a configuration file that contains the above signature, the command &#8216;<font face="courier">foremost -c foremost.conf MMS*</font>&#8216; will extract the 3gp video content from PDU files acquired from an LG device. The resulting videos will be saved in the default Foremost output directory and can be played using Quicktime as shown here.</p>
<p style="text-align: center;"><img src="http://blog.cmdlabs.com/wp-content/uploads/2009/12/Quicktime.jpg" alt="Quicktime" title="Quicktime" width="454" height="348" class="aligncenter size-full wp-image-229" /></p>
<p><br clear=all>For those forensic practitioners who are interested in learning more about mobile device forensics and related data recovery techniques, cmdLabs is teaching the SANS Mobile Device Forensic course (SEC 563) in <a href="http://www.sans.org/security-east-2010/description.php?tid=3377">New Orleans</a> from January 11–15, 2010 and again in <a href="http://www.sans.org/san-antonio-2010-cs/description.php?tid=3377">San Antonio</a> from January 25–29, 2010.</p>
<p><a href="http://www.sans.org/security-east-2010/description.php?tid=3377"><img src="http://blog.cmdlabs.com/wp-content/uploads/2009/12/sec563_9_785x90.jpg" alt="sec563_9_785x90" title="sec563_9_785x90" width="785" height="90" class="aligncenter size-full wp-image-97" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2009/12/10/delving-into-mobile-device-file-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQLite for Digital Forensic Practitioners</title>
		<link>http://blog.cmdlabs.com/2009/08/21/sqlite-for-digital-forensic-practitioners/</link>
		<comments>http://blog.cmdlabs.com/2009/08/21/sqlite-for-digital-forensic-practitioners/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 19:05:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Forensic Analysis]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.host.tivilon.com/?p=7</guid>
		<description><![CDATA[An increasing number of programs are employing SQLite to store data that can be of relevance in an investigation. Forensic practitioners who become familiar with SQLite and learn how to interpret these files will be in a better position to obtain the most usable information from available digital evidence. We cover this and other useful [...]]]></description>
			<content:encoded><![CDATA[<p>An increasing number of programs are employing SQLite to store data that can be of relevance in an investigation. Forensic practitioners who become familiar with SQLite and learn how to interpret these files will be in a better position to obtain the most usable information from available digital evidence. We cover this and other useful forensic techniques in our Mobile Device Forensics course (<a href="http://www.sans.org/training/description.php?mid=1297">SANS SEC563</a>).</p>
<p><br clear=all>Backup files from an iPhone or iPod Touch provide an excellent example of SQLite databases that digital forensic examiners can exploit with relative ease, provided they are not encrypted. Data backed up from an iPhone using iTunes such as call logs, contacts, multimedia, and other files are, by default, stored in SQLite database files under &#8220;~/Library/Application/Support/MobileSync/Backup&#8221; Mac. On Windows XP these backup files are stored in the user&#8217;s profile under &#8220;C:\Documents and Settings\[userprofile]\Application Data\Apple Computer\MobileSync\Backup&#8221; and Windows Vista has a &#8220;Roaming&#8221; subfolder in this path.</p>
<p><br clear=all>SQLite databases can be examined using a command line tool like sqlite3.exe (http://www.sqlite.org/) or with a GUI tool like SQLite Database Browser (http://sqlitebrowser.sourceforge.net/) shown here with the call log backed up from an iPhone.</p>
<p style="text-align: center;"><img src="http://blog.cmdlabs.com/wp-content/uploads/2009/08/SQLite-browser1.jpg" alt="" title="SQLite-browser1" width="840" height="426" class="aligncenter size-full wp-image-246" /></p>
<p><br clear=all>The dates are in Unix string format and can be converted using Perl as shown here:</p>
<ul>
<pre>$ perl -e "print scalar(gmtime(1247848584))"
Fri Jul 17 16:36:24 2009</pre>
</ul>
<p><br clear=all>The use of SQLite databases gives forensic practitioners the ability to query the available data directly using the SQL database language. Although a full treatment of SQL is beyond the scope of this discussion, simple examples are provided here to get you started.</p>
<ul>
<pre>C:\&gt;sqlite3.exe E:\iPhoneBackup\call_history.db
SQLite version 3.6.16
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite&gt; .tables
_SqliteDatabaseProperties call
sqlite&gt; select * from call WHERE address like '%868%';
2|+186835xxxxx|1247848584|60|4|-1
3|+186835xxxxx|1247853361|0|5|-1
4|+186835xxxxx|1247854453|0|5|-1
9|+186831xxxxx|1247895923|60|4|-1
10|+186835xxxxx|1247936960|60|5|-1
11|+186835xxxxx|1247941792|0|4|-1
12|+186835xxxxx|1247941827|0|4|-1
13|+186835xxxxx|1247941920|0|4|-1
14|+186835xxxxx|1247942844|0|4|-1
16|+186835xxxxx|1248015352|60|4|-1
17|+186835xxxxx|1248015674|0|4|-1
18|+186835xxxxx|1248016092|0|5|-1
26|+186835xxxxx|1248177103|0|5|3</pre>
</ul>
<p><br clear=all>The Symbian operating system for mobile devices also makes use of SQLite databases, and other computer applications store investigatively useful information in SQLite databases, including Firefox 3 and Skype. For instance, the moz_places table in the places.sqlite file from Firefox 3 is shown below.</p>
<p style="text-align: center;"><img src="http://blog.cmdlabs.com/wp-content/uploads/2009/08/SQLite-browser2.jpg" alt="" title="SQLite-browser2" width="840" height="453" class="aligncenter size-full wp-image-247" /></p>
<p><br clear=all>This file can also be queried using SQL, as shown here being queried for all URLs containing the cmdLabs web site.</p>
<ul>
<pre>C:\tools&gt;sqlite3 E:\firefox\places.sqlite
SQLite version 3.6.16
Enter ".help" for instructions
Enter SQL statements terminated with a ";"

sqlite&gt; .tables
moz_anno_attributes  moz_favicons         moz_keywords
moz_annos            moz_historyvisits    moz_places
moz_bookmarks        moz_inputhistory
moz_bookmarks_roots  moz_items_annos

sqlite&gt; select * from moz_places WHERE url like '%cmdlabs%';
621|<a href="http://www.cmdlabs.com/">http://www.cmdlabs.com/</a>|Home|moc.sbaldmc.www.|1|0|1||2000
622|<a href="http://www.cmdlabs.com/page11/page11.html">http://www.cmdlabs.com/page11/page11.html</a>|Blog|moc.sbaldmc.www.|1|0|0||100
623|<a href="http://www.cmdlabs.com/services/services.html">http://www.cmdlabs.com/services/services.html</a>|Services|moc.sbaldmc.www.|1|0|0||100
624|<a href="http://www.cmdlabs.com/services/services/services-4.html">http://www.cmdlabs.com/services/services/services-4.html</a>|Training and Education|moc.sbaldmc.www.|1|0|0||100</pre>
</ul>
<p><br clear=all>Programs like Firefox that maintain usage records in these databases may leave remnants of deleted items that may be recoverable from unallocated disk space as detailed in Murilo Tito Pereira&#8217;s article &#8220;Forensic analysis of the Firefox 3 internet history and recovery of deleted SQLite records&#8221; (www.digitalinvestigation.net).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2009/08/21/sqlite-for-digital-forensic-practitioners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SANS Presentation Webcast Posted</title>
		<link>http://blog.cmdlabs.com/2009/07/15/sans-presentation-webcast-posted/</link>
		<comments>http://blog.cmdlabs.com/2009/07/15/sans-presentation-webcast-posted/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 14:51:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mobile Device Forensics]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.host.tivilon.com/?p=15</guid>
		<description><![CDATA[Eoghan Casey delivered the presentation “Expert Briefing: Mobile Device Forensics Essentials” on behalf of cmdLabs at the SANS WhatWorks in Forensics and Incident Response Summit on July 8. SANS has made this presentation available via webcast at the following URL: https://www.sans.org/webcasts/show.php?webcastid=92648 If you have any comments or suggestions regarding the presentation or anything else, please [...]]]></description>
			<content:encoded><![CDATA[<p>Eoghan Casey delivered the presentation “Expert Briefing: Mobile Device Forensics Essentials” on behalf of cmdLabs at the SANS WhatWorks in Forensics and Incident Response Summit on July 8. SANS has made this presentation available via webcast at the following URL:</p>
<p><a href="https://www.sans.org/webcasts/show.php?webcastid=92648">https://www.sans.org/webcasts/show.php?webcastid=92648</a></p>
<p>If you have any comments or suggestions regarding the presentation or anything else, please shoot us an e-mail at contact@cmdlabs.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2009/07/15/sans-presentation-webcast-posted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deeply Embedded Metadata</title>
		<link>http://blog.cmdlabs.com/2009/05/27/deeply-embedded-metadata/</link>
		<comments>http://blog.cmdlabs.com/2009/05/27/deeply-embedded-metadata/#comments</comments>
		<pubDate>Wed, 27 May 2009 13:23:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Forensic Analysis]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[OLE]]></category>
		<category><![CDATA[structured storage files]]></category>
		<category><![CDATA[timestamps]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.host.tivilon.com/?p=21</guid>
		<description><![CDATA[Here are some examples of lesser known application metadata in Microsoft Office documents that we have encountered in casework, and that we presented at the annual meeting of the American Academy of Forensic Sciences in February. Files created using Microsoft Office applications have more metadata than many forensic practitioners realize. Word documents, Excel spreadsheets, Powerpoint [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some examples of lesser known application metadata in Microsoft Office documents that we have encountered in casework, and that we presented at the annual meeting of the American Academy of Forensic Sciences in February.</p>
<p><br clear=all>Files created using Microsoft Office applications have more metadata than many forensic practitioners realize. Word documents, Excel spreadsheets, Powerpoint presentations, and Outlook e-mail messages are essentially a file system within a file. They are structured storage files that use OLE to create the equivalent of folders (called storages) and files (called streams).</p>
<p><br clear=all>For example, consider metadata embedded within Word 2003 documents. The Summary Information metadata extracted from a Word document using Harlan Carvey&#8217;s wmd.pl Perl script is shown here:</p>
<ul>
<pre>
--------------------
Summary Information
--------------------
Title : cmdLabs
Subject :
Authress : LastName FirstName
LastAuth : LastName FirstName
RevNum : 39
AppName : Microsoft Word 11.4.2
Created : 01.28.2009, 12:12:00
Last Saved : 02.05.2009, 00:36:00
Last Printed : 02.03.2009, 15:08:00
</pre>
</ul>
<p><br clear=all>Beyond the Summary Information metadata that most forensic practitioners are familiar with and many tools can extract, Word documents also have a FILETIME value in the ROOT ENTRY header that records the last time a document was altered. This value can provide the last modified time of a document even if the timestamps in the file system or Summary Information metadata have been maliciously altered (utilities are available that make such tampering simple).</p>
<p><br clear=all>An example of this date-time stamp in the ROOT ENTRY header is provided here (2/5/2009 12:36:04 AM):</p>
<p><img class="alignnone size-full wp-image-22" title="rootentry-filetime" src="http://blog.cmdlabs.host.tivilon.com/wp-content/uploads/2009/05/rootentry-filetime.jpg" alt="rootentry-filetime" width="833" height="70" class="aligncenter size-full wp-image-233" /></p>
<p><br clear=all>Forensic examiners should also be aware that Microsoft Office documents have embedded metadata associated with individual objects within the file, as shown here using SSView (http://www.mitec.cz/).</p>
<p><br clear=all><br />
<img class="alignnone size-full wp-image-23" title="ssview-object-metadata" src="http://blog.cmdlabs.host.tivilon.com/wp-content/uploads/2009/05/SSView-Object-Metadata.jpg" alt="ssview-object-metadata" width="793" height="392" class="aligncenter size-full wp-image-234" /></p>
<p><br clear=all>Excel also contains an abundance of metadata stored within its Binary Interchange File Format (BIFF5 &#8211; 8). For instance, the cells that were selected the last time a spreadsheet was saved, and the registered name that most recently opened the document with write access. Much of this metadata is accessible using BIFFView (http://b2xtranslator.sourceforge.net). A portion of the BIFFView output with the WRITEACCESS field is show here:</p>
<p><br clear=all><br />
<img class="alignnone size-full wp-image-24" title="biffview-output" src="http://blog.cmdlabs.host.tivilon.com/wp-content/uploads/2009/05/biffview-output.jpg" alt="biffview-output" width="819" height="217" class="aligncenter size-full wp-image-235" /></p>
<p><br clear=all>Reading the documented file formats of Microsoft Office files (http://msdn.microsoft.com/en-us/library/cc313118.aspx) can help forensic practitioners delve deeper into metadata, but can also be misleading and inaccurate. Therefore, it is crucial to perform controlled experiments to locate and understand the meaning of specific metadata.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2009/05/27/deeply-embedded-metadata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Mobile &#8211; Forensic Acquisition Challenges</title>
		<link>http://blog.cmdlabs.com/2009/05/17/windows-mobile-forensic-acquisition-challenges/</link>
		<comments>http://blog.cmdlabs.com/2009/05/17/windows-mobile-forensic-acquisition-challenges/#comments</comments>
		<pubDate>Mon, 18 May 2009 00:32:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mobile Device Forensics]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.host.tivilon.com/?p=31</guid>
		<description><![CDATA[In Mobile Device Forensics, it is often necessary to use multiple methods and tools to obtain the most useful information from the device. For example, let us look at acquisition challenges associated with Windows Mobile. Security configuration is one of the first barriers to acquiring digital evidence from a device running Windows Mobile, even when [...]]]></description>
			<content:encoded><![CDATA[<p>In Mobile Device Forensics, it is often necessary to use multiple methods and tools to obtain the most useful information from the device. For example, let us look at acquisition challenges associated with Windows Mobile.</p>
<p><br clear=all>Security configuration is one of the first barriers to acquiring digital evidence from a device running Windows Mobile, even when there is no password protection. The reason is simple: Windows Mobile is often configured to prevent unsigned applications from running. Many forensic tools need to transfer and execute a customized application on the mobile device in order to acquire data. So, if the software agent for a particular forensic tools is not signed, it will not run and you will not get any data.</p>
<p><br clear=all>Even when this security protection is disabled, files that are routinely used by the operating system cannot be copied using certain tools, including some forensic acquisition tools. For instance, an attempt to copy the pim.vol file using Microsoft&#8217;s Remote File Viewer generates an error as shown here.</p>
<p><img src="http://blog.cmdlabs.com/wp-content/uploads/2009/05/remote-file-view-error.jpg" alt="" title="remote-file-view-error" width="461" height="374" class="aligncenter size-full wp-image-239" /></p>
<p><br clear=all>In the case of pim.vol, this file can be copied logically when a Windows Mobile device is mounted via ActiveSync. However, you will have no such luck copying files like cemail.vol and the registry (mxip_system.vol) in this way. Although some mobile device forensic tools can extract limited information from these locked files, it is important to also have a copy of the original file for forensic examination.</p>
<p><br clear=all><strong>Warning</strong>: some forensic tools will appear to copy files that are locked by the Windows Mobile operating system, but do not actually acquire the contents, resulting in an empty file container in the case file. The tool may tag the file as locked, but there is not log/error generated so you would have to be looking closely at the specific file to see this. An unsuspecting forensic examiner might perform a keyword search of acquired data with no results, not realizing that relevant data had not been acquired.</p>
<p><br clear=all>To gain access to more digital evidence on Windows Mobile devices, including some deleted data, it is necessary to get physical. For example, using a forensic tool like XACT, which is designed to acquire and analyze physical memory of mobile devices, it is possible to extract significant amounts of data from Windows Mobile devices, including files like cemail.vol, pim.vol, and the registry. Data in an acquired cemail.vol file, which includes text message (SMS), are displayed here with some text readily viewable.</p>
<p><img src="http://blog.cmdlabs.com/wp-content/uploads/2009/05/wm-blog1-1.jpg" alt="" title="wm-blog1-1" width="784" height="507" class="aligncenter size-full wp-image-240" /></p>
<p><br clear=all>Acquiring these files is only the first challenge. It is then necessary to interpret the data they contain. Interpreting text message and other useful data structures found in files and raw memory on mobile devices can give additional interesting information, including associated metadata. One approach that can be effective in some cases is to view the acquired file in a Windows Mobile emulator using a utility like Pocket dbExplorer. Although it can be fruitful to examine acquired data in this way, it may not provide access to all of the information you might be interested in relating to an investigation. This is why it is important to also use forensic tools that can query the operating system for specific details about the data it contains (even if they cannot copy the entire container file). Acquiring the same Windows Mobile device using .XRY provides the following valuable metadata associated with the raw data displayed above, including the timestamp associated with the message and what folder it is stored in on the device.</p>
<p><img src="http://blog.cmdlabs.com/wp-content/uploads/2009/05/wm-blog1-2.jpg" alt="" title="wm-blog1-2" width="880" height="352" class="aligncenter size-full wp-image-241" /></p>
<p><br clear=all>Bottom line: to obtain the most information from an evidentiary device it is advisable to acquire data using multiple tools and, wheneve feasible, performing both a logical and physical acquisition. In the upcoming SANS Mobile Device Forensics course [http://www.sans.org/training/description.php?mid=1297] in Baltimore on July 27-31, we cover logical and physical acquisition and analysis of cell phones. We have plenty  of hands-on exercises employing a variety of tools to help practitioners develop the ability to acquire and  analyze data from various kinds of mobile devices.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2009/05/17/windows-mobile-forensic-acquisition-challenges/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Misinterpretation of File System Timestamps</title>
		<link>http://blog.cmdlabs.com/2009/05/08/misinterpretation-of-file-system-timestamps/</link>
		<comments>http://blog.cmdlabs.com/2009/05/08/misinterpretation-of-file-system-timestamps/#comments</comments>
		<pubDate>Fri, 08 May 2009 19:43:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tool Validation]]></category>
		<category><![CDATA[FAT]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[timestamps]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://blog.cmdlabs.host.tivilon.com/?p=38</guid>
		<description><![CDATA[Despite the fact that FAT is one of the earliest file systems that forensic practitioners had to deal with, there are still gaps in knowledge that result in misinterpretation and misrepresentation. A prime example of this is the create time in FAT, which is not calculated correctly by some forensic tools. This issue came up [...]]]></description>
			<content:encoded><![CDATA[<p>Despite the fact that FAT is one of the earliest file systems that forensic practitioners had to deal with, there are still gaps in knowledge that result in misinterpretation and misrepresentation. A prime example of this is the create time in FAT, which is not calculated correctly by some forensic tools. This issue came up in a recently discussion I had with Geoff Fellows (http://www.f3.org.uk/modules/smartclient/client.php?id=3). Although FAT last write timestamps only have a resolution of 2 seconds, whereas the create time has a resolution of 10 milliseconds that some forensic tools fail to take into account. A difference of milliseconds can be important in some cases, and any calculations based on an incorrect representation of creation timestamps will be incorrect.</p>
<p><br clear=all>The confusion arises from the fact that FAT file systems represent create and last write timestamps slightly differently. Last write timestamps are 32 bit little-endian values, interpreted as follows:</p>
<p><br clear=all><span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> 24                                16                8                0<br />
+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+<br />
|Y|Y|Y|Y|Y|Y|Y|M| |M|M|M|D|D|D|D|D| |h|h|h|h|h|m|m|m| |m|m|m|s|s|s|s|s|<br />
+-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+ +-+-+-+-+-+-+-+-+</span></p>
<p>\____________/\________/\_________/ \________/\____________/\_________/<br />
year        month      day        hour       minute       second</p>
<p><br clear=all>Take as an example the following FAT folder entry with the last write date highlighted in bold:</p>
<p><br clear=all><span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">$ icat /dev/sdb1 353884 | xxd<br />
0000000: 2e20 2020 2020 2020 2020 2030 004f b079  .          0.O.y<br />
0000010: 763a 763a 0000 b579 763a a502 0000 0000  v:v:</span>&#8230;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">yv:</span>&#8230;&#8230;<br />
<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> 0000020: 2e2e 2020 2020 2020 2020 2010 004f b079  ..         ..O.y<br />
0000030: 763a 763a 0000 b079 763a 6605 0000 0000  v:v:</span>&#8230;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">yv:f</span>&#8230;..<br />
<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> 0000040: 4173 0061 006c 0076 0065 000f 009e 6e00  As.a.l.v.e</span>&#8230;.<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">n.<br />
0000050: 6500 7700 3400 2e00 6700 0000 6900 6600  e.w.4</span>&#8230;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">g</span>&#8230;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">i.f.<br />
0000060: 5341 4c56 454e 7e31 4749 4620 0075 78b9  SALVEN~1GIF .ux.<br />
0000070: 753a 763a 0000 </span><span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; font-weight: bold;">78b9</span><span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span><span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; font-weight: bold;">753a</span><span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> 9212 c1d4 0000  u:v:..x.u:</span>&#8230;&#8230;<br />
<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> 0000080: 4269 0066 0000 00ff ffff ff0f 0014 ffff  Bi.f</span>&#8230;&#8230;&#8230;&#8230;<br />
<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> 0000090: ffff ffff ffff ffff ffff 0000 ffff ffff </span>&#8230;&#8230;&#8230;&#8230;&#8230;.</p>
<p><br clear=all>Converting to big-endian gives 3a 75 b9 78, which has the following binary representation:</p>
<p><br clear=all>00111010 01110101 10111001 01111000</p>
<p><br clear=all>This translates to a timestamp of 2009.03.21 23:11:48 as follows:</p>
<ul>
<li>7 bits = 0011101 = 29 years since 1980</li>
<li>4 bits = 0011 = 3 months</li>
<li>5 bits = 10101 = 21 days</li>
<li>5 bits = 10111 = 23 hours</li>
<li>6 bits = 001011 = 11 minutes</li>
<li>5 bits = 11000 = 24 = 48 seconds</li>
</ul>
<p><br clear=all>Note that 5 bits cannot store all 60 seconds, so last write timestamps must be incremented in 2 second intervals, and is always an even number of seconds.</p>
<p><br clear=all>Although the create time follows this same general calculation, it uses an additional 8 bits to represent one hundredths of a second. In the same directory listing above, the create timestamp is identical to the last modified timestamp except for an additional byte (75 78 b9 75 3a). The additional byte equates to 117 hundredths of a second, which brings the create time to 2009.03.21 23:11:49.17. Thus, the create time can have odd number of seconds, and has a resolution of 10 milliseconds.</p>
<p><br clear=all>Older versions of XWays Forensics had the option to display timestamps to tenths of a second, and newer versions can be configured with greater precision as shown here:</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-39" title="directory_browser_options-x-ways" src="http://blog.cmdlabs.host.tivilon.com/wp-content/uploads/2009/05/directory_browser_options-x-ways.jpg" alt="directory_browser_options-x-ways" width="429" height="532" class="aligncenter size-full wp-image-243" /></p>
<p><br clear=all>Note: Updated configuration screenshot showing increased precision in XWays 15.1 SR3 provided by Geoff Fellows.</p>
<p><br clear=all>The create timestamps for files copied onto a thumb drive are shown here in XWays Forensics with tenths of seconds displayed:</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-40" title="blog1-winhex-createtimes" src="http://blog.cmdlabs.host.tivilon.com/wp-content/uploads/2009/05/winhex-createtimes.jpg" alt="blog1-winhex-createtimes" width="430" height="292" class="aligncenter size-full wp-image-244" /></p>
<p><br clear=all>However, some other forensic tools like TSK only interpret the first four bytes of the create date-time stamp, limiting the resolution to 2 seconds. This is demonstrated in the following listing of the same files as those listed above using XWays (we have reported this bug and it will be fixed in the next release of TSK).</p>
<p><br clear=all><span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">$ fls -l /dev/sdb1 353884 | awk {&#8216;print $3 </span>&#8220;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">\t</span>&#8220;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> $10 </span>&#8220;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">\t</span>&#8220;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> $11 </span>&#8220;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span>&#8220;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;"> $12&#8242;} | sort </span>&#8211;<span style="font-family: Courier,mono; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal;">key 2<br />
snake_oil.jpg					2009.03.21	 23:03:32 (EDT)<br />
orange-Clark_Stanley_Snake_Oil.png	2009.03.21	 23:04:32 (EDT)<br />
orange-OilKingLrg.jpg			2009.03.21	 23:04:48 (EDT)<br />
orange-Drs_Mixer.jpg				2009.03.21	 23:05:24 (EDT)<br />
orange-Hostetters_Bitters.jpg		2009.03.21	 23:05:42 (EDT)<br />
orange-wine_of_tar.jpg			2009.03.21	 23:05:54 (EDT)<br />
orange-medsh17.jpg				2009.03.21	 23:06:04 (EDT)<br />
orange-miraclecure.jpg			2009.03.21	 23:06:14 (EDT)<br />
snakeoil.jpg					2009.03.21	 23:07:22 (EDT)<br />
snake-oil2.jpg					2009.03.21	 23:08:16 (EDT)<br />
banjsalv.jpg					2009.03.21	 23:11:30 (EDT)<br />
salvenew4.gif					2009.03.21	 23:11:48 (EDT)<br />
yankdcornsalvelg.jpg				2009.03.21	 23:12:36 (EDT)<br />
liniment-for-man-and-beast.jpg		2009.03.21	 23:12:50 (EDT)<br />
Thumbs.db						2009.03.22	 14:25:12 (EDT)</span></p>
<p><br clear=all>This issue was recently fixed in EnCase version 6.12, and is documented in the release note as &#8220;339: EnCase does not read FAT Create Date correctly (BUGID67).&#8221; EnCase version 6.12 now displays the create time to the correct second but not the hundredth of a second.</p>
<p><br clear=all>If a forensic examiner is not aware of this error, it can not only introduce inaccuracies into his/her findings, it can also reflect poorly on his/her expertise in this area.</p>
<p><br clear=all>The fact that this bug has existed in EnCase and other widely used forensic tools clearly demonstrates the need to validate important findings using more than one tool. Furthermore, this issue demonstrates that forensic practitioners cannot simply push buttons and unquestioningly rely on the results, but rather must understand the underlying technology sufficiently to double check what their tools are reporting.</p>
<p><br clear=all>Another area relating to FAT file systems where current literature is incorrect is in file allocation strategies but that discussion is for another time&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cmdlabs.com/2009/05/08/misinterpretation-of-file-system-timestamps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
