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

<channel>
	<title>ThreatFire Research Blog &#187; Obfuscation</title>
	<atom:link href="http://blog.threatfire.com/category/obfuscation/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.threatfire.com</link>
	<description>ThreatFire™ AntiVirus protects when others can&#039;t</description>
	<lastBuildDate>Mon, 15 Mar 2010 15:00:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mariposa Wings Clipped</title>
		<link>http://blog.threatfire.com/2010/03/mariposa-wings-clipped.html</link>
		<comments>http://blog.threatfire.com/2010/03/mariposa-wings-clipped.html#comments</comments>
		<pubDate>Wed, 03 Mar 2010 00:49:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bot]]></category>
		<category><![CDATA[Crimeware]]></category>
		<category><![CDATA[Evasion technique]]></category>
		<category><![CDATA[IM Worm]]></category>
		<category><![CDATA[Malware Counts]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Password stealing]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Worm]]></category>

		<guid isPermaLink="false">http://blog.threatfire.com/?p=795</guid>
		<description><![CDATA[Spanish law enforcement nabbed three operators of the Mariposa botnet:  &#8220;Authorities identified them by their Internet handles and their ages: &#8220;netkairo,&#8221; 31; &#8220;jonyloleante,&#8221; 30; and &#8220;ostiator,&#8221; 25.&#8221;
The massive infection rate described in the article presents just another reason why you need our quiet ThreatFire product protecting your workstation. On a weekly basis, thousands of updated ThreatFire-protected systems were attacked [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Spanish law enforcement <a title="AP Wire Mariposa Botnet" href="http://hosted.ap.org/dynamic/stories/U/US_TEC_BOTNET_BUSTED?SITE=AP&amp;SECTION=HOME&amp;TEMPLATE=DEFAULT&amp;CTIME=2010-03-02-14-26-32" target="_blank">nabbed three operators of the Mariposa botnet</a>:  &#8220;Authorities identified them by their Internet handles and their ages: &#8220;netkairo,&#8221; 31; &#8220;jonyloleante,&#8221; 30; and &#8220;ostiator,&#8221; 25.&#8221;</p>
<p style="text-align: left;">The massive infection rate described in the article presents just another reason why you need our quiet ThreatFire product protecting your workstation. On a weekly basis, thousands of updated ThreatFire-protected systems were attacked and protected from variants of the bots with a feature we call &#8220;behavioral recognition&#8221;. It is far superior to AV file scanner signatures and definitively identifies the behavior of malware families like the bots that were a part of the Mariposa botnet. Problems with signature based AV scanner recognition and various Mariposa variant bots were described in a technical paper <a title="DefenceIntelligence Mariposa Analysis" href="http://defintel.com/docs/Mariposa_Analysis.pdf" target="_blank">here</a>.</p>
<p style="text-align: center;"><a href="http://blog.threatfire.com/wp-content/uploads/2010/03/Pilleuz.png" target="_blank"><img class="aligncenter size-full wp-image-804" style="border: 1px solid black;" title="Pilleuz" src="http://blog.threatfire.com/wp-content/uploads/2010/03/Pilleuz.png" alt="Pilleuz" width="189" height="173" /></a></p>
<p style="text-align: left;">If you saw a red dialog from ThreatFire warning that it is protecting your system from &#8220;Worm.Palevo&#8221; or &#8220;W32.Pilleuz&#8221;, your system was protected from becoming another one of over 12 million Mariposa victims.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2010/03/mariposa-wings-clipped.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cutwail Spamming for Russian Spammers</title>
		<link>http://blog.threatfire.com/2010/02/cutwail-spamming-for-russian-spammers.html</link>
		<comments>http://blog.threatfire.com/2010/02/cutwail-spamming-for-russian-spammers.html#comments</comments>
		<pubDate>Tue, 02 Feb 2010 01:20:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Downloader]]></category>
		<category><![CDATA[Dropper]]></category>
		<category><![CDATA[Evasion technique]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Trojan]]></category>
		<category><![CDATA[Undetected malware]]></category>

		<guid isPermaLink="false">http://blog.threatfire.com/?p=643</guid>
		<description><![CDATA[Spam continues to clog the internet with providers reporting spam stuffing 80% &#8211; 95% of all email content en route. It&#8217;s an ongoing problem into 2010, so last week we examined the active spambot Tedroo, some of its suspicious behaviors, one of its anti-debug/antiRE techniques, and its spam delivery. This week we&#8217;ll take a look at Cutwail, a [...]]]></description>
			<content:encoded><![CDATA[<p style="TEXT-ALIGN: left">Spam continues to clog the internet with providers reporting spam stuffing 80% &#8211; 95% of all email content en route. It&#8217;s an ongoing problem into 2010, so last week we examined the <a title="Tedroo Jan 2010" href="http://blog.threatfire.com/2010/01/much-tedroo-about-nothing-other-than-viagra-professional.html" target="_blank">active spambot Tedroo</a>, some of its suspicious behaviors, one of its anti-debug/antiRE techniques, and its spam delivery. This week we&#8217;ll take a look at Cutwail, a long standing and very active downloader/spambot that suggests regardless of various ISP takedowns, the underground market continues to thrive.</p>
<p style="TEXT-ALIGN: left">In what seems to be fairly unique to Cutwail (also described as <a title="Symantec Trojan.Pandex" href="http://www.symantec.com/security_response/writeup.jsp?docid=2007-042001-1448-99&amp;tabid=2" target="_blank">Pandex</a> and Pushdo), the initial Cutwail component delivered to a victim&#8217;s system is a downloader/dropper, and the spambot code itself doesn&#8217;t touch the disk. This scheme is by design. The spambot code appears to exist relatively unchanged over time, while that initial delivery component is re-developed, re-packed and re-distributed in a myriad of ways along with a set of other components. The end goal is to execute the spambot on the system without it touching disk and without maintaining its code in the downloader.</p>
<p style="TEXT-ALIGN: left">This particular Cutwail downloader connects to these hosts to download the spambot payload and data (domains modified for readability)&#8230;</p>
<p style="TEXT-ALIGN: left">75.126.159 .19:443<br />
89.149.254 .213<br />
89.149.244 .141<br />
94.75.233 .173:443<br />
94.75.233 .171<br />
94.75.233 .172<br />
89.149.244 .23<br />
aaa.oduvanchic .com<br />
aaa.news2days .ru<br />
fireas*eye .com<br />
f*ckbriankrebs .com<br />
antisgetout .cn</p>
<p style="TEXT-ALIGN: left">It will attempt to connect to one of the above web severs every 20 seconds until a payload is available and downloaded. The sites are actively brought up and down and often do not respond to an infected host, stymieing research progress on the bot. The bot and data payload itself is served up from these hosts as one encrypted stream of data. Once the downloader completes retrieval, the downloader will deobfuscate/decrypt the payload and launch svchost.exe in suspended mode, injecting the payload into that newly spawned process&#8217;s memory. After modifying some the loader data structures inside the process via the GetThreadContext/SetThreadContext APIs, the injector redirects execution to the injected code causing the payload to be run instead of the svchost code.</p>
<p style="TEXT-ALIGN: left">Due to the complicated packing schemes and highly variable injector code, these initial injectors seem more difficult to detect than the relatively consistent spam payload.  Since the payload is injected directly into a real windows process and does not get written to disk, it proves to be quite elusive.</p>
<p style="TEXT-ALIGN: left">Once injected and run, the spambot code waits a prolonged period of time to begin its spam run. From our lab, after an eye-rollingly long wait, we collected image-based spam sent out to market prices to Russian readers for spam services:</p>
<p style="TEXT-ALIGN: center"><img class="aligncenter size-full wp-image-644" style="margin-top: 2px; margin-bottom: 2px; border: black 1px solid;" title="cutwail_spam_snip2" src="http://blog.threatfire.com/wp-content/uploads/2010/02/cutwail_spam_snip2.png" alt="cutwail_spam_snip2" width="472" height="574" /></p>
<p style="TEXT-ALIGN: left">The image advertises a Moscow based phone line for the &#8220;Email distributions. Affordable prices – high quality&#8221; touted across the top and the left panel. Price ranges are provided for both Moscow and Russia blasts below (we added the price conversions to USD):</p>
<p style="TEXT-ALIGN: left">Our price list:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Whole Moscow  =  5000 rubles  ($166 USD)<br />
4 distributions in Whole Moscow  =  10000 rubles  ($333 USD)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Whole Russia = 10000 rubles  ($333 USD)<br />
4 distributions in Whole Russia = 20000 rubles  ($666 USD)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Russia+CIS (Commonwealth of Independent States, the territory of the former USSR)  = 15000 rubles  ($500 USD)<br />
4 distributions in Russia+CIS = 30000 rubles  ($1000 USD)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
We have:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
-The lowest prices on a market.<br />
-The most present day software.<br />
-Regularly updated databases.<br />
-High response from distribution.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2010/02/cutwail-spamming-for-russian-spammers.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Much Tedroo about Nothing, other than &#8220;Viagra Professional&#8221;</title>
		<link>http://blog.threatfire.com/2010/01/much-tedroo-about-nothing-other-than-viagra-professional.html</link>
		<comments>http://blog.threatfire.com/2010/01/much-tedroo-about-nothing-other-than-viagra-professional.html#comments</comments>
		<pubDate>Wed, 20 Jan 2010 00:24:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Commodity Kit]]></category>
		<category><![CDATA[Evasion technique]]></category>
		<category><![CDATA[Exploit]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Reversing]]></category>
		<category><![CDATA[Scams and Monetization]]></category>
		<category><![CDATA[Shellcode]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Trojan]]></category>
		<category><![CDATA[Undetected malware]]></category>
		<category><![CDATA[Unpack]]></category>
		<category><![CDATA[Vulnerability]]></category>

		<guid isPermaLink="false">http://blog.threatfire.com/?p=575</guid>
		<description><![CDATA[In an early-2009 literary flourish we condemned spammers to hell, discussed the Tedroo spambot&#8217;s increased momentum due to the shutdown of other botnets, posted screenshots of the Tedroo spewed pharmaceutical spam and related scam sites, and noted its distribution via malicious pdf files. Tedroo&#8217;s increased presence and its distribution is continuing into 2010. As a matter of fact, while the distributors [...]]]></description>
			<content:encoded><![CDATA[<p>In an <a title="March 2009 Tedroo Post" href="http://blog.threatfire.com/2009/03/much-tedroo-about-nothing.html" target="_blank">early-2009</a> literary flourish we condemned spammers to hell, discussed the Tedroo spambot&#8217;s increased momentum due to the shutdown of other botnets, posted screenshots of the Tedroo spewed pharmaceutical spam and related scam sites, and noted its distribution via malicious pdf files. Tedroo&#8217;s increased presence and its distribution is continuing into 2010. As a matter of fact, while the distributors are relying on users&#8217; delays in updating their vulnerable pdf readers like Acrobat, the distributors are actively maintaining/modifying the bot itself &#8212; AV scanner results on the repacked binaries are very low as the modified variants are newly re-released.</p>
<p>Vulnerable systems with out-of-date Adobe Acrobat installs are the main focus of the attacks involving the Tedroo spambot. The spambot commonly is being distributed via a set of canned attacks using what appears to be a version of the Liberty Exploit kit. The Liberty pack maintains an effective set of Acrobat attacks, and considering the thousands of Acrobat attacks prevented on ThreatFire systems since the beginning of Jan, the attacks themselves are well chosen &#8212; vulnerable versions of Acrobat Reader continue to be readily available, even in this new decade. </p>
<p>Once the malformed pdf&#8217;s shellcode is passed control on a victim system, it attempts to download multiple components from another server. In our samples, a system hosted in China. There are several downloads to choose from on the server. The first of the files is a loader, carrying a packing stub somewhat similar to the recent Bredolab packed malware with an outer layer of encryption on top of a UPX packed inner layer. It drops a dll to an alternate data stream of a random file in the windows or system32 directory. It then registers that ADS in the AppInit_DLLs so that the dll is loaded at startup. The dll is loaded, and maintains a long list of paths and executables. Most are related to security solutions (examples are listed below) and system components. It terminates a group of them immediately. It then adds entries for security software to the Restricted Software Policy list in the registry, an AVKill method that we haven&#8217;t seen fully described as one elsewhere:  HKLM\SOFTWARE\Policies\Microsoft\Windows\Safer\CodeIdentifiers\0\Paths\&lt;SID&gt;</p>
<p>C:\Documents and Settings\All Users\Application Data\PC Tools<br />
C:\Program Files\Common Files\PC Tools<br />
C:\Program Files\Kaspersky Lab<br />
C:\Documents and Settings\All Users\Application Data\Kaspersky Lab<br />
C:\Documents and Settings\All Users\Application Data\Kaspersky Lab Setup Files<br />
C:\Program Files\ESET<br />
C:\Program Files\Panda Security<br />
C:\Program Files\Avira<br />
C:\Program Files\Norton AntiVirus<br />
C:\Program Files\Alwil Software<br />
C:\Program Files\Agnitum<br />
C:\Program Files\Symantec</p>
<p>With that undetected (on the day of discovery) component loaded and AV processes killed, the Tedroo spambot is loaded. In the latest loader variants associated with the bot, we observe an interesting entry point with anti-debug and anti-emulator tricks that can be vaguely described as an abuse of <a title="Anti-Unpacking Tricks" href="http://pferrie.tripod.com/papers/unpackers.pdf" target="_blank">&#8220;Modern&#8221; CPU Instructions</a>. In this case, the packer implements an unexpected x86 VMX instruction &#8212; VMLAUNCH. Versions of reverser-friendly Ollydbg decode it to &#8220;sgdt edx&#8221; and cannot handle the instruction at runtime, reporting to the user that it does not know how to step into it, while some vendor emulators also have a difficult time decoding it. </p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-593" style="border: black 1px solid;" title="Olly_sgdt" src="http://blog.threatfire.com/wp-content/uploads/2010/01/Olly_sgdt.png" alt="Olly sgdt" width="418" height="154" /></p>
<p>Windbg, on the other hand, decodes the vmlaunch command properly as specified by the Intel Reference material, seen below&#8230;</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-594" style="border: black 1px solid;" title="Windbg vmlaunch" src="http://blog.threatfire.com/wp-content/uploads/2010/01/Windbg_vmlaunch.png" alt="Windbg vmlaunch" width="384" height="146" /></p>
<p>Following the malware entrypoint, a windbg deadlisting shows &#8220;mov ecx, 0&#215;4fffh&#8221;, followed by the vmlaunch. On processors we observed, this setup thows an exception for an Illegal Instruction with ecx = 0&#215;4fffh. The writers of this trick, however, took it upon themselves to force the code to trigger this exception 20,479 times (the decimal representation of 0&#215;4fffh). It&#8217;s implemented by registering an SEH pointer to code that simply stores the counter, decrements it, and returns back into the ExcecuteHandler2 function within ntdll that&#8217;s within the standard flow of Windows exception handling. Each time, the exception &#8220;handler&#8221; code returns back into RtlDispatchException and eventually NtContinue, where CONTEXT.eip takes control directly back to the Illegal Instruction location, triggering yet another exception. When the counter finally is decremented to zero, the unpacking stub then modifies CONTEXT.eip on the stack so that flow passes out of this exception loop at ntdll.NtContinue and further into its unpacking stub. Tricky stuff indeed.</p>
<div id="attachment_595" class="wp-caption aligncenter" style="width: 526px"><img class="size-full wp-image-595  " style="border: black 1px solid;" title="decrement_CONTEXT_struct" src="http://blog.threatfire.com/wp-content/uploads/2010/01/decrement_CONTEXT_struct.png" alt="Decrement ecx value within the process CONTEXT struct" width="516" height="394" /><p class="wp-caption-text">Decrement ecx value within the process CONTEXT struct</p></div>
<p>Continuing on its code path, the code first checks if it&#8217;s been run before on the victim system, looking for registry values it creates:</p>
<p>HKCU  &#8220;Software\Microsoft\Windows\CurrentVersion\Run&#8221;<br />
 HKCU  &#8220;Software\Microsoft\Windows\CurrentVersion\policies\Explorer\Run&#8221;<br />
 HKLM  &#8220;Software\Microsoft\Windows\CurrentVersion\Run&#8221;<br />
 HKLM  &#8220;Software\Microsoft\Windows\CurrentVersion\policies\Explorer\Run&#8221;<br />
    value: userini path: c:\windows\explorer.exe:userini.exe</p>
<p>It copies itself as an alternate data stream of explorer.exe<br />
     c:\windows\explorer.exe:userini.exe</p>
<p>It sets this ADS to load at startup in the various autorun registry entries listed above, and then runs thru a series of sleeps/gettickcout to delay activity and cloak itself.</p>
<p> After a long wait, the spambot calls InternetConnectA and HttpOpenRequestA to contact its hardcoded server and retrieves more spam templates. The resulting spam recently has all led to www . pharm directbook .com, another &#8221;Canadian Pharmacy #1 Internet Online Drugstore&#8221;. This behavior is similar to that noted in our past <a title="March 2009 Tedroo Post" href="http://blog.threatfire.com/2009/03/much-tedroo-about-nothing.html" target="_blank">post</a>. The sites have been run for years by a group otherwise known as &#8220;<a title="Glavmed Canadian Pharmacy" href="http://spamtrackers.eu/wiki/index.php?title=Canadian_Pharmacy" target="_blank">Glavmed</a>&#8220;, selling knockoff, illegal pills with shifty names like &#8220;Viagra Professional&#8221;&#8230;</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-596" style="border: black 1px solid;" title="www .pharmadirectbook. com" src="http://blog.threatfire.com/wp-content/uploads/2010/01/www-.pharmadirectbook.-com.png" alt="www .pharmadirectbook. com" width="585" height="426" /></p>
<p> </p>
<p>In spite of the significant shutdowns over the past year, spam like Tedroo&#8217;s continues to mess it all up on the net. Don John couldn&#8217;t have tried to mess up a good thing any better himself.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2010/01/much-tedroo-about-nothing-other-than-viagra-professional.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Streamviewer&#8217;s .gif Images Embedded with Encrypted Malware</title>
		<link>http://blog.threatfire.com/2009/06/streamviewers-gif-images-embedded-with-encrypted-malware.html</link>
		<comments>http://blog.threatfire.com/2009/06/streamviewers-gif-images-embedded-with-encrypted-malware.html#comments</comments>
		<pubDate>Tue, 16 Jun 2009 16:15:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Embedded trojan]]></category>
		<category><![CDATA[Evasion technique]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Reversing]]></category>

		<guid isPermaLink="false">http://newblog.threatfire.com/2009/06/streamviewers-gif-images-embedded-with-encrypted-malware.html</guid>
		<description><![CDATA[Our post last week warned on a group moving their FakeAv-Koobface-Vundo-Spyware  &#8220;softwarefortubeview&#8221; phony codec downloader to a new home last week, and this week, we are examining a similar scheme that downloads, surprise, surprise, Koobface, FakeAv prompting BHOs like iehelper.dll&#8217;s prompts for &#8220;Antivirus system PRO&#8221;, performs some level of click fraud, installs podmena.dll and [...]]]></description>
			<content:encoded><![CDATA[<p>Our <a href="http://blog.threatfire.com/2009/06/softwarefortubeview-moves-to-new-home.html" target="_blank">post</a> last week warned on a group moving their FakeAv-Koobface-Vundo-Spyware  &#8220;softwarefortubeview&#8221; phony codec downloader to a new home last week, and this week, we are examining a similar scheme that downloads, surprise, surprise, Koobface, FakeAv prompting BHOs like iehelper.dll&#8217;s prompts for &#8220;Antivirus system PRO&#8221;, performs some level of click fraud, installs podmena.dll and podmena.sys&#8230;this one also includes a nice ftp credential stealing component, stealing passwords from FileZilla, Coffee Cup, FTP Control, CuteFtp and more.</p>
<p>Streamviewer.40050.exe (and other streamviewer + random version names) has been flying off the shelf at a server on 64.20.38.171. That ip hosts multiple badware domains:<br />go-exe-go.com<br />reverse38-170.reserver.ru<br />gruzzilla.com<br />hot-exe-area.com<br />last-exe-portal.com<br />main-exe-home.com<br />super-exe-home.com</p>
<p>Interesting about the downloader is the way in which additional malware is downloaded and dropped by this phony codec. It contacts a set of servers with encoded data about the system.<br />reportsystem32.com  (216.240.146.119)<br />terradataweb.com  (66.199.229.229)<br />dvdisorapid.com  (64.27.5.202)<br />superimagesart.com  (95.211.8.61)<br />thenewpic.com  (66.148.80.4)<span style="text-decoration: underline;"></p>
<p></span>It then pulls out data from a decoded xml file containing a list of urls to contact for a variety of .gif images (titem.gif, qwerce.gif, 217.gif, etc).<br />superimagesart.com<br />thenewpic.com<br />stockshopimages.com<br />imagesoffline.com<br />theimagesphoto.com<br />imageheadphones.com</p>
<p>At the time of download, gif viewers will display titem.gif with a political message about french politician Christine Boutin:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_YaXoRZbsXc4/SjfzGHimxwI/AAAAAAAAA24/GP9nW_h1Ey8/s1600-h/DEVENEZSEROPO_2.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 176px; height: 102px;" src="http://4.bp.blogspot.com/_YaXoRZbsXc4/SjfzGHimxwI/AAAAAAAAA24/GP9nW_h1Ey8/s320/DEVENEZSEROPO_2.png" alt="" id="BLOGGER_PHOTO_ID_5348010368954713858" border="0" /></a></p>
<p>Know that we do not endorse any political message with this post. But this gif image is no ordinary image. If it were, its size might reach 35 kb at the most. Embedded in the image is the encrypted payload, bloating the image out over a couple hundred kilobytes (~270 kb).<br />The downloader gathers the response information from the previous sites to find more urls to contact and finds its decryption key. It then uses its key to decrypt the code embedded within downloaded gifs.</p>
<p>Much like the recent (and possibly related) beladen downloader and the older Tibs downloaders, this malware delivery embedded image scheme attempts to evade gateway appliance based protection and optimized AV scans with gif-based encrypted payloads. It stymies automated web crawling based research efforts. No longer are we seeing simple xor decoding schemes with visible PE headers in downloaded image files. The encryption implemented for this attack was another previously commerical and proprietary encryption algorithm.<br />ThreatFire is preventing this downloader in fairly high prevalence.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2009/06/streamviewers-gif-images-embedded-with-encrypted-malware.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Zbot IM and invoice_8612112</title>
		<link>http://blog.threatfire.com/2009/03/zbot-im-and-invoice_8612112.html</link>
		<comments>http://blog.threatfire.com/2009/03/zbot-im-and-invoice_8612112.html#comments</comments>
		<pubDate>Wed, 04 Mar 2009 16:30:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Crimeware]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Undetected malware]]></category>
		<category><![CDATA[ZBot]]></category>

		<guid isPermaLink="false">http://newblog.threatfire.com/2009/03/zbot-im-and-invoice_8612112/</guid>
		<description><![CDATA[Another repacked variant of Zbot, the banking password stealer component of the all-too-common exploit/trojan kit Zeus, is being distributed over Yahoo! Messenger, in email, and being downloaded via web browser. There is no regional concentration, we&#8217;ve seen triggers in Argentina, Alaska, Philippines, Romania, California &#8212; it&#8217;s globally distributed. Detection is poor and this variant has [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.threatexpert.com/report.aspx?md5=A3D1A160E6CE8CA4C2B4421731E549C2" target="_blank">Another repacked variant</a> of Zbot, the banking password stealer component of the all-too-common exploit/trojan kit Zeus, is being distributed over Yahoo! Messenger, in email, and being downloaded via web browser. There is no regional concentration, we&#8217;ve seen triggers in Argentina, Alaska, Philippines, Romania, California &#8212; it&#8217;s globally distributed. Detection is poor and this variant has been obfuscated well.</p>
<p>Do not fall for IM messages or email claiming to warn you of a UPS delivery failure, carrying a zip archive (invoice_8612112.zip) and containing a filename like invoice_8612112.exe. If you do see such a thing, please make a copy of the text of the message and contact us in our comments section. It seems to be changing. Do not run the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2009/03/zbot-im-and-invoice_8612112.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rigged pdf files</title>
		<link>http://blog.threatfire.com/2008/11/rigged-pdf-files.html</link>
		<comments>http://blog.threatfire.com/2008/11/rigged-pdf-files.html#comments</comments>
		<pubDate>Mon, 10 Nov 2008 20:59:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Exploit]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Rogueware]]></category>
		<category><![CDATA[Vulnerability]]></category>

		<guid isPermaLink="false">http://newblog.threatfire.com/2008/11/rigged-pdf-files/</guid>
		<description><![CDATA[Pdf malware is being actively distributed. Our user community is seeing a slew of rigged pdf files attacking various buffer overflow vulnerabilities in the Adobe Acrobat Reader software, including the newest publicly known. Sometimes, the user is duped into downloading malicious files appearing to be Microsoft software updates. More often, they appear to be downloading [...]]]></description>
			<content:encoded><![CDATA[<p>Pdf malware is being actively distributed. Our user community is seeing a slew of rigged pdf files attacking various buffer overflow vulnerabilities in the Adobe Acrobat Reader software, including the <a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2992" target="_blank">newest publicly known</a>. Sometimes, the user is duped into downloading malicious files appearing to be Microsoft software updates. More often, they appear to be downloading silent malicious installers.</p>
<p>A couple of the downloaded, packed files appear to carry with them tricks that continue to evade AV file scanning with VirusTotal results at <a href="http://www.virustotal.com/analisis/8cd12dc4a14172ff7b57bb54ef00c373" target="_blank">5/36</a>.</p>
<p>For example, a chunk of the standard download and execute shellcode that we are currently seeing pulls a file from hxxp://ascoprguide. net/lel / load.php?xpl=pdf, renames it as c:\\U.exe, and runs it on the victim&#8217;s system. This <a href="http://www.threatexpert.com/report.aspx?uid=3039b389-7646-4c25-a4dc-2e1b68bbd347" target="_blank">&#8220;U.exe&#8221; then runs</a> and installs other adware and spyware related components.<br />Other downloads are installing various <a href="http://www.slideshare.net/kurtbaumgartner/k-baumgartner-recent-rogueware-presentation/" target="_blank">Rogueware</a> <a href="http://www.threatexpert.com/report.aspx?uid=c5e6392a-f64e-4cb1-8367-f5e29d549a96" target="_blank">packages</a>, like the ones we presented at Virus Bulletin 2008.</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_YaXoRZbsXc4/SRoPEvc4TpI/AAAAAAAAAno/8l83Ov9EbE4/s1600-h/AV2009Pro.png" target="_blank"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 200px; height: 107px;" src="http://3.bp.blogspot.com/_YaXoRZbsXc4/SRoPEvc4TpI/AAAAAAAAAno/8l83Ov9EbE4/s200/AV2009Pro.png" alt="" id="BLOGGER_PHOTO_ID_5267539288294706834" border="0" /></a><br />Be sure to visit the Adobe site and update your Acrobat Reader software.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2008/11/rigged-pdf-files.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Race2Zero Results and Comments</title>
		<link>http://blog.threatfire.com/2008/08/race2zero-results-and-comments.html</link>
		<comments>http://blog.threatfire.com/2008/08/race2zero-results-and-comments.html#comments</comments>
		<pubDate>Tue, 12 Aug 2008 00:29:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AntiMalware Solutions]]></category>
		<category><![CDATA[Defcon]]></category>
		<category><![CDATA[Evasion technique]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Reversing]]></category>
		<category><![CDATA[Undetected malware]]></category>
		<category><![CDATA[hacking tool]]></category>

		<guid isPermaLink="false">http://newblog.threatfire.com/2008/08/race2zero-results-and-comments/</guid>
		<description><![CDATA[The Race2Zero contest at Defcon added a new voice, the voice of an eager young student from New Zealand, to the conversation regarding the problems of Anti-Virus scanner evasion that has been going on for years. At the base of the effort, the organizer wanted to demonstrate the ease with which AV scanners can be [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.racetozero.net/motivations.html" target="_blank">Race2Zero</a> contest at Defcon added a new voice, the voice of an eager young student from New Zealand, to the conversation regarding the problems of Anti-Virus scanner evasion that has been going on for years. At the base of the effort, the organizer wanted to demonstrate the ease with which AV scanners can be evaded by tweaking already compiled malware and reveal some of the more sophisticated methods that can be used for evasion. It was unclear if he had any experience or skills in the techniques himself. However, by organizing this event, he claimed that as a researcher, he would be able to somehow quantify efforts and results to help with cost/benefit analysis of software defense: &#8220;Quantifying how much an attacker must invest to circumvent the defences that a defender has invested in is a key part of being able to evaluate where best to place security spend to gain the most benefit. Race to Zero is one way in which we as researchers can proactively answer these and other questions, while at the same time challenging some of the best minds available in the security community.&#8221;</p>
<p>He wanted to demonstrate AV shortcomings by providing competing teams with a set of AV-scanner detected malware samples, one after another. The samples would be tweaked by the participants in a way so that the core activity of the software would not be changed but the file would evade on-demand file scanners and remain undetected by 32 scanners. Eventually, one team would race to &#8220;zero detection&#8221; on all ten samples first. And he wanted it to be fun &#8212; &#8220;Reverse engineering and code analysis is fun.&#8221;</p>
<p>What he succeeded in demonstrating, from what I could tell, is that there are high levels of complexity involved in the setup, preparation, support and understanding of his &#8220;competition&#8221;.<br />Understanding malware, an environment for working with it, the variety of antivirus products and their uses, PE files, assembly level programming, network traffic, exploits and their delivery vectors, and the relevance of each to AV scanner effectiveness, are all beefy topics that the organizers and their helpers didn&#8217;t seem to either fully grasp, have the resources to adequately deal with, or both.<br />Running a handful of command line scanners across a handful of questionably selected (a MS-DOS variant, several widespread worms from several years ago, exploits against Word 2000 without any copies of Word 2000 to test against, etc) malware samples to be modified doesn&#8217;t really provide the amount of quantifiable results to make large claims for a cost/benefit analysis of security defense and the evaluation of AV scanners. Professional AV test and review groups themselves have a difficult enough time carrying out this sort of evaluation effort with hundreds and sometimes tens of thousands of samples with days or weeks of paid and competent effort, often without the limits of a group of volunteer organizers and speakers attempting the project.</p>
<p>While the subject of the AV evasion black market is always an interesting one for those pushing a behavioral-based technology like ThreatFire, this first &#8220;competition&#8221; didn&#8217;t seem to live up to the attention that it received (as the organizer seemed to expect). We&#8217;ll wait for a technical paper that was proposed to be delivered:<br />&#8220;We hope to be able to give a presentation of findings from Race to Zero at DefCon, a paper has been submitted but a decision on it has not yet been made. Following the contest, when further analysis has been conducted, a technical paper will be publicly released.&#8221;<br />Maybe the public paper or an event next year will bring more interesting results with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2008/08/race2zero-results-and-comments.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Return of Rustock?</title>
		<link>http://blog.threatfire.com/2008/07/return-of-rustock.html</link>
		<comments>http://blog.threatfire.com/2008/07/return-of-rustock.html#comments</comments>
		<pubDate>Fri, 04 Jul 2008 03:14:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bot]]></category>
		<category><![CDATA[Embedded trojan]]></category>
		<category><![CDATA[Evasion technique]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Rootkit]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[Undetected malware]]></category>

		<guid isPermaLink="false">http://newblog.threatfire.com/2008/07/return-of-rustock/</guid>
		<description><![CDATA[Return is a powerful concept in many ways. In literature, return can touch on the limits of faith, love, loyalty, friendship, fidelity and mortality.
Homer&#8217;s Ulysses wanders for years, returning to his home and his family in disarray. Initially, the only witness to recognize Ulysses in his home is his old dog Argus, faithfully waiting for [...]]]></description>
			<content:encoded><![CDATA[<p>Return is a powerful concept in many ways. In literature, return can touch on the limits of faith, love, loyalty, friendship, fidelity and mortality.</p>
<p>Homer&#8217;s Ulysses wanders for years, returning to his home and his family in disarray. Initially, the only witness to recognize Ulysses in his home is his old dog Argus, faithfully waiting for his master&#8217;s return over those 20 years: &#8220;<i>As soon as he saw Odysseus standing there, he dropped his ears and wagged his tail, but he could not get close up to his master. When Odysseus saw the dog on the other side of the yard, dashed a tear from his eyes&#8230;</i><i>But Argos passed into the darkness of death, now that he had seen his master once more.&#8221;</i><br /><i><br /></i>Edward Fitzgerald&#8217;s &#8220;The Rubaiyat of Omar Khayyam&#8221; speculates on the importance of understanding the inability to return:<br />&#8220;Then to the lip of this poor earthen Urn<br />I lean&#8217;d, the Secret of my Life to learn:<br />And Lip to Lip it mumur&#8217;d &#8212; &#8220;While you live<br />Drink! &#8212; for, once dead, you never shall return&#8221;</p>
<p>Unfortunately, in our last round of spambots, we find lots of return. However, these returns do not provide deep insight or wistful second comings. Instead, these returns serve to obfuscate the functionality of the rootkit driver component (&#8221;pgasghjd.sys&#8221;) that appears to be the newest project of one of the rustock creators:<br />C:\progz\NewWork2\driver\objfre\i386\driver.pdb</p>
<p>Return is a powerful computing concept, and an important part of any CPU instruction set. The &#8220;RET&#8221; or &#8220;Return from procedure&#8221; instruction &#8220;transfers control to a return address located on the top of the stack&#8221;.<br />These returns are used in an unusual way in the unpacking stub of the driver, avoiding making standard calls early in the routine. Here is the driver&#8217;s entry point.</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_YaXoRZbsXc4/SG-eU5EitQI/AAAAAAAAAaI/zsWdezHeLKE/s1600-h/driver_entrypoint_return.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_YaXoRZbsXc4/SG-eU5EitQI/AAAAAAAAAaI/zsWdezHeLKE/s200/driver_entrypoint_return.png" alt="" id="BLOGGER_PHOTO_ID_5219564574900139266" border="0" /></a></p>
<p>Notice the push of a hard-coded offset and the immediate return. This unusual sequence of assembly instructions simply pushes a return address to the stack, only to take control when the &#8220;ret&#8221; or &#8220;retn&#8221; is executed and control flows to this new offset. This sequence can be used as an effective emulator evasion trick.</p>
<p>These returns do not provide anything all that valuable, instead, these returns help to produce the unwanted spam, clogging global network pipes and peddling &#8220;male enhancement&#8221; drugs. These are the messages that are crass and vain, including with them a link to a couple of these &#8220;drug&#8221; peddling web sites. Obscene messages are not reproduced here, but here are a few examples:<br />&#8220;Give your chick a night to remember&#8221;<br />&#8220;Make sure you don&#8217;t get left out of the action at parties&#8221;<br />&#8220;Fantastic results guaranteed&#8221;</p>
<p>Some returns come with really bad literature.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2008/07/return-of-rustock.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Will the Real Virtumonde Please Stand Up?</title>
		<link>http://blog.threatfire.com/2008/06/will-the-real-virtumonde-please-stand-up.html</link>
		<comments>http://blog.threatfire.com/2008/06/will-the-real-virtumonde-please-stand-up.html#comments</comments>
		<pubDate>Tue, 17 Jun 2008 20:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adware]]></category>
		<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Reversing]]></category>
		<category><![CDATA[Undetected malware]]></category>
		<category><![CDATA[Vundo]]></category>

		<guid isPermaLink="false">http://newblog.threatfire.com/2008/06/will-the-real-virtumonde-please-stand-up/</guid>
		<description><![CDATA[It seems that quite a bit of malware is being classified as Vundo (Virtumonde) these days.  With the volume of malware currently being distributed in dynamic link library form, it is not always easy to differentiate one from another.  Frequently these modules are statically linked with C and C++ runtimes, compression, and GUI [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that quite a bit of malware is being classified as Vundo (Virtumonde) these days.  With the volume of malware currently being distributed in dynamic link library form, it is not always easy to differentiate one from another.  Frequently these modules are statically linked with C and C++ runtimes, compression, and GUI libraries, which can slow analysis down.  In addition to all this embedded library code, Vundo&#8217;s code seems to be under constant development and is updated to fix bugs, add a new piece of functionality, or add more randomization to prevent signature recognition quite frequently.</p>
<p>However, there is one construct that the developers behind the code seem to enjoy using.  In almost every place where an event and sometimes registry value names are created, the name is generated by a function which is similar between variants.</p>
<p>The function derives this name from an attribute of the infected computer.  The attribute is the serial number assigned to the &#8220;C:&#8221; drive volume when it was last formatted by the operating system.  Then, the serial number is randomized by one or more bitwise cpu instructions against a number selected by the programmer.  The result of these operations is converted into a string and returned for use.</p>
<p>The recognition of this function can help positively ID a Vundo sample.  The source code representation of this function would look similar to this:</p>
<pre>#include &lt;windows.h&gt;#define arbitrary_vundo_number 0xFDEC

int generate_number(char *output){    int return_value;    DWORD volume_serial_number;

    return_value = GetVolumeInformation("c:\\", NULL, 0,        &amp;volume_serial_number, NULL, NULL, NULL, 0);

    volume_serial_number ^= arbitrary_vundo_number;

    return wsprintf(output, "%08x", volume_serial_number);}</pre>
<p>Actual Vundo assembly code looks like this:
<pre>push    esi             ; nFileSystemNameSizepush    esi             ; lpFileSystemNameBufferpush    esi             ; lpFileSystemFlagspush    esi             ; lpMaximumComponentLengthlea     eax, [ebp+VolumeSerialNumber]push    eax             ; lpVolumeSerialNumberpush    esi             ; nVolumeNameSizepush    esi             ; lpVolumeNameBufferpush    offset RootPathName ; "c:\\"mov     [ebp+VolumeSerialNumber], 123hcall    ds:GetVolumeInformationAxor     [ebp+VolumeSerialNumber], 34D2121hpush    [ebp+VolumeSerialNumber]push    offset a08x     ; "%08x"push    [ebp+arg_0]     ; LPSTRcall    ds:wsprintfAadd     esp, 0Chpop     esileaveretn</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2008/06/will-the-real-virtumonde-please-stand-up.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bancostrings</title>
		<link>http://blog.threatfire.com/2008/06/bancostrings.html</link>
		<comments>http://blog.threatfire.com/2008/06/bancostrings.html#comments</comments>
		<pubDate>Tue, 03 Jun 2008 22:33:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Obfuscation]]></category>
		<category><![CDATA[Password stealing]]></category>
		<category><![CDATA[Reversing]]></category>
		<category><![CDATA[cybercrime]]></category>

		<guid isPermaLink="false">http://newblog.threatfire.com/2008/06/bancostrings/</guid>
		<description><![CDATA[When does BCD0236E965582D56DD365E44BD764FA5DFD6CBF312BB124AA2563B5C2 mean &#8220;:: Bradesco Pessoa Fosica ::&#8221;? Only when CD30ABC0221E5486A23D0F619DB27FC50110504DB9D3DC357893D269E177CB2D1BD1758CCC77AA93ED3DBA190A7BD914B80F5254919C2DC0D471B02CC20260CC4CB2C73A5B really means &#8220;HSBC Bank Brasil S.A. &#8212; Banco Muliplo &#8212; No Brasil e no mundo, HSBC&#8221;, of course.
A couple of previous posts provided insight into what clues strings provide when performing malware analysis, and a concise description of how to decrypt obfuscated strings [...]]]></description>
			<content:encoded><![CDATA[<p>When does BCD0236E965582D56DD365E44BD764FA5DFD6CBF312BB124AA2563B5C2 mean &#8220;:: Bradesco Pessoa Fosica ::&#8221;? Only when CD30ABC0221E5486A23D0F619DB27FC50110504DB9D3DC357893D269E177CB2D1BD1758CCC77AA93ED3DBA190A7BD914B80F5254919C2DC0D471B02CC20260CC4CB2C73A5B really means &#8220;HSBC Bank Brasil S.A. &#8212; Banco Muliplo &#8212; No Brasil e no mundo, HSBC&#8221;, of course.</p>
<p>A couple of <a href="http://blog.threatfire.com/2008/05/keeping-strings-real.html" target="_blank">previous</a> <a href="http://blog.threatfire.com/2008/05/keeping-strings-real-part-ii.html" target="_blank">posts</a> provided insight into what clues strings provide when performing malware analysis, and a concise description of how to decrypt obfuscated strings in a static file using advanced IDA Pro functionality.</p>
<p>Here, we&#8217;ll use a debugger to step through a malicious file in the lab and observe data as it is decoded by the malware itself. Sometimes, when speed is a priority and not all that many strings are involved, stepping through the decryption loop prior to writing an IDA script is another good approach to have in the toolkit.<br />We&#8217;ve started the executable within Ollydbg. No human-readable strings are visible to the analyst here, but a quick look at the text section following some unpacking reveals multiple arrays of  garbled text. Also suspicious is that each string of unreadable, or probably crypted, data is being passed by pointer to the same function. Most likely, this procedure includes the  decryption loop that we are looking for. Each call to this same procedure being passed a pointer is highlighted in a red below:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_YaXoRZbsXc4/SEXIAc-W_nI/AAAAAAAAAUk/nfQUXpd-c-s/s1600-h/crypted_string_passed_to_decryption_routine.png" target="_blank"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_YaXoRZbsXc4/SEXIAc-W_nI/AAAAAAAAAUk/nfQUXpd-c-s/s400/crypted_string_passed_to_decryption_routine.png" alt="" id="BLOGGER_PHOTO_ID_5207788454227148402" border="0" /></a></p>
<p>We can review this loop, setting a breakpoint on the procedures that are passed these strings as a parameter. Somewhere along the way in here, the decrypted data is most likely written out to memory or as a hash. As we single step through the code (hitting F7), we&#8217;ll watch for pushes, pops, repeated movs intructions, and look for pointers to strings and data copies from esi to edi. We find an interesting loop here after the garbled text is pushed onto the stack. Notice that string data is being copied from esi to edi:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YaXoRZbsXc4/SEXI0iUTeGI/AAAAAAAAAUs/UTdlc3dcqnI/s1600-h/decrypt_loop__dump_at_edi.png" target="_blank"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_YaXoRZbsXc4/SEXI0iUTeGI/AAAAAAAAAUs/UTdlc3dcqnI/s400/decrypt_loop__dump_at_edi.png" alt="" id="BLOGGER_PHOTO_ID_5207789349014567010" border="0" /></a></p>
<p>Following edi in the data dump displays the memory contents as they are written out and decrypted by multiple layers and loops. Setting a breakpoint here and running through the loop reveals the decrypted data. We can single step through this loop to evaluate the decryption algorithm.<br />Eventually this decrypted data is passed to another function via pointers on the thread stack. Now that we&#8217;ve run through the loops, we can identify a list of banks and web sites that our portuguese speaking friends in Brazil may recognize:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_YaXoRZbsXc4/SEawKlSoHLI/AAAAAAAAAU0/eLa99ZSb2ZQ/s1600-h/stack_of_decrypted_titlebars.PNG" target="_blank"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_YaXoRZbsXc4/SEawKlSoHLI/AAAAAAAAAU0/eLa99ZSb2ZQ/s400/stack_of_decrypted_titlebars.PNG" alt="" id="BLOGGER_PHOTO_ID_5208043714955975858" border="0" /></a></p>
<p>Having identified these strings within the malware, we craft few custom written empty web pages with these strings as title bar content. We then open the html pages with Internet Explorer. We&#8217;ll witness images stored within the malware being presented in the foreground of the browser, waiting for our login  id&#8217;s and passwords. Here are a few related screenshots:</p>
<p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_YaXoRZbsXc4/SEa0OD7xCdI/AAAAAAAAAVE/jEiCuzd_0JI/s1600-h/Bank_login.png" target="_blank"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_YaXoRZbsXc4/SEa0OD7xCdI/AAAAAAAAAVE/jEiCuzd_0JI/s320/Bank_login.png" alt="" id="BLOGGER_PHOTO_ID_5208048172767709650" border="0" /></a><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_YaXoRZbsXc4/SEa0JUIAieI/AAAAAAAAAU8/bpKmYnzxq14/s1600-h/Bradesco_login.png" target="_blank"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_YaXoRZbsXc4/SEa0JUIAieI/AAAAAAAAAU8/bpKmYnzxq14/s400/Bradesco_login.png" alt="" id="BLOGGER_PHOTO_ID_5208048091214678498" border="0" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YaXoRZbsXc4/SEa0S691e8I/AAAAAAAAAVM/PDychowmqQg/s1600-h/virtual_keyboards.png" v><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_YaXoRZbsXc4/SEa0S691e8I/AAAAAAAAAVM/PDychowmqQg/s320/virtual_keyboards.png" alt="" id="BLOGGER_PHOTO_ID_5208048256259816386" border="0" /></a></p>
<p>These strings helped lead us to identify another all too popular Brazilian banking password stealer. Done with these strings, off for a little samba and sun on the coast of Buzios!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.threatfire.com/2008/06/bancostrings.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
