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

<channel>
	<title>M-unition &#187; memory acquisition</title>
	<atom:link href="http://blog.mandiant.com/archives/tag/memory-acquisition/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.mandiant.com</link>
	<description>The Ammunition You Need to Find Evil and Solve Crime</description>
	<lastBuildDate>Thu, 09 Feb 2012 14:18:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Memory acquisition and the pagefile(s)</title>
		<link>https://blog.mandiant.com/archives/1157?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=memory-acquisition-pagefiles-part-ii</link>
		<comments>https://blog.mandiant.com/archives/1157#comments</comments>
		<pubDate>Thu, 08 Jul 2010 01:04:53 +0000</pubDate>
		<dc:creator>Jamie Butler</dc:creator>
				<category><![CDATA[The Lab]]></category>
		<category><![CDATA[memory acquisition]]></category>
		<category><![CDATA[pagefiles]]></category>
		<category><![CDATA[swap files]]></category>
		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://blog.mandiant.com/?p=1157</guid>
		<description><![CDATA[<p>In the past, I have discussed how in reality there may be as many as 16 pagefiles on a single host. The next question is, &#8220;How much data could be contained in all these pagefiles&#8221;? Why does this matter? Well, the more data in the pagefiles, the longer they will take to acquire. <a href="https://blog.mandiant.com/archives/1157" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>In the past, I have discussed how in reality there may be as many as 16 pagefiles on a single host. The next question is, &#8220;How much data could be contained in all these pagefiles&#8221;? Why does this matter? Well, the more data in the pagefiles, the longer they will take to acquire.<br />
&nbsp;<br />
The size of the pagefiles usually depends on the amount of RAM in the host. If you allow Windows to automatically configure the pagefile(s), it will typically recommend that the total size of the pagefiles should be 1.5 times the size of RAM. Here is an example of the recommended settings on a host with 3.5 GB of memory.<br />
<a href="http://blog.mandiant.com/wp-content/ammo/pagefilerec.jpg"><img src="http://blog.mandiant.com/wp-content/ammo/pagefilerec.jpg" alt="" title="Recommended size of pagefiles" width="416" height="829" class="alignnone size-full wp-image-1165" /></a><br />
The recommended total pagefile size is 5,371 MB or approximately 1.5 times 3.5 GB. However, you can configure the pagefiles manually. Some Web sites suggest making the size of the pagefile(s) as much as 3 times the size of RAM. This is what <a href="http://support.microsoft.com/kb/308417/en-us" target="_blank">Microsoft</a> has suggested as the maximum size for better performance on Windows XP.<br />
&nbsp;<br />
As pagefiles get bigger, they will take longer to acquire. Let&#8217;s look at how large they could be in x64 / EM64T, which is generically referred to as 64bit. On 64bit Windows hosts, 32bits or 2^32 are used to represent the offset in the pagefile where the page was stored. Each page in the pagefile is 4096 bytes or 2^12. We know there can be as many as 16 pagefiles or 2^4. Putting it all together:<br />
&nbsp;<br />
(Pagefile Offset) * (Page Size) * (Number of Pagefiles) = Total Size of Paging Data<br />
&nbsp;<br />
(2^32)             * (2^12)       * (2^4)                      = Total Size of Paging Data<br />
&nbsp;<br />
                           2^48                                        = Total Size of Paging Data<br />
&nbsp;<br />
                   281,474,976,710,656                           = Total Size of Paging Data<br />
&nbsp;<br />
<a href="http://support.microsoft.com/kb/294418/en-us" target="_blank">                          256 TB                                       = Total Size of Paging Data</a></p>
<p>Now, I know 256 TB is not going to be typical, but acquiring even 4 GB to 12 GB of paging files can take a long time. The pagefiles are in use and locked by the operating system. To gain access, tools typically parse the filesystem for access to the sectors that represent the pagefiles. This prolongs the time required to acquire the files.<br />
&nbsp;<br />
Next time in this series, we will discuss more about time and its implication on the paging files. If this series is boring you, the <a href="http://bit.ly/cn8Pca" target="_blank">memory forensics class at Black Hat</a> contains more hands-on applications and use cases. This year, Aaron LeMasters, author of <a href="http://blog.mandiant.com/archives/1075" target="_blank">Web Historian 2.0</a>, will be helping with the class. I hope to see you there.<br />
<br />
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fblog.mandiant.com%2Farchives%2F1157&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.mandiant.com/archives/1157/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Live analysis and its footprint</title>
		<link>https://blog.mandiant.com/archives/149?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=live-analysis-and-its-footprint</link>
		<comments>https://blog.mandiant.com/archives/149#comments</comments>
		<pubDate>Wed, 14 Jan 2009 23:17:38 +0000</pubDate>
		<dc:creator>Jamie Butler</dc:creator>
				<category><![CDATA[The Lab]]></category>
		<category><![CDATA[live analysis]]></category>
		<category><![CDATA[live response]]></category>
		<category><![CDATA[Matthieu Suiche]]></category>
		<category><![CDATA[memory acquisition]]></category>
		<category><![CDATA[Memory analysis]]></category>
		<category><![CDATA[Memoryze]]></category>
		<category><![CDATA[Windows Incident Response]]></category>

		<guid isPermaLink="false">http://blog.mandiant.com/?p=149</guid>
		<description><![CDATA[<p>Recently there was a <a href="http://windowsir.blogspot.com/2009/01/memory-collection-and-analysis-tools.html">conversation</a> on Harlan&#8217;s Windows Incident Response blog which mentioned the footprint of Memoryze and other tools. Every tool has positives and negatives depending on the use case.</p>
<p> </p>
<p>First, the blog entry mainly mentions the footprint on disk, which is larger than other acquisition tools because Memoryze does both acquisition and analysis in the same package. <a href="https://blog.mandiant.com/archives/149" class="read_more">Read the rest</a></p>]]></description>
			<content:encoded><![CDATA[<p>Recently there was a <a href="http://windowsir.blogspot.com/2009/01/memory-collection-and-analysis-tools.html">conversation</a> on Harlan&#8217;s Windows Incident Response blog which mentioned the footprint of Memoryze and other tools. Every tool has positives and negatives depending on the use case.</p>
<p> </p>
<p>First, the blog entry mainly mentions the footprint on disk, which is larger than other acquisition tools because Memoryze does both acquisition and analysis in the same package. <strong>What you may not have known is that Memoryze runs completely fine from a USB key.</strong> You can install Memoryze to your USB key and use it on the target machine. This mitigates the concern of a large disk footprint.</p>
<p> </p>
<p>Second, <a href="http://www.msuiche.net/">Matthieu Suiche</a> pointed out that some may be concerned with the memory footprint as well. Because Memoryze is a portion of MANDIANT Intelligent Response, it was built with the enterprise in mind. In an enterprise, it is not practical to acquire and bring back 15,000 or 20,000 memory images to analyze offline. With compression, analysis, and filtering capabilities, Memoryze&#8217;s memory footprint is larger. <strong>How do you mitigate this?</strong> We make use of the paging file(s). So if we force a page out of memory, Memoryze can still analyze it from the paging file(s).</p>
<p> </p>
<p><strong>Why do you do live analysis?</strong> First, as I stated above, it simply is not practical to bring back an image of RAM off of every host when the number of hosts grows larger than you can count on a hand or two. Second, by doing live analysis, we can make use of the paging file(s). If we were to acquire memory and then acquire the paging files, the synchronization issues between the two would be more severe. Third, the risk of doing the analysis on the host is similar to the risk associated with acquiring memory on the host. A.) The attacker can block access to physical memory, or B.) as Darren Bilby pointed out in his <a href="http://www.ruxcon.org.au/files/2006/anti_forensic_rootkits.ppt">talk at Ruxcon06</a>, the attacker can intercept the calls to map the view of physical memory. <em>Sidebar: It is necessary to map portions of physical memory into your address space in order to acquire or analyze memory. </em>Both attacks are possible when doing acquisition or analysis. If attack A is carried out, memory acquisition tools including Memoryze will error out. If attack B is used, neither acquisition nor analysis tools will be effective. Joanna Rutkowska demonstrated the equivalent of attack B even when doing hardware acquisition. However, attack B also requires the attacker to know the physical address of their malware in memory.</p>
<p> </p>
<p>Thanks to Matthieu for engaging me in this discussion. If you have not read his work on the hibernation file in Windows, it is very interesting.</p>
<p> </p>
<p>Jamie Butler</p>
<p> </p>
<p>By the way, you may be asking yourself why you cannot run Memoryze or other acquisition tools from a CD. Basically, Microsoft will not load a driver from a CD. It must first be copied to the local host. This is similar to trying to map a network drive with Memoryze and using it. Microsoft will not allow you to load a driver that is located on a network share. Check back in the coming weeks. We just might copy that single driver file to the local host so you can run it from a CD.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.mandiant.com/archives/149/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

