<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
<title>Prevx Blog</title>
<link>http://www.prevx.com/blog.asp</link>
<description>Prevx Blog</description>
<pubDate>Fri, 18 Sep 2009 13:27:06 GMT</pubDate>
<generator />
<language>en</language>
<geo:lat>33.614385</geo:lat><geo:long>-117.260807</geo:long>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/PrevxResearchBlog" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
<title>Detecting and Removing the ZEUS Banking Trojan</title>
<link>http://feedproxy.google.com/~r/PrevxResearchBlog/~3/9sZWBg4P4yg/Detecting-and-Removing-the-ZEUS-Banking-Trojan.html</link>
<comments>http://www.prevx.com/blog/137/Detecting-and-Removing-the-ZEUS-Banking-Trojan.html#comments</comments>
<pubDate>Fri, 18 Sep 2009 13:27:06 GMT</pubDate>
<dc:creator>Mel Morris</dc:creator>
<guid isPermaLink="false">http://www.prevx.com/blog/137/Detecting-and-Removing-the-ZEUS-Banking-Trojan.html</guid>
<description><![CDATA[</p><p>
ZEUS has been around in various generations for a few years now. Here is link to an article from 2007 when a ZEUS Trojan infiltrated several prominent us organizations <a href="http://www.reuters.com/article/domesticNews/idUSN1638118020070717">ZEUS infects US organizations</a>.</p><p>
</p><p>
ZEUS is easily and commonly dropped by an exploit and is also carried via social engineering techniques exploiting job sites and the like. The ZEUS Trojan, or the ZEUS Banking Trojan can also be referred to by security firms as WSNPOEM and Gorhax.</p><p>
</p><p>
Outwardly, a ZEUS infected PC will show no obvious signs of infection. The ZEUS Banking Trojan is capable of rifling your Internet cache for stored login and password credentials, it can also eavesdrop on keystrokes and screen contents and can even modify a web page with form injection to capture additional fields - just in case what the criminals want to steal isn't already on the page.</p><p>
</p><p>
As a recent hyped article claimed ZEUS frequently bypasses popular antivirus and internet security suites. The criminals are careful to infect just a few PCs with each copy of the Trojan, thereby avoiding detection by honepots/nets and subsequent researcher attention in security labs. By the time each copy of a ZEUS Trojan is identified by security researchers it's job is done and a new fresh version will be dispatched to takeover its role.</p><p>
</p><p>
No one has an accurate account of the real numbers of ZEUS infections, but it must run to millions of PCs worldwide. We uncovered a cache of stolen information captured by a ZEUS Trojan earlier this year. This data came from 160,000 PCs infected by ZEUS Trojans. During the six weeks of tracking this crop of infections it reached a peak of 20,000 new PC infections per day.</p><p>
</p><p>
Now for some tell tale signs of ZEUS. Using this information you will be able to check your PC for signs of infection by ZEUS. You may also use this information to help you remove the ZEUS Trojan, or at least disable it.</p><p>
</p><p>
The ZEUS Trojan will commonly use names like NTOS.EXE, LD08.EXE, LD12.EXE, PP06.EXE, PP08.EXE, SRA64.EXE, LDnn.EXE and PPnn.EXE etc, so search your PCs for files with names like this. The ZEUS Trojan will typically be between 40KBytes and 150Kbytes in size.</p><p>
</p><p>
Also look for a folder with the name WSNPOEM, this is also a common sign of infection for the ZEUS Trojan.</p><p>
</p><p>
Finally, check the Registry looking for RUN keys referencing any of these names.</p><p>
</p><p>
Do not assume because your antivirus or internet security suite does not show any signs of infection that your PC does not have the ZEUS Trojan infection.</p><p>
]]></description>
<content:encoded><![CDATA[<p></p><p>
ZEUS has been around in various generations for a few years now. Here is link to an article from 2007 when a ZEUS Trojan infiltrated several prominent us organizations <a href="http://www.reuters.com/article/domesticNews/idUSN1638118020070717">ZEUS infects US organizations</a>.</p><p>
</p><p>
ZEUS is easily and commonly dropped by an exploit and is also carried via social engineering techniques exploiting job sites and the like. The ZEUS Trojan, or the ZEUS Banking Trojan can also be referred to by security firms as WSNPOEM and Gorhax.</p><p>
</p><p>
Outwardly, a ZEUS infected PC will show no obvious signs of infection. The ZEUS Banking Trojan is capable of rifling your Internet cache for stored login and password credentials, it can also eavesdrop on keystrokes and screen contents and can even modify a web page with form injection to capture additional fields - just in case what the criminals want to steal isn't already on the page.</p><p>
</p><p>
As a recent hyped article claimed ZEUS frequently bypasses popular antivirus and internet security suites. The criminals are careful to infect just a few PCs with each copy of the Trojan, thereby avoiding detection by honepots/nets and subsequent researcher attention in security labs. By the time each copy of a ZEUS Trojan is identified by security researchers it's job is done and a new fresh version will be dispatched to takeover its role.</p><p>
</p><p>
No one has an accurate account of the real numbers of ZEUS infections, but it must run to millions of PCs worldwide. We uncovered a cache of stolen information captured by a ZEUS Trojan earlier this year. This data came from 160,000 PCs infected by ZEUS Trojans. During the six weeks of tracking this crop of infections it reached a peak of 20,000 new PC infections per day.</p><p>
</p><p>
Now for some tell tale signs of ZEUS. Using this information you will be able to check your PC for signs of infection by ZEUS. You may also use this information to help you remove the ZEUS Trojan, or at least disable it.</p><p>
</p><p>
The ZEUS Trojan will commonly use names like NTOS.EXE, LD08.EXE, LD12.EXE, PP06.EXE, PP08.EXE, SRA64.EXE, LDnn.EXE and PPnn.EXE etc, so search your PCs for files with names like this. The ZEUS Trojan will typically be between 40KBytes and 150Kbytes in size.</p><p>
</p><p>
Also look for a folder with the name WSNPOEM, this is also a common sign of infection for the ZEUS Trojan.</p><p>
</p><p>
Finally, check the Registry looking for RUN keys referencing any of these names.</p><p>
</p><p>
Do not assume because your antivirus or internet security suite does not show any signs of infection that your PC does not have the ZEUS Trojan infection.</p><p>
</p>
<div class="feedflare">
</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=9sZWBg4P4yg:DCQee556DlY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=9sZWBg4P4yg:DCQee556DlY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=9sZWBg4P4yg:DCQee556DlY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=9sZWBg4P4yg:DCQee556DlY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=9sZWBg4P4yg:DCQee556DlY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=9sZWBg4P4yg:DCQee556DlY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=9sZWBg4P4yg:DCQee556DlY:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/PrevxResearchBlog/~4/9sZWBg4P4yg" height="1" width="1"/>]]></content:encoded>
<wfw:commentRss>http://www.prevx.com/blog/137/Detecting-and-Removing-the-ZEUS-Banking-Trojan.html&amp;feed=rss2#comments</wfw:commentRss>
<feedburner:origLink>http://www.prevx.com/blog/137/Detecting-and-Removing-the-ZEUS-Banking-Trojan.html</feedburner:origLink></item>
<item>
<title>Prevx is Hiring Mac OSX Developer - Maybe You ?</title>
<link>http://feedproxy.google.com/~r/PrevxResearchBlog/~3/WC_JvnlWBG4/Prevx-is-Hiring-Mac-OSX-Developer--Maybe-You-.html</link>
<comments>http://www.prevx.com/blog/136/Prevx-is-Hiring-Mac-OSX-Developer--Maybe-You-.html#comments</comments>
<pubDate>Mon, 14 Sep 2009 17:01:18 GMT</pubDate>
<dc:creator>Jacques Erasmus</dc:creator>
<guid isPermaLink="false">http://www.prevx.com/blog/136/Prevx-is-Hiring-Mac-OSX-Developer--Maybe-You-.html</guid>
<description><![CDATA[</p><p>
Thought I'd get this out via the blog to get maximum attention. Prevx is looking to hire a Mac OSX developer to develop a cloud AV client. Should have experience in C/C++ for system level development as well as being able to develop GUI's.  If this sounds of interest to you drop a mail to weblog@prevx.com.]]></description>
<content:encoded><![CDATA[<p></p><p>
Thought I'd get this out via the blog to get maximum attention. Prevx is looking to hire a Mac OSX developer to develop a cloud AV client. Should have experience in C/C++ for system level development as well as being able to develop GUI's.  If this sounds of interest to you drop a mail to weblog@prevx.com.</p>
<div class="feedflare">
</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=WC_JvnlWBG4:fIeXVmo5Y18:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=WC_JvnlWBG4:fIeXVmo5Y18:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=WC_JvnlWBG4:fIeXVmo5Y18:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=WC_JvnlWBG4:fIeXVmo5Y18:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=WC_JvnlWBG4:fIeXVmo5Y18:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=WC_JvnlWBG4:fIeXVmo5Y18:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=WC_JvnlWBG4:fIeXVmo5Y18:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/PrevxResearchBlog/~4/WC_JvnlWBG4" height="1" width="1"/>]]></content:encoded>
<wfw:commentRss>http://www.prevx.com/blog/136/Prevx-is-Hiring-Mac-OSX-Developer--Maybe-You-.html&amp;feed=rss2#comments</wfw:commentRss>
<feedburner:origLink>http://www.prevx.com/blog/136/Prevx-is-Hiring-Mac-OSX-Developer--Maybe-You-.html</feedburner:origLink></item>
<item>
<title>FTP Reloaded: My Website has been hacked!</title>
<link>http://feedproxy.google.com/~r/PrevxResearchBlog/~3/yqSfGElRYC4/FTP-Reloaded-My-Website-has-been-hacked.html</link>
<comments>http://www.prevx.com/blog/135/FTP-Reloaded-My-Website-has-been-hacked.html#comments</comments>
<pubDate>Sun, 16 Aug 2009 21:53:09 GMT</pubDate>
<dc:creator>Jacques Erasmus</dc:creator>
<guid isPermaLink="false">http://www.prevx.com/blog/135/FTP-Reloaded-My-Website-has-been-hacked.html</guid>
<description><![CDATA[</p><p>
As you might know if you have been following our blog, last month we blogged about a FTP password stealer that’s spreading in the wild <a href="http://www.prevx.com/blog/132/Compromised-FTP-details-being-exploited-by-in-the-wild-malware.html">here.</a></p><p>
</p><p>
This infector managed to steal many credentials of many large companies, a total of nearly 90,000 logins were found. We worked with local and international law enforcement to get that site shut down and inform as many victims as we could.</p><p>
</p><p>
Yesterday while roaming the dark depths of the web, Mike "Rambo" Johnson, one of our malware hunting rockstars, managed to find the latest incarnation of this threat. </p><p>
</p><p>
On this occasion there is not much difference, it’s an entirely new list of domains containing yet again, a bunch of new "big names" which we are in the process of notifying. Overnight the number of stolen credentials went from 624 to 4338. </p><p>
</p><p>
The infection begins when visiting what appears to be a harmless website hxxp://<removed>-lena-kolesnikova.com/ (NSFW!)</p><p>
</p><p>
Two separate scripts are all this particular url has to offer, there is no legitimate material to be found, unfortunately.</p><p>
</p><p>
Most of these sites that have been injected, contain what’s called a rotator, where it rotates malware packs purchased by people who want their malware spread.</p><p>
</p><p>
<blockquote>When we say "Injected" what we mean is that the ftp credentials has been stolen, and an iframe/script has been injected into the html pages of the site</blockquote></p><p>
</p><p>
</p><p>
Script 1 failed to execute on this machine as the IP was blocked due to previous visits throughout that day.</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/obfus.jpg" title="Injected Script" alt="image"></p><p>
</p><p>
</p><p>
</p><p>
Script 2 is where the FtpBot is launched from, this particular Url is also a rotator and will serve up different malware based on geographic, software installed and time of day.</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/obfus2.jpg" title="Rotator Script" alt="image"></p><p>
</p><p>
The exploit kit used by this malware is called FSPACK, there are so many of these around these days that the name really has little value. </p><p>
</p><p>
So let’s move on to the meaty stuff, on successful exploitation, this is what you could expect to see traffic wise on your machine. </p><p>
</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/comms.jpg" title="HTTP Traffic" alt="image"></p><p>
</p><p>
</p><p>
This shows how the pack itself fetch's even more malware on top of the already dropped pieces.</p><p>
</p><p>
</p><p>
Now, it begins checking for commands....</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/check.jpg" title="C&C Checkin" alt="image"></p><p>
</p><p>
It tries to connect to a admin panel, however it appears that it’s not configured properly by the malware owners, and doesn't seem to be functioning in terms of statistics gathering. </p><p>
</p><p>
What happens after this process is complete is that the malware installed on victim machine will harvest ftp details, from known ftp clients, (Total commander, CuteFTP, FlashFXP and a few others) that uploads to a list on the server. </p><p>
</p><p>
The stolen details get sent to a txt file on the server known as list.txt, and the format of the details are "ftp://username:password@ftp.domain.com". </p><p>
</p><p>
This then gets dished out to infected clients, who then login to the ftp site and inject an iframe/script into the webpage, the goal of this is to then infect more users who visit these sites using the same exploit pack as shown above. </p><p>
</p><p>
This is usually where we would finish the blog, pat ourselves on the back and think job done, however we managed to find the site that the people who are responsible for these infections are using to monetize it. </p><p>
</p><p>
In my opinion the way to protect against FTP login stealers like these are as follows:</p><p>
</p><p>
 -  Don't use FTP for anything important, use encrypted protocols</p><p>
 -  Don't rely on software such as Total Command, FlashFXP, CuteFTP et al to protect your credentials, the methods used to store the passwords are weak</p><p>
</p><p>
Prevx 3.0 and Prevx 3.0 Enterprise edition both protect against these threats. </p><p>
</p><p>
Below is some screenshots, comments and translations from Russian to English.</p><p>
</p><p>
I think the pictures speak for themselves, however badly they are translated. One thing I can say is that their website isn’t very pretty, but I guess they are getting enough customers with even an ugly looking site!</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/intro.jpg"  alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/target.jpg"  alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/ud.jpg"  alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/spamzor.jpg"  alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/ddos.jpg" alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/loadz.jpg" alt="image"></p><p>
</p><p>
</p><p>
</p><p>
]]></description>
<content:encoded><![CDATA[<p></p><p>
As you might know if you have been following our blog, last month we blogged about a FTP password stealer that’s spreading in the wild <a href="http://www.prevx.com/blog/132/Compromised-FTP-details-being-exploited-by-in-the-wild-malware.html">here.</a></p><p>
</p><p>
This infector managed to steal many credentials of many large companies, a total of nearly 90,000 logins were found. We worked with local and international law enforcement to get that site shut down and inform as many victims as we could.</p><p>
</p><p>
Yesterday while roaming the dark depths of the web, Mike "Rambo" Johnson, one of our malware hunting rockstars, managed to find the latest incarnation of this threat. </p><p>
</p><p>
On this occasion there is not much difference, it’s an entirely new list of domains containing yet again, a bunch of new "big names" which we are in the process of notifying. Overnight the number of stolen credentials went from 624 to 4338. </p><p>
</p><p>
The infection begins when visiting what appears to be a harmless website hxxp://<removed>-lena-kolesnikova.com/ (NSFW!)</p><p>
</p><p>
Two separate scripts are all this particular url has to offer, there is no legitimate material to be found, unfortunately.</p><p>
</p><p>
Most of these sites that have been injected, contain what’s called a rotator, where it rotates malware packs purchased by people who want their malware spread.</p><p>
</p><p>
<blockquote>When we say "Injected" what we mean is that the ftp credentials has been stolen, and an iframe/script has been injected into the html pages of the site</blockquote></p><p>
</p><p>
</p><p>
Script 1 failed to execute on this machine as the IP was blocked due to previous visits throughout that day.</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/obfus.jpg" title="Injected Script" alt="image"></p><p>
</p><p>
</p><p>
</p><p>
Script 2 is where the FtpBot is launched from, this particular Url is also a rotator and will serve up different malware based on geographic, software installed and time of day.</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/obfus2.jpg" title="Rotator Script" alt="image"></p><p>
</p><p>
The exploit kit used by this malware is called FSPACK, there are so many of these around these days that the name really has little value. </p><p>
</p><p>
So let’s move on to the meaty stuff, on successful exploitation, this is what you could expect to see traffic wise on your machine. </p><p>
</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/comms.jpg" title="HTTP Traffic" alt="image"></p><p>
</p><p>
</p><p>
This shows how the pack itself fetch's even more malware on top of the already dropped pieces.</p><p>
</p><p>
</p><p>
Now, it begins checking for commands....</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/check.jpg" title="C&C Checkin" alt="image"></p><p>
</p><p>
It tries to connect to a admin panel, however it appears that it’s not configured properly by the malware owners, and doesn't seem to be functioning in terms of statistics gathering. </p><p>
</p><p>
What happens after this process is complete is that the malware installed on victim machine will harvest ftp details, from known ftp clients, (Total commander, CuteFTP, FlashFXP and a few others) that uploads to a list on the server. </p><p>
</p><p>
The stolen details get sent to a txt file on the server known as list.txt, and the format of the details are "ftp://username:password@ftp.domain.com". </p><p>
</p><p>
This then gets dished out to infected clients, who then login to the ftp site and inject an iframe/script into the webpage, the goal of this is to then infect more users who visit these sites using the same exploit pack as shown above. </p><p>
</p><p>
This is usually where we would finish the blog, pat ourselves on the back and think job done, however we managed to find the site that the people who are responsible for these infections are using to monetize it. </p><p>
</p><p>
In my opinion the way to protect against FTP login stealers like these are as follows:</p><p>
</p><p>
 -  Don't use FTP for anything important, use encrypted protocols</p><p>
 -  Don't rely on software such as Total Command, FlashFXP, CuteFTP et al to protect your credentials, the methods used to store the passwords are weak</p><p>
</p><p>
Prevx 3.0 and Prevx 3.0 Enterprise edition both protect against these threats. </p><p>
</p><p>
Below is some screenshots, comments and translations from Russian to English.</p><p>
</p><p>
I think the pictures speak for themselves, however badly they are translated. One thing I can say is that their website isn’t very pretty, but I guess they are getting enough customers with even an ugly looking site!</p><p>
</p><p>
<img src="http://aknow.prevx.com/content/blog/intro.jpg"  alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/target.jpg"  alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/ud.jpg"  alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/spamzor.jpg"  alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/ddos.jpg" alt="image"></p><p>
<img src="http://aknow.prevx.com/content/blog/loadz.jpg" alt="image"></p><p>
</p><p>
</p><p>
</p><p>
</p>
<div class="feedflare">
</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=yqSfGElRYC4:zRC31EB11eA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=yqSfGElRYC4:zRC31EB11eA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=yqSfGElRYC4:zRC31EB11eA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=yqSfGElRYC4:zRC31EB11eA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=yqSfGElRYC4:zRC31EB11eA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=yqSfGElRYC4:zRC31EB11eA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=yqSfGElRYC4:zRC31EB11eA:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/PrevxResearchBlog/~4/yqSfGElRYC4" height="1" width="1"/>]]></content:encoded>
<wfw:commentRss>http://www.prevx.com/blog/135/FTP-Reloaded-My-Website-has-been-hacked.html&amp;feed=rss2#comments</wfw:commentRss>
<feedburner:origLink>http://www.prevx.com/blog/135/FTP-Reloaded-My-Website-has-been-hacked.html</feedburner:origLink></item>
<item>
<title>A puzzle called SafeSys</title>
<link>http://feedproxy.google.com/~r/PrevxResearchBlog/~3/D9lswTd0yTg/A-puzzle-called-SafeSys.html</link>
<comments>http://www.prevx.com/blog/134/A-puzzle-called-SafeSys.html#comments</comments>
<pubDate>Wed, 22 Jul 2009 18:01:55 GMT</pubDate>
<dc:creator>Marco Giuliani</dc:creator>
<guid isPermaLink="false">http://www.prevx.com/blog/134/A-puzzle-called-SafeSys.html</guid>
<description><![CDATA[</p><p>
Investigating new and uncommon infection vectors is sometimes enriching and useful for us, allowing us to break from the usual trend of classic piece of malicious softwares which are all but technically advanced. </p><p>
</p><p>
Everyone in the security industry could see what's happened during last years: <b>an increase of malware volume but a high decrease of their code complexity</b>. Most of malwares have nothing interesting to analyze, they are often variants, or repacked versions of some older variant. This doesn't necessarily mean there aren't anymore non trivial infections, but instead that they are more rare than before. </p><p>
</p><p>
Everyone who tried to clean an heavily infected PC would admit that sometimes it would be easier to format and reinstall everything than trying to fix up all the running infections. This is where a new kind of security softwares break in.</p><p>
</p><p>
<b>More and more people are using security softwares which are able to freeze system status and redirects everything that is going to happen on the system to a temporary store.</b> Then, at system restart, every modify to the system is eliminated and the system starts again at the original status when it was freezed by the security software.</p><p>
</p><p>
This is a fantastic solution for everyone who want to leave one or more PCs available to the people but they want to be sure any damage is done to their systems. Same solution is used for people who want to analyze or test applications but they don't want to install it on the real system.</p><p>
</p><p>
It's an easy game, where you only have to follow some simple steps: save status of the system,do what you want, restart the system and every modify will be deleted. </p><p>
</p><p>
It must have been a nightmare for some users when they saw that, even after system restart, a malicious piece of software was still there. Moreover because who use these kind of softwares is convinced that everything is filtered and cleaned at system restart, so they often don't feel they have to use any other way to prevent malware. <b>They just know that even if a malware harvests the system, it will be erased at next system reboot</b>. </p><p>
</p><p>
There have been a lot of rumors about a new kind of malware who was able to bypass these security softwares, and was able to write directly to the disk so that it could survive at system reboots. Is this true or false? <b>It is sadly true, but this was expected to happen sometimes soon</b>. The problem is located at the design of these softwares and how they are implemented. </p><p>
</p><p>
<div align="center"></p><p>
<img src="http://pxnow.prevx.com/content/blog/safesys1.jpg" alt="One of malware decryption routines"></p><p>
</div></p><p>
</p><p>
When a software tries to read or write a file on the disk, its request pass through a chain of drivers which handle it. Everytime a driver has finished its work, send the request to the next lower driver and so on until the request is satisfied and the software receive all the data it needed. </p><p>
</p><p>
The request of reading and writing to the disk is firstly handled by a file system driver, which pass it to the disk.sys driver. This last one is used to interface the system with physical hard drives. This is where those security softwares usually sit, filtering out every attempt to write to the disk and redirecting it to a temporary store. It's an effective solution which does indeed do its job.</p><p>
</p><p>
Two problems now arise. First is that users are believed they can do everything if they are protected by these kind of softwares because at next restart everything is restored to the original clean state. The next logical step to this concept is that <b>they run with admin privileges</b>. Who cares if even a kernel mode rootkit is installed? Everything will be gone if the system is restarted. Wrong</p><p>
</p><p>
This is a minefield. Even if you run protected by these kind of security softwares, if you run softwares with admin privileges <b>you are giving malwares the key of ring0, the access to kernel mode</b>. Now, in kernel mode, malware and security software are playing with exactly same rules, same advantages and disadvantages. </p><p>
</p><p>
Disk.sys is not the last driver invoked by an IRP request of reading/writing to the disk. After disk.sys has finished its job, it forward the request to next lower devices until it reaches the atapi.sys driver, which is the real responsible of communicating between the system and physical hard drives. </p><p>
</p><p>
So, try to guess what would happen if a malware is able to communicate directly to atapi.sys, sending commands directly to this driver without following the usual chain of drivers.</p><p>
</p><p>
<div align="center"></p><p>
<img src="http://pxnow.prevx.com/content/blog/safesys2.jpg" alt="strings inside driver"></p><p>
</div></p><p>
</p><p>
This is what is doing the malware known as SafeSys, which is indeed able to directly overwrite a system file so that at next system restart, even if everything should be theoretically deleted, the malware <b>is still loaded</b> and can do its dirty job.</p><p>
</p><p>
I won't discuss more in detail what the malware is doing, what I've said should be enough to let people understand that trusting to only one security software doesn't really help you preventing infections. ]]></description>
<content:encoded><![CDATA[<p></p><p>
Investigating new and uncommon infection vectors is sometimes enriching and useful for us, allowing us to break from the usual trend of classic piece of malicious softwares which are all but technically advanced. </p><p>
</p><p>
Everyone in the security industry could see what's happened during last years: <b>an increase of malware volume but a high decrease of their code complexity</b>. Most of malwares have nothing interesting to analyze, they are often variants, or repacked versions of some older variant. This doesn't necessarily mean there aren't anymore non trivial infections, but instead that they are more rare than before. </p><p>
</p><p>
Everyone who tried to clean an heavily infected PC would admit that sometimes it would be easier to format and reinstall everything than trying to fix up all the running infections. This is where a new kind of security softwares break in.</p><p>
</p><p>
<b>More and more people are using security softwares which are able to freeze system status and redirects everything that is going to happen on the system to a temporary store.</b> Then, at system restart, every modify to the system is eliminated and the system starts again at the original status when it was freezed by the security software.</p><p>
</p><p>
This is a fantastic solution for everyone who want to leave one or more PCs available to the people but they want to be sure any damage is done to their systems. Same solution is used for people who want to analyze or test applications but they don't want to install it on the real system.</p><p>
</p><p>
It's an easy game, where you only have to follow some simple steps: save status of the system,do what you want, restart the system and every modify will be deleted. </p><p>
</p><p>
It must have been a nightmare for some users when they saw that, even after system restart, a malicious piece of software was still there. Moreover because who use these kind of softwares is convinced that everything is filtered and cleaned at system restart, so they often don't feel they have to use any other way to prevent malware. <b>They just know that even if a malware harvests the system, it will be erased at next system reboot</b>. </p><p>
</p><p>
There have been a lot of rumors about a new kind of malware who was able to bypass these security softwares, and was able to write directly to the disk so that it could survive at system reboots. Is this true or false? <b>It is sadly true, but this was expected to happen sometimes soon</b>. The problem is located at the design of these softwares and how they are implemented. </p><p>
</p><p>
<div align="center"></p><p>
<img src="http://pxnow.prevx.com/content/blog/safesys1.jpg" alt="One of malware decryption routines"></p><p>
</div></p><p>
</p><p>
When a software tries to read or write a file on the disk, its request pass through a chain of drivers which handle it. Everytime a driver has finished its work, send the request to the next lower driver and so on until the request is satisfied and the software receive all the data it needed. </p><p>
</p><p>
The request of reading and writing to the disk is firstly handled by a file system driver, which pass it to the disk.sys driver. This last one is used to interface the system with physical hard drives. This is where those security softwares usually sit, filtering out every attempt to write to the disk and redirecting it to a temporary store. It's an effective solution which does indeed do its job.</p><p>
</p><p>
Two problems now arise. First is that users are believed they can do everything if they are protected by these kind of softwares because at next restart everything is restored to the original clean state. The next logical step to this concept is that <b>they run with admin privileges</b>. Who cares if even a kernel mode rootkit is installed? Everything will be gone if the system is restarted. Wrong</p><p>
</p><p>
This is a minefield. Even if you run protected by these kind of security softwares, if you run softwares with admin privileges <b>you are giving malwares the key of ring0, the access to kernel mode</b>. Now, in kernel mode, malware and security software are playing with exactly same rules, same advantages and disadvantages. </p><p>
</p><p>
Disk.sys is not the last driver invoked by an IRP request of reading/writing to the disk. After disk.sys has finished its job, it forward the request to next lower devices until it reaches the atapi.sys driver, which is the real responsible of communicating between the system and physical hard drives. </p><p>
</p><p>
So, try to guess what would happen if a malware is able to communicate directly to atapi.sys, sending commands directly to this driver without following the usual chain of drivers.</p><p>
</p><p>
<div align="center"></p><p>
<img src="http://pxnow.prevx.com/content/blog/safesys2.jpg" alt="strings inside driver"></p><p>
</div></p><p>
</p><p>
This is what is doing the malware known as SafeSys, which is indeed able to directly overwrite a system file so that at next system restart, even if everything should be theoretically deleted, the malware <b>is still loaded</b> and can do its dirty job.</p><p>
</p><p>
I won't discuss more in detail what the malware is doing, what I've said should be enough to let people understand that trusting to only one security software doesn't really help you preventing infections. </p>
<div class="feedflare">
</div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=D9lswTd0yTg:betIg8lidjI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=D9lswTd0yTg:betIg8lidjI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=D9lswTd0yTg:betIg8lidjI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=D9lswTd0yTg:betIg8lidjI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=D9lswTd0yTg:betIg8lidjI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/PrevxResearchBlog?a=D9lswTd0yTg:betIg8lidjI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/PrevxResearchBlog?i=D9lswTd0yTg:betIg8lidjI:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/PrevxResearchBlog/~4/D9lswTd0yTg" height="1" width="1"/>]]></content:encoded>
<wfw:commentRss>http://www.prevx.com/blog/134/A-puzzle-called-SafeSys.html&amp;feed=rss2#comments</wfw:commentRss>
<feedburner:origLink>http://www.prevx.com/blog/134/A-puzzle-called-SafeSys.html</feedburner:origLink></item>
</channel>
</rss>
