<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>[R&#124;H]ack &#187; Examples</title>
	<atom:link href="http://growl.superhappykittymeow.com/hacks/category/examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://growl.superhappykittymeow.com/hacks</link>
	<description>Investigating compromises and cleaning up the internet</description>
	<lastBuildDate>Mon, 16 Nov 2009 02:09:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dissection of a Zbot spam</title>
		<link>http://growl.superhappykittymeow.com/hacks/2009/10/dissection-of-a-zbot-spam/</link>
		<comments>http://growl.superhappykittymeow.com/hacks/2009/10/dissection-of-a-zbot-spam/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 16:17:08 +0000</pubDate>
		<dc:creator>kale</dc:creator>
				<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://growl.superhappykittymeow.com/hacks/?p=29</guid>
		<description><![CDATA[Today, I received a piece of spam that contained a very interesting URL.
I own the domain iheartjpgs.info, on which I have an email address or two hosted.  The spam is as follows:
Dear user of the iheartjpgs.info mailing service!
We are informing you that because of the security upgrade of the mailing service your mailbox (kale@iheartjpgs.info) [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I received a piece of spam that contained a very interesting URL.</p>
<p>I own the domain iheartjpgs.info, on which I have an email address or two hosted.  The spam is as follows:</p>
<blockquote><p>Dear user of the iheartjpgs.info mailing service!<br />
We are informing you that because of the security upgrade of the mailing service your mailbox (kale@iheartjpgs.info) settings were changed. In order to apply the new set of settings click on the following link:<br />
http://iheartjpgs.info/owa/service_directory/settings.php?email=kale@iheartjpgs.info&#038;from=iheartjpgs.info&#038;fromname=kale<br />
Best regards, iheartjpgs.info Technical Support.</p></blockquote>
<p>The URL is intriguing, as this would suggest they had somehow compromised my server (or had broken their mass mailing script).  Looking at the source of the message, however, I found that URL actually linked to http://iheartjpgs.info.bertdffm.co.uk/owa/service_directory/settings.php?email=kale@iheartjpgs.info&#038;from=iheartjpgs.info&#038;fromname=kale .  This URL is much more curious, as it suggests that zone files were manipulated on bertdffm.co.uk to create a fairly dynamic subdomain solely for distribution of spam on iheartjpgs.info.</p>
<p>This subdomain had an A record pointing to a list of IPs:</p>
<p><code>iheartjpgs.info.bertdffm.co.uk has address 124.54.222.141<br />
iheartjpgs.info.bertdffm.co.uk has address 125.143.86.51<br />
iheartjpgs.info.bertdffm.co.uk has address 186.18.194.3<br />
iheartjpgs.info.bertdffm.co.uk has address 189.62.171.189<br />
iheartjpgs.info.bertdffm.co.uk has address 190.105.42.124<br />
iheartjpgs.info.bertdffm.co.uk has address 221.161.59.185<br />
iheartjpgs.info.bertdffm.co.uk has address 222.120.6.233<br />
iheartjpgs.info.bertdffm.co.uk has address 81.198.204.182<br />
iheartjpgs.info.bertdffm.co.uk has address 85.85.241.57<br />
iheartjpgs.info.bertdffm.co.uk has address 85.107.80.168<br />
iheartjpgs.info.bertdffm.co.uk has address 89.36.252.143<br />
iheartjpgs.info.bertdffm.co.uk has address 114.205.211.94<br />
iheartjpgs.info.bertdffm.co.uk has address 118.42.94.82<br />
iheartjpgs.info.bertdffm.co.uk has address 121.125.49.20<br />
iheartjpgs.info.bertdffm.co.uk has address 123.195.226.68</code></p>
<p>which appear to be residential computers from around the world, mostly in eastern Europe, Brazil, and Korea:</p>
<p><code>17858   | 124.54.222.141   | 124.48.0.0/13       | KR | apnic    | 2005-12-21 | KRNIC-ASBLOCK-AP KRNIC<br />
4766    | 125.143.86.51    | 125.128.0.0/11      | KR | apnic    | 2005-08-23 | KIXS-AS-KR Korea Telecom<br />
27747   | 186.18.194.3     | 186.18.192.0/22     | AR | lacnic   | 2008-11-06 | Telecentro S.A.<br />
28573   | 189.62.171.189   | 189.62.128.0/18     | BR | lacnic   | 2007-03-30 | NET Servicos de Comunicao S.A.<br />
27984   | 190.105.42.124   | 190.105.42.0/24     | AR | lacnic   | 2008-06-17 | Ver Tv S.A.<br />
4766    | 221.161.59.185   | 221.160.0.0/13      | KR | apnic    | 2003-04-17 | KIXS-AS-KR Korea Telecom<br />
4766    | 222.120.6.233    | 222.120.0.0/15      | KR | apnic    | 2003-10-27 | KIXS-AS-KR Korea Telecom<br />
12578   | 81.198.204.182   | 81.198.0.0/16       | LV | ripencc  | 2002-10-02 | APOLLO-AS LATTELEKOM-APOLLO<br />
12338   | 85.85.241.57     | 85.85.0.0/16        | ES | ripencc  | 2004-10-22 | EUSKALTEL Euskaltel Autonomous System<br />
9121    | 85.107.80.168    | 85.107.0.0/17       | TR | ripencc  | 2004-09-20 | TTNET TTnet Autonomous System<br />
9050    | 89.36.252.143    | 89.36.252.0/24      | RO | ripencc  | 2005-11-29 | RTD ROMTELECOM S.A<br />
9318    | 114.205.211.94   | 114.200.0.0/13      | KR | apnic    | 2008-06-18 | HANARO-AS Hanaro Telecom Inc.<br />
4766    | 118.42.94.82     | 118.32.0.0/12       | KR | apnic    | 2007-08-03 | KIXS-AS-KR Korea Telecom<br />
9318    | 121.125.49.20    | 121.125.0.0/16      | KR | apnic    | 2006-08-02 | HANARO-AS Hanaro Telecom Inc.</code></p>
<p>Not all of the hosts are alive at the moment, which is unsurprising when dealing with residential computers.  A simple portscan on one of them reveals the following services running:</p>
<p><code>PORT     STATE SERVICE<br />
21/tcp   open  ftp<br />
80/tcp   open  http<br />
554/tcp  open  rtsp<br />
7070/tcp open  realserver</code></p>
<p>Checking a few others that were alive, all of them had these four ports open at minimum.  Connecting to the ports, I found that while open, only HTTP reacted as expected; the other ports did not follow their suggested protocols.</p>
<p>A simple GET / query on port 80 resulted in:</p>
<p><code>HTTP/1.1 302 Found<br />
Date: Wed, 14 Oct 2009 15:29:07 GMT<br />
Server: Apache<br />
X-Powered-By: PHP/5.2.11<br />
Location: http://www.microsoft.com/<br />
Content-Type: text/html</code></p>
<p>Every one of the live servers served the exact same headers.</p>
<p>After manually setting my hosts file to one of the live servers, I visited the page in Safari &#8212; who immediately told me that it&#8217;s a phishing site.  Kudos on the detection, Apple.</p>
<p><img src="http://growl.superhappykittymeow.com/hacks/wp-content/uploads/2009/10/Screen-shot-2009-10-14-at-10.44.18-AM.png" alt="Safari caught the phishing site immediately" title="Safari caught the phishing site immediately" width="583" height="217" class="alignnone size-full wp-image-30" /></p>
<p>The page looks like a Microsoft Outlook Web Access page with all resources hosted locally.  There&#8217;s no malicious JavaScript or iframes embedded into the page (which simply seems inefficient).  The page offers up a &#8220;settings file&#8221; that I should run on my workstation to update my Exchange settings &#8212; the file is called kale-settings-file.exe.  Or john-settings-file.exe.  Or mary-settings-file.exe.  Or whatever I set the $fromname variable to in the URL.</p>
<p>I scanned the file at VirusTotal &#8211; <a href="http://www.virustotal.com/analisis/08e4c488e79d2d4b5f9571fe3c6383549ff473e9bed020838dbcc249d243fc4e-1255531786">here is the report</a>.  As you can see, <strong>only 6 of the 41 virus scanners found anything</strong>: F-Secure, Kaspersky, McAfee+Artemis and McAfee-GW-Edition (both different than standalone McAfee), Microsoft&#8217;s built-in (!), and Sophos.  Each AV product identifies the file slightly differently, though the common thread is Zbot.  The Zbot payload first started showing up around January; the methods used to hide and obfuscate the payload, however, have grown increasingly sophisticated and harder to detect.</p>
<p>A summary of Zbot from ThreatExpert:</p>
<p><code>Threat characteristics of ZBot - a banking trojan that disables firewall, steals sensitive financial data (credit card numbers, online banking login details), makes screen snapshots, downloads additional components, and provides a hacker with the remote access to the compromised system.</code></p>
<p>Keylogger, trojan/bot, backdoor.  </p>
<p>Trend picked up on this new &#8220;customized URL&#8221; Zbot spam and <a href="http://blog.trendmicro.com/tailor-made-zbot-spam-campaign-targets-various-companies/">blogged about it yesterday</a>.  Zbot is also deployed in spam emails referencing the IRS (&#8221;Notice of Underreported Income&#8221;).  It should be noted that the Zbot-infected binary distributed in the two spam campaigns are significantly different, though the payload is the same &#8212; the changes are designed to evade anti-virus protection, always staying one step ahead of the AV firms.  A fun user-end analysis of the Zbot trojan (technically, the PostZeuS trojan, on which Zbot is heavily based) can be found at this (machine-translated) <a href="http://translate.google.com/translate?u=http%3A//forum.malekal.com/les-pc-zombis-botnet-t1020.html&#038;hl=en&#038;langpair=auto|en&#038;tbb=1&#038;ie=UTF-8">French website</a>.</p>
<p><strong>Bottom line: never click links in spam.  Seriously.  Especially if you run Windows.</strong></p>
<p>Addendum: If you have downloaded and run the linked file, please update your virus definitions and immediately run a scan.  You can also go to <a href="http://www.f-secure.com/en_US/security/security-lab/tools-and-services/online-scanner/index.html">here</a> to run F-Secure&#8217;s online virus scanner, which ought be able to detect and assist in cleaning of the virus as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://growl.superhappykittymeow.com/hacks/2009/10/dissection-of-a-zbot-spam/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
