<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>SANS Computer Forensics, Investigation, and Response</title>
	
	<link>http://blogs.sans.org/computer-forensics</link>
	<description>SANS Institute Computer Forensic Blog</description>
	<lastBuildDate>Mon, 09 Nov 2009 16:01:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/SANSForensics" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>How to Disrupt a Botnet</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/NnsRFfb8_GI/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/11/08/how-to-disrupt-a-botnet/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 19:58:07 +0000</pubDate>
		<dc:creator>Lenny Zeltser</dc:creator>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[Network Forensics]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[Reverse Engineering]]></category>

		<guid isPermaLink="false">http://blogs.sans.org/computer-forensics/?p=12996</guid>
		<description><![CDATA[The following note is inspired by the steps the folks at FireEye Malware Intelligence Lab took to disable the Mega-d/Ozdok bot network. People often wonder what it takes to shut down a botnet. Here are the key steps, which apply to &#8220;traditional&#8221; botnets, which don&#8217;t rely heavily on peer-to-peer protocols for their command and control [...]]]></description>
			<content:encoded><![CDATA[<p>The following note is inspired by the steps the folks at FireEye Malware Intelligence Lab took to <a href="http://blog.fireeye.com/research/2009/11/smashing-the-ozdok.html">disable the Mega-d/Ozdok bot network</a>. People often wonder what it takes to shut down a botnet. Here are the key steps, which apply to &#8220;traditional&#8221; botnets, which don&#8217;t rely heavily on peer-to-peer protocols for their command and control (C&amp;C) implementation; the number of hosts and domains that such botnets use can be sufficiently small that a group or an individual can disrupt the botnet by getting these IPs or domain names shut down.</p>
<p>Note that attempting to interfere with operations of a profitable botnet can be dangerous, as your actions may cause attackers to retaliate. Therefore, consider these steps as informational thoughts, rather than an encouragement to follow FireEye&#8217;s footsteps.</p>
<ol>
<li><strong>Obtain a copy of the bot through forensic analysis of a compromised system. </strong>It helps to get hands on several instances of the malicious program, in case multiple variants possess meaningful behavioral differences.</li>
<li><strong>Understand the bot&#8217;s command and control mechanism. </strong>How does the attacker control the botnet? Reverse-engineer the malicious program to understand the C&amp;C protocol and to get a sense for the commands the botnet understands. You may find a way to authenticate to the botnet and, posing as the attacker, commandeer it. (Warning: As Andre posted in the comments, &#8220;Logging on to network that is not your own, and issuing commands to take it over could potentially be considered illegal access.&#8221;)</li>
<li><strong>Identify which systems, if taken off line, could disrupt the botnet.</strong> To accomplish this, look for weaknesses in the command and control implementation, such as the reliance on a small set of servers to distribute commands or weakness in the C&amp;C servers&#8217; IP or domain names generation algorithm. (You may recall how researchers at UC-Santa Barbara <a href="http://www.darkreading.com/security/client/showArticle.jhtml?articleID=217201422">gained  control over an instance of the Torpig botnet</a>.)</li>
<li><strong>Contact ISPs hosting suspected C&amp;C servers.</strong> In your correspondence with them, present documentation that supports your claim that the systems they are hosting are being misused. Be specific about which IPs violate the ISP&#8217;s policy by acting maliciously and should be disabled.</li>
<li><strong>Contact registrars of C&amp;C domains.</strong> In your correspondence with them, present documentation that supports your claim that the domains they are hosting are being misused.  Be specific about which domains violate the registrar&#8217;s policy by being used for malicious purposes and should be disabled.</li>
<li><strong>Consider registering unused domains that the botnet&#8217;s C&amp;C mechanism may attempt to use later.</strong> This can be expensive, depending on the number of domain names associated with the botnet&#8217;s C&amp;C implementation.</li>
</ol>
<p>Botnets come in different shapes, sizes, and flavors. The steps above don&#8217;t apply to all of them, but they should give you a sense for how defenders can take action against traditional botnets. For an example of these steps in the context of a specific botnet, see  the &#8220;<a href="http://blog.fireeye.com/research/2009/11/smashing-the-ozdok.html">Smashing  the Mega-d/Ozdok botnet in 24 hours</a>&#8221; write-up by FireEye.</p>
<p>Have you taken steps to disrupt a botnet? Share your thoughts and experiences in the comments below.</p>
<p>&#8211; Lenny</p>
<p>Lenny Zeltser teaches the <a href="http://zeltser.com/reverse-malware/">Reverse-Engineering Malware course</a> at SANS Institute. You can find him on Twitter as <a href="http://twitter.com/lennyzeltser">@lennyzeltser</a>.</p>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F11%2F08%2Fhow-to-disrupt-a-botnet%2F&amp;t=How+to+Disrupt+a+Botnet&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F11%2F08%2Fhow-to-disrupt-a-botnet%2F&amp;title=How+to+Disrupt+a+Botnet&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=How+to+Disrupt+a+Botnet;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/NnsRFfb8_GI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/11/08/how-to-disrupt-a-botnet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/11/08/how-to-disrupt-a-botnet/</feedburner:origLink></item>
		<item>
		<title>3 Lists for Investigating Malware Incidents</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/3lfDB4eZMtY/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/11/07/lists-for-investigating-malware-incidents/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 04:24:14 +0000</pubDate>
		<dc:creator>Lenny Zeltser</dc:creator>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[Network Forensics]]></category>
		<category><![CDATA[Reverse Engineering]]></category>
		<category><![CDATA[Windows IR]]></category>

		<guid isPermaLink="false">http://blogs.sans.org/computer-forensics/?p=12966</guid>
		<description><![CDATA[When investigating an incident that involves malicious software, it helps to understand the context of the infection before starting to reverse the malware specimen. Some of the ways to accomplish this involves:

Examining the websites that may be associated with the incident, often because they are suspected in hosting exploits that acted as the infection vector
Obtaining [...]]]></description>
			<content:encoded><![CDATA[<p>When investigating an incident that involves malicious software, it helps to understand the context of the infection before starting to reverse the malware specimen. Some of the ways to accomplish this involves:</p>
<ul>
<li><strong>Examining the websites that may be associated with the incident,</strong> often because they are suspected in hosting exploits that acted as the infection vector</li>
<li><strong>Obtaining reputational data about IP addresses of systems involved in the incident,</strong> often because they are suspected of hosting malicious files that were dropped on the system, or acting as the command and control server for the attacker</li>
<li><strong>Looking up IP addresses associated with the infected organization in blocklists,</strong> to determine whether additional systems may have been performing malicious activities and may have gotten compromised</li>
<li><strong>Performing automated behavioral analysis of malware involved in the incident,</strong> to get a general sense for its characteristics to plan subsequent manual reverse-engineering tasks</li>
</ul>
<p>Each of the following pages lists 10 or so freely-available on-line tools for helping to perform the tasks outlined above:</p>
<ul>
<li><a href="http://zeltser.com/fighting-malicious-software/lookup-malicious-websites.html">On-Line Tools for Malicious Website Lookups</a></li>
<li><a href="http://zeltser.com/fighting-malicious-software/malicious-ip-blocklists.html">Blocklists of Suspected Malicious IPs and URLs</a></li>
<li><a href="http://zeltser.com/reverse-malware/automated-malware-analysis.html">Automated Malware Analysis Services</a></li>
</ul>
<p>What other on-line tools help understand the context of the infection? Tell us in comments below.</p>
<p>&#8211; Lenny</p>
<p>Lenny Zeltser teaches the <a href="http://zeltser.com/reverse-malware/">Reverse-Engineering Malware</a> course at SANS Institute. You can find him on Twitter as <a href="http://twitter.com/lennyzeltser">@lennyzeltser</a>.</p>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F11%2F07%2Flists-for-investigating-malware-incidents%2F&amp;t=3+Lists+for+Investigating+Malware+Incidents&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F11%2F07%2Flists-for-investigating-malware-incidents%2F&amp;title=3+Lists+for+Investigating+Malware+Incidents&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=3+Lists+for+Investigating+Malware+Incidents;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/3lfDB4eZMtY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/11/07/lists-for-investigating-malware-incidents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/11/07/lists-for-investigating-malware-incidents/</feedburner:origLink></item>
		<item>
		<title>An Analysis of SpyKing</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/vowg3S_Tf6Y/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/11/03/an-analysis-of-spyking/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 06:48:04 +0000</pubDate>
		<dc:creator>craigswright</dc:creator>
				<category><![CDATA[Computer Forensics]]></category>
		<category><![CDATA[Malware Analysis]]></category>

		<guid isPermaLink="false">http://blogs.sans.org/computer-forensics/?p=12451</guid>
		<description><![CDATA[In this post, I am going to touch on several methods of analysis used in discovering how a potentially malicious program functions. In this case, I have selected a covert surveillance program called SpyKing. The marketing hype concerning this program states:
“SpyKing Vista Spy secrectly logs all keystrokes, web sites, emails, chats &#38; IMs: MSN Messenger, [...]]]></description>
			<content:encoded><![CDATA[<p>In this post, I am going to touch on several methods of analysis used in discovering how a potentially malicious program functions. In this case, I have selected a covert surveillance program called SpyKing. The marketing hype concerning this program states:</p>
<p>“<em>SpyKing Vista Spy secrectly logs all keystrokes, web sites, emails, chats &amp; IMs: MSN Messenger, Windows Live Messenger, ICQ, AOL Messenger, AIM, Yahoo! Messenger, Windows Messenger and Skype. Takes screen snapshots at every X seconds like a surveillance camera. Displays exact activities, like MySpace, Facebook, PC games, online searches &amp; shopping, file transfers and webmails. You can receive reports remotely via emails or ftp</em>”.</p>
<p>As you can see from the image below, the site has been reported as a known attack site with a number of malicious scripts being located on their system.</p>
<p><img class="aligncenter size-full wp-image-12456" src="http://blogs.sans.org/computer-forensics/files/2009/11/image11.JPG" alt="image1" width="935" height="464" /></p>
<p>There is a trial and a commercial version of the software available. For this exercise, I have used the paid commercial version in order to gain the complete set of utilities and have all the features. This way there is little chance that the software will be located due to a trial feature that is removed in the commercial product.</p>
<p>A good number of the windows tools are either listed with the source or are from Sysinternals (http://live.sysinternals.com). In either case, these are free tools. I shall concentrate on the process instead of the results in this post as this will enable you to do your own analysis of other programs (and not to just rely on the work of another).</p>
<p>For this analysis, I have configured a Windows XP VM on my RHEL host. This is a clean host with no updates as yet. At present there is not a great deal going on in the system. From a networking perspective we can see a number of basic Windows ports listening.</p>
<p><img class="aligncenter size-full wp-image-12461" src="http://blogs.sans.org/computer-forensics/files/2009/11/image2.JPG" alt="image2" width="554" height="504" /></p>
<p>Next, I am creating an initial snapshot of the &#8220;AutoRuns&#8221;. These are the settings, programs, codecs etc that are loaded when Windows boots or when a number of other events occur (such as opening Internet Explorer).</p>
<p><img class="aligncenter size-full wp-image-12466" src="http://blogs.sans.org/computer-forensics/files/2009/11/image3.JPG" alt="image3" width="626" height="455" /></p>
<p>By saving the complete list, we can take snapshots (before, during and after) of the installation process. In this way, we get a list of the changes that have occurred on the system. We can isolate these and then associate them with the effect. To do this effectively, we need to capture a complete set of changes to the system. In Windows, this means the registry (below we are using the SysInternals Registry Monitor tool to capture all registry activity) and many other areas of the system.</p>
<p><img class="aligncenter size-full wp-image-12471" src="http://blogs.sans.org/computer-forensics/files/2009/11/image4.JPG" alt="image4" width="604" height="304" /></p>
<p>In addition, RegShot can be used to take before and after snapshots of the system as well as to create a comparison of the changes.</p>
<p><img class="aligncenter size-full wp-image-12476" src="http://blogs.sans.org/computer-forensics/files/2009/11/image5.JPG" alt="image5" width="301" height="306" /></p>
<p>We start with a before snapshot on our pristine system clicking “1<sup>st</sup> shot”.</p>
<p><img class="aligncenter size-full wp-image-12481" src="http://blogs.sans.org/computer-forensics/files/2009/11/image6.JPG" alt="image6" width="301" height="306" /></p>
<p>Later, following the install, we take another shot and at each shot, save the capture.</p>
<p><img class="aligncenter size-full wp-image-12486" src="http://blogs.sans.org/computer-forensics/files/2009/11/image7.JPG" alt="image7" width="567" height="423" /></p>
<p>Following the installation, RegShot will also allow us to directly compare the changes to the system.</p>
<p><img src="http://blogs.sans.org/computer-forensics/files/2009/11/image8.JPG" alt="image8" width="301" height="306" /></p>
<p>In addition to the registry, it is essential to monitor the file-system. From the image included below, we can see data being written to the “C:\Program Files\SKPCS\data” directory. This is the location where Spyking is saving data (more on this when we have covered the installation process).</p>
<p><img src="http://blogs.sans.org/computer-forensics/files/2009/11/image9.JPG" alt="image9" width="705" height="412" /></p>
<p>At the same time, we also monitor system processes. To capture the network information, we setup a capture using tcpdump with a host filter on the underlying linux system (that our VM’s are running on).</p>
<h1>Installing the software</h1>
<p>Now that we have setup the monitoring tools, we will want to install the software and capture what occurs in this process.</p>
<p>Start with the registered version of the software</p>
<p><img src="http://blogs.sans.org/computer-forensics/files/2009/11/image10.JPG" alt="image10" width="408" height="297" /></p>
<p>We can see from process explorer that Spyking spawns a separate process (is-S3N8.tmp).</p>
<p><img src="http://blogs.sans.org/computer-forensics/files/2009/11/image111.JPG" alt="image11" width="577" height="574" /></p>
<p>In this case we use the default folder. This is configurable and should only be used as an indication, not a definitive signature.</p>
<p><img class="aligncenter size-full wp-image-12516" src="http://blogs.sans.org/computer-forensics/files/2009/11/image12.JPG" alt="image12" width="440" height="622" /></p>
<p>As an exercise, I also attempted to reinstall Spyking over a running version of the software.</p>
<p><img class="aligncenter size-full wp-image-12521" src="http://blogs.sans.org/computer-forensics/files/2009/11/image13.JPG" alt="image13" width="378" height="163" /></p>
<p>Note that the folder may be hidden, but you still receive error messages if you attempt to write over it.</p>
<p><img class="aligncenter size-full wp-image-12526" src="http://blogs.sans.org/computer-forensics/files/2009/11/image14.JPG" alt="image14" width="507" height="396" /> So now back to the install. Here we have selected the default install folder.</p>
<p><img class="aligncenter size-full wp-image-12531" src="http://blogs.sans.org/computer-forensics/files/2009/11/image15.JPG" alt="image15" width="507" height="396" /></p>
<p>And we have installed the program successfully. Next comes the unlock section. Here we enter the details of our license. Without this, Spyking runs in demo mode and leaves a visible sign of being installed.</p>
<p><img class="aligncenter size-full wp-image-12536" src="http://blogs.sans.org/computer-forensics/files/2009/11/image16.JPG" alt="image16" width="608" height="554" /></p>
<p>Once we have unlocked it, we are taken to the setup wizard.</p>
<p><img class="aligncenter size-full wp-image-12541" src="http://blogs.sans.org/computer-forensics/files/2009/11/image17.JPG" alt="image17" width="548" height="384" /></p>
<p>Here we will monitor all activity. In this configuration, SpyKing is far more verbose and far easier to recover. The longer it is run and the more that it logs equals the easier it is to find information.</p>
<p><img class="aligncenter size-full wp-image-12546" src="http://blogs.sans.org/computer-forensics/files/2009/11/image18.JPG" alt="image18" width="548" height="384" /></p>
<p>In the second step of the wizard we set the ‘hotkey’. This is used to ‘unhide’ the program and make it available.</p>
<p><img class="aligncenter size-full wp-image-12551" src="http://blogs.sans.org/computer-forensics/files/2009/11/image19.JPG" alt="image19" width="548" height="384" /></p>
<p>Finally, we setup the location of the logging. Setting a spoofed host is simple (to act as an email server) and we can record the activity of the program. The information in these emails can be used as a signature for network detection. This would have to be validated against multiple versions of the software before relying on this and it will also do little against other spyware programs. The emails and logs are clear text however. This does make network based detection relatively simple.</p>
<p><img class="aligncenter size-full wp-image-12556" src="http://blogs.sans.org/computer-forensics/files/2009/11/image20.JPG" alt="image20" width="427" height="130" /></p>
<p>And we are ready to roll.</p>
<p><img class="aligncenter size-full wp-image-12561" src="http://blogs.sans.org/computer-forensics/files/2009/11/image21.JPG" alt="image21" width="221" height="117" /></p>
<p>Incidentally, when we setup the program, the licensed version uses an online activation.</p>
<p><img class="aligncenter size-full wp-image-12566" src="http://blogs.sans.org/computer-forensics/files/2009/11/image22.JPG" alt="image22" width="464" height="209" /></p>
<p>In the setup, it must be noted that the installation program sets up a UDP listener.</p>
<p><img class="aligncenter size-full wp-image-12571" src="http://blogs.sans.org/computer-forensics/files/2009/11/image23.JPG" alt="image23" width="443" height="519" /></p>
<p>This is bound to the localhost and no traffic was monitored to or from this port from the outside. More research should be made on what exactly this process does.</p>
<p>Well let’s log into the software.</p>
<p><img class="aligncenter size-full wp-image-12576" src="http://blogs.sans.org/computer-forensics/files/2009/11/image24.JPG" alt="image24" width="221" height="117" /></p>
<h2>Installed and Running</h2>
<p>Now that we have logged into the program, we are taken to the admin screen. Note that this is a registered version – this however still provides the option of purchasing more licenses online.</p>
<p><img class="aligncenter size-full wp-image-12581" src="http://blogs.sans.org/computer-forensics/files/2009/11/image25.JPG" alt="image25" width="730" height="503" /></p>
<p>This interface allows us to set individual actions for each of the monitoring sub-systems. We shall accept these options and look at a few options. First, there is an option to run the program as Administrator. This is where the program is most effective.</p>
<p><img class="aligncenter size-full wp-image-12586" src="http://blogs.sans.org/computer-forensics/files/2009/11/image26.JPG" alt="image26" width="449" height="329" /></p>
<p>Then as another example, we have the advanced admin section. We see that the hotkey is ALWAYS a combination of “Ctrl + Alt + *“ where * is a key of the users choice. This is not a function key.</p>
<p><img class="aligncenter size-full wp-image-12591" src="http://blogs.sans.org/computer-forensics/files/2009/11/image27.JPG" alt="image27" width="547" height="596" /></p>
<p>Hence, a user has a means of checking for the program. On top of this, a simple scanner hooking into the input function of the system could scan for all possible combinations in seconds.</p>
<p><img class="aligncenter size-full wp-image-12596" src="http://blogs.sans.org/computer-forensics/files/2009/11/image28.JPG" alt="image28" width="261" height="207" /></p>
<p>The list is a drop-down selection of 10 numerals and the 26 alpha keys. This is a total keyspace of 36 characters. The shift key does not come into this and detection for a home user is as simple as hitting 36 key combinations. In fact, the reality is that this is a keyspace of les than 36 characters as some combinations are already seledcted and used by other system functions.</p>
<p>Next, with the program running in stealth mode I installed and ran the rootkit revealer program. This was used with the complete options selected:</p>
<p><img class="aligncenter size-full wp-image-12601" src="http://blogs.sans.org/computer-forensics/files/2009/11/image29.JPG" alt="image29" width="245" height="100" /></p>
<p>Here we have a couple strange entries, but nothing serious.</p>
<p><img class="aligncenter size-full wp-image-12606" src="http://blogs.sans.org/computer-forensics/files/2009/11/image30.JPG" alt="image30" width="716" height="425" /></p>
<p>Basically, the spyware program does not embed itself that deep into the system and kernel that it is detected as unusual.</p>
<h1>But why a VMWare image?</h1>
<p>There are several reasons for conducting analysis in a VM, one of which is it is simple to capture network traffic. Next is that you can setup a host once and use snapshots to gain several images and even reverse any mistakes you may make.</p>
<p>One strange occurrence that will require further investigation is the discovery of the Linux TcpDump command strings used on the host system being discovered in the PageFile of the system being monitored. My understanding was that this should not occur. Once we have this data, we can take the pcap network trace that we saved using tcpdump and run it through other tools. In this case, I used the following tools to analyse what was occurring:</p>
<ul>
<li>NTop (Produces a graphical summary of traffic and destinations)</li>
<li>DNStop (Summarises the domains and name lookups found in the network capture file)</li>
<li>Wireshark (provides a detailed graphical view of the data after the fact)</li>
<li>TCPReplay (Allows for the reconstruction of files from the network capture)</li>
</ul>
<p>Below we see a snapshot of our ‘chatty’ spy program.</p>
<p><img class="aligncenter size-full wp-image-12611" src="http://blogs.sans.org/computer-forensics/files/2009/11/image31.JPG" alt="image31" width="924" height="562" /></p>
<p>With a series of network captures, we see the emails, ftp and other traffic that is leaking the information from our host.</p>
<h1>Analysing the Running processes</h1>
<p>We see from “Process Explorer” that the ‘symserv.exe’ is listing on PID 1592. This process ID does vary, but it is possible to locate the processes and threads used by SpyKing as it is running.</p>
<p><img class="aligncenter size-full wp-image-12616" src="http://blogs.sans.org/computer-forensics/files/2009/11/image32.JPG" alt="image32" width="649" height="655" /></p>
<p>The PE Header information of this program makes a simple signature (far more effective than the presence of the default directory). With the Hex data from the PE Header, you can search the used and unused space on the drive image and discover this program (if it is installed).</p>
<h1>What about when we uninstall the program?</h1>
<p>Of course in attempting to remove the program we do not find that it is in the “Add / Remove Programs” list.</p>
<p><img class="aligncenter size-full wp-image-12621" src="http://blogs.sans.org/computer-forensics/files/2009/11/image33.JPG" alt="image33" width="734" height="534" /></p>
<p>We instead have to use the uninstall provided with the software.</p>
<p><img class="aligncenter size-full wp-image-12626" src="http://blogs.sans.org/computer-forensics/files/2009/11/image34.JPG" alt="image34" width="234" height="187" /></p>
<p>Clicking this takes us to the removal process.</p>
<p><img class="aligncenter size-full wp-image-12631" src="http://blogs.sans.org/computer-forensics/files/2009/11/image35.JPG" alt="image35" width="342" height="111" /></p>
<p>And we are sure.</p>
<p><img class="aligncenter size-full wp-image-12636" src="http://blogs.sans.org/computer-forensics/files/2009/11/image36.JPG" alt="image36" width="456" height="130" /></p>
<p>So it is now removed.</p>
<p><img class="aligncenter size-full wp-image-12641" src="http://blogs.sans.org/computer-forensics/files/2009/11/image37.JPG" alt="image37" width="339" height="130" /></p>
<p>At least from a normal user perspective it is removed.</p>
<p>With snapshots of the program installed and also with it removed, we now proceed to imaging the various systems.</p>
<h1>Lastly, the drive images</h1>
<p>In this case, the drive images are simple to analyse. Some programs hide themselves in “non-standard” structures, SpyKing is not one of these. Using the Helix CD image, dd for capture and the Autopsy forensic browser, the recovery of the program was simple.</p>
<p><img class="aligncenter size-full wp-image-12646" src="http://blogs.sans.org/computer-forensics/files/2009/11/image38.JPG" alt="image38" width="672" height="423" /></p>
<p>In the image above, we see the deleted “C:\Program Files\SKPCS” directory for the system we had uninstalled the program from. The program, sysserv.exe which forms a part of the running SpyKing program is no longer in the pagefile, but a number of strings related to this program can still be found a day later (subsequent to removal and a single reboot).</p>
<p>Below we see the image and analysis of the system that had SpyKing running (this was not yet removed).</p>
<p><img class="aligncenter size-full wp-image-12651" src="http://blogs.sans.org/computer-forensics/files/2009/11/image39.JPG" alt="image39" width="673" height="423" /></p>
<p>The program directory (although hidden when in Windows) is simple to find. On top of this, there are copious amounts of data related to the SpyKing program in the pagefile.</p>
<p>For a spyware program, this is a really large footprint.</p>
<p><img class="aligncenter size-full wp-image-12656" src="http://blogs.sans.org/computer-forensics/files/2009/11/image40.JPG" alt="image40" width="673" height="423" /></p>
<p>What was most unusual (and this can be seen in the image above) was the inclusion of the command that was run on the Linux host being uncovered in the Windows VMWare client. The linux memory and commands have been incorporated into the Windows VM host pagefile. This is so far something I have only been able to replicate on these hosts and is something that will require further research.</p>
<p>We have little information from the Autoruns program in this instance, but there is a voluminous trail of access information from the registry, process and file monitoring programs.</p>
<p>The result is that the best indication is to capture data at the network choke points. Where this is not feasible (or the analysis is after the fact), the review of file signatures is the next best option. This requires a binary search. The entire file of each of the binaries can be hashed and added to a known bad list, or alternatively, the PE header including the program optional headers can be used. The best programs to detect include:</p>
<ul>
<li>eventsys.exe</li>
<li>symserv.exe</li>
</ul>
<p>The sub-folders of the program should also be recoverable to see what has been leaking:</p>
<ul>
<li>data</li>
<li>logs</li>
<li>scrshot</li>
</ul>
<p>There are a number of programs that use the “symserv.exe” executable as a simple web search will demonstrate. There is a good likelihood that the person installing this software could also lose control of it creating a RAT on the system. As a consequence, this is not even a good option for the monitoring of your own system, let alone the issues connect to monitoring the systems of other people.</p>
<h1>Conclusion</h1>
<p>For all of the hype, SpyKing is simple to find. The program leaves a large system footprint for a ‘spyware’ system. It does not clean up after itself and has no covert network capability. Traffic is not encrypted or even XOR’d, so it is simple to set network based filters for this traffic. A BPF with TCPDump could be created to monitor for this without effort and a simple filter could easily be implemented on a pf or IPTables firewall to stop this connection and hence the leak.</p>
<p>Worst of all (or best depending on your opinion and goals), the software is simple to find in the registry and from a drive image – both when installed and after it has been removed.</p>
<p><em>Craig Wright is a Director with <a rel="#someid0" href="http://www.information-defense.com/">Information Defense</a> in Australia. He holds both the <a rel="#someid1" href="http://www.giac.org/certifications/gse-malware.php">GSE-Malware</a> and <a rel="#someid2" href="http://www.giac.org/certifications/gse-compliance.php">GSE-Compliance</a> certifications from GIAC (and the GSE as well). He is a perpetual student with numerous post graduate degrees including an LLM specializing in international commercial law and ecommerce law as well as working on his 4<sup>th</sup> IT focused Masters degree (Masters in System Development) from <a rel="#someid3" href="http://www.csu.edu.au/">Charles Stuart University</a> where he is helping to launch a Masters degree in digital forensics. He is involved with his second doctorate, a PhD on the quantification of information system risk at CSU.</em></p>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F11%2F03%2Fan-analysis-of-spyking%2F&amp;t=An+Analysis+of+SpyKing&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F11%2F03%2Fan-analysis-of-spyking%2F&amp;title=An+Analysis+of+SpyKing&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=An+Analysis+of+SpyKing;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/vowg3S_Tf6Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/11/03/an-analysis-of-spyking/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/11/03/an-analysis-of-spyking/</feedburner:origLink></item>
		<item>
		<title>Incident Detection Summit 2009 Webcast</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/JN438hiQgbE/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/11/02/incident-detection-summit-2009-webcast/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 04:45:44 +0000</pubDate>
		<dc:creator>sansinstitute</dc:creator>
				<category><![CDATA[Computer Forensics]]></category>

		<guid isPermaLink="false">http://blogs.sans.org/computer-forensics/?p=12411</guid>
		<description><![CDATA[Ken Bradley and Richard Bejtlich will conduct a Webcast for SANS on Monday 2 Nov at 1 pm EST.  Check out the sign-up page.
Every day, intruders find  ways to compromise enterprise assets around the world. To counter these  attackers, professional incident detectors apply a variety of host, network, and  other mechanisms [...]]]></description>
			<content:encoded><![CDATA[<p>Ken Bradley and Richard Bejtlich<a href="http://www.google.com/search?hl=en&amp;client=firefox-a&amp;rls=org.mozilla:en-US:official&amp;hs=OaU&amp;ei=qWPuSo-yHZD0Mce8mYQM&amp;sa=X&amp;oi=spell&amp;resnum=0&amp;ct=result&amp;cd=1&amp;ved=0CBMQBSgA&amp;q=richard+bejtlich&amp;spell=1"><strong><em></em></strong></a><strong><em> </em></strong>will conduct a Webcast for SANS on Monday 2 Nov at 1 pm EST.  Check out the <a href="https://www.sans.org/webcasts/professional-incident-detection-92939">sign-up</a> page.<br />
<em>Every day, intruders find  ways to compromise enterprise assets around the world. To counter these  attackers, professional incident detectors apply a variety of host, network, and  other mechanisms to identify intrusions and respond as quickly as efficiently as  possible.</em></p>
<p><em>In this Webcast, Richard Bejtlich, Director of Incident  Response for General Electric, and Ken Bradley, Information Security Incident  Handler for the General Electric Computer Incident Response Team, will discuss  professional incident detection. Richard will interview Ken to explore his  thoughts on topics like the following:<br />
</em></p>
<ol>
<li><em>How does one become a professional incident detector?</em></li>
<li>What are the differences between working as a consultant or as a member of a  company CIRT?</li>
<li>How have the incident detection and response processes changed over the last  decade?</li>
<li>What challenges make it difficult to identify intruders, and how can  security staff overcome these obstacles?</li>
</ol>
<p>Richard will lead this  event and conduct it more like a podcast, so the audio will be the important  part. This is a short-notice event, but it will be cool. Please join us. Thank  you!</p>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F11%2F02%2Fincident-detection-summit-2009-webcast%2F&amp;t=Incident+Detection+Summit+2009+Webcast&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F11%2F02%2Fincident-detection-summit-2009-webcast%2F&amp;title=Incident+Detection+Summit+2009+Webcast&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Incident+Detection+Summit+2009+Webcast;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/JN438hiQgbE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/11/02/incident-detection-summit-2009-webcast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/11/02/incident-detection-summit-2009-webcast/</feedburner:origLink></item>
		<item>
		<title>Have any training budget left for this year? Add a forensic analyst to your team!</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/p0RhXtcw1Hw/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/10/30/have-any-training-budget-left-for-this-year-add-a-forensic-analyst-to-your-team/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 04:57:12 +0000</pubDate>
		<dc:creator>sansinstitute</dc:creator>
				<category><![CDATA[Computer Forensics]]></category>

		<guid isPermaLink="false">http://blogs.sans.org/computer-forensics/?p=12361</guid>
		<description><![CDATA[One trend we are seeing over and over again this year is that even well resourced incident response teams appear to be lacking a strong forensic analysis capability. Many teams simply do not have the ability to quickly and efficiently find and analyze malware present within their enterprise. With threats like the APT (Advanced Persistent [...]]]></description>
			<content:encoded><![CDATA[<p>One trend we are seeing over and over again this year is that even well resourced incident response teams appear to be lacking a strong forensic analysis capability. Many teams simply do not have the ability to quickly and efficiently find and analyze malware present within their enterprise. With threats like the APT (<a href="http://www.google.com/search?hl=en&amp;client=firefox-a&amp;rls=org.mozilla%3Aen-US%3Aofficial&amp;hs=6Z4&amp;q=Advanced+Persistent+Threat&amp;btnG=Search&amp;aq=f&amp;oq=&amp;aqi=">Advanced Persistent Threat</a>) increasing, it seems like a forgone conclusion that every incident response team should have a forensic analyst as well as someone skilled in malware reverse engineering.  If you have experiences that agree or disagree with this assertion, please share them!</p>
<p>If you have training funds available for 2009 there are still several SANS forensics classes scheduled.   As an added bonus, classes tend to be smaller this time of year, allowing for even more individual attention.</p>
<p>Most of the upcoming events for all the Digital Forensic Courses and training that SANS offers can be found at the <a href="https://computer-forensics.sans.org/events/">upcoming events</a> page of the <a href="https://computer-forensics.sans.org/events/">Computer Forensics Website</a>.</p>
<p>Vancouver<br />
<a title="SANS Vancouver 2009" href="http://www.sans.org/vancouver09/description.php?tid=3667" target="_blank">http://www.sans.org/vancouver09/description.php?tid=3667</a></p>
<p>Colorado Springs<br />
<a title="Community SANS Colorado Springs 2009" href="http://www.sans.org/coloradosprings09_cs/description.php?tid=3667">http://www.sans.org/coloradosprings09_cs/description.php?tid=3667</a></p>
<p>Tucson<br />
<a title="Community SANS Tucson 2009" href="http://www.sans.org/tucson09_cs/description.php?tid=3667" target="_blank">http://www.sans.org/tucson09_cs/description.php?tid=3667</a></p>
<p>Washington D.C.<br />
<a title="SANS CDI East 2009" href="http://www.sans.org/cyber-defense-initiative-2009/category.php?c=SEC&amp;pcs=2" target="_blank">http://www.sans.org/cyber-defense-initiative-2009/category.php?c=SEC&amp;pcs=2</a></p>
<p>Do not want to travel?</p>
<p><a href="https://computer-forensics.sans.org/course/computer-forensic-essentials-1207-1">SEC408, Computer Forensic Essentials</a> is being taught by Rob Lee via vLive starting on Nov 30, 2009.</p>
<p><a href="http://www.sans.org/vlive/details.php?nid=20023">http://www.sans.org/vlive/details.php?nid=20023</a></p>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F30%2Fhave-any-training-budget-left-for-this-year-add-a-forensic-analyst-to-your-team%2F&amp;t=Have+any+training+budget+left+for+this+year%3F+Add+a+forensic+analyst+to+your+team%21&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F30%2Fhave-any-training-budget-left-for-this-year-add-a-forensic-analyst-to-your-team%2F&amp;title=Have+any+training+budget+left+for+this+year%3F+Add+a+forensic+analyst+to+your+team%21&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Have+any+training+budget+left+for+this+year%3F+Add+a+forensic+analyst+to+your+team%21;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/p0RhXtcw1Hw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/10/30/have-any-training-budget-left-for-this-year-add-a-forensic-analyst-to-your-team/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/10/30/have-any-training-budget-left-for-this-year-add-a-forensic-analyst-to-your-team/</feedburner:origLink></item>
		<item>
		<title>Windows 7 Computer Forensics</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/dqr4J2Y2tnU/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/10/27/windows-7-computer-forensics/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 14:57:51 +0000</pubDate>
		<dc:creator>robtlee</dc:creator>
				<category><![CDATA[Computer Forensics]]></category>

		<guid isPermaLink="false">http://blogs.sans.org/computer-forensics/?p=12271</guid>
		<description><![CDATA[Windows 7 was released this past week. A lot of work by the SANS community has been accomplished at uncovering digital forensic artifacts from it. First off, Windows 7 is really Windows VISTA release 2.  Many of the features that are found in Windows Vista will be found in Windows 7.  
First of all, all [...]]]></description>
			<content:encoded><![CDATA[<p>Windows 7 was released this past week. A lot of work by the SANS community has been accomplished at uncovering digital forensic artifacts from it. First off, Windows 7 is really Windows VISTA release 2.  Many of the features that are found in Windows Vista will be found in Windows 7.  <a href="http://blogs.sans.org/computer-forensics/files/2009/10/WIN7.jpg"><img class="alignnone size-full wp-image-12286" src="http://blogs.sans.org/computer-forensics/files/2009/10/WIN7.jpg" alt="WIN7" width="494" height="300" /></a></p>
<p>First of all, all the <a href="https://computer-forensics.sans.org/">SANS Digital Forensic Courses</a> have already included up-to-date material fully covering Windows 7 and Vista unlike anyone has done before.  In fact, our challenge for <a href="https://computer-forensics.sans.org/course/computer-forensic-essentials-1207-1">SEC408, Computer Forensic Essentials</a> is strictly based off of a Windows Vista case. We have details in <a href="https://computer-forensics.sans.org/course/computer-forensic-essentials-1207-1">SEC408, Computer Forensic Essentials</a>, that are not as covered in peer courses.</p>
<p>Here is just a few things we have helped document regarding <a href="http://www.microsoft.com/windows/windows-7/">Windows 7</a>.</p>
<h2>User Profiles:</h2>
<p style="margin-top: 3.6pt;margin-bottom: 0pt;text-align: left;direction: ltr;vertical-align: baseline"><span>With the release of Vista/Win7, Microsoft significantly changed the folder structure</span><span> and mechanisms used by the operating system for user profiles.<span> </span>One of these changes was to make roaming profiles more explicit.<span> </span>Roaming profiles allow users to log onto other systems in the domain and have their profile information follow them.<span> </span>They have been around for many years, and in Vista/Win7, Microsoft decided to make what follows a user, and what doesn’t follow a user much more explicit.<span> </span>Hence within a user profile in Vista/Win7, there are now two different set of folders: </span><strong><span>Roaming</span></strong><span> and </span><strong><span>Local</span></strong><span>.<span> </span>For our purposes, we want to be able to determine where our browser artifacts will be located in this new file structure.<span> </span>Traditionally Microsoft has included cookies in a roaming profile and excluded cache and history files by default.<span> </span>Thus, cookies are now found under the </span><span>Roaming</span><span> folder and history and cache can be found within the </span><span>Local</span><span> folder.</span></p>
<p style="margin-top: 3.6pt;margin-bottom: 0pt;text-align: left;direction: ltr;vertical-align: baseline"><span><br />
</span></p>
<h2 style="margin-top: 3.6pt;margin-bottom: 0pt;text-align: left;direction: ltr;vertical-align: baseline">Internet Explorer:<span> </span></h2>
</p>
<p style="margin-top: 3.6pt;margin-bottom: 0pt;text-align: left;direction: ltr;vertical-align: baseline"><span>The major</span><span> change within Vista/Win7 that affects us when performing browser forensics is the newly implemented “Protected Mode”. The idea is that if malicious code is run in the browser, it will not have the necessary privileges to cause harm to the operating system.<span> </span>Since not all activities using the browser will be unprivileged, a duplicate set of directories were necessary to store files from unprivileged use, called </span><span>Low</span><span> folders.<span> </span>An example of what this looks like in the file system is:</span></p>
<p style="margin-top: 3.6pt;margin-bottom: 0pt;text-align: left;direction: ltr;vertical-align: baseline"><span> </span></p>
<p style="margin-top: 3.6pt;margin-bottom: 0pt;text-align: left;direction: ltr;vertical-align: baseline"><span><strong>%userprofile%\AppData\Local\Microsoft\Windows\History\Low\History.IE5</strong><span> </span></span><span>(for</span><span> the IE history files)</span></p>
<p>“Protected Mode” conducts web browsing as an unprivileged user</p>
<ul>
<li>A new set of locations were added: <strong>low</strong> folders</li>
<li>Most browser evidence will be in low folders<span> </span></li>
<li><span>Local file usage is stored in the standard history folder</span><span> (because it is not performed with restricted permissions)</span><span> </span></li>
<li><span>If Protected Mode is turned off, low folders will not be utilized</span></li>
<li><span>If User Access Control (UAC) is turned</span><span> off, low folders will not be utilized (it is required for Protected Mode to operate)</span><span style="font-size: 10pt"> </span></li>
<li><span style="font-size: 10pt"> </span><span>If the instance of IE is run with Administrator permissions, the low folders are also not used </span><span> </span></li>
</ul>
<p><a href="http://blogs.sans.org/computer-forensics/files/2009/10/Locations.jpg"><img class="alignnone size-full wp-image-12291" src="http://blogs.sans.org/computer-forensics/files/2009/10/Locations.jpg" alt="Locations for History Files in Windows 7" width="451" height="226" /></a></p>
<h2>USB Key Analysis:</h2>
<p>We discussed full <a href="http://blogs.sans.org/computer-forensics/2009/09/09/updated-computer-forensic-guide-to-profiling-usb-thumbdrives-on-win7-vista-and-xp/">Windows 7 USB Key Analysis</a> in this post:  <a href="http://blogs.sans.org/computer-forensics/2009/09/09/updated-computer-forensic-guide-to-profiling-usb-thumbdrives-on-win7-vista-and-xp/">http://blogs.sans.org/computer-forensics/2009/09/09/updated-computer-forensic-guide-to-profiling-usb-thumbdrives-on-win7-vista-and-xp/</a></p>
<h2>USB Drive Enclosure Analysis:</h2>
<p>We discussed how to perform <a href="http://blogs.sans.org/computer-forensics/2009/09/09/usb-key-analysis-vs-usb-drive-enclosure-analysis/">Windows 7 USB Drive Enclosure Analysi</a>s in this post:  <a href="http://blogs.sans.org/computer-forensics/2009/09/09/usb-key-analysis-vs-usb-drive-enclosure-analysis/">http://blogs.sans.org/computer-forensics/2009/09/09/usb-key-analysis-vs-usb-drive-enclosure-analysis/</a></p>
<h2>Defrag Analysis:</h2>
<p>Chad Tilbury discussed detecting defrag analysis here: h<a href="//blogs.sans.org/computer-forensics/2009/08/17/de-mystifying-defrag-identifying-when-the-windows-defragmenter-has-been-used-for-anti-forensics-part-2-vista/">ttp://blogs.sans.org/computer-forensics/2009/08/17/de-mystifying-defrag-identifying-when-the-windows-defragmenter-has-been-used-for-anti-forensics-part-2-vista/</a></p>
<h2>Timeline Analysis:</h2>
<p>Kristinn Guðjónsson developed and released a full scope <a href="http://blogs.sans.org/computer-forensics/2009/08/13/artifact-timeline-creation-and-analysis-tool-release-log2timeline/">timeline creation tool</a> called <a href="http://log2timeline.net/">log2timeline</a> that is able to parse many Windows Vista and Windows 7 artifacts in a single simple tool.</p>
<ul>
<li>Prefetch directory (reads the content of the directory and parses files found inside)</li>
<li>UserAssist key info (reads the NTUSER.DAT user registry file to parse the content of UserAssist keys)</li>
<li>Squid access logs (with emulate_httpd_log off)</li>
<li>Restore points (reads the content of the directory and parses rp.log file inside each restore point)</li>
<li>Windows shortcut files (LNK)</li>
<li>Firefox 3 history file (places.sqlite)</li>
<li>Windows Recycle Bin (INFO2)</li>
<li>Windows IIS W3C log files</li>
<li>OpenXML Metadata (for metadata inside Office 2007 documents)</li>
<li>ISA Server text export from queries (saved to clipboard and from there to a text file)</li>
<li>TLN (Timeline) body file</li>
<li>Mactime body file (so it can be output in a different format)</li>
</ul>
<p><a href="http://blogs.sans.org/computer-forensics/2009/08/13/artifact-timeline-creation-and-analysis-tool-release-log2timeline/">http://blogs.sans.org/computer-forensics/2009/08/13/artifact-timeline-creation-and-analysis-tool-release-log2timeline/</a></p>
<h2>Shadow Copy Forensics</h2>
<p>Troy Larson from Microsoft has done a wonderful job continuing to discuss the Shadow Volume Copy and ways you can examine them in an investigation.  We posted back in 2008 on many of his techniques.</p>
<p><a href="http://blogs.sans.org/computer-forensics/2008/10/10/shadow-forensics/">http://blogs.sans.org/computer-forensics/2008/10/10/shadow-forensics/</a></p>
<p><strong>The work continues</strong>:  There are many artifacts yet to be uncovered and more work is being done.  Keep your eyes peeled on this site and additional sites like Harlan Carvey&#8217;s http://windowsir.blogspot.com/ as he is publishing many details as well.</p>
<p>If you have any sites that contains Windows 7 artifact information please post them in comments and Ill update the post as we move forward.</p>
<p><em>Rob Lee is a Director  for <a href="http://www.mandiant.com/">MANDIANT</a>, a leading provider of information security consulting services and software to Fortune 500 organizations and the U.S. Government. Rob has over 13 years experience in computer forensics, vulnerability discovery, intrusion detection and incident response. Rob is the lead course author and faculty fellow for the <a href="http://computer-forensics.sans.org/">computer forensic courses at the SANS Institute</a> and lead author for <a href="https://computer-forensics.sans.org/course/computer-forensic-essentials-1207-1">SEC408 Computer Forensic Essentials</a> and <a href="https://computer-forensics.sans.org/course/computer-forensics-investigation-and-response-98-1">SEC508 Computer Forensics, Investigation, and Response</a>.</em></p>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F27%2Fwindows-7-computer-forensics%2F&amp;t=Windows+7+Computer+Forensics&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F27%2Fwindows-7-computer-forensics%2F&amp;title=Windows+7+Computer+Forensics&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Windows+7+Computer+Forensics;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/dqr4J2Y2tnU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/10/27/windows-7-computer-forensics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/10/27/windows-7-computer-forensics/</feedburner:origLink></item>
		<item>
		<title>Recovering Deleted Text Messages from Windows Mobile Devices</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/5nXJz6DVzXE/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/10/22/recovering-deleted-text-messages-from-windows-mobile-devices/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 12:17:06 +0000</pubDate>
		<dc:creator>eoghancasey</dc:creator>
				<category><![CDATA[Computer Forensics]]></category>

		<guid isPermaLink="false">http://blogs.sans.org/computer-forensics/?p=12091</guid>
		<description><![CDATA[I have encountered a number of people who are dealing with Windows Mobile Devices in cases and need to recover text messages and e-mails, including deleted items. For the most part, the contents of such messages are stored in the cemail.vol database (MMS attachments are treated separately). This file can be acquired from a Windows [...]]]></description>
			<content:encoded><![CDATA[<p>I have encountered a number of people who are dealing with Windows Mobile Devices in cases and need to recover text messages and e-mails, including deleted items. For the most part, the contents of such messages are stored in the cemail.vol database (MMS attachments are treated separately). This file can be acquired from a Windows Mobile Device as described in the <a href="https://blogs.sans.org/computer-forensics/2009/08/12/acquiring-data-from-windows-mobile-devices/">Acquiring Data from Windows Mobile Devices</a> blog entry.</p>
<p>The cemail.vol file is a proprietary Microsoft format and there are limited tools for parsing this format directly. In some situations, viewing this file using a hex viewer will reveal deleted messages and other items that are not acquired using common forensic tools. Although XACT from Microsystemation has the ability to interpret cemail.vol databases automatically, forensic practitioners with limited budgets are seeking lower cost solutions.</p>
<p>One effective approach to interpreting this type of database using freely available software is to mount a copy of the acquired cemail.vol file into a Windows Mobile Emulator and use the <a href="http://wiki.xda-developers.com/index.php?pagename=XdaUtils">itsutils</a> package to navigate the database and extract the desired items. The pdblist utility in the itsutils package can dump many databases on a Windows Mobile device.</p>
<p>To illustrate, consider the following message “I have your package” in an acquired cemail.vol file viewed with a hex viewer.</p>
<p><img class="aligncenter size-full wp-image-12176" src="http://blogs.sans.org/computer-forensics/files/2009/10/SMSHexview.jpg" alt="SMS Hex View" width="519" height="237" /></p>
<h3>Mounting the Acquired File in Window Mobile Emulator</h3>
<p>First, it is necessary to mount the acquired cemail.vol file in a Windows Mobile Emulator. Although it is not necessary to use an Emulator that exactly matches the evidentiary device, some similarity is recommended. There are a number of emulators included in <a href="http://msdn.microsoft.com/en-us/evalcenter/bb655861.aspx">Visual Studio</a>. Additional emulators can be downloaded from the Microsoft Web site.</p>
<p>Once a suitable Windows Mobile Emulator has been selected, it is necessary to configure it to access the folder on the examination computer where the acquired cemail.vol file is stored. The following screenshot shows the shared folder being configured to point to C:\Documents and Settings\Administrator\Desktop\WindowsMobile, which is then accessible under the volume named “Storage Card” within the Emulator.</p>
<p><img class="aligncenter size-full wp-image-12181" src="http://blogs.sans.org/computer-forensics/files/2009/10/EmulatorConfig.jpg" alt="Emulator Configuration" width="517" height="360" /></p>
<p>After launching and configuring the desired Windows Mobile Emulator, it is necessary to create a conduit that itstutils uses to send commands to the Emulator by establishing an ActiveSync connection. You achieve this by opening the Device Emulator Manager in Visual Studio (under the Tools menu), then right-clicking the selected Emulator and selecting Cradle. In addition, within ActiveSync connection settings it is necessary to allow DMA connections.</p>
<h3>Useful Commands</h3>
<p>After an ActiveSync connection has been established with the Emulator, you can access its contents using components of the itsutils package. For our purposes, the pdblist utility can list accessible volumes, including the virtual “Storage Card” that contains the cemail.vol file to be examined as shown here:</p>
<p> 
<pre>C:\Tools\itsutils&gt;pdblist -v
volume {00000000-0000-0000-0000-000000000000} \Documents and Settings\default.vol
volume {40684a00-994b-f835-7742-f7f435ba8d2b} \ReplStorVol
volume {15005d00-12f3-a6e9-76e8-595b9d742cc8} \mxip_notify.vol
volume {65ca7a00-7d53-6505-5671-0b1908d7e6eb} \cemail.vol
volume {225c1b00-e193-8a1a-785f-68f818cf3dd0} \Storage Card\cemail.vol
volume {c479de00-e4b7-9037-1352-dced359be0ad} \mxip_system.vol
volume {d071d100-fb8f-1505-782c-e71b23e00165} \mxip_lang.vol</pre>
<p> <br />
More importantly from a forensic examination perspective, pdblist can list components of databases that are accessible via the emulator as shown here:</p>
<pre>C:\Tools\itsutils&gt;pdblist -D
volume {225c1b00-e193-8a1a-785f-68f818cf3dd0} \Storage Card\cemail.vol
oid310000c0: dbase F00000017 T00000000    0    356 ... 'fldr31000095'
   ORDERING: 0e060040:00000000 0c1a001f:00000002 0037001f:00000002 001a0013:00000000
[cut for brevity]
oid38000079: dbase F00000017 T00000000    1    484 ... 'fldr31000028'
   ORDERING: 0e060040:00000000 0c1a001f:00000002 0037001f:00000002 001a0013:00000000
oid32000087: dbase F00000017 T00000000    0    356 ... 'pmailAttachs'
   ORDERING: 81000013:00000000
oid37000081: dbase F00000017 T00000000    0    356 ... 'fldr32000023'
   ORDERING: 0e060040:00000000 0c1a001f:00000002 0037001f:00000002 001a0013:00000000
oid34000071: dbase F00000017 T00000000    3    800 ... 'fldr31000026'
   ORDERING: 0e060040:00000000 0c1a001f:00000002 0037001f:00000002 001a0013:00000000</pre>
<pre>[cut for brevity]
oid33000029: dbase F00000017 T00000000    0    356 ... 'pmailVolumes'
oid3b000017: dbase F00000017 T00000000   53   3768 ... 'pmailNamedProps'
   ORDERING: 8300001f:00000000 83010013:00000000
oid30000009: dbase F00000017 T00000000   12   1020 ... 'pmailMsgClasses'
   ORDERING: 8300001f:00000000 83010013:00000000
oid30000007: dbase F00000017 T00000000    0    356 ... 'pmailOldTables'
oid30000003: dbase F00000017 T00000000    6   1824 ... 'pmailMsgs'
   ORDERING: 800c001f:00000000 0e090013:00000000 00150040:00000000
oid30000001: dbase F00000017 T00000000   21   3052 ... 'pmailFolders'
   ORDERING: 0e090013:00000000
[cut for brevity]</pre>
<p> <br />
The same utility can be used to dump a particular object by name. Working through the objects listed in the above pdblist output, the same text message shown earlier in a hex viewer is revealed in fldr31000026 as shown below using the pdblist command in this manner. Additional details like the date-time stamp associated with the message are also displayed along with other text messages.<br />
 </p>
<pre>C:\Tools\itsutils&gt;pdblist -d fldr31000026
3f000089 (  284 12      2)
        8005 T13 L0000 F0000 UI4 838860938
        8011 T13 L0000 F0000 UI4 3
        001a T13 L0001 F0000 UI4 822083599
        003d T1f L0000 F0000 STR [00169898]( 0) ''
        0037 T1f L0000 F0000 STR [0016989c](19) 'I have your package'
        0e17 T13 L1ebe F0000 UI4 262144
        0e06 T40 L0000 F0000 FT  2009-04-22 21:01:47.000
        0e07 T13 L0004 F0000 UI4 33
        0c1f T1f L0000 F0000 STR [001698c4](11) '14438509426'
        0c1a T1f L0000 F0000 STR [001698dc](11) '14438509426'
        8001 T13 L0001 F0000 UI4 1056964745
        3008 T40 L9b35 F0000 FT  2009-04-22 21:01:47.000</pre>
<pre>3000008e (  284 11     78)
        8005 T13 L0000 F0000 UI4 973078668
        8011 T13 L0000 F0000 UI4 5
        0e17 T13 L0001 F0000 UI4 0
        001a T13 L0000 F0000 UI4 822083597
        003d T1f L0000 F0000 STR [00169888]( 0) ''
        0037 T1f L1ebe F0000 STR [0016988c](13) 'meeting place'
        0e08 T13 L0000 F0000 UI4 9284
        0e06 T40 L0004 F0000 FT  2009-04-22 21:05:45.000
        8001 T13 L0000 F0000 UI4 805306510
        0e07 T13 L0000 F0000 UI4 268501033
        3008 T40 L0001 F0000 FT  2009-04-22 21:05:45.000</pre>
<pre>3e0000a1 (  284 12     72)
        8005 T13 L0000 F0000 UI4 855638176
        8011 T13 L0000 F0000 UI4 7
        0e1b T13 L0001 F0000 UI4 0
        8012 T13 L0000 F0000 UI4 0
        001a T13 L0000 F0000 UI4 822083597
        003d T1f L1ebe F0000 STR [00169898]( 0) ''
        0037 T1f L0000 F0000 STR [0016989c]( 8) 'codeword'
        0e08 T13 L0004 F0000 UI4 17015
        0e06 T40 L0000 F0000 FT  2009-04-22 23:56:46.000
        8001 T13 L0000 F0000 UI4 1040187553
        0e07 T13 L0001 F0000 UI4 268501033
        3008 T40 L006d F0000 FT  2009-04-22 23:56:47.000</pre>
<p> </p>
<h3>Additional Evidence</h3>
<p>Be aware that Windows Mobile creates temporary files in various locations where you may find useful information depending on what you are seeking (e.g., e-mail, MMS). We cover Windows Mobile in the SANS Mobile Device Forensics course, and we delve into cemail.vol and other useful data sources on these devices. The next course is <a href="http://www.sans.org/security-east-2010/description.php?tid=3377">January 11 &#8211; 15, 2010 in New Orleans</a>.</p>
<p style="text-align: center"><a href="http://www.sans.org/security-east-2010/description.php?tid=3377"><img class="size-full wp-image-12211 aligncenter" src="http://blogs.sans.org/computer-forensics/files/2009/10/sec563_8_785x90.jpg" alt="SANS SEC563" width="785" height="90" /></a></p>
<p><em>Eoghan Casey is founding partner of cmdLabs (http://www.cmdlabs.com/) , author of the foundational book Digital Evidence and Computer Crime, and coauthor of Malware Forensics. He has been involved in a wide range of digital investigations, including network intrusions, fraud, violent crimes, identity theft, and on-line criminal activity. He has testified in civil and criminal cases, and has submitted expert reports and prepared trial exhibits for computer forensic and cyber-crime cases.</em></p>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F22%2Frecovering-deleted-text-messages-from-windows-mobile-devices%2F&amp;t=Recovering+Deleted+Text+Messages+from+Windows+Mobile+Devices&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F22%2Frecovering-deleted-text-messages-from-windows-mobile-devices%2F&amp;title=Recovering+Deleted+Text+Messages+from+Windows+Mobile+Devices&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Recovering+Deleted+Text+Messages+from+Windows+Mobile+Devices;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/5nXJz6DVzXE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/10/22/recovering-deleted-text-messages-from-windows-mobile-devices/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/10/22/recovering-deleted-text-messages-from-windows-mobile-devices/</feedburner:origLink></item>
		<item>
		<title>Security Intelligence: Attacking the Kill Chain</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/bgLS6TEJgk4/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/10/14/security-intelligence-attacking-the-kill-chain/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 12:00:24 +0000</pubDate>
		<dc:creator>mikecloppert</dc:creator>
				<category><![CDATA[Incident Response]]></category>
		<category><![CDATA[security intelligence]]></category>

		<guid isPermaLink="false">https://blogs.sans.org/computer-forensics/?p=10676</guid>
		<description><![CDATA[Just like you or I, adversaries have various computer resources at their disposal.  They have favorite computers, applications, techniques, websites, etc.  It is these fundamentally human tendencies and technical limitations that we exploit by collecting information on our adversaries.  No person acts truly random, and no person has truly infinite resources at their disposal.  Thus, it behooves us in CND to record, track, and group information on our sophisticated adversaries to develop profiles.  With these profiles, we can draw inferences, and with those inferences, we can be more adaptive and effectively defend our data.  After all, that’s what intelligence-driven response is all about: defending data that sophisticated adversaries want.  It’s not about the computers.  It’s not about the networks.  It’s about the data.  We have it, and they want it.]]></description>
			<content:encoded><![CDATA[<p><em>Coming in much later than I&#8217;d hoped, this is the second installment in a series of four discussing security intelligence principles in computer network defense.  If you missed the introduction (parts <a href="http://blogs.sans.org/computer-forensics/2009/07/22/security-intelligence-introduction-pt-1/">1</a> and <a href="http://blogs.sans.org/computer-forensics/2009/07/23/security-intelligence-introduction-pt-2/">2</a>), I highly recommend you read it before this article, as it sets the stage and vernacular for intelligence-driven response necessary to follow what will be discussed throughout the series.  Once again, and as often is the case, the knowledge conveyed herein is that of my associates and I, learned through many man-years attending the School of Hard Knocks (TM?), and the credit belongs to all of those involved in the evolution of this material.</em></p>
<p><em>In this segment, we will introduce the attack progression (aka &#8220;kill chain&#8221;) and briefly descibe its intersection with indicators.  The next segment will go into more detail about how to use the attack progression model for more effective analysis and defense, including a few contrived examples based on real attacks.<br />
</em></p>
<h2>On Indicators</h2>
<p>Just like you or I, adversaries have various computer resources at their disposal.  They have favorite computers, applications, techniques, websites, etc.  It is these fundamentally human tendencies and technical limitations that we exploit by collecting information on our adversaries.  No person acts truly random, and no person has truly infinite resources at their disposal.  Thus, it behooves us in CND to record, track, and group information on our sophisticated adversaries to develop profiles.  With these profiles, we can draw inferences, and with those inferences, we can be more adaptive and effectively defend our data.  After all, that’s what intelligence-driven response is all about: defending data that sophisticated adversaries want.  It’s not about the computers.  It’s not about the networks.  It’s about the data.  We have it, and they want it.</p>
<p>Indicators can be classified a number of ways.  Over the years, I and my colleagues have wrestled with the most effective way to break them down.  Currently, I am of the mind that indicators fall into one of three types: atomic, computed, and behavioral (or TTP’s)</p>
<p><strong>Atomic </strong>indicators are pieces of data that are indicators of adversary activity on their own.  Examples include IP addresses, email addresses, a static string in a Covert Command-and-control (C2) channel, or fully-qualified domain names (FQDN’s).  Atomic indicators can be problematic, as they may or may not exclusively represent activity by an adversary.  For instance, an IP address from whence an attack is launched could very likely be an otherwise-legitimate site.  Atomic indicators often need vetting through analysis of available historical data to determine whether they exclusively represent hostile intent.</p>
<p><strong>Computed</strong> indicators are those which are, well, computed.  The most common amongst these indicators are hashes of malicious files, but can also include specific data in decoded custom C2 protocols, etc.  Your more complicated IDS signatures may fall into this category.</p>
<p><strong>Behavioral</strong> indicators are those which combine other indicators – including other behaviors &#8211; to form a profile.  Here is an example: ‘Bad guy 1 likes to use IP addresses in West Hackistan to relay email through East Hackistan and target our sales folks with trojaned word documents that discuss our upcoming benefits enrollment, which drops backdoors that communicate to A.B.C.D.’  Here we see a combination of computed indicators (Geolocation of IP addresses, MS Word attachments determined by magic number, base64 encoded in email attachments) , behaviors (targets sales force), and atomic indicators (A.B.C.D C2).  To borrow some parlance, these are also referred to as Tactics, Techniques, and Procedures (TTP’s).  Already you can probably see where we’re going with intelligence-driven response… what if we can detect, or at least investigate, behavior that matches that which I describe above?</p>
<p>One likes to think of indicators as conceptually straightforward, but the truth is that proper classification and storage has been elusive.  I’ll  save the intricacies of indicator difficulties for a later discussion.</p>
<h2>Adversary Behavior</h2>
<p>The behavioral aspect of indicators deserves its own section.  Indeed, most of what we discuss in this installment centers on understanding <em>behavior</em>.  The best way to behaviorally describe an adversary is by how he or she does his job – after all, this is the only discoverable part for an organization that is strictly CND (some of our friends in the USG likely have better ways of understanding adversaries).  That “job” is compromising data, and therefore we describe our attacker in terms of the anatomy of their attacks.</p>
<p>Ideally, if we could attach a human being to each and every observed activity on our network and hosts, we could easily identify our attackers, and respond appropriately every time.  At this point in history, that sort of capability passes beyond ‘pipe dream’ into ‘ludicrous.’   However mad this goal is, it provides a target for our analysis: we need to push our detection “closer” to the adversary.  If all we know is the forged email address an adversary tends to use in delivering hostile email, assuming this is uniquely linked to malicious behavior, we have a mutable and temporal indicator upon which to detect.  Sure, we can easily discover when it’s used in the future, and we are obliged to do so as part of our due diligence.  The problem is this can be changed at any time, on a whim.  If, however, the adversary has found an open mail relay that no one else uses, then we have found an indicator “closer” to the adversary.  It’s much more difficult (though, in the scheme of things, still somewhat easy) to find a new open mail relay to use than it is to change the forged sending address.  Thus, we have pushed our detection “closer” to the adversary.  Atomic, computed, and behavioral indicators can describe more or less mutable/temporal indicators in a hierarchy.  We as analysts seek the most static of all indicators, at the top of this list, but often must settle for indicators further from the adversary until those key elements reveal themselves.  The figure below shows some common indicators of an attack, and where we&#8217;ve seen them fall in terms of proximity to the adversary, variability, and inversely mutability and temporality.</p>
<p style="text-align: center"><img class="aligncenter size-full wp-image-12011" src="http://blogs.sans.org/computer-forensics/files/2009/10/indicator_mutability.png" alt="indicator_mutability" width="251" height="195" /></p>
<p style="text-align: center"><em>Fig 1: Indicator Hierarchy</em></p>
<p style="text-align: left">That this analysis begins with the adversary and then dovetails into defense makes it very much a security intelligence technique as we&#8217;ve defined the term.  Following a sophisticated actor over time is analogous to watching someone’s shadow.  Many factors influence what you see, such as the time of day, angle of sun, etc.  After you account for these variables, you begin to notice nuances in how the person moves, observations that make the shadow distinct from others.  Eventually, you know so much about how the person moves that you can pick them out of a crowd of shadows.  However, you never know for sure if you’re looking at the same person.  At that point, for our purposes, it doesn’t matter.  If it looks like a duck, and sounds like a duck… it hacks like a duck.  Whether the same person (or even group) is truly at the other end of behavior every time is immaterial if the profile you build facilitates predicting future activity and detecting it.</p>
<h2>Attack Progression, aka the &#8220;Kill Chain&#8221;</h2>
<p>We have found that the phases of an attack can be described by 6 sequential stages.  Once again loosely borrowing vernacular, the phases of an operation can be described as a &#8220;<a href="http://www.jargondatabase.com/Jargon.aspx?id=1265">kill chain</a>.&#8221;  The importance here is not that this is a linear flow &#8211; some phases may occur in parallel, and the order of earlier phases can be interchanged &#8211; but rather how far along an adversary has progressed in his or her attack, the corresponding damage, and investigation that must be performed.</p>
<p style="text-align: center"><img class="aligncenter size-full wp-image-11736" src="http://blogs.sans.org/computer-forensics/files/2009/09/attack_progression_basic.png" alt="attack_progression_basic" width="676" height="94" /></p>
<p style="text-align: center"><em>Fig. 2: The Attack Progression</em></p>
<h3>Reconnaissance</h3>
<p>The reconnaissance phase is straightforward.  However, in security intelligence, often times this is manifested not in portscans, system enumeration, or the like.  It is the data equivalent: browsing websites, pulling down PDF’s, learning the internal structure of the target organization.  A few years ago I never would’ve believed that people went to this level of effort to target an organization, but after witnessing it happen, I can say with confidence that it does.  The problem with activity in this phase is that it is often indistinguishable from normal activity.  There are precious few cases where one can collect information here and find associated behavior in the delivery phase matching an adversary’s behavioral profile with high confidence and a low false positive rate.  These cases are truly gems – when they can be identified, they link what is often two normal-looking events in a way that greatly enhances detection.</p>
<h3>Weaponization</h3>
<p>The weaponization phase may or may not happen after reconnaissance; it is placed here merely for convenience.  This is the one phase that the victim doesn’t see happen, but can very much detect.  Weaponizaiton is the act of placing malicious payload into a delivery vehicle.  It’s the difference in how a Soviet warhead is wired to the detonator versus how a US warhead is wired in.  For us, it is the technique used to obfuscate shellcode, the way an executable is packed into a trojaned document, etc.  Detection of this is not always possible, nor is it always predictable, but when it can be done it is a highly effective technique.  Only by reverse engineering of delivered payloads is an understanding of an adversary’s weaponization achieved.  This is distinctly separate and often persistent across the subsequent stages.</p>
<h3>Delivery</h3>
<p>Delivery is rather straightforward.  Whether it is an HTTP request containing SQL injection code or an email with a hyperlink to a compromised website, this is the critical phase where the payload is delivered to its target.  I heard a term just the other day that I really like: “warheads on foreheads” (courtesy US Army).</p>
<h3>Compromise / Exploit</h3>
<p style="text-align: left">The compromise phase will possibly have elements of a software vulnerability, a human vulnerability aka &#8220;social engineering,&#8221; or a hardware vulnerability.  While the latter are quite rare by comparison, I include hardware vulnerabilities for the sake of completeness.</p>
<p style="text-align: left">The compromise of the target may itself be multi-phase, or more straightforward.  As a result, we sometimes have the tendency to pull apart this phase into separate sub-phases, or peel out &#8220;Compromise&#8221; and &#8220;Exploit&#8221; as wholly separate.  For simplicity&#8217;s sake, we&#8217;ll keep this as a single phase.  A single-phase exploit results in the compromised host behaving according to the attacker&#8217;s wishes directly as a result of the successful execution of the delivered payload.  For example, if an attacker coaxes a user into running an EXE attachment to an email which contained the desired backdoor code.  A multi-phase exploit typically will involve delivery of shellcode whose sole function is to pull down and execute more capable code upon execution.  Shellcode often needs to be portable for a variety of reasons, necessitating such an approach.  We have seen other cases where, possibly through sheer laziness, adversaries end up delivering exploits whose downloaders download other downloaders before finally installing the desired code.  As you can imagine, the more phases involved, the lower an adversary&#8217;s probability for success.</p>
<p style="text-align: left"><strong>This is the pivotal phase of the attack</strong>.  If this phase completes successfully, what we as security analysts have classically called &#8220;incident response&#8221; is initiated: code is present on a machine that should not be there.  However, as will be discussed later, the notion of &#8220;incident response&#8221; is so different in intelligence-driven response (and the classic model so inapplicable) that we have started to move away from using the term altogether.  The better term for security intelligence is &#8220;<em>compromise response</em>,&#8221; as it removes ambiguity from the term &#8220;incident.&#8221;</p>
<h3>C2</h3>
<p>The command-and-control phase of the attack represents the period after which adversaries leverage the exploit of a system.  A compromise does not necessarily mean C2, just as C2 doesn&#8217;t necessarily mean exfiltration.  In fact, we will discuss how this can be exploited in CND, but recognize that successful communications back to the adversary <em>often</em> must be made before any potential for impact to data can be realized.  This can be prevented intentionally by identifying C2 in unsuccessful past attacks by the same adversary resulting in network mitigations, or fortuitously when adversaries drop malware that is somehow incompatible with your network infrastructure, to give but two examples.</p>
<p>In addition to the phone call going through, someone has to be present at the other end to receive it.  Your adversaries take time off, too&#8230; but not all of them.  In fact, a few groups have been observed to be so responsive that it suggests a mature organization with shifts and procedures behind the attack more refined than that of many incident response organizations.</p>
<p style="text-align: left">We will also lump lateral movement with compromised credentials, file system enumeration, and additional tool dropping by adversaries broadly into this phase of the attack.  While an argument can be made that situational awareness of the compromised environment is technically &#8220;exfiltration,&#8221; the intention of the next phase is somewhat different.</p>
<h3>Exfiltration</h3>
<p>The exfiltration phase is conceptually very simple: this is when the data, which has been the ultimate target all along, is taken.  Previously I mentioned that gathering information about the environment of the compromised machine doesn&#8217;t fall into the exfiltration phase.  The reason for this is that such data is being gathered to serve but one purpose, either immediately or longer-term: facilitate gathering of sensitive information.  The source code for the new O/S.  The new widget that cost billions to develop.  Access to the credit cards, or PII.</p>
<h2>Analytical Approach</h2>
<p style="text-align: left">As we analyze attacks, we begin to see that different indicators map to the phases above.  While an adversary may attempt to use the exploit <em>du jour</em> to compromise target systems, the backdoor (C2) may be the same as past attacks by the same actor.  Different proxy IP addresses may be used to relay an attack, but the weaponization may not change between them.  These immutable, or infrequently-changing properties of attacks by an adversary make up his/her/their behavioral profile as we discussed in moving detection closer to the adversary.  It&#8217;s capturing, knowing, and detecting this <em>modus operandi</em> that facilitates our discovery of other attacks by the same adversary, even if many other aspects of the attack change.</p>
<p style="text-align: left">This need for the accumulation of indicators for detection means that analysis of unsuccessful attacks is important, to the extent that the attack is believed to be related to an APT adversary.  A detection of malware in email by perimeter anti-virus, for instance, is only the beginning when the weaponization is one commonly used by a persistent adversary.  The backdoor that would have been dropped may contain a new C2 location, or even a whole new backdoor altogether.  Learning this detail, and adjusting sensors accordingly, can permit future detection when that tool or infrastructure is reused, even if detection at the attack phase fails.  Discovery of new indicators also means historical searches may reveal past undetected attacks, possibly more successful than the latest one.</p>
<p style="text-align: left">Analysis of attacks quickly becomes complicated, and will be further explored in future entries culminating with a new model for incident response.</p>
<h2>The Indicator Lifecycle</h2>
<p style="text-align: left">As a derivative (literary, not mathematical) of the analysis of attack progression, we have the indicator lifecycle.  The indicator lifecycle is cyclical, with the discovery of known indicators begetting the revelation of new ones.  This lifecycle further emphasizes why the analysis of attacks that never progress past the compromise phase are important.</p>
<p style="text-align: center"><img class="aligncenter size-full wp-image-11721" src="http://blogs.sans.org/computer-forensics/files/2009/09/indicator_lifecycle.png" alt="indicator_lifecycle" width="318" height="277" /></p>
<p style="text-align: center"><em>Fig. 3: The Indicator Lifecycle State Diagram<br />
</em></p>
<h3>Analysis // Revelation</h3>
</p>
<p style="text-align: left">The revelation of indicators comes from many places &#8211; internal investigations, intelligence passed on by partners, etc.  This represents the moment that an indicator is revealed to be significant and related to a known-hostile actor.</p>
<h3>Search &amp; Tune // Maturation</h3>
<p style="text-align: left">This is the point where the correct way to leverage the indicator is identified.  Sensors are updated, signatures written, detection tools put in the correct place, development of a new tool makes observation of the indicator possible, etc.</p>
<h3>Discovery // Utility</h3>
<p style="text-align: left">This is the point at which the indicator&#8217;s potential is realized: when hostile activity at some point of the kill chain is detected thanks to knowledge of the indicator and correct tuning of detection devices, or data mining/trend analysis revealing a behavioral indicator, for example.  And of course, this detection and the subsequent analysis likely reveals more indicators.  Lather, rinse, repeat.</p>
<p style="text-align: left"><em>In the next section, I will walk through a few examples and illustrate how following the attack progression forward and backward leads to a complete picture of the attack, as well as how attacks can be represented graphically.  Following that will be our new model of network defense which brings all of these ideas together.  You can expect amplifying entries thereafter to further enhance detection using security intelligence principles, starting with user modeling.<br />
</em>
</p>
<p style="text-align: left"><em><a rel="#someid10" href="http://blog.cloppert.org/">Michael</a> is a senior member of Lockheed Martin’s Computer Incident Response Team.  He has lectured for various audiences including SANS, IEEE, and the annual DC3 CyberCrime Convention, and teaches an introductory class on cryptography.  His current work consists of security intelligence analysis and development of new tools and techniques for incident response. Michael holds a BS in computer engineering, has earned GCIA (<a rel="#someid11" href="http://www.giac.org/certified_professionals/practicals/gcia/592.php">#592</a>) and GCFA (<a rel="#someid12" href="https://www.giac.org/certified_professionals/practicals/gcfa/711.php">#711</a>) gold certifications alongside various others, and is a professional member of <a href="http://www.acm.org">ACM</a> and <a href="http://www.ieee.org">IEEE</a>.</em></p>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F14%2Fsecurity-intelligence-attacking-the-kill-chain%2F&amp;t=Security+Intelligence%3A+Attacking+the+Kill+Chain&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F14%2Fsecurity-intelligence-attacking-the-kill-chain%2F&amp;title=Security+Intelligence%3A+Attacking+the+Kill+Chain&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Security+Intelligence%3A+Attacking+the+Kill+Chain;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/bgLS6TEJgk4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/10/14/security-intelligence-attacking-the-kill-chain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/10/14/security-intelligence-attacking-the-kill-chain/</feedburner:origLink></item>
		<item>
		<title>Why Digital Forensic Certifications Are Needed</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/rDhAAuQ6zo8/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/10/07/why-digital-forensic-certifications-are-needed/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 16:35:05 +0000</pubDate>
		<dc:creator>robtlee</dc:creator>
				<category><![CDATA[Computer Forensics]]></category>

		<guid isPermaLink="false">http://blogs.sans.org/computer-forensics/?p=12051</guid>
		<description><![CDATA[This post is intended to generate discussion related to the professional development of a digital forensic professional based off discussion as to whether certifications are evil.
Why certify at all?
Certifications are not intended to ensure that someone is awesome at their job, but that they pass the minimal qualifications for someone in the field.  Much like [...]]]></description>
			<content:encoded><![CDATA[<p>This post is intended to generate discussion related to the professional development of a digital forensic professional based off discussion as to whether<a href="http://cfed-ttf.blogspot.com/2009/10/certifications-are-evilby-john-mccash.html"> certifications are evil.</a></p>
<h3>Why certify at all?</h3>
<p>Certifications are not intended to ensure that someone is awesome at their job, but that they pass the minimal qualifications for someone in the field.  Much like basic training teaches you the basics to fight in combat, but hardly makes you an Army Ranger.</p>
<p>For the sake of the profession, something similar to the bar or medical exams has to ensure that a basic set of knowledge exists for an entry level individual.  CPAs, doctors, lawyers, all need to pass a test.  However, the best professionals in those fields have the most experience.  However, in order to even begin the first day in those professions, they have to prove that they at least know enough not to make a critical error on day 1.</p>
<p>I know many smart lawyers or doctors.  However, none of them cannot do their jobs unless they passed their tests.  Their IQ does not matter.  You cannot fly a plane without passing tests.  In fact, you cannot drive a car without a license.  I know many people that can drive a car without it, but the test is geared to show you understand the basics of road safety and vehicle control.</p>
<p>That is the point of certification.</p>
<h3>Professionalization for Digital Forensics</h3>
<p>Unfortunately, licensing will be barreling down on our profession faster than you think for everyone in both information security and computer forensics.   There are bills in congress as well as legislative actions that are taking place in many states.</p>
<p>We live in a society where you need to be <a href="http://wiki.answers.com/Q/Can_you_cut_hair_without_a_license">licensed to cut hair</a>, be a plumber (<a href="http://www.outsidethebeltway.com/archives/joe_the_unlicensed_plumber/">Joe the unlicensed plumber</a>) or babysit (<a href="http://www.mlive.com/news/kzgazette/index.ssf?/base/news-35/1254025207205180.xml&amp;coll=7">Michigan</a>).  Do we really believe that we will not need a license of any sort to do the job we love?</p>
<p>Good certifications are needed as a counter to that.  The organizational efforts of the <a href="http://blogs.sans.org/computer-forensics/2009/08/25/press-release-digital-forensic-groups-form-council-of-digital-forensic-specialists-cdfs/">CDFS</a> are a part of that solution as well, but the states want educational/testable proof that someone doing the job has jumped through a couple of hoops so they are not snake oil salesmen.</p>
<p>For the profession overall to be recognized, certifications are needed.  Personally, I respect many certifications.  <a href="http://www.guidancesoftware.com/computer-forensics-training-ence-certification.htm">EnCE</a>, <a href="www.isfce.com/ccelist.htm">CCE</a>, the potential of the <a href="http://www.ncfs.org/dfcb/certification.html">DFCA /DFCP </a>, and the <a href="www.iacis.com/certification/cfce">CFCE</a>.  Last year I sent out a <a href="http://blogs.sans.org/computer-forensics/files/2009/10/Common-Body-of-Knowledge-Published.pdf">Common Body of Knowledge</a> to over 80 practioners, the <a href="http://blogs.sans.org/computer-forensics/files/2009/10/Common-Body-of-Knowledge-Published.pdf">CBK </a>comment process outline which skills are needed and which skills are “nice to have.” I received much feedback, but we need more people that we can reach out and involve in these discussions.</p>
<p>As a profession, we will need to become tested to perform our work.  It is not a matter of “If”, but “when”.</p>
<p>Your call on how we should get that license.  Leave it to biased industry groups such as the PI lobby or have digital forensic professionals (you and I) to decide <span style="text-decoration: underline">together</span> what the minimal qualifications are.</p>
<p>How many professions that have been around for a while do not have at least an entry-level test?</p>
<p>I personally am not advocating any specific certifications.  There are many good ones out there that are recognized, but professionals should consider certifications in their profession of choice.  Get certified to show we are a true profession.</p>
<h3>Do we need to back only one certification now?</h3>
<p>In my opinion no.  If we back one too soon, creativity and ingenuity will begin to languish.  We need the certifications to continue to evolve and become better.  Competition will do that for us.  However, having said that, I think all the certifications should understand that it is in our best interest to cross promote all the certifications.  We are in this together, that is the mantra of the <a href="http://blogs.sans.org/computer-forensics/2009/08/25/press-release-digital-forensic-groups-form-council-of-digital-forensic-specialists-cdfs/">CDFS</a>.  For example, <a href="http://computer-forensics.sans.org">SANS</a> , <a href="http://www.htcia.org/">HTCIA</a>, and <a href="http://www.isfce.com/">ISFCE </a>have routinely worked together.  The <a href="https://computer-forensics.sans.org/course/computer-forensics-investigation-and-response-98-1">SANS digital forensic courses</a> are certified as CCE Bootcamps even though we offer a competing certification?  Why?  The CCE certification might be more useful in your specific industry such as Law Enforcement vs Information Security. We respect their certification objectives and as a friend in the industry.</p>
<p>The key is understanding that the current discussion is not &#8220;Which Certification?&#8221;  The battle is &#8220;Should we certify at all?&#8221;  This is why I am adamant about pushing individuals to certify in a respected certification.  There are many I realize.    Get certified that will help you in your specific career in Law Enforcement, Litigation Support, or Information Security.</p>
<h3>We need your help</h3>
<p>Help us decide what the qualifications are needed for a minimally qualified professional in digital forensics we do not think we have the best idea, but we need to come together and help professionalize digital forensics.   Any additional ideas on how to foster professionalization in this community?  Send comments back to me at rlee@sans.org and Ill share thoughts periodically.</p>
<p>Help mold the future of your profession.</p>
<p>Rob Lee</p>
<p>__________________________________________________________________________</p>
<p><em>Rob Lee is a Director  for <a href="http://www.mandiant.com/">MANDIANT</a>, a leading provider of information security consulting services and software to Fortune 500 organizations and the U.S. Government. Rob has over 13 years experience in computer forensics, vulnerability discovery, intrusion detection and incident response. Rob is the lead course author and faculty fellow for the <a href="http://forensics.sans.org/">computer forensic courses at the SANS Institute</a>.<br />
</em></p>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F07%2Fwhy-digital-forensic-certifications-are-needed%2F&amp;t=Why+Digital+Forensic+Certifications+Are+Needed&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F07%2Fwhy-digital-forensic-certifications-are-needed%2F&amp;title=Why+Digital+Forensic+Certifications+Are+Needed&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Why+Digital+Forensic+Certifications+Are+Needed;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/rDhAAuQ6zo8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/10/07/why-digital-forensic-certifications-are-needed/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/10/07/why-digital-forensic-certifications-are-needed/</feedburner:origLink></item>
		<item>
		<title>Mounting Images Using Alternate Superblocks (Follow-Up)</title>
		<link>http://feedproxy.google.com/~r/SANSForensics/~3/7X6hiieMM1c/</link>
		<comments>http://blogs.sans.org/computer-forensics/2009/10/05/mounting-images-using-alternate-superblocks-follow-up/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 14:16:59 +0000</pubDate>
		<dc:creator>Hal Pomeranz</dc:creator>
				<category><![CDATA[Computer Forensics]]></category>
		<category><![CDATA[Evidence Acquisition]]></category>
		<category><![CDATA[Evidence Analysis]]></category>
		<category><![CDATA[alternate superblock]]></category>
		<category><![CDATA[ext]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[journal]]></category>
		<category><![CDATA[journal recovery]]></category>

		<guid isPermaLink="false">http://blogs.sans.org/computer-forensics/?p=11751</guid>
		<description><![CDATA[Hal Pomeranz, Deer Run Associates
Several months ago, I blogged about using alternate superblocks to fake out the ext3 drivers so you could mount file system images read-only, even if they were needing journal recovery.  However, due to recent changes in the ext file system driver the method I describe in my posting is no longer [...]]]></description>
			<content:encoded><![CDATA[<h2><a href="https://blogs.sans.org/computer-forensics/author/halpomeranz/" target="_blank">Hal Pomeranz</a>, <a href="http://www.deer-run.com/~hal/" target="_blank">Deer Run Associates</a></h2>
<p>Several months ago, I blogged about <a href="http://blogs.sans.org/computer-forensics/2008/12/18/mounting-images-using-alternate-superblocks/" target="_blank">using alternate superblocks</a> to fake out the ext3 drivers so you could mount file system images read-only, even if they were needing journal recovery.  However, due to recent changes in the ext file system driver the method I describe in my posting is no longer sufficient.  Happily, there&#8217;s a quick work-around.</p>
<p>Let&#8217;s try the solution from the end of my previous posting under a more recent Linux kernel:</p>
<pre># mount -o loop,ro,sb=131072 dev_sda2.dd /mnt
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
 missing codepage or helper program, or other error
 In some cases useful info is found in syslog - try
 dmesg | tail  or so</pre>
<p>This looks like the original error output we got when using the primary superblock.  Looking at the relevant dmesg output we see something different, however:</p>
<pre>[163135.527484] JBD: Ignoring recovery information on journal
[163135.795917] Buffer I/O error on device loop0, logical block 0
[163135.795931] lost page write due to I/O error on loop0
[163135.795944] Buffer I/O error on device loop0, logical block 1
[163135.795949] lost page write due to I/O error on loop0
[163135.795958] Buffer I/O error on device loop0, logical block 2
[163135.795963] lost page write due to I/O error on loop0
[163135.795973] Buffer I/O error on device loop0, logical block 3
[163135.795977] lost page write due to I/O error on loop0
[163135.795986] Buffer I/O error on device loop0, logical block 18
[163135.795991] lost page write due to I/O error on loop0
[163135.795999] Buffer I/O error on device loop0, logical block 32
[163135.796034] lost page write due to I/O error on loop0
[163135.796232] Buffer I/O error on device loop0, logical block 73
[163135.796238] lost page write due to I/O error on loop0
[163135.796248] Buffer I/O error on device loop0, logical block 74
[163135.796253] lost page write due to I/O error on loop0
[163135.796261] Buffer I/O error on device loop0, logical block 94
[163135.796267] lost page write due to I/O error on loop0
[163135.796275] Buffer I/O error on device loop0, logical block 96
[163135.796280] lost page write due to I/O error on loop0
[163135.796516] JBD: recovery failed
[163135.796520] EXT3-fs: error loading journal.</pre>
<p>It would appear that even though we&#8217;re using an alternate superblock that&#8217;s marked as not requiring journal recovery, the ext file system driver is still finding the uncompleted journal entries and trying to apply them.  This is arguably &#8220;more correct&#8221; behavior than the old driver used, but it doesn&#8217;t help us very much.</p>
<p>The simple work-around is to tell the ext file system driver to ignore the journal by forcing the file system to be mounted as ext2:</p>
<pre># mount -t ext2 -o loop,ro,sb=131072 dev_sda2.dd /mnt
# ls /mnt
bin   dev  home    lib         mnt  proc  sbin  usr
boot  etc  initrd  lost+found  opt  root  tmp   var</pre>
<p>Excellent!  With this small modification our trick is working again.  Hurrah!</p>
<p>You might well wonder what happens if you just try to mount our image as ext2 without using the alternate superblock.  Unfortunately, simply mounting as ext2 is not sufficient because the primary superblock is still marked as needing journal recovery.  Though I wonder why this flag should be relevant to an ext2 file system, it&#8217;s enough to prevent the mount from happening.  So the result is that you need to both mount using an alternate superblock and (at least on modern Linux kernels) mount the file system as ext2 to stop the file system driver from looking at the journal.</p>
<address><em>Hal Pomeranz is an independent IT/Computer Security consultant and a SANS Faculty Fellow.  He actually discovered this problem when attempting to give a live demo in the middle of a class.  Unfortunately, the solution only occurred to him after class was concluded.  This is one of the reasons why being a SANS Instructor can be so&#8230; invigorating.<br />
</em></address>
<div><table > <td><iframe src='http://digg.com/api/diggthis.php?w=new&amp;u=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F05%2Fmounting-images-using-alternate-superblocks-follow-up%2F&amp;t=Mounting+Images+Using+Alternate+Superblocks+%28Follow-Up%29&amp;s=compact' height='18' width='120' frameborder='0' scrolling='no'></iframe></td> <td><iframe src='http://www.reddit.com/button_content?newwindow=1&amp;url=http%3A%2F%2Fblogs.sans.org%2Fcomputer-forensics%2F2009%2F10%2F05%2Fmounting-images-using-alternate-superblocks-follow-up%2F&amp;title=Mounting+Images+Using+Alternate+Superblocks+%28Follow-Up%29&amp;t=1 ' height='18' width='120' scrolling='no' frameborder='0' ></iframe></td> <td><script type="text/javascript"><!--yahooBuzzArticleHeadline=Mounting+Images+Using+Alternate+Superblocks+%28Follow-Up%29;//--></script><script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype=small-votes></script></td></table></div><!-- Generated by Digg Digg plugin, 
    Author : Yong Mook Kim
    Website : http://www.mkyong.com/blog/digg-digg-wordpress-plugin/
	--><img src="http://feeds.feedburner.com/~r/SANSForensics/~4/7X6hiieMM1c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blogs.sans.org/computer-forensics/2009/10/05/mounting-images-using-alternate-superblocks-follow-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blogs.sans.org/computer-forensics/2009/10/05/mounting-images-using-alternate-superblocks-follow-up/</feedburner:origLink></item>
	</channel>
</rss>
