<?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>Tue, 09 Mar 2010 11:18:12 +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>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>
		<item>
		<title>Bety.php – osCommerce Hack. Part 1.</title>
		<link>http://blog.unmaskparasites.com/2010/01/18/bety-php-oscommerce-hack-part-1/</link>
		<comments>http://blog.unmaskparasites.com/2010/01/18/bety-php-oscommerce-hack-part-1/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 15:00:07 +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[file_manager.php]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[Webmaster Tools]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=518</guid>
		<description><![CDATA[About a week ago I received a very insightful email from one webmaster where he described a recent attack that his site was subject to and showed how Google&#8217;s Webmaster Tools helped him notice the hack.

With Jim&#8217;s permission, I publish this email here:
Around Dec 22 an attacker with a Russian IP deposited some files on [...]]]></description>
			<content:encoded><![CDATA[<p>About a week ago I received a very insightful email from one webmaster where he described a recent attack that his site was subject to and showed how <a href="http://www.google.com/webmasters/tools/">Google&#8217;s Webmaster Tools</a> helped him notice the hack.</p>
<p><span id="more-518"></span><br />
With Jim&#8217;s permission, I publish this email here:</p>
<blockquote><p>Around Dec 22 an attacker with a Russian IP deposited some files on my<br />
webserver.  My hosting provider said access was gained through a since<br />
updated version of Wordpress, although my view of the logs indicates it was<br />
through an unsecured version of OSCommerce.</p>
<p>The attacker left 3 files on my server.  No other files were changed.  The<br />
main domain that was attacked is <a href="http://wanlesstennis.com">http://wanlesstennis.com</a></p>
<p>the files were-<br />
<strong>bety.php</strong> &#8211; a script with the title GoogleF#cker v1<br />
<strong>sh1.php</strong> &#8211; some kind of redirect<br />
<strong>lname.php</strong> -</p>
<p>The purpose seems to be to fool Googlebot into seeing non-existent links<br />
within my domain in the generic form<br />
<span style="color: #993300;">http://wanlesstennis.com/bety.php?=some-garbage-keywords-here</span></p>
<p>I first noticed this a few days after the attack when looking at Webmaster<br />
Tools for this domain and seeing that the top keywords had all of a sudden<br />
changed to <span style="color: #993300;">tiger</span>, <span style="color: #993300;">woods</span>, <span style="color: #993300;">nordgren</span>, <span style="color: #993300;">nfl</span>, etc., all words that don&#8217;t even exist<br />
on any of my webpages.  Also the top search queries list pages like<br />
<span style="color: #993300;">formville.com</span>, <span style="color: #993300;">holy days of obligation catholic church</span>, <span style="color: #993300;">weather network<br />
vancouver</span>, etc., again things that have nothing to do with my site.</p>
<p>Once I noticed this I removed the offending files.</p>
<p>From that point on the number of reported Not Found errors in WMTools<br />
started increasing . . . it is over 500 currently as all of these garbage<br />
links are no longer accessible since the php files have been removed.</p>
<p>While researching some of the broken links I found a few pages in community<br />
forums in russia that had posts that contained thousands of links to these<br />
garbage links &#8211; once such page is here<br />
<span style="color: #993300;">http://my.mail.ru/community/abdul_and_asem/3F8D6B6BA0618DAB.html</span></p>
<p>Since then I have added a line in my robots.txt file to disallow /bety.php*<br />
which of course is causing my URLS blocked by robots.txt to start<br />
increasing in tandem with Not Found URLs.</p>
<p>The upside is that this has sent me scurrying to upgrade my security, the<br />
downside is that it will take a while to have this garbage disappear from<br />
WMTools.</p></blockquote>
<p>Jim sent me the rogue <em>.php</em> files and access logs for his sites. They helped me investigate the hack and now I can share the details here.</p>
<p>1. His sites were not the only sites hit by this attack. I could easily find similarly hacked sites using the following Google Search: <a href="http://www.google.com/search?q=inurl%3Abety.php">http://www.google.com/search?q=inurl%3Abety.php</a></p>
<p>2. Most of the affected sites run osCommerce.  Moreover, Jim&#8217;s logs proved that a known vulnerability in osCommerce 2.2 RC2a (<a href="http://secunia.com/advisories/33446/">Secunia advisory</a>) was used to upload rogue files to his sites.</p>
<p>The purpose of the attack is to drive traffic from Google to these intermediary <em><strong>bety.php?q=keywords</strong></em> pages that in turn, redirect unsuspecting web surfers to scareware (fake AV) sites. Here&#8217;s a <a href="http://www.sophos.com/security/analyses/viruses-and-spyware/trojfakeavaoy.html">description of the trojan</a> downloaded from one of those sites (when I downloaded it, only <a href="http://www.virustotal.com/analisis/a6c652989f23f8bac96f0ae453742a9cd1c1407eb39d92d49fe38a5f2cbe42d4-1263076977">4 out of 40</a> anti-virus tools detected it).</p>
<h3>Affected directories</h3>
<p>Hackers upload their files into directories that are writable for webserver processes. This usually means directories with 777 permissions. However on certain host that use suPHP, all user directories are writable for PHP scripts since they run with the user&#8217;s permissions and 755 cannot stop them. Moreover, if a webmaster have multiple sites (domains) under the same account, not only will they create malicious files in the site running vulnerable version of osCommerce but also in every other website with writable directories.</p>
<h3>Detection</h3>
<p>To detect this particular hack, scan all your server directories for the following files:</p>
<ul>
<li><strong>mm.php</strong> &#8211; uploads files to a webserver</li>
<li><strong>sh1.php</strong> &#8211; web shell</li>
<li><strong>betty.php</strong> &#8211;  manages malicious landing pages</li>
<li><strong>lname.php</strong> &#8211; redirect to malicious sites</li>
<li><strong>.cache/</strong> &#8211; directory with loads (sometimes thousands) of .html files (landing pages) it usually contains file called <strong>.cache/map.html</strong></li>
</ul>
<p>In addition to the above files, I noticed the following files created after successful attack exploiting the same osCommerce vulnerability: <strong>flop.php</strong> and <strong>fly.php</strong> (the latter executes arbitrary PHP code passed to it in a POST request)</p>
<p>You can also analyze your server logs (Google Analytics won&#8217;t do since rogue files don&#8217;t include the Analytics&#8217; code). Check them for the above files.  Take special attention to POST requests.  You can notice attacks trying to exploit the osCommerce vulneravilities if you  search for POST request to <strong><em>/admin/file_manager.php/login.php?a=1&amp;action=save</em></strong>. (actual URL depends on the location of the osCommerse admin directory)</p>
<p>Finally, as Jim mentioned in his email, Google Webmaster Tools can help you detect this attack. Their &#8220;search queries&#8221; report has also proven to reveal many other security problems, so it&#8217;s a good idea to use GWT at least once a week.</p>
<h3>Cleaning up</h3>
<ol>
<li>Remove all the rogue files.</li>
<li>Write-protect your site directories. Their permissions should be 755. (This is especially important on shared servers)</li>
<li>Restrict access to the <strong>admin</strong> directory. You can make it password-protected. Or you can allow only requests from known IP addresses.  (Ask your hosting provider about the best way to do it)</li>
<li>If you store any passwords on your site (password to DB, to osCommerce admin, etc. ), you must promptly change them.</li>
</ol>
<p>You can find many more osCommerce security best practices in <a href="http://forums.oscommerce.com/topic/313323-how-to-secure-your-site/">this thread</a>. Among other things, the post suggests that your rename the <strong>admin</strong> directory and remove the <strong>file-manager.php</strong> file and shows how to properly do it (these two steps can save you from this <em>file_manager.php</em> vulnerability). Must read for osCommerce users.</p>
<p>If your know any other good osCommerce security resources, please <a href="#respond">share them</a> here in comments.</p>
<p>In<a href="http://blog.unmaskparasites.com/2010/01/26/bety-php-hack-part-2-black-hats-in-action/"> the second part</a>, I will provide more interesting details (incuding some black hat SEO tricks) about this attack. Stay tuned.</p>
<p><strong><span style="color: #888888;">Related posts:</span></strong></p>
<ul>
<li><a title="Bety.php Hack. Part 2.  Black Hats in Action." 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>
<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/01/24/black-hat-seo-for-virus-dissemination/">Black Hat SEO for Virus Dissemination</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=mDiOxC9V94Q:rPaz5w5GW8c:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=mDiOxC9V94Q:rPaz5w5GW8c:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=mDiOxC9V94Q:rPaz5w5GW8c:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/01/18/bety-php-oscommerce-hack-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tweet Week: Jan 11-17, 2010</title>
		<link>http://blog.unmaskparasites.com/2010/01/17/tweet-week-jan-11-17-2010/</link>
		<comments>http://blog.unmaskparasites.com/2010/01/17/tweet-week-jan-11-17-2010/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 12:53:10 +0000</pubDate>
		<dc:creator>Denis</dc:creator>
				<category><![CDATA[Tweet Week]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[botnet]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[LGPL]]></category>
		<category><![CDATA[milestone]]></category>

		<guid isPermaLink="false">http://blog.unmaskparasites.com/?p=520</guid>
		<description><![CDATA[Selected short messages and links you might have missed if you don’t follow me on Twitter.

Jan 11, 2009
[blog] update of the post about GNU GPL script. Added example of the new LGPL modification
Jan 13, 2009
[h-online.com] Update time: security patches for Windows and Adobe Reader (Acrobat)
[viruslist.com] The botnet ecosystem &#8211; &#8220;business&#8221; around botnets
Jan 14, 2010
RT @gcluley: [...]]]></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-520"></span><br />
<span style="color: #888888;"><strong>Jan 11, 2009</strong></span></p>
<p style="padding-left: 30px;">[blog] update of the post about GNU GPL script. Added example of the new <a href="http://blog.unmaskparasites.com/2009/12/23/from-hidden-iframes-to-obfuscated-scripts/#lgpl">LGPL modification</a><a rel="nofollow" href="http://bit.ly/4GfkMp" target="_blank"></a></p>
<p><span style="color: #888888;"><strong>Jan 13, 2009</strong></span></p>
<p style="padding-left: 30px;">[h-online.com] Update time: security patches for <a href="http://www.h-online.com/security/news/item/Microsoft-closes-one-Windows-hole-903222.html">Windows</a> <a rel="nofollow" href="http://bit.ly/4T6pew" target="_blank"></a>and <a href="http://www.h-online.com/security/news/item/Security-update-released-for-Adobe-Reader-and-Acrobat-903500.html">Adobe Reader (Acrobat)</a></p>
<p style="padding-left: 30px;">[viruslist.com] <a href="http://www.viruslist.com/en/analysis?pubid=204792095">The botnet ecosystem</a> &#8211; &#8220;business&#8221; around botnets</p>
<p><span style="color: #888888;"><strong>Jan 14, 2010</strong></span></p>
<p style="padding-left: 30px;">RT @<a href="http://twitter.com/gcluley">gcluley</a>: Windows XP users: <a href="http://www.sophos.com/blogs/gc/g/2010/01/14/windows-xp-users-updated-flash/">Have you updated Flash?</a> <a rel="nofollow" href="http://bit.ly/5kT1dI" target="_blank"></a></p>
<p style="padding-left: 30px;">[milestone] According to Feedburner, there are 500+ subscribers to my blog. Wow!</p>
<p style="padding-left: 30px;">Investigating an attack that uses osCommerce vulnerability. Will be blogging about it soon.</p>
<p style="padding-left: 30px;">[minor update] <a href="http://www.UnmaskParasites.com">Unmask Parasites</a> v0.5.193 &#8211; better redirect detection<a rel="nofollow" href="http://www.unmaskparasites.com/" 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=Y-Nabv5OFbY:j7qlkXK3wQ4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/unmaskparasites?a=Y-Nabv5OFbY:j7qlkXK3wQ4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/unmaskparasites?i=Y-Nabv5OFbY:j7qlkXK3wQ4:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.unmaskparasites.com/2010/01/17/tweet-week-jan-11-17-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.536 seconds. --><!-- Cached page generated by WP-Super-Cache on 2010-03-09 11:18:17 -->
