<?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>inREVERSE</title>
	<atom:link href="http://againinreverse.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://againinreverse.wordpress.com</link>
	<description>just another mirror</description>
	<lastBuildDate>Sat, 24 Apr 2010 14:49:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='againinreverse.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>inREVERSE</title>
		<link>http://againinreverse.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://againinreverse.wordpress.com/osd.xml" title="inREVERSE" />
	<atom:link rel='hub' href='http://againinreverse.wordpress.com/?pushpress=hub'/>
		<item>
		<title>FakeAV Serial Fishing</title>
		<link>http://againinreverse.wordpress.com/2010/04/24/fakeav-serial-fishing/</link>
		<comments>http://againinreverse.wordpress.com/2010/04/24/fakeav-serial-fishing/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 14:49:00 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[FakeAV]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[reversing]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://againinreverse.wordpress.com/?p=1179</guid>
		<description><![CDATA[Hello, I am going to analyze a FakeAV (thanks to MDL) md5: 5493bb325f4b3a1cc6efab226d1c4600. This analysis will be focused on how to spot the serial checking algorithm and retrieve a valid serial. So we have to locate the routine that checks the serial provided and figure out how to craft a valid serial. Since the sample [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=1179&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I am going to analyze a FakeAV  (thanks to MDL) md5: 5493bb325f4b3a1cc6efab226d1c4600. This analysis will be focused on how to spot the serial checking algorithm and retrieve a valid serial.</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/infected.png"><img src="http://againinreverse.files.wordpress.com/2010/04/infected.png?w=500" alt="" title="infected"   class="aligncenter size-full wp-image-1175" /></a></p>
<p>So we have to locate the routine that checks the serial provided and figure out how to craft a valid serial. Since the sample is packed with a custom packer, we have two ways. The first one is to get rid of the packer (maybe I will write about it in the near future) and then work on the unpacked sample. The second way is to get infected (use a Virtual Machine!) and then attach the debugger to the process in memory :]</p>
<p>Once you have chosen your way, we have to find out how to locate the serial checking function. We know that we have to put a string that will be used by the serial checking routine, so what about setting a breakpoint to trap the access to the serial string ?</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/enterkey.png"><img src="http://againinreverse.files.wordpress.com/2010/04/enterkey.png?w=500" alt="" title="enterkey"   class="aligncenter size-full wp-image-1174" /></a></p>
<p>Once you have set your breakpoint (@0×507288), we can resume the process and then press the “Activate Now” button, after few msec you will reach the following code:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/code.png"><img src="http://againinreverse.files.wordpress.com/2010/04/code.png?w=500&#038;h=234" alt="" title="code" width="500" height="234" class="aligncenter size-full wp-image-1173" /></a></p>
<p>As we can see from the code above, we have a function that takes two parameters: EAX and ESI, in which EAX is pointing to the serial provided, and ESI instead points to a hardcoded string. If we take a closer look at the location pointed by ESI, we can get the “hardcoded serial” which we are looking for:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/serial.png"><img src="http://againinreverse.files.wordpress.com/2010/04/serial.png?w=500" alt="" title="serial"   class="aligncenter size-full wp-image-1176" /></a></p>
<p>So in order to activate the FakeAV, we have to provide a serial which matches the hardcoded one, so our serial must be: 1145-17884799-7733. Finally here is the proof that our serial works:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/win1.png"><img src="http://againinreverse.files.wordpress.com/2010/04/win1.png?w=500" alt="" title="win1"   class="aligncenter size-full wp-image-1177" /></a><br />
<a href="http://againinreverse.files.wordpress.com/2010/04/win2.png"><img src="http://againinreverse.files.wordpress.com/2010/04/win2.png?w=500" alt="" title="win2"   class="aligncenter size-full wp-image-1178" /></a></p>
<p>That’s all. Let me know your comments, so I can decide if I take a look at other samples ;]</p>
<p>I hope you have enjoyed the reading.<br />
See you soon!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/1179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/1179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/1179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/1179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/1179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/1179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/1179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/1179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/1179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/1179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/1179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/1179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/1179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/1179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=1179&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2010/04/24/fakeav-serial-fishing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/infected.png" medium="image">
			<media:title type="html">infected</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/enterkey.png" medium="image">
			<media:title type="html">enterkey</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/code.png" medium="image">
			<media:title type="html">code</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/serial.png" medium="image">
			<media:title type="html">serial</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/win1.png" medium="image">
			<media:title type="html">win1</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/win2.png" medium="image">
			<media:title type="html">win2</media:title>
		</media:content>
	</item>
		<item>
		<title>Botnet attack report</title>
		<link>http://againinreverse.wordpress.com/2010/04/17/botnet-attack-report/</link>
		<comments>http://againinreverse.wordpress.com/2010/04/17/botnet-attack-report/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 13:54:21 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[botnet]]></category>
		<category><![CDATA[ddos]]></category>

		<guid isPermaLink="false">http://www.inreverse.net/?p=1052</guid>
		<description><![CDATA[Hello dear readers, the last night we have been under an heavy DDoS attack (so lame!), caused by a botnet that has targeted our blog. Some Details. The following is a graphical analysis of the botnet that has conducted this attack: Question/Answer time. Are we scared? No :] Will we stop our research? No no [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=1052&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello dear readers,</p>
<p>the last night we have been under an heavy <a href="http://en.wikipedia.org/wiki/Ddos">DDoS</a> attack (so <a href="http://en.wikipedia.org/wiki/Lamer">lame</a>!), caused by a <a href="http://en.wikipedia.org/wiki/Botnet">botnet</a> that has targeted our blog.</p>
<p><strong>Some Details.</strong></p>
<p>The following is a graphical analysis of the botnet that has conducted this attack:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/bycountry.png"><img src="http://againinreverse.files.wordpress.com/2010/04/bycountry.png?w=300&#038;h=141" alt="" title="byCountry" width="300" height="141" class="alignnone size-medium wp-image-1055" /></a><br />
<a href="http://againinreverse.files.wordpress.com/2010/04/bycity.png"><img src="http://againinreverse.files.wordpress.com/2010/04/bycity.png?w=300&#038;h=154" alt="" title="byCity" width="300" height="154" class="alignnone size-medium wp-image-1056" /></a></p>
<p><strong>Question/Answer time.</strong></p>
<p>Are we scared? No :]<br />
Will we stop our research? No no :]<br />
Will we stop reversing malwares? No, instead we are going to boost our performace ;]</p>
<p><strong>Final words.</strong></p>
<p>We want to thank our service provider for the help about this issue. Thanks!</p>
<p>Stay tuned!<br />
- the InReverse Crew</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/1052/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/1052/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/1052/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=1052&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2010/04/17/botnet-attack-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/bycountry.png?w=300" medium="image">
			<media:title type="html">byCountry</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/bycity.png?w=300" medium="image">
			<media:title type="html">byCity</media:title>
		</media:content>
	</item>
		<item>
		<title>JAVA Malware evading decompilation</title>
		<link>http://againinreverse.wordpress.com/2010/04/13/java-malware-evading-decompilation/</link>
		<comments>http://againinreverse.wordpress.com/2010/04/13/java-malware-evading-decompilation/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 19:51:19 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[reversing]]></category>

		<guid isPermaLink="false">http://www.inreverse.net/?p=1028</guid>
		<description><![CDATA[Hello, some days ago Param (thanks!) one of our blog readers sent me a couple of undetected JAVA malwares, which I&#8217;m going to analyze, the md5 are: (Sample 1) 2138bfc0c92b726a13ff5095bd2f2b72 (Sample 2) a0585edf638f5d1c556239d3bfaf08db At this time, both of this malware have a low detection, the first one 1/42 and the second one 0/42 from VirusTotal. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=1028&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>some days ago Param (thanks!) one of our blog readers sent me a couple of undetected JAVA malwares, which I&#8217;m going to analyze, the md5 are:</p>
<p>(Sample 1) <em>2138bfc0c92b726a13ff5095bd2f2b72</em><br />
(Sample 2) <em>a0585edf638f5d1c556239d3bfaf08db</em></p>
<p>At this time, both of this malware have a low detection, the first one 1/42 and the second one 0/42 from VirusTotal.</p>
<p>One of the interesting things is that if you try to decompile these samples by using jD you will get the following notice:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/hirwfee11.png"><img src="http://againinreverse.files.wordpress.com/2010/04/hirwfee11.png?w=500" alt="" title="Hirwfee1"   class="aligncenter size-full wp-image-1069" /></a></p>
<p>So after a little investigation I figured out the reason. The reason is that jD is unable to handle methods with a large body.</p>
<p>Is it a problem ? No. To proceed with the analysis we can summon JAD. In fact by using JAD we can obtain the full code. Here are some snippets taken from the two samples.</p>
<p>(I will go fast on the analysis, at the end of the post you can find a couple of links with more details about these malwares.)</p>
<p><strong>Sample 1:</strong><br />
([<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3867">CVE-2009-3867</a>])</p>
<p>Imports reveal a lot of information about what the malware is trying to &#8220;use&#8221;&#8230;</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/uutecw11.png"><img src="http://againinreverse.files.wordpress.com/2010/04/uutecw11.png?w=500" alt="" title="Uutecw1"   class="aligncenter size-full wp-image-1072" /></a></p>
<p>A lot of strings and a known pattern&#8230;</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/uutecw21.png"><img src="http://againinreverse.files.wordpress.com/2010/04/uutecw21.png?w=500&#038;h=280" alt="" title="Uutecw2" width="500" height="280" class="aligncenter size-full wp-image-1073" /></a></p>
<p>Here is the shellcode&#8230;</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/uutecw31.png"><img src="http://againinreverse.files.wordpress.com/2010/04/uutecw31.png?w=500&#038;h=280" alt="" title="Uutecw3" width="500" height="280" class="aligncenter size-full wp-image-1074" /></a></p>
<p>And the exploitation&#8230;</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/uutecw41.png"><img src="http://againinreverse.files.wordpress.com/2010/04/uutecw41.png?w=500&#038;h=123" alt="" title="Uutecw4" width="500" height="123" class="aligncenter size-full wp-image-1075" /></a></p>
<p><strong>Sample 2:</strong><br />
([<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5353">CVE-2008-5353</a>]  )</p>
<p>Again the imports are telling us that the malware will try to load &#8220;untrusted&#8221; class..</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/hirwfee11.png"><img src="http://againinreverse.files.wordpress.com/2010/04/hirwfee11.png?w=500" alt="" title="Hirwfee1"   class="aligncenter size-full wp-image-1069" /></a></p>
<p>Here the malware gets data and cc fields&#8230;</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/hirwfee21.png"><img src="http://againinreverse.files.wordpress.com/2010/04/hirwfee21.png?w=500&#038;h=449" alt="" title="Hirwfee2" width="500" height="449" class="aligncenter size-full wp-image-1070" /></a></p>
<p>This is the strategy used to run the malware on the victim system:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/hirwfee31.png"><img src="http://againinreverse.files.wordpress.com/2010/04/hirwfee31.png?w=500&#038;h=439" alt="" title="Hirwfee3" width="500" height="439" class="aligncenter size-full wp-image-1076" /></a><br />
As we can see we have a long obfuscation that uses string replacements, scrambled names and base64 encoding.</p>
<p>In conclusion, both these malwares are using well known vulnerabilities being exploited since a while. These malwares still have no generic detections at all.</p>
<p>If you are interested you can read more in detail about these vulnerabilities in two of my previous posts <a href="http://www.inreverse.net/?p=930">here</a> and <a href="http://www.inreverse.net/?p=804">here</a>.</p>
<p>See ya!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/1028/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/1028/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/1028/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/1028/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/1028/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/1028/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/1028/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/1028/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/1028/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/1028/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/1028/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/1028/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/1028/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/1028/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=1028&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2010/04/13/java-malware-evading-decompilation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/hirwfee11.png" medium="image">
			<media:title type="html">Hirwfee1</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/uutecw11.png" medium="image">
			<media:title type="html">Uutecw1</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/uutecw21.png" medium="image">
			<media:title type="html">Uutecw2</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/uutecw31.png" medium="image">
			<media:title type="html">Uutecw3</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/uutecw41.png" medium="image">
			<media:title type="html">Uutecw4</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/hirwfee11.png" medium="image">
			<media:title type="html">Hirwfee1</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/hirwfee21.png" medium="image">
			<media:title type="html">Hirwfee2</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/hirwfee31.png" medium="image">
			<media:title type="html">Hirwfee3</media:title>
		</media:content>
	</item>
		<item>
		<title>PDF CVE-2010-0188</title>
		<link>http://againinreverse.wordpress.com/2010/04/11/pdf-cve-2010-0188/</link>
		<comments>http://againinreverse.wordpress.com/2010/04/11/pdf-cve-2010-0188/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 16:56:35 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[reversing]]></category>
		<category><![CDATA[tiff]]></category>

		<guid isPermaLink="false">http://www.inreverse.net/?p=1008</guid>
		<description><![CDATA[While analyzing a recent pdf sample exploiting the TIFF vuln it used a known technique to obfuscate it&#8217;s content: it appends a pdf to the first one after a bunch of of &#8220;garbage&#8221; (that contains the dropped executables) %PDF-1.6 ... %%EOF [GARBAGE] %PDF-1.6 ... %%EOF I tried to run my extractor on the sample to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=1008&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While analyzing a recent pdf sample exploiting the <a href="http://blog.fortinet.com/cve-2010-0188-exploit-in-the-wild/">TIFF vuln</a> it used a <a href="http://blog.didierstevens.com/2009/11/09/quickpost-hiding-a-pdf-document/">known technique</a> to obfuscate it&#8217;s content: it appends a pdf to the first one after a bunch of of &#8220;garbage&#8221; (that contains the dropped executables)</p>
<pre>
%PDF-1.6
...
%%EOF
[GARBAGE]
%PDF-1.6
...
%%EOF
</pre>
<p>I tried to run my extractor on the sample to retrieve all the streams decompressed but i didn&#8217;t found the one containing the famous exploit</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/tiffexp1.png"><img src="http://againinreverse.files.wordpress.com/2010/04/tiffexp1.png?w=500&#038;h=166" alt="" title="tiffexp" width="500" height="166" class="aligncenter size-full wp-image-1080" /></a></p>
<p>The reason why i wasn&#8217;t able to recover the exploit is that the second pdf redefined an object (0 1) and so the first dumped stream was overwritten by the last one thus hiding the exploit.</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/extract.png"><img src="http://againinreverse.files.wordpress.com/2010/04/extract.png?w=500" alt="" title="extract"   class="aligncenter size-full wp-image-1078" /></a></p>
<p>I just did a little modification to preserve all the streams extracted even if there is a id collision, you can download it </p>
<p><a href="http://www.inreverse.net/wp-content/uploads/2010/04/appp2.zip">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/1008/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/1008/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/1008/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=1008&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2010/04/11/pdf-cve-2010-0188/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/tiffexp1.png" medium="image">
			<media:title type="html">tiffexp</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/extract.png" medium="image">
			<media:title type="html">extract</media:title>
		</media:content>
	</item>
		<item>
		<title>JAVA Malware Family</title>
		<link>http://againinreverse.wordpress.com/2010/03/18/java-malware-family/</link>
		<comments>http://againinreverse.wordpress.com/2010/03/18/java-malware-family/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 00:15:03 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[reversing]]></category>

		<guid isPermaLink="false">http://www.inreverse.net/?p=987</guid>
		<description><![CDATA[Hello guys, do you remember one of my last post about a JAVA malware exploiting a vulnerability related to the deserialization? If not, you can read it here. In the last days I have found a lot of variants of this malware. I picked for this post the following: sample 1: 3af7627af6348a76d1bf3b7bf31514e0 sample 2: a022524cb52223a939ba50043d90ff94 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=987&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello guys,</p>
<p>do you remember one of my last post about a JAVA malware exploiting a vulnerability related to the deserialization? If not, you can read it <a href="http://www.inreverse.net/?p=804">here</a>.</p>
<p>In the last days I have found a lot of variants of this malware. I picked for this post the following:</p>
<p>sample 1: <em>3af7627af6348a76d1bf3b7bf31514e0</em><br />
sample 2: <em>a022524cb52223a939ba50043d90ff94</em><br />
sample 3: <em>d45a156c76f3c34bac0cf22cb586fdd1</em></p>
<p>In this post we will try to discover a quick way to detect this &#8220;family&#8221; of malware.</p>
<p>Each jar comes with 3 classes as for the original sample that I analyzed. The class names are changed into <em>AdgredY</em>, <em>DyesyasZ</em>, <em>LoaderX</em>, for one of these samples.</p>
<p>First thing to note is about the class names. We can note the following relations:</p>
<p>C1. <em>AppletX </em>is <em>AdgredY</em>;<br />
C2. <em>PayloadX </em>is <em>DyesyasZ</em>;<br />
C3. <em>LoaderX </em>is <em>LoaderX</em>.</p>
<p>The class name length is the same as the original one, also the position of the capital letters is preserved.</p>
<p>Let&#8217;s proceed.</p>
<p>Here is some snippet of code taken from the <em>Applet </em>subclass of each sample above.</p>
<p>Sample 1.<br />
<a href="http://againinreverse.files.wordpress.com/2010/04/s1.png"><img src="http://againinreverse.files.wordpress.com/2010/04/s1.png?w=500&#038;h=300" alt="" title="s1" width="500" height="300" class="aligncenter size-full wp-image-1092" /></a></p>
<p>Sample 2.<br />
<a href="http://againinreverse.files.wordpress.com/2010/04/s2.png"><img src="http://againinreverse.files.wordpress.com/2010/04/s2.png?w=500" alt="" title="s2"   class="aligncenter size-full wp-image-1093" /></a></p>
<p>Sample 3.<br />
<a href="http://againinreverse.files.wordpress.com/2010/04/s3.png"><img src="http://againinreverse.files.wordpress.com/2010/04/s3.png?w=500&#038;h=326" alt="" title="s3" width="500" height="326" class="aligncenter size-full wp-image-1094" /></a></p>
<p>As we can see, the malware authors are trying to conceal their dirty applet by using some obfuscation :]</p>
<p>How we can get rid of this obfuscation? If we pay attention we can quickly extract the following common &#8220;flow&#8221;:</p>
<p>A similiar analysis can be done for the other two classes: <em>PayloadX </em>and <em>LoaderX</em>.</p>
<p>So the first way to detect this family is by looking at the flow of the program. Flow that in these samples is quite trivial.</p>
<p>Another way to detect this family (a really fast way) is by looking at the <em>ClassLoader </em>subclass. Why? Let&#8217;s see. Try to guess, if you want ;]<br />
<a href="http://againinreverse.files.wordpress.com/2010/03/flow.png"><img src="http://againinreverse.files.wordpress.com/2010/03/flow.png?w=500" alt="" title="flow"   class="aligncenter size-full wp-image-1095" /></a><br />
</a>Sample 1.<br />
<a href="http://againinreverse.files.wordpress.com/2010/04/l1.png"><img src="http://againinreverse.files.wordpress.com/2010/04/l1.png?w=500&#038;h=329" alt="" title="l1" width="500" height="329" class="aligncenter size-full wp-image-1088" /></a><br />
Sample 2.<br />
<a href="http://againinreverse.files.wordpress.com/2010/04/l2.png"><img src="http://againinreverse.files.wordpress.com/2010/04/l2.png?w=500&#038;h=314" alt="" title="l2" width="500" height="314" class="aligncenter size-full wp-image-1089" /></a><br />
Sample 3.<br />
<a href="http://againinreverse.files.wordpress.com/2010/04/l3.png"><img src="http://againinreverse.files.wordpress.com/2010/04/l3.png?w=500&#038;h=295" alt="" title="l3" width="500" height="295" class="aligncenter size-full wp-image-1090" /></a></p>
<p>Well, it seems that the malware authors are customizing the code by using different values for variables and some obfuscation.</p>
<p>But they have one thing that destroys their &#8220;obfuscated&#8221; castle: the <em>serialVersionUID</em>. As we can see each sample has the same value for this field.</p>
<p>It&#8217;s all. I hope you have enjoyed this post.</p>
<p>See you soon :]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/987/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/987/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/987/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=987&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2010/03/18/java-malware-family/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/s1.png" medium="image">
			<media:title type="html">s1</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/s2.png" medium="image">
			<media:title type="html">s2</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/s3.png" medium="image">
			<media:title type="html">s3</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/03/flow.png" medium="image">
			<media:title type="html">flow</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/l1.png" medium="image">
			<media:title type="html">l1</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/l2.png" medium="image">
			<media:title type="html">l2</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/l3.png" medium="image">
			<media:title type="html">l3</media:title>
		</media:content>
	</item>
		<item>
		<title>JAVA Sound Malware</title>
		<link>http://againinreverse.wordpress.com/2010/03/07/java-sound-malware/</link>
		<comments>http://againinreverse.wordpress.com/2010/03/07/java-sound-malware/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 21:40:40 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[reversing]]></category>

		<guid isPermaLink="false">http://www.inreverse.net/?p=930</guid>
		<description><![CDATA[Hello guys, I&#8217;m sorry for the few posts in the last weeks, but I was quite busy. Today I am going to analyze another interesting JAVA malware. Our target is a jar, md5: 38f083169319d0141532db992d295448. The jar contains one class: AppletX.  After using a java decompiler on our target, we will get the AppletX class code. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=930&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello guys,</p>
<p>I&#8217;m sorry for the few posts in the last weeks, but I was quite busy. Today I am going to analyze another interesting JAVA malware.</p>
<p>Our target is a jar, md5: <em>38f083169319d0141532db992d295448</em>. The jar contains one class: <em>AppletX</em>.  After using a java decompiler on our target, we will get the <em>AppletX </em>class code.</p>
<p>I will report only the relevant parts. Let&#8217;s go..</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/jsm1.png"><img class="aligncenter size-full wp-image-926" title="jsm1" src="http://againinreverse.files.wordpress.com/2010/04/jsm1.png?w=500" alt=""   /><br />
</a>Firstly, the malware tries to discover the operating system in use by using<strong> </strong><em>System.getProperty(&#8220;os.name&#8221;)</em>, then it fills<em> str1</em><strong> </strong>according to the O.S. in use.</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/jsm2.png"><img class="aligncenter size-full wp-image-927" title="jsm2" src="http://againinreverse.files.wordpress.com/2010/04/jsm2.png?w=500" alt=""   /></a></p>
<p>At this point the malware proceeds by exploiting a vulnerability located into <em>getSoundBank</em> method [<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3867">CVE-2009-3867</a>] to execute malicious code on the victim system. It retrieves the parameters:<strong> </strong><em>sc </em>and <em>np </em>(meaningful names) and then it uses the following spray method in order to place the shellcode:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/jsm3.png"><img class="aligncenter size-full wp-image-928" title="jsm3" src="http://againinreverse.files.wordpress.com/2010/04/jsm3.png?w=500" alt=""   /><br />
</a>As we can see, this function simply converts the parameters into hex and then it calls the real spray method:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/jsm4.png"><img class="aligncenter size-full wp-image-929" title="jsm4" src="http://againinreverse.files.wordpress.com/2010/04/jsm4.png?w=500" alt=""   /></a><br />
This method is the heart or engine(if you prefer) of the malware. I have underlined the value of the variable<em> i</em>, since I have found another variant of this malware md5: <em>52586e8a85188a0ada59294650c91362</em>, that only changes the value of<em><strong> </strong>i</em> to an higher value.</p>
<p>This malware is another good reason to turn off all java* contents while browsing the web. As always feedbacks and comments are welcome.</p>
<p>I hope you have enjoyed this post.<br />
See you soon ;]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/930/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/930/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/930/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/930/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/930/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/930/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/930/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/930/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/930/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/930/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/930/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/930/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/930/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/930/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=930&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2010/03/07/java-sound-malware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/jsm1.png" medium="image">
			<media:title type="html">jsm1</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/jsm2.png" medium="image">
			<media:title type="html">jsm2</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/jsm3.png" medium="image">
			<media:title type="html">jsm3</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/jsm4.png" medium="image">
			<media:title type="html">jsm4</media:title>
		</media:content>
	</item>
		<item>
		<title>WoW Infostealer</title>
		<link>http://againinreverse.wordpress.com/2010/01/28/wow-infostealer/</link>
		<comments>http://againinreverse.wordpress.com/2010/01/28/wow-infostealer/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 18:06:01 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[malware]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[reversing]]></category>

		<guid isPermaLink="false">http://www.inreverse.net/?p=873</guid>
		<description><![CDATA[Just a quick analysis of a WoW infostealer (md5: D214BD51E47DFD3DEA97B5A2ED28CBF5 / ThreatExpert). The program is a simple dropper, there are no antidebug tricks nor it uses complex obfuscation techniques, it just extracts the DLL (md5: 7DEFE341246BB1DE68A7AFB233FB8CAF) that contains the core of the virus. The dll itself is sprayed on multiple (scrambled) resources inside the dropper: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=873&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a quick analysis of a WoW infostealer (md5: D214BD51E47DFD3DEA97B5A2ED28CBF5 / <a href="http://www.threatexpert.com/report.aspx?md5=d214bd51e47dfd3dea97b5a2ed28cbf5">ThreatExpert</a>).</p>
<p>The program is a simple dropper, there are no antidebug tricks nor it uses complex obfuscation techniques, it just extracts the DLL (md5: 7DEFE341246BB1DE68A7AFB233FB8CAF) that contains the core of the virus. The dll itself is sprayed on multiple (scrambled) resources inside the dropper:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/wow_rsrc.png"><img class="aligncenter size-full wp-image-874" title="wow_rsrc" src="http://againinreverse.files.wordpress.com/2010/04/wow_rsrc.png?w=500" alt=""   /></a></p>
<p>The resoures are extracted and concatenated to form the dll in: <strong>C:\Windows\System32\msnjkwfb.dll</strong>, and after that the dropper invokes a function in the dll responsible for the installation and deletes itself.</p>
<p>The installer registers the dll for autorun, retrieves the WoW path, and copies inside it the dll under the name <strong>msvcr70.dll</strong>, after, it injects code into the WoW exacutable (<em>wow.exe</em>): adds a section (<em>.ngaut</em>) and changes the program entrypoint to its code. The injected code just loads msvcr70 and gives control back to the original entrypoint.</p>
<p>When the dll is loaded by wow.exe it starts searching for the main window, and then does some checks on the window&#8217;s title &#8220;<em>World of Warcraft</em>&#8221; and class &#8220;<em>GxWindowClassD3d</em>&#8221; if both checks succeeded it acquires the <em>SeDebugPrivilege</em> and spawns a thread that  collects the information using static offsets into the program. Once all the information is gathered it sends a HTTP request to:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/url.png"><img class="aligncenter size-full wp-image-883" title="url" src="http://againinreverse.files.wordpress.com/2010/04/url.png?w=500" alt=""   /></a></p>
<p>with the following request:</p>
<p><strong>?WOWID=%s&amp;Area=%s&amp;WU=%s&amp;WP=%s&amp;MAX=%d/%d&amp;Gold=%d&amp;Serv=%s&amp;rn=%s&amp;key=%s</strong></p>
<p>the site is still up at this time, so be careful WoW gamers <img src='http://s2.wp.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>p.s. for those interested <a href="http://www.inreverse.net/wp-content/uploads/2010/01/descramble.zip">here</a> the py script to descramble and merge the extracted resources</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/873/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/873/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/873/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=873&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2010/01/28/wow-infostealer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/wow_rsrc.png" medium="image">
			<media:title type="html">wow_rsrc</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/url.png" medium="image">
			<media:title type="html">url</media:title>
		</media:content>
	</item>
		<item>
		<title>JAVA Mobile Malware #1</title>
		<link>http://againinreverse.wordpress.com/2010/01/17/java-mobile-malware-1/</link>
		<comments>http://againinreverse.wordpress.com/2010/01/17/java-mobile-malware-1/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 21:08:34 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[reversing]]></category>

		<guid isPermaLink="false">http://www.inreverse.net/?p=838</guid>
		<description><![CDATA[Hi guys, today I will focus on a JAVA mobile malware (md5 is: 7e92d280472ca426aff1c20fbeb8d2db). It is spread as jar, containing a class with an attractive name. The jar contains three files: a java class (the malware engine); an icon image (it is used in order to be attractive..); an inf file (it is used to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=838&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi guys,</p>
<p>today I will focus on a JAVA mobile malware (md5 is: <em>7e92d280472ca426aff1c20fbeb8d2db</em>).</p>
<p>It is spread as jar, containing a class with an attractive name. The jar contains three files:</p>
<ul>
<li>a java class (the malware engine);</li>
<li>an icon image (it is used in order to be attractive..);</li>
<li>an inf file (it is used to extract sms information).</li>
</ul>
<p>The following is the class code after the usage of <a href="http://java.decompiler.free.fr/">jd</a>. I report only relevant parts:</p>
<p><strong>LoadData:</strong></p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/sms1.png"><img class="aligncenter size-full wp-image-843" title="sms1" src="http://againinreverse.files.wordpress.com/2010/04/sms1.png?w=500" alt=""   /></a>This method is used to read the <em>inf</em> file in order to fill <em>smsnumber </em>and <em>smstext</em> fields. It uses the first byte of the <em>inf </em>file to know how many sms should be sent.<strong> </strong></p>
<p><strong>InputStreamString:</strong></p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/sms2.png"><img class="aligncenter size-full wp-image-845" title="sms2" src="http://againinreverse.files.wordpress.com/2010/04/sms2.png?w=500" alt=""   /></a></p>
<p>This method is used to read user-defined strings from the <em>inf </em>file.<strong></strong></p>
<p><strong>SendSMS:</strong></p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/sms3.png"><img class="aligncenter size-full wp-image-846" title="sms3" src="http://againinreverse.files.wordpress.com/2010/04/sms3.png?w=500" alt=""   /></a></p>
<p>This method is used to send the crafted sms.<strong></strong></p>
<p><strong>Focus on inf:</strong></p>
<p>As we can see, the malware uses the <em>inf </em>file to extract information such as: sms <em>number</em> and <em>text</em>. Let&#8217;s take a look at this file to understand its format:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/inf.png"><img class="aligncenter size-full wp-image-847" title="inf" src="http://againinreverse.files.wordpress.com/2010/04/inf.png?w=500" alt=""   /></a><br />
<strong>Question</strong>: have you noticed anything wrong in this format ? Before proceeding, please focus on <em>inf </em>format and the three methods reported above.</p>
<p><strong>Answer</strong>: It seems that we have a programming bug or a bad-edited <em>inf </em>file. In fact, the malware will try to send 0&#215;10 (16) sms by using this <em>inf</em>, but it has information only for 8 sms. Maybe this is a mistake of the malware author, or someone else has wrongly edited this file.</p>
<p>I hope you have enjoyed this article&#8230; see you soon ;]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/838/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/838/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/838/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=838&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2010/01/17/java-mobile-malware-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/sms1.png" medium="image">
			<media:title type="html">sms1</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/sms2.png" medium="image">
			<media:title type="html">sms2</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/sms3.png" medium="image">
			<media:title type="html">sms3</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/inf.png" medium="image">
			<media:title type="html">inf</media:title>
		</media:content>
	</item>
		<item>
		<title>JAVA Exploit Kit Malware #1</title>
		<link>http://againinreverse.wordpress.com/2010/01/06/java-exploit-kit-malware-1/</link>
		<comments>http://againinreverse.wordpress.com/2010/01/06/java-exploit-kit-malware-1/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 03:01:04 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[reversing]]></category>

		<guid isPermaLink="false">http://www.inreverse.net/?p=804</guid>
		<description><![CDATA[This is my first blog post of the new year. New year new target! I am going to analyze a JAVA exploit kit malware, the md5 is: 8d499308df04932ed1b58a78417d6fb9. Since our target is a jar, containing three class files, we try to get more information about it by using a java decompiler (i.e. jd). After decompilation, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=804&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is my first blog post of the new year. New year new target!<br />
I am going to analyze a JAVA exploit kit malware, the md5 is: 8d499308df04932ed1b58a78417d6fb9.</p>
<p>Since our target is a jar, containing three class files, we try to get more information about it by using a java decompiler (i.e. <a href="http://java.decompiler.free.fr/">jd</a>).</p>
<p>After decompilation, we have a java package that contains three classes:</p>
<ul>
<li>C1. <em>AppletX.java</em></li>
<li>C2. <em>LoaderX.java</em></li>
<li>C3. <em>PayloadX.java</em></li>
</ul>
<p><strong><br />
C1. AppletX.java</strong></p>
<p><strong><a href="http://againinreverse.files.wordpress.com/2010/04/appletx.png"><img class="aligncenter size-full wp-image-808" title="AppletX" src="http://againinreverse.files.wordpress.com/2010/04/appletx.png?w=500" alt=""   /></a></strong><br />
Here we have an Applet subclass that mainly does three things:</p>
<ol>
<li>It deserializes a serialized object;</li>
<li>It grabs a couple of information via applet parameters: <em>data </em>and <em>cc</em>;</li>
<li>It plays with a custom class loader named: <em>LoaderX</em>.</li>
</ol>
<p>The most interesting part is the serialized object obviously.<br />
Do you have any idea about the usage of the serialized object in the above code ?</p>
<p>Well, I will lead you to the right answer. Please just focus on the above <em>AppletX</em> code. If you pay attention to the above code, you can see the initialization of <em>localObject</em>, it is located just above the <em>if</em> test. But we can&#8217;t see any sort of explicit initialization for <em>LoaderX.instance</em>. In fact the initialization lies in the deserialization routine&#8230; nice eh ?</p>
<p>Here is a visual recap:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/appletxfocus.png"><img class="aligncenter size-full wp-image-809" title="AppletXfocus" src="http://againinreverse.files.wordpress.com/2010/04/appletxfocus.png?w=500" alt=""   /></a>Let&#8217;s examine the custom class loader now.</p>
<p><strong><br />
C2. LoaderX.java</strong></p>
<p>Here is the custom loader, I will report only the relevant parts. We have a custom class loader that inherits from the Java <em>ClassLoader </em>class.</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/loaderx1.png"><img class="aligncenter size-full wp-image-810" title="LoaderX1" src="http://againinreverse.files.wordpress.com/2010/04/loaderx1.png?w=500" alt=""   /></a>The custom class loader (<em>LoaderX</em>) sets the &#8220;<em>instance</em>&#8221; static field to &#8220;<em>this</em>&#8220;, in order to be not garbage collected. This trick allows <em>LoaderX </em>to be used further after the deserialization. In fact it is required in order to use the following method:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/loaderx2.png"><img class="aligncenter size-full wp-image-811" title="LoaderX2" src="http://againinreverse.files.wordpress.com/2010/04/loaderx2.png?w=500" alt=""   /></a>The <em>bootstrapPayload </em>method above does the following things:</p>
<ol>
<li>It loads the payload class (<em>PayloadX</em>), by setting the <em>ProtectionDomain</em>;</li>
<li>It sets data and cc parameters for the <em>PayloadX </em>class and then instantiates the <em>PayloadX </em>object.</li>
</ol>
<p>As we can see, this custom class loader (<em>LoaderX</em>) is used to exploit a Java Runtime Environment (<em>JRE</em>) vulnerability, which is reported <a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5353">here</a>.</p>
<p>Well, we have finished playing with the <em>LoaderX </em>class, let&#8217;s play with the <em>PayloadX </em>class now :]</p>
<p><strong><br />
C3. PayloadX.java</strong></p>
<p>I will summarize the behaviour of this class with the following schema:</p>
<p><a href="http://againinreverse.files.wordpress.com/2010/04/payloadx.png"><img class="aligncenter size-full wp-image-812" title="PayloadX" src="http://againinreverse.files.wordpress.com/2010/04/payloadx.png?w=500" alt=""   /></a><br />
It uses <em>data </em>parameter and <em>cc </em>parameter as follow:</p>
<ul>
<li><em>data</em>: points to a malicious site where it will find one or more malwares to download.</li>
<li><em>cc</em>: indicates the number of malwares to download. By default &#8220;null&#8221; means one.</li>
</ul>
<p>So suppose that <em>data </em>is: <em>malicious.x/mw</em> and <em>cc </em>is: <em>3</em>.<br />
The above method will download (and execute) the three malwares located at:</p>
<ul>
<li>malicious.x/mw0</li>
<li>malicious.x/mw1</li>
<li>malicious.x/mw2</li>
</ul>
<p>into the system temporary directory of the victim system. Each downloaded file will be an <em>EXE </em>file with a random number as name.</p>
<p><strong><br />
Final Notes.</strong></p>
<p>This jar is a pre-built kit that allows to infect victim systems with custom malwares, by exploiting a well known <em>JRE </em>vulnerability. This kit is thought to be embedded into malicious webpages and customized by using <em>data</em> and <em>cc</em> applet parameters to control its behaviour.</p>
<p>It&#8217;s all.. I hope you have enjoyed the reading.</p>
<p>Alla prossima ;]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/804/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/804/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/804/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/804/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/804/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/804/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/804/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/804/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/804/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/804/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/804/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/804/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/804/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/804/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=804&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2010/01/06/java-exploit-kit-malware-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/appletx.png" medium="image">
			<media:title type="html">AppletX</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/appletxfocus.png" medium="image">
			<media:title type="html">AppletXfocus</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/loaderx1.png" medium="image">
			<media:title type="html">LoaderX1</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/loaderx2.png" medium="image">
			<media:title type="html">LoaderX2</media:title>
		</media:content>

		<media:content url="http://againinreverse.files.wordpress.com/2010/04/payloadx.png" medium="image">
			<media:title type="html">PayloadX</media:title>
		</media:content>
	</item>
		<item>
		<title>Blog Restyling</title>
		<link>http://againinreverse.wordpress.com/2009/12/31/blog-restyling/</link>
		<comments>http://againinreverse.wordpress.com/2009/12/31/blog-restyling/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 03:27:15 +0000</pubDate>
		<dc:creator>againinreverse</dc:creator>
				<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://www.inreverse.net/?p=795</guid>
		<description><![CDATA[To celebrate the new year we have changed our blog theme in order to improve its usability&#8230; we hope that you enjoy the new theme. - ratsoul &#38; swirl<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=795&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To celebrate the new year we have changed our blog theme in order to improve its usability&#8230; we hope that you enjoy the new theme.</p>
<p>- ratsoul &amp; swirl</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/againinreverse.wordpress.com/795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/againinreverse.wordpress.com/795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/againinreverse.wordpress.com/795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/againinreverse.wordpress.com/795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/againinreverse.wordpress.com/795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/againinreverse.wordpress.com/795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/againinreverse.wordpress.com/795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/againinreverse.wordpress.com/795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/againinreverse.wordpress.com/795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/againinreverse.wordpress.com/795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/againinreverse.wordpress.com/795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/againinreverse.wordpress.com/795/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/againinreverse.wordpress.com/795/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/againinreverse.wordpress.com/795/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=againinreverse.wordpress.com&amp;blog=13217764&amp;post=795&amp;subd=againinreverse&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://againinreverse.wordpress.com/2009/12/31/blog-restyling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6601f8c968b7fd0931e44131d4574126?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">againinreverse</media:title>
		</media:content>
	</item>
	</channel>
</rss>
