<?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; Vulnerabilities</title>
	<atom:link href="http://blog.didierstevens.com/category/vulnerabilities/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.didierstevens.com</link>
	<description>(blog 'DidierStevens)</description>
	<lastBuildDate>Thu, 26 Aug 2010 12:11:11 +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://0.gravatar.com/blavatar/60bb50c97cd147341ffb43b0e2ef0d15?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Didier Stevens &#187; Vulnerabilities</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>Quickpost: Ariad &amp; DLL Preloading</title>
		<link>http://blog.didierstevens.com/2010/08/26/quickpost-ariad-dll-preloading/</link>
		<comments>http://blog.didierstevens.com/2010/08/26/quickpost-ariad-dll-preloading/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 12:11:11 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[My Software]]></category>
		<category><![CDATA[Quickpost]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2267</guid>
		<description><![CDATA[I&#8217;m writing this quickpost just in case you hadn&#8217;t figured this out for yourself: the techniques I described to protect machines from the .LNK vulnerability also help you mitigate the DLL preloading issue. The .LNK vulnerability mitigation examples I gave with Ariad (no file execute) and SRP prevent loading of DLLs from untrusted locations (USB [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2267&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m writing this quickpost just in case you hadn&#8217;t figured this out for yourself: the <a href="http://blog.didierstevens.com/2010/07/18/mitigating-lnk-exploitation-with-ariad/">techniques</a> <a href="http://blog.didierstevens.com/2010/07/20/mitigating-lnk-exploitation-with-srp/">I described</a> to protect machines from the .LNK vulnerability also help you mitigate the <a href="http://blogs.technet.com/b/srd/archive/2010/08/23/more-information-about-dll-preloading-remote-attack-vector.aspx">DLL preloading issue</a>.</p>
<p>The .LNK vulnerability mitigation examples I gave with <a href="http://blog.didierstevens.com/2010/07/18/mitigating-lnk-exploitation-with-ariad/">Ariad (no file execute)</a> and <a href="http://blog.didierstevens.com/2010/07/20/mitigating-lnk-exploitation-with-srp/">SRP</a> prevent loading of DLLs from untrusted locations (USB sticks, network drives, &#8230;). These will also prevent DLLs from loading from untrusted sources in the case of DLL Preloading exploits.</p>
<hr /><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/2267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2267&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/08/26/quickpost-ariad-dll-preloading/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>
	</item>
		<item>
		<title>Quickpost: .LNK Template Update</title>
		<link>http://blog.didierstevens.com/2010/08/18/quickpost-2/</link>
		<comments>http://blog.didierstevens.com/2010/08/18/quickpost-2/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 10:43:38 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[My Software]]></category>
		<category><![CDATA[Quickpost]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2261</guid>
		<description><![CDATA[I updated my .LNK template with info I got from comments from WndSks and Forrest Gump. This new version identifies well-known Shell GUIDs: Quickpost info<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2261&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I updated my <a href="http://didierstevens.com/files/software/LNKTemplate.zip">.LNK template</a> with info I got from comments <a href="http://blog.didierstevens.com/2010/08/08/quickpost-2-lnk-tools/">from WndSks and Forrest Gump</a>. This new version identifies well-known Shell GUIDs:</p>
<p><img class="alignnone size-full wp-image-2262" title="20100818-123834" src="http://didierstevens.files.wordpress.com/2010/08/20100818-123834.png?w=632&#038;h=483" alt="" width="632" height="483" /></p>
<hr /><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/2261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2261/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2261/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2261/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2261&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/08/18/quickpost-2/feed/</wfw:commentRss>
		<slash:comments>4</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/08/20100818-123834.png" medium="image">
			<media:title type="html">20100818-123834</media:title>
		</media:content>
	</item>
		<item>
		<title>Quickpost: 2 .LNK Tools</title>
		<link>http://blog.didierstevens.com/2010/08/08/quickpost-2-lnk-tools/</link>
		<comments>http://blog.didierstevens.com/2010/08/08/quickpost-2-lnk-tools/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 10:52:14 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[My Software]]></category>
		<category><![CDATA[Quickpost]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2256</guid>
		<description><![CDATA[Microsoft has issued an emergency patch (MS10-046) for the .LNK file vulnerability (CVE-2010-2568). I&#8217;m releasing two small tools I developed to help me investigate this vulnerability. First one is a 010 Editor template file for the .LNK binary file format. Second one is a ClamAV signature file to find all .LNK shortcuts that load a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2256&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Microsoft has issued an emergency patch (MS10-046) for the .LNK file vulnerability (CVE-2010-2568).</p>
<p>I&#8217;m releasing two small tools I developed to help me investigate this vulnerability.</p>
<p>First one is a <a href="http://didierstevens.com/files/software/LNKTemplate.zip">010 Editor template file for the .LNK binary file format</a>.</p>
<p><img class="alignnone size-full wp-image-2257" title="20100807-155313" src="http://didierstevens.files.wordpress.com/2010/08/20100807-155313.png?w=616&#038;h=497" alt="" width="616" height="497" /><br />
Second one is a <a href="http://didierstevens.com/files/data/LNK-CPL-CVE-2010-2568.zip">ClamAV signature file to find all .LNK shortcuts</a> that load a DLL (malicious or benign).</p>
<p>To scan your drive C, issue command</p>
<pre>clamscan.exe -d LNK-CPL-CVE-2010-2568.ndb -l scan.log -r c:\</pre>
<hr /><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/2256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2256/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2256&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/08/08/quickpost-2-lnk-tools/feed/</wfw:commentRss>
		<slash:comments>18</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/08/20100807-155313.png" medium="image">
			<media:title type="html">20100807-155313</media:title>
		</media:content>
	</item>
		<item>
		<title>Mitigating .LNK Exploitation With SRP</title>
		<link>http://blog.didierstevens.com/2010/07/20/mitigating-lnk-exploitation-with-srp/</link>
		<comments>http://blog.didierstevens.com/2010/07/20/mitigating-lnk-exploitation-with-srp/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 07:13:09 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2242</guid>
		<description><![CDATA[As I&#8217;ve used Software Restriction Policies (SRP) on several occasions in my blogposts, and several people have suggested using SRP to protect against .LNK exploitation as an alternative to Ariad, I&#8217;ll describe how to configure SRP for the first time on a workstation that is not a member of a domain. For domain members, you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2242&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;ve used Software Restriction Policies (SRP) on several occasions in my <a href="http://blog.didierstevens.com/?s=srp">blogposts</a>, and several people have suggested using SRP to protect against .LNK exploitation as an alternative to <a href="http://blog.didierstevens.com/2010/07/18/mitigating-lnk-exploitation-with-ariad/">Ariad</a>, I&#8217;ll describe how to configure SRP for the first time on a workstation that is not a member of a domain. For domain members, you have to configure SRP in the GPO on the domain controller.</p>
<p>Start the Local Security Policy manager from Control Panel / Administrative Tools:</p>
<p><img class="alignnone size-full wp-image-2243" title="20100720-083156" src="http://didierstevens.files.wordpress.com/2010/07/20100720-083156.png?w=180&#038;h=73" alt="" width="180" height="73" /></p>
<p>Software Restriction Policies need to be defined the first time:</p>
<p><img class="alignnone size-full wp-image-2244" title="20100720-083430" src="http://didierstevens.files.wordpress.com/2010/07/20100720-083430.png?w=629&#038;h=262" alt="" width="629" height="262" /></p>
<p>We exclude our system drive (C:) from being restricted (add other drives if you have more):</p>
<p><img class="alignnone size-full wp-image-2245" title="20100720-083556" src="http://didierstevens.files.wordpress.com/2010/07/20100720-083556.png?w=552&#038;h=228" alt="" width="552" height="228" /></p>
<p><img class="alignnone size-full wp-image-2246" title="20100720-083726" src="http://didierstevens.files.wordpress.com/2010/07/20100720-083726.png?w=420&#038;h=245" alt="" width="420" height="245" /></p>
<p>To protect against .LNK exploitation, we need to restrict DLLs too, not only EXEs:</p>
<p><img class="alignnone size-full wp-image-2247" title="20100720-083852" src="http://didierstevens.files.wordpress.com/2010/07/20100720-083852.png?w=328&#038;h=156" alt="" width="328" height="156" /></p>
<p><img class="alignnone size-full wp-image-2248" title="20100720-083941" src="http://didierstevens.files.wordpress.com/2010/07/20100720-083941.png?w=420&#038;h=230" alt="" width="420" height="230" /></p>
<p>And finally, switch from blacklisting to whitelisting:</p>
<p><img class="alignnone size-full wp-image-2249" title="20100720-084026" src="http://didierstevens.files.wordpress.com/2010/07/20100720-084026.png?w=656&#038;h=233" alt="" width="656" height="233" /></p>
<p><img class="alignnone size-full wp-image-2250" title="20100720-084056" src="http://didierstevens.files.wordpress.com/2010/07/20100720-084056.png?w=419&#038;h=367" alt="" width="419" height="367" /></p>
<p>After configuring SRP, execute a logoff/logon to apply them immediately.</p>
<p>From now on, only executables on your C: drive will be allowed to run.</p>
<p>.LNK exploitation from removable media is blocked:</p>
<p><img class="alignnone size-full wp-image-2251" title="20100720-084233" src="http://didierstevens.files.wordpress.com/2010/07/20100720-084233.png?w=637&#038;h=445" alt="" width="637" height="445" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2242/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2242&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/07/20/mitigating-lnk-exploitation-with-srp/feed/</wfw:commentRss>
		<slash:comments>60</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/07/20100720-083156.png" medium="image">
			<media:title type="html">20100720-083156</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100720-083430.png" medium="image">
			<media:title type="html">20100720-083430</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100720-083556.png" medium="image">
			<media:title type="html">20100720-083556</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100720-083726.png" medium="image">
			<media:title type="html">20100720-083726</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100720-083852.png" medium="image">
			<media:title type="html">20100720-083852</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100720-083941.png" medium="image">
			<media:title type="html">20100720-083941</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100720-084026.png" medium="image">
			<media:title type="html">20100720-084026</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100720-084056.png" medium="image">
			<media:title type="html">20100720-084056</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100720-084233.png" medium="image">
			<media:title type="html">20100720-084233</media:title>
		</media:content>
	</item>
		<item>
		<title>Mitigating .LNK Exploitation With Ariad</title>
		<link>http://blog.didierstevens.com/2010/07/18/mitigating-lnk-exploitation-with-ariad/</link>
		<comments>http://blog.didierstevens.com/2010/07/18/mitigating-lnk-exploitation-with-ariad/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 13:42:15 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[My Software]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2210</guid>
		<description><![CDATA[Today I tested @Ivanlef0u &#8216;s .LNK PoC with my latest Ariad tool. I adapted the PoC to work on a CD-ROM for drive D. When you load the CD-ROM with the PoC (I use an ISO file inside a VM) and take a look at DbgView&#8217;s output, you&#8217;ll notice that payload gets executed: With Ariad [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2210&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I tested <a href="http://twitter.com/Ivanlef0u/status/18798593581">@Ivanlef0u &#8216;s .LNK PoC</a> with my latest <a href="http://blog.didierstevens.com/programs/ariad">Ariad</a> tool.</p>
<p>I adapted the PoC to work on a CD-ROM for drive D. When you load the CD-ROM with the PoC (I use an ISO file inside a VM) and take a look at DbgView&#8217;s output, you&#8217;ll notice that payload gets executed:</p>
<p><img class="alignnone size-full wp-image-2211" title="20100718-150334" src="http://didierstevens.files.wordpress.com/2010/07/20100718-150334.png?w=656&#038;h=496" alt="" width="656" height="496" /></p>
<p>With Ariad installed on the machine in its default configuration (just block \autorun.inf), the PoC still works:</p>
<p><img class="alignnone size-full wp-image-2214" title="20100718-152236" src="http://didierstevens.files.wordpress.com/2010/07/20100718-152236.png?w=562&#038;h=292" alt="" width="562" height="292" /></p>
<p><img class="alignnone size-full wp-image-2216" title="20100718-152440" src="http://didierstevens.files.wordpress.com/2010/07/20100718-152440.png?w=656&#038;h=496" alt="" width="656" height="496" /></p>
<p>But configuring Ariad to block access to executables (this includes .LNK) prevents the PoC from executing:</p>
<p><img class="alignnone size-full wp-image-2217" title="20100718-152616" src="http://didierstevens.files.wordpress.com/2010/07/20100718-152616.png?w=562&#038;h=292" alt="" width="562" height="292" /><br />
<img class="alignnone size-full wp-image-2218" title="20100718-152745" src="http://didierstevens.files.wordpress.com/2010/07/20100718-152745.png?w=656&#038;h=496" alt="" width="656" height="496" /></p>
<p>Access to the .LNK file is denied, and Windows Explorer can&#8217;t start the payload.</p>
<p>And configuring Ariad to prevent files to be mapped in memory (this is <a href="http://en.wikipedia.org/wiki/Memory-mapped_file">something done by Windows with executables</a>) also prevents the PoC from executing:</p>
<p><img class="alignnone size-full wp-image-2220" title="20100718-152930" src="http://didierstevens.files.wordpress.com/2010/07/20100718-152930.png?w=562&#038;h=292" alt="" width="562" height="292" /><br />
<img class="alignnone size-full wp-image-2221" title="20100718-153042" src="http://didierstevens.files.wordpress.com/2010/07/20100718-153042.png?w=656&#038;h=496" alt="" width="656" height="496" /></p>
<p>This time, access to the .LNK file is not denied, but dll.dll is prevented from loading into memory, thus again preventing the payload from executing.</p>
<p>You can use Ariad if you want to mitigate <a href="http://www.microsoft.com/technet/security/advisory/2286198.mspx">attacks with these shortcut links</a> until Microsoft releases a patch. As it is expected that Microsoft will not release a patch for Windows XP SP2, Ariad can offer permanent mitigation.</p>
<p>Be sure to read <a href="http://blog.didierstevens.com/programs/ariad">Ariad</a>&#8216;s documentation before using it.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/2210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2210&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/07/18/mitigating-lnk-exploitation-with-ariad/feed/</wfw:commentRss>
		<slash:comments>71</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/07/20100718-150334.png" medium="image">
			<media:title type="html">20100718-150334</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100718-152236.png" medium="image">
			<media:title type="html">20100718-152236</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100718-152440.png" medium="image">
			<media:title type="html">20100718-152440</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100718-152616.png" medium="image">
			<media:title type="html">20100718-152616</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100718-152745.png" medium="image">
			<media:title type="html">20100718-152745</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100718-152930.png" medium="image">
			<media:title type="html">20100718-152930</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/07/20100718-153042.png" medium="image">
			<media:title type="html">20100718-153042</media:title>
		</media:content>
	</item>
		<item>
		<title>Quickpost: No Escape From PDF</title>
		<link>http://blog.didierstevens.com/2010/06/29/quickpost-no-escape-from-pdf/</link>
		<comments>http://blog.didierstevens.com/2010/06/29/quickpost-no-escape-from-pdf/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 18:41:31 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[PDF]]></category>
		<category><![CDATA[Quickpost]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=2178</guid>
		<description><![CDATA[Adobe has released a new Adobe Reader version with a fix for my /Launch action PoC PDF. Before version 9.3.3: Since version 9.3.3: Not only is the dialog box fixed, but the /Launch action is also disabled by default. Quickpost info<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2178&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Adobe has released a new Adobe Reader version with a fix for <a href="http://blog.didierstevens.com/2010/03/29/escape-from-pdf/">my /Launch action PoC PDF</a>.</p>
<p>Before version 9.3.3:</p>
<p><img class="alignnone size-full wp-image-2099" title="20100329-211313" src="http://didierstevens.files.wordpress.com/2010/03/20100329-211313.png?w=478&#038;h=262" alt="" width="478" height="262" /></p>
<p>Since version 9.3.3:</p>
<p><img class="alignnone size-full wp-image-2179" title="29-06-2010 20-27-37" src="http://didierstevens.files.wordpress.com/2010/06/29-06-2010-20-27-37.png?w=478&#038;h=223" alt="" width="478" height="223" /></p>
<p>Not only is the dialog box fixed, but the /Launch action is also disabled by default.</p>
<hr /><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/2178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/2178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/2178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/2178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/2178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/2178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/2178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/2178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/2178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/2178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/2178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/2178/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/2178/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/2178/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=2178&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/06/29/quickpost-no-escape-from-pdf/feed/</wfw:commentRss>
		<slash:comments>9</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/20100329-211313.png" medium="image">
			<media:title type="html">20100329-211313</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2010/06/29-06-2010-20-27-37.png" medium="image">
			<media:title type="html">29-06-2010 20-27-37</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe Reader JavaScript Blacklist Framework</title>
		<link>http://blog.didierstevens.com/2010/01/11/adobe-reader-javascript-blacklist-framework/</link>
		<comments>http://blog.didierstevens.com/2010/01/11/adobe-reader-javascript-blacklist-framework/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 01:51:17 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Malware]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1926</guid>
		<description><![CDATA[The JavaScript Blacklist Framework is a security feature Adobe released with Adobe Reader and Acrobat versions 8.1.7 and 9.2. When you&#8217;re in a case where you need to use Adobe Reader and you can&#8217;t disable JavaScript, the JavaScript Blacklist Framework can help you mitigate zero-days in JavaScript API functions by disabling the vulnerable functions. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=1926&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://kb2.adobe.com/cps/504/cpsid_50431.html" target="_blank">JavaScript Blacklist Framework</a> is a security feature Adobe released with Adobe Reader and Acrobat versions 8.1.7 and 9.2.</p>
<p>When you&#8217;re in a case where you need to use Adobe Reader and you can&#8217;t disable JavaScript, the JavaScript Blacklist Framework can help you mitigate zero-days in JavaScript API functions by disabling the vulnerable functions.</p>
<p>I produced a video where I disable util.printf:</p>
<p><span style="text-align:center; display: block;"><a href="http://blog.didierstevens.com/2010/01/11/adobe-reader-javascript-blacklist-framework/"><img src="http://img.youtube.com/vi/wDAc88GS9cQ/2.jpg" alt="" /></a></span></p>
<p>Notice that when I blacklist util.printf, the script still executes until the blacklisted function util.printf is called. At that moment, the script is cancelled and the user is warned.</p>
<p>On Windows, you can blacklist functions by adding them to registry value tBlackList (HKLM\SOFTWARE\Policies\Adobe\<em>product</em>\<em>version</em>\FeatureLockDown\cJavaScriptPerms\tBlackList). To blacklist more than one function, use the same registry value and separate the functions by the pipe-character (e.g. Util.printf|Collab.getIcon). Pay attention to the fact that the framework is case-sensitive (e.g. Util.printf is correct, util.printf is not correct).</p>
<p>The framework is impervious to bypassing with some basic obfuscation techniques found in malicious PDFs (eval(&#8220;util.printf&#8230; ; x = util.printf; x(&#8220;&#8230; ).</p>
<p>It&#8217;s too bad that blacklisting is limited to the JavaScript API; the functions to blacklist must be in the form &lt;object-name&gt;.&lt;function-name&gt;. Otherwise we would be able to blacklist some global functions of the JavaScript language that are often used in malicious PDF files, like unescape. According to the <a href="http://en.wikipedia.org/wiki/ECMAScript" target="_blank">ECMAScript</a> specification, unescape is a member function of the Global Object. I tried several ways to blacklist it (unescape, .unescape, this.unescape, Doc.unescape, &#8230;), but failed.</p>
<p>If you really want to disable unescape, you could do this by patching the JavaScript plugin EScript.api. Maybe I&#8217;ll post a method to do this in-memory with my basic process manipulation tool kit.</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:0;width:1px;height:1px;">
<h1>Adobe Reader JavaScript Blacklist Framework</h1>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/1926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/1926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/1926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/1926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/1926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/1926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/1926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/1926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/1926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/1926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/1926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/1926/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/1926/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/1926/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=1926&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2010/01/11/adobe-reader-javascript-blacklist-framework/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/wDAc88GS9cQ/2.jpg" medium="image" />
	</item>
		<item>
		<title>CVE-2009-2979 Or The XML-Bombed PDF</title>
		<link>http://blog.didierstevens.com/2009/11/02/cve-2009-2979-or-the-xml-bombed-pdf/</link>
		<comments>http://blog.didierstevens.com/2009/11/02/cve-2009-2979-or-the-xml-bombed-pdf/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 07:15:00 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[PDF]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1823</guid>
		<description><![CDATA[The Extensible Metadata Platform is an Adobe standard to represent metadata with XML. More than a year ago, I added an XML-bomb to XMP-data inside a PDF document: As this made Adobe Reader 8 &#38; 9 crash, I reported it to Adobe. It has been fixed with the last patch cycle. Why do I disclose [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=1823&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://en.wikipedia.org/wiki/Extensible_Metadata_Platform" target="_blank">Extensible Metadata Platform</a> is an Adobe standard to represent metadata with XML.</p>
<p>More than a year ago, I added an <a href="http://blog.didierstevens.com/2008/09/23/dismantling-an-xml-bomb/" target="_blank">XML-bomb</a> to XMP-data inside a PDF document:</p>
<p><img class="alignnone size-full wp-image-1824" title="20091031-194428" src="http://didierstevens.files.wordpress.com/2009/10/20091031-194428.png?w=1001&#038;h=609" alt="20091031-194428" width="1001" height="609" /></p>
<p>As this made Adobe Reader 8 &amp; 9 crash, I reported it to Adobe. It has been fixed with the <a href="http://www.adobe.com/support/security/bulletins/apsb09-15.html" target="_blank">last patch cycle</a>.</p>
<p>Why do I disclose the details of this vulnerability? Because XMP is not only intended to be used in PDF documents, but many <a href="http://en.wikipedia.org/wiki/Extensible_Metadata_Platform#Location_in_file_types" target="_blank">other file formats</a>. So be sure to check your software for this vulnerability.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/1823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/1823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/1823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/1823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/1823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/1823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/1823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/1823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/1823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/1823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/1823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/1823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/1823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/1823/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=1823&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2009/11/02/cve-2009-2979-or-the-xml-bombed-pdf/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/2009/10/20091031-194428.png" medium="image">
			<media:title type="html">20091031-194428</media:title>
		</media:content>
	</item>
		<item>
		<title>Update: PDFiD Version 0.0.9 to Detect Another Adobe 0Day</title>
		<link>http://blog.didierstevens.com/2009/10/13/update-pdfid-version-0-0-9-to-detect-another-adobe-0day/</link>
		<comments>http://blog.didierstevens.com/2009/10/13/update-pdfid-version-0-0-9-to-detect-another-adobe-0day/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 21:23:27 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[My Software]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[Vulnerabilities]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1807</guid>
		<description><![CDATA[PDFiD is updated to detect the latest Adobe 0day, CVE-2009-3459. I&#8217;ll provide more details in an upcoming post, just now for know that PDFiD detects a /Colors name followed by a very big number (larger than 2^24 or 16777216). You can download PDFiD here.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=1807&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PDFiD is updated to detect the latest Adobe 0day, <a href="http://blogs.adobe.com/psirt/2009/10/adobe_reader_and_acrobat_issue_1.html" target="_blank">CVE-2009-3459</a>.</p>
<p>I&#8217;ll provide more details in an upcoming post, just now for know that PDFiD detects a /Colors name followed by a very big number (larger than 2^24 or 16777216).</p>
<p><img class="alignnone size-full wp-image-1808" title="pdfid009" src="http://didierstevens.files.wordpress.com/2009/10/pdfid009.png?w=315&#038;h=139" alt="pdfid009" width="315" height="139" /></p>
<p>You can download PDFiD <a href="http://blog.didierstevens.com/programs/pdf-tools/#pdfid" target="_self">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/1807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/1807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/1807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/1807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/1807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/1807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/1807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/1807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/1807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/1807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/1807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/1807/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/1807/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/1807/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=1807&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2009/10/13/update-pdfid-version-0-0-9-to-detect-another-adobe-0day/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2009/10/pdfid009.png" medium="image">
			<media:title type="html">pdfid009</media:title>
		</media:content>
	</item>
		<item>
		<title>Preventing Applications From Starting (Malicious) Applications</title>
		<link>http://blog.didierstevens.com/2009/10/05/preventing-applications-from-starting-malicious-applications/</link>
		<comments>http://blog.didierstevens.com/2009/10/05/preventing-applications-from-starting-malicious-applications/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 00:00:54 +0000</pubDate>
		<dc:creator>Didier Stevens</dc:creator>
				<category><![CDATA[Malware]]></category>
		<category><![CDATA[My Software]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[Vulnerabilities]]></category>
		<category><![CDATA[bpmtk]]></category>

		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1786</guid>
		<description><![CDATA[Another very effective way to prevent malicious documents from infecting PCs, is to prevent vulnerable applications from starting other applications. As almost all shellcode found in malicious documents in-the-wild (again, I&#8217;m excluding targeted attacks) will ultimately start another process to execute the trojan, blocking this will prevent the trojan from executing. This is an old [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=1786&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Another very effective way to <a href="http://blog.didierstevens.com/2009/09/27/preventing-malicious-documents-from-compromising-windows-machines/" target="_self">prevent malicious documents from infecting PCs</a>, is to prevent vulnerable applications from starting other applications. As almost all shellcode found in malicious documents in-the-wild (again, I&#8217;m excluding targeted attacks) will ultimately start another process to execute the trojan, blocking this will prevent the trojan from executing.</p>
<p>This is an old idea you&#8217;ll find implemented in many sandboxes and HIPS. I added a new DLL to my <a href="http://blog.didierstevens.com/2008/02/28/introducing-the-basic-process-manipulation-tool-kit/" target="_self">basic process manipulation tool kit</a> to prevent applications from creating a new process. Loading this DLL inside a process will prevent this process from creating a new process. I&#8217;ll explain the technique used in my DLL and how to load it in vulnerable applications in upcoming blogposts, but I want to start with showing how it prevents malicious documents from infecting a PC.</p>
<p>When the DLL is loaded inside a process, it will patch the Create Process API to intercept and block calls to it:</p>
<p><img class="alignnone size-full wp-image-1790" title="hook-createprocess-010" src="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-010.png?w=700&#038;h=182" alt="hook-createprocess-010" width="700" height="182" /></p>
<p>As a first test, we&#8217;ll use my <a href="http://blog.didierstevens.com/2008/05/20/quickpost-eicarpdf/" target="_self">eicar.pdf</a> document.</p>
<p><img class="alignnone size-full wp-image-1791" title="hook-createprocess-009" src="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-009.png?w=677&#038;h=310" alt="hook-createprocess-009" width="677" height="310" /></p>
<p>Clicking the button will save the eicar.txt file to a temporary folder and launch the editor.</p>
<p>Adobe Acrobat reader will warn you when an application is to be launched:</p>
<p><img class="alignnone size-full wp-image-1792" title="hook-createprocess-011" src="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-011.png?w=574&#038;h=205" alt="hook-createprocess-011" width="574" height="205" /></p>
<p>But when you accept, the editor will be prevented to execute:</p>
<p><img class="alignnone size-full wp-image-1793" title="hook-createprocess-012" src="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-012.png?w=510&#038;h=142" alt="hook-createprocess-012" width="510" height="142" /></p>
<p>That&#8217;s because the DLL intercepted and blocked the Create Process call:</p>
<p><img class="alignnone size-full wp-image-1794" title="hook-createprocess-013" src="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-013.png?w=717&#038;h=119" alt="hook-createprocess-013" width="717" height="119" /></p>
<p>As a second test, let&#8217;s use a real malicious PDF document. The hooks installed by the DLL prevent it from executing the trojan:</p>
<p><img class="alignnone size-full wp-image-1795" title="hook-createprocess-014" src="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-014.png?w=723&#038;h=149" alt="hook-createprocess-014" width="723" height="149" /></p>
<p>Adobe Reader starts and then just crashes, without spawning another process:</p>
<p><img class="alignnone size-full wp-image-1797" title="hook-createprocess-017" src="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-017.png?w=724&#038;h=189" alt="hook-createprocess-017" width="724" height="189" /></p>
<p>When opening the same malicious PDF, but without the protecting DLL, the machine gets trojaned (execution of 1.exe and Internet Explorer):</p>
<p><img class="alignnone size-full wp-image-1796" title="hook-createprocess-018" src="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-018.png?w=725&#038;h=274" alt="hook-createprocess-018" width="725" height="274" /></p>
<p>This simple way of preventing applications from launching other applications comes with some drawbacks. For example, the Check Update function in Adobe Reader will not function anymore.</p>
<p>When you have a sandboxing system of HIPS installed on the machines you manage, check if you can use it to prevent vulnerable applications from starting other applications. If it doesn&#8217;t provide such a feature, try the new DLL I&#8217;ll be posting in the new version of bpmtk.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/didierstevens.wordpress.com/1786/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/didierstevens.wordpress.com/1786/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/didierstevens.wordpress.com/1786/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/didierstevens.wordpress.com/1786/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/didierstevens.wordpress.com/1786/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/didierstevens.wordpress.com/1786/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/didierstevens.wordpress.com/1786/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/didierstevens.wordpress.com/1786/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/didierstevens.wordpress.com/1786/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/didierstevens.wordpress.com/1786/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/didierstevens.wordpress.com/1786/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/didierstevens.wordpress.com/1786/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/didierstevens.wordpress.com/1786/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/didierstevens.wordpress.com/1786/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.didierstevens.com&amp;blog=264765&amp;post=1786&amp;subd=didierstevens&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.didierstevens.com/2009/10/05/preventing-applications-from-starting-malicious-applications/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">didierstevens</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-010.png" medium="image">
			<media:title type="html">hook-createprocess-010</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-009.png" medium="image">
			<media:title type="html">hook-createprocess-009</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-011.png" medium="image">
			<media:title type="html">hook-createprocess-011</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-012.png" medium="image">
			<media:title type="html">hook-createprocess-012</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-013.png" medium="image">
			<media:title type="html">hook-createprocess-013</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-014.png" medium="image">
			<media:title type="html">hook-createprocess-014</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-017.png" medium="image">
			<media:title type="html">hook-createprocess-017</media:title>
		</media:content>

		<media:content url="http://didierstevens.files.wordpress.com/2009/10/hook-createprocess-018.png" medium="image">
			<media:title type="html">hook-createprocess-018</media:title>
		</media:content>
	</item>
	</channel>
</rss>