<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Didier Stevens &#187; Forensics</title>
	<atom:link href="http://blog.didierstevens.com/category/forensics/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.didierstevens.com</link>
	<description>(blog 'DidierStevens)</description>
	<lastBuildDate>Sat, 04 Feb 2012 06:57:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.didierstevens.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Didier Stevens &#187; Forensics</title>
		<link>http://blog.didierstevens.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.didierstevens.com/osd.xml" title="Didier Stevens" />
	<atom:link rel='hub' href='http://blog.didierstevens.com/?pushpress=hub'/>
		<item>
		<title>Identifying IOS</title>
		<link>http://blog.didierstevens.com/2012/01/06/identifying-ios/</link>
		<comments>http://blog.didierstevens.com/2012/01/06/identifying-ios/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 10:33:43 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2961</guid>
		<description><![CDATA[Did you ever had to identify a Cisco IOS image when you couldn&#8217;t rely on the filename? Look for strings starting with CW_ between strings CW_BEGIN and CW_END in the image file, for example like this: You will find strings like CW_IMAGE, CW_FAMILY, CW_FEATURE, CW_VERSION, CW_MEDIA, CW_SYSDESCR and CW_MAGIC between strings CW_BEGIN and CW_END. In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2961&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Did you ever had to identify a Cisco IOS image when you couldn&#8217;t rely on the filename?</p>
<p>Look for strings starting with CW_ between strings CW_BEGIN and CW_END in the image file, for example like this:</p>
<p><img class="alignnone size-full wp-image-2962" title="20120105-231151" src="http://didierstevens.files.wordpress.com/2012/01/20120105-231151.png" alt="" width="656" height="191" /></p>
<p>You will find strings like CW_IMAGE, CW_FAMILY, CW_FEATURE, CW_VERSION, CW_MEDIA, CW_SYSDESCR and CW_MAGIC between strings CW_BEGIN and CW_END.</p>
<p>In this example, the IOS version is 12.4(6)T5 (CW_VERSION) and it is designed to run on 870 routers (CW_FAMILY).</p>
<p>The nice thing about these CW_ strings is that you will also find them in a core dump (in the data region), thus allowing you to identify the IOS version that was running on a router when the core dump was produced (provided the image runs from RAM, indicated by a letter m in the filename).</p>
<p>And they are also present in the uncompressed image (compressed image files are identified by a letter z in the filename).</p>
<p>Soon I will release a tool to validate IOS image files, you can use it to extract these CW_ strings too.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2961/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2961/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2961/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2961&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2012/01/06/identifying-ios/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2012/01/20120105-231151.png" medium="image">
			<media:title type="html">20120105-231151</media:title>
		</media:content>
	</item>
		<item>
		<title>Calculating a SSH Fingerprint From a (Cisco) Public Key</title>
		<link>http://blog.didierstevens.com/2012/01/01/calculating-a-ssh-fingerprint-from-a-cisco-public-key/</link>
		<comments>http://blog.didierstevens.com/2012/01/01/calculating-a-ssh-fingerprint-from-a-cisco-public-key/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 17:03:12 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2943</guid>
		<description><![CDATA[I&#8217;m sure some of you verify SSH fingerprints before you use a SSH server for the first time. You obtain the fingerprint via another channel, and you compare it with the fingerprint your SSH client presents you. But have you done this with Cisco devices too? Recently I tried to obtain the SSH fingerprint of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2943&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m sure some of you verify SSH fingerprints before you use a SSH server for the first time. You obtain the fingerprint via another channel, and you compare it with the fingerprint your SSH client presents you.</p>
<p><img class="alignnone size-full wp-image-2944" title="20111221-224355" src="http://didierstevens.files.wordpress.com/2011/12/20111221-224355.png" alt="" width="428" height="310" /></p>
<p>But have you done this with Cisco devices too? Recently I tried to obtain the SSH fingerprint of a Cisco router while connected via the serial console. Turns out there is no CLI command to display the fingerprint (well, at least I didn&#8217;t find one). What you can do, is dump the public key with command &#8220;show crypto key mypubkey rsa&#8221;.</p>
<p><img class="alignnone size-full wp-image-2945" title="20111221-225407" src="http://didierstevens.files.wordpress.com/2011/12/20111221-225407.png" alt="" width="691" height="440" /></p>
<p>So I developed a small Python program that calculates a SSH fingerprint from the public key. You store the public key in hex format in a file and use that with this new tool.<br />
<img class="alignnone size-full wp-image-2946" title="20111221-225513" src="http://didierstevens.files.wordpress.com/2011/12/20111221-225513.png" alt="" width="411" height="103" /></p>
<p>To calculate the fingerprint, I extract the modulus and exponent from the public key, store them in another format (ssh-rsa) and calculate the MD5 hash.</p>
<p><img class="alignnone size-full wp-image-2947" title="20111221-232143" src="http://didierstevens.files.wordpress.com/2011/12/20111221-232143.png" alt="" width="463" height="203" /></p>
<p>So now I can connect to a router via the serial console while there&#8217;s no &#8220;man in the middle&#8221;, obtain the public key and calculate the fingerprint. Next when I connect to the same router over SSH, I can validate the fingerprint my SSH client presents me. It&#8217;s too bad Cisco provides no feature to get the fingerprint directly.</p>
<p><a href="http://didierstevens.com/files/software/cisco-calculate-ssh-fingerprint_V0_0_1.zip" target="_self">cisco-calculate-ssh-fingerprint_V0_0_1.zip</a> (<a href="https://didierstevens.com/files/software/cisco-calculate-ssh-fingerprint_V0_0_1.zip" target="_self">https</a>)<br />
MD5: 5A6C3A2C466908EE7EFB06727E8D02B7<br />
SHA256: 831CAF7BBF0F6C584436C42D9CEB252A089487B715ADBB81F9547EEB3ED6B0B8</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2943/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2943/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2943/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2943/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2943/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2943/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2943/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2943/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2943/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2943/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2943/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2943/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2943/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2943/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2943&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2012/01/01/calculating-a-ssh-fingerprint-from-a-cisco-public-key/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2011/12/20111221-224355.png" medium="image">
			<media:title type="html">20111221-224355</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2011/12/20111221-225407.png" medium="image">
			<media:title type="html">20111221-225407</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2011/12/20111221-225513.png" medium="image">
			<media:title type="html">20111221-225513</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2011/12/20111221-232143.png" medium="image">
			<media:title type="html">20111221-232143</media:title>
		</media:content>
	</item>
		<item>
		<title>Quickpost: Blocking and Detecting a Teensy Dropper</title>
		<link>http://blog.didierstevens.com/2011/07/14/quickpost-blocking-and-detecting-a-teensy-dropper/</link>
		<comments>http://blog.didierstevens.com/2011/07/14/quickpost-blocking-and-detecting-a-teensy-dropper/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 09:58:16 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2722</guid>
		<description><![CDATA[A Teensy dropper presents itself as a keyboard (HID) to a PC and this is how it can be used to drop files even if you don&#8217;t allow removable drives. You can prevent the installation of new HIDs, but this is an issue when you need to replace keyboards or mice. Irongeek has a good [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2722&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A Teensy dropper presents itself as a keyboard (<a href="https://secure.wikimedia.org/wikipedia/en/wiki/Human_interface_device">HID</a>) to a PC and this is how it can be used to <a href="http://blog.didierstevens.com/2011/07/13/teensy-pdf-dropper-part-1/">drop files</a> even if you don&#8217;t allow removable drives.</p>
<p>You can prevent the installation of new HIDs, but this is an issue when you need to replace keyboards or mice. Irongeek has a <a href="http://www.irongeek.com/i.php?page=security/plug-and-prey-malicious-usb-devices#3._Locking_down_Windows_and_Linux_against_Malicious_USB_devices">good write-up</a>.</p>
<p>Connected HIDs leave forensics traces in the registry, take a look under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\</p>
<p>Connecting a Teensy leaves these entries:</p>
<p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_16c0&amp;Pid_0482\6&amp;31417f27&amp;0&amp;3<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_16c0&amp;Pid_0482&amp;MI_00\7&amp;becc88c&amp;0&amp;0000<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_16c0&amp;Pid_0482&amp;MI_01\7&amp;becc88c&amp;0&amp;0001<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_16c0&amp;Pid_0482&amp;MI_02\7&amp;becc88c&amp;0&amp;0002</p>
<hr />
<p><a href="http://blog.didierstevens.com/2007/11/01/announcing-quickposts/">Quickpost info</a></p>
<hr />
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2722/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2722/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2722/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2722&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2011/07/14/quickpost-blocking-and-detecting-a-teensy-dropper/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>
	</item>
		<item>
		<title>Malicious PDF Analysis Workshop Screencasts</title>
		<link>http://blog.didierstevens.com/2011/05/25/malicious-pdf-analysis-workshop-screencasts/</link>
		<comments>http://blog.didierstevens.com/2011/05/25/malicious-pdf-analysis-workshop-screencasts/#comments</comments>
		<pubDate>Wed, 25 May 2011 15:58:47 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2671</guid>
		<description><![CDATA[After giving my Malicious PDF Analysis workshop at Hack In The Box Amsterdam, I decided to produce a screencast for each exercise (there are 20 exercises). You can find the first screencasts here. More will be produced soon. Materials you&#8217;ll need for the exercises: my PDF tools the exercises themselves (password for the ZIP file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2671&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After giving my Malicious PDF Analysis workshop at <a href="http://conference.hackinthebox.org/hitbsecconf2011ams/">Hack In The Box Amsterdam</a>, I decided to produce a screencast for each exercise (there are 20 exercises). You can find the first screencasts <a href="http://blog.didierstevens.com/screencasts-videos/">here</a>. More will be produced soon.</p>
<p>Materials you&#8217;ll need for the exercises:</p>
<ul>
<li><a href="http://blog.didierstevens.com/programs/pdf-tools/">my PDF tools</a></li>
<li><a href="http://didierstevens.com/files/data/pdf-workshop-exercises.zip">the exercises themselves</a> (password for the ZIP file is &#8220;infected&#8221; without the double-quotes; there&#8217;s no malware in the exercises, but some might still trigger AV)</li>
<li><a href="http://blog.didierstevens.com/2010/09/26/free-malicious-pdf-analysis-e-book/">my free e-book on PDF analysis</a></li>
<li><a href="http://blog.didierstevens.com/programs/spidermonkey/">SpiderMonkey</a></li>
</ul>
<span style="text-align:center; display: block;"><a href="http://blog.didierstevens.com/2011/05/25/malicious-pdf-analysis-workshop-screencasts/"><img src="http://img.youtube.com/vi/F3rpZT0gKXw/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2671/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2671&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2011/05/25/malicious-pdf-analysis-workshop-screencasts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>
	</item>
		<item>
		<title>Another PDF Puzzle</title>
		<link>http://blog.didierstevens.com/2011/05/17/another-pdf-puzzle/</link>
		<comments>http://blog.didierstevens.com/2011/05/17/another-pdf-puzzle/#comments</comments>
		<pubDate>Tue, 17 May 2011 08:23:54 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[Puzzle]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2665</guid>
		<description><![CDATA[As I&#8217;m going to give my workshop on analysis of malicious PDFs at HiTB Amsterdam this Thursday, I thought I would share a PDF puzzle/challenge I made for BSidesLondon. You can download it here. And as there is write-up for the solution to this puzzle on a blog, I&#8217;ll link to this in the comments [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2665&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;m going to give my workshop on analysis of malicious PDFs at <a href="http://conference.hackinthebox.org/hitbsecconf2011ams/">HiTB Amsterdam</a> this Thursday, I thought I would share a PDF puzzle/challenge I made for BSidesLondon.</p>
<p>You can download it <a href="http://www.didierstevens.com/files/data/BSidesLondon2011-PDF-Challenge.zip">here</a>.</p>
<p>And as there is write-up for the solution to this puzzle on a blog, I&#8217;ll link to this in the comments next week. Since you can just Google the solution, there is no prize this time.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2665/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2665/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2665/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2665&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2011/05/17/another-pdf-puzzle/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>
	</item>
		<item>
		<title>BackTrack 5 Includes PDFiD and pdf-parser</title>
		<link>http://blog.didierstevens.com/2011/05/12/backtrack-5-includes-pdfid-and-pdf-parser/</link>
		<comments>http://blog.didierstevens.com/2011/05/12/backtrack-5-includes-pdfid-and-pdf-parser/#comments</comments>
		<pubDate>Thu, 12 May 2011 21:13:16 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2659</guid>
		<description><![CDATA[You probably noticed the release of BackTrack 5. But did you notice the inclusion of my PDFiD and pdf-parser tools? You can find them under /pentest/forensics/pdfid and /pentest/forensics/pdf-parser.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2659&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You probably noticed the release of <a href="http://www.backtrack-linux.org/">BackTrack 5</a>.</p>
<p>But did you notice the inclusion of my <a href="http://blog.didierstevens.com/programs/pdf-tools/">PDFiD and pdf-parser tools</a>?</p>
<p>You can find them under /pentest/forensics/pdfid and /pentest/forensics/pdf-parser.</p>
<p><img class="alignnone size-full wp-image-2660" title="20110512-230634" src="http://didierstevens.files.wordpress.com/2011/05/20110512-230634.png" alt="" width="1024" height="768" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2659/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2659&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2011/05/12/backtrack-5-includes-pdfid-and-pdf-parser/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2011/05/20110512-230634.png" medium="image">
			<media:title type="html">20110512-230634</media:title>
		</media:content>
	</item>
		<item>
		<title>DumpStrings.1sc</title>
		<link>http://blog.didierstevens.com/2011/03/08/dumpstrings-1sc/</link>
		<comments>http://blog.didierstevens.com/2011/03/08/dumpstrings-1sc/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 00:00:45 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[My Software]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2606</guid>
		<description><![CDATA[I wrote another script for my 010 Editor. Like its name implies, DumpStrings will dump all the strings (ASCII and UNICODE) found in a file, or a selection in a file, to the output tab. Strings must be at least 5 characters long (defined with a #define statement in the script). UNICODE support is very [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2606&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wrote another script for my 010 Editor.</p>
<p><img class="alignnone size-full wp-image-2605" title="20110306-234102" src="http://didierstevens.files.wordpress.com/2011/03/20110306-234102.png" alt="" width="891" height="738" /></p>
<p>Like its name implies, DumpStrings will dump all the strings (ASCII and UNICODE) found in a file, or a selection in a file, to the output tab.<br />
Strings must be at least 5 characters long (defined with a #define statement in the script).<br />
UNICODE support is very simple for the moment: 7-bit values in a 16-bit character (MSB or LSB).</p>
<p>Take into account that this is not designed for large files: it will take too long. But its easy to analyze partial files without having to save the selection for analysis with another strings tool.</p>
<p>Download:</p>
<p><a href="http://www.didierstevens.com/files/software/DumpStrings_V0_0_1.zip">DumpStrings_V0_0_1.zip</a> (<a href="https://www.didierstevens.com/files/software/DumpStrings_V0_0_1.zip">https</a>)</p>
<p>MD5: 50C0C92F28020E7BCABBF46CA8775CCE</p>
<p>SHA256: 7EC688DBB0FD95C828067662C9ED8BBCFFEFBE5EA37B607DC8DFA1BDCB94365C</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2606/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2606/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2606/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2606&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2011/03/08/dumpstrings-1sc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2011/03/20110306-234102.png" medium="image">
			<media:title type="html">20110306-234102</media:title>
		</media:content>
	</item>
		<item>
		<title>Free Malicious PDF Analysis E-book</title>
		<link>http://blog.didierstevens.com/2010/09/26/free-malicious-pdf-analysis-e-book/</link>
		<comments>http://blog.didierstevens.com/2010/09/26/free-malicious-pdf-analysis-e-book/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 08:41:50 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2338</guid>
		<description><![CDATA[The title says it all&#8230; This is a document I shared with my Brucon workshop attendees. I know, this is a PDF document, you&#8217;ve to appreciate the irony<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2338&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The title says it all&#8230;</p>
<p><a href="http://didierstevens.com/files/data/malicious-pdf-analysis-ebook.zip">This is a document</a> I shared with my Brucon workshop attendees.</p>
<p>I know, this is a PDF document, you&#8217;ve to appreciate the irony <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2338/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2338/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2338&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/09/26/free-malicious-pdf-analysis-e-book/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>
	</item>
		<item>
		<title>Frisky Solitaire &#8211; Another Info Stealer</title>
		<link>http://blog.didierstevens.com/2010/03/09/frisky-solitaire-another-info-stealer/</link>
		<comments>http://blog.didierstevens.com/2010/03/09/frisky-solitaire-another-info-stealer/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 00:00:15 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Malware]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2072</guid>
		<description><![CDATA[Marcus Murray gave a great talk at TechEd Berlin 2009: &#8220;Hack-Proofing Your Clients Using Windows 7 Security&#8221;. In one of his demos, he showed a trojaned Excel spreadsheet. The spreadsheet was a simple text-based game, but it had a malicious component that executed surreptitiously while the game was played. As I&#8217;ve done several hacks with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2072&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.truesec.com/en/consulting.htm#mm">Marcus Murray</a> gave a great talk at TechEd Berlin 2009: &#8220;Hack-Proofing Your Clients Using Windows 7 Security&#8221;. In one of his demos, he showed a trojaned Excel spreadsheet. The spreadsheet was a simple text-based game, but it had a malicious component that executed surreptitiously while the game was played.</p>
<p>As I&#8217;ve done several <a href="http://blog.didierstevens.com/2008/10/23/excel-exercises-in-style/">hacks with Excel macros</a> in the past, this made me realize that social engineering is a key element to get people to run macros from a spreadsheet of unknown origin.</p>
<p>Several people have asked me about de details of the vulnerability I exploited in my <a href="http://blog.didierstevens.com/2010/03/08/pdf-info-stealer-poc/">PDF Info Stealer PoC</a>. But that&#8217;s not important. It&#8217;s not about the exploit, it&#8217;s about the payload: the info stealer. As I&#8217;ve written in <a href="http://blog.didierstevens.com/2010/03/08/pdf-info-stealer-poc/">my previous post</a>, I don&#8217;t even need an exploit to get users to execute the info stealer. If I put the info stealer inside an Excel spreadsheet and social engineer the targeted users to execute the macros, I&#8217;ve achieved my goal without exploiting a software vulnerability.</p>
<p>I present you Frisky Solitaire:</p>
<p><img class="alignnone size-full wp-image-2073" title="XPPROSP3-2010-03-05-20-49-19" src="http://didierstevens.files.wordpress.com/2010/03/xpprosp3-2010-03-05-20-49-19.png" alt="" width="1024" height="768" /></p>
<p>Frisky solitaire is more compelling than text-based Excel games, because of the graphics. I took Solitaire from ReactOS, turned it into a DLL and embedded it with my <a href="http://blog.didierstevens.com/2010/02/16/memoryloadlibrary-from-c-program-to-shellcode/">memory loading shellcode</a> into Excel macros (the same technique as <a href="http://blog.didierstevens.com/2010/02/08/excel-with-cmd-dll-regedit-dll/">I developed for cmd.dll and regedit.dll</a>). I imagine that a simple game like Solitaire in Excel can go viral inside a company, when you know that many corporations disable standard Windows games on their desktops and Terminal Servers.</p>
<p>But in a crude attempt at social engineering the male population of a targeted company, I added an element of nudity to the game. The implied message of the game&#8217;s title is that winning games increases nudity. I know, I&#8217;m talking about basic instincts here, but it still does the trick&#8230;</p>
<p>So I imagine that this game can become popular with a large part of the male employees of a targeted company. And that they wouldn&#8217;t question the fact you have to execute Excel macros to play a game. Sounds plausible, no?</p>
<p>Of course, you guessed it: Frisky Solitaire is trojaned with an info stealer&#8230; No need to exploit a software vulnerability to steal info. Given that here too, everything is done in memory, detection is unlikely.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2072/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2072/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2072/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2072/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2072/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2072/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2072/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2072/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2072/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2072/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2072/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2072/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2072/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2072/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2072&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/03/09/frisky-solitaire-another-info-stealer/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/03/xpprosp3-2010-03-05-20-49-19.png" medium="image">
			<media:title type="html">XPPROSP3-2010-03-05-20-49-19</media:title>
		</media:content>
	</item>
		<item>
		<title>PDF Info Stealer PoC</title>
		<link>http://blog.didierstevens.com/2010/03/08/pdf-info-stealer-poc/</link>
		<comments>http://blog.didierstevens.com/2010/03/08/pdf-info-stealer-poc/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 00:00:00 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Forensics]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2046</guid>
		<description><![CDATA[An info stealer is malware that steals credentials or files from its victims. Info stealers don&#8217;t require admin rights to perform their task, and can be designed to evade or bypass AV, HIPS, DLP and other security software. I helped out a friend testing his environment with a PoC PDF info stealer I designed (I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2046&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An info stealer is malware that steals credentials or files from its victims.</p>
<p>Info stealers don&#8217;t require admin rights to perform their task, and can be designed to evade or bypass AV, HIPS, DLP and other security software.</p>
<p>I helped out a friend testing his environment with a PoC PDF info stealer I designed (I will not publish it).</p>
<p><img class="alignnone size-full wp-image-2049" title="pdf-infostealer-1" src="http://didierstevens.files.wordpress.com/2010/03/pdf-infostealer-1.png" alt="" width="499" height="231" /></p>
<p>This PDF document exploits a known vulnerability, and executes shellcode to load a DLL (embedded inside the PDF document) from memory into memory. This way, nothing gets written to disk (except the PDF file). The DLL searches the My Documents folder of the currect user for a file called budget.xls, and uploads it to <a href="http://pastebin.com/HXDu9Z8r">Pastebin.com</a>.</p>
<p><img class="alignnone size-full wp-image-2050" title="pdf-infostealer-2" src="http://didierstevens.files.wordpress.com/2010/03/pdf-infostealer-2.png" alt="" width="712" height="349" /></p>
<p>My PDF info stealer was succesful: file budget.xls was posted to Pastebin.com</p>
<p>Preventing an info stealer from operating is not easy. The Windows operating system is designed to give user processes unrestricted access to the user&#8217;s data. It&#8217;s only starting with the Windows Vista kernel and <a href="http://en.wikipedia.org/wiki/Mandatory_Integrity_Control">Windows Integrity Control</a> that a process can be assigned a lower level than user data and be restricted from accessing it. Lowering the Integrity Level of Acrobat Reader will help us in this case, but if I exploit an Excel vulnerability (or just use macros, without exploiting a vulnerability), the integrity levels will not protect us.</p>
<p>Neither is preventing data egress easy. OK, you can decide to block Pastebin.com. But can you block all sites that can be posted to? Like <a href="http://blog.didierstevens.com/2008/03/31/hiding-inside-wikipedia/">Wikipedia</a>? And if you can, do you block <a href="http://blog.didierstevens.com/2010/02/22/ping-shellcode/">ICMP packets</a>?</p>
<p>To protect confidential data, don&#8217;t let it be accessed by systems with Internet access. That&#8217;s not very practical, but it&#8217;s reliable. Or use strong encryption with strong passwords (not the default RC4 Excel encryption). The info stealer will have the <a href="http://blog.didierstevens.com/2008/12/09/updates-bpmtk-and-hakin9-pdf-and-metasploit/">extra difficulty to steal the password too</a>.</p>
<p>I know this is obvious advice, but it&#8217;s not easy protecting data from carefully designed info stealers on Windows.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2046/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2046/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2046/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2046/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2046/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2046/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2046/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2046/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2046/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2046/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2046/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2046/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2046/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2046/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2046&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/03/08/pdf-info-stealer-poc/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/03/pdf-infostealer-1.png" medium="image">
			<media:title type="html">pdf-infostealer-1</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/03/pdf-infostealer-2.png" medium="image">
			<media:title type="html">pdf-infostealer-2</media:title>
		</media:content>
	</item>
	</channel>
</rss>
