TSPY_ZBOT.MTF

 Analysis by: Anthony Joe Melgarejo

 ALIASES:

PWS:Win32/Zbot (Microsoft), PWS-Zbot.gen.ary (McAfee), Mal/Katusha-N (Sophos), W32/ZBOT.MTF!tr (Fortinet), Win32/Spy.Zbot.YW trojan (ESET), Trojan-Spy.Win32.Zbot (Ikarus)

 PLATFORM:

Windows 2000, Windows Server 2003, Windows XP (32-bit, 64-bit), Windows Vista (32-bit, 64-bit), Windows 7 (32-bit, 64-bit)

 OVERALL RISK RATING:
 REPORTED INFECTION:
 SYSTEM IMPACT RATING:
 INFORMATION EXPOSURE:

  • Threat Type: Spyware

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Downloaded from the Internet

This spyware may be downloaded from remote sites by other malware.

It is injected into all running processes to remain memory resident.

It modifies Internet Explorer security settings. This puts the affected computer at greater risk, as it allows malicious URLs to be accessed by the computer.

  TECHNICAL DETAILS

File Size:

152,576 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

08 Feb 2013

Payload:

Steals information, Downloads files, Drops files, Connects to URLs/IPs

Arrival Details

This spyware may be downloaded from remote site(s) by the following malware:

  • JS_REDIR.MTF

Installation

This spyware drops the following files:

  • %Application Data%\{random folder 2}\{random file name 2}.{random extension name} - encrypted file containing stolen information
  • %Application Data%\Microsoft\Address Book\winxp.wab
  • %Application Data%\Microsoft\Address Book\winxp.wab~

(Note: %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming on Windows Vista and 7.)

It drops the following non-malicious files:

  • %User Temp%\{random number}.tmp\PsExec.exe

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Local\Temp on Windows Vista and 7.)

It drops the following copies of itself into the affected system:

  • %Application Data%\{random folder 1}\{random file name 1}.exe
  • %User Temp%\{random number}.tmp\msupdate.exe

(Note: %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming on Windows Vista and 7.. %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Local\Temp on Windows Vista and 7.)

It creates the following folders:

  • %User Temp%\{random number}.tmp
  • %Application Data%\{random folder 1}
  • %Application Data%\{random folder 2}
  • %Application Data%\Identities\{GUID}

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Local\Temp on Windows Vista and 7.. %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming on Windows Vista and 7.)

It is injected into all running processes to remain memory resident.

Autostart Technique

This spyware adds the following registry entries to enable its automatic execution at every system startup:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{random CLSID} = "%Application Data%\{random folder 1}\{random file name 1}.exe"

Other System Modifications

This spyware adds the following registry keys:

HKEY_CURRENT_USER\Software\Microsoft\
{random}

HKEY_CURRENT_USER\Software\Sysinternals\
PsExec

HKEY_CURRENT_USER\Software\Microsoft\
WAB

It adds the following registry entries:

HKEY_CURRENT_USER\Software\Sysinternals\
PsExec
EulaAccepted = "1"

It creates the following registry entry(ies) to bypass Windows Firewall:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\SharedAccess\Parameters\
FirewallPolicy\DomainProfile\AuthorizedApplications\
List
%windir%\explorer.exe = "%windir%\explorer.exe"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\SharedAccess\Parameters\
FirewallPolicy\StandardProfile\AuthorizedApplications\
List
%windir%\explorer.exe = "%windir%\explorer.exe"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\SharedAccess\Parameters\
FirewallPolicy\StandardProfile\AuthorizedApplications\
List
%User Temp%\{random number}.tmp\PsExec.exe = "%User Temp%\{random number}.tmp\PsExec.exe:*:Enabled:enable"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\SharedAccess\Parameters\
FirewallPolicy\StandardProfile\AuthorizedApplications\
List
%User Temp%\{random number}.tmp\msupdate.exe = "%User Temp%\{random number}.tmp\msupdate.exe:*:Enabled:enable"

Web Browser Home Page and Search Page Modification

This spyware modifies Internet Explorer zone settings.

Download Routine

This spyware connects to the following website(s) to download and execute a malicious file:

  • http://{BLOCKED}k.{BLOCKED}ps.org/WebTracking/Psupdate.exe

It saves the files it downloads using the following names:

  • %User Temp%\tmp{random numbers}\Psupdate.exe - updated copy of itself

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Local\Temp on Windows Vista and 7.)

Stolen Information

This spyware sends the gathered information via HTTP POST to the following URL:

  • http://{BLOCKED}v.{BLOCKED}up.com/web/new1feeds.php
  • http://{BLOCKED}s.{BLOCKED}up.com/web/new1feeds.php
  • http://{BLOCKED}v.{BLOCKED}up.com/web/xmlfeed.php
  • http://{BLOCKED}s.{BLOCKED}up.com/web/xmlfeed.php

NOTES:

It may also gather the following information from the affected system:

  • Data on cookie files (URLs)
  • Email-related information such as account names, email addresses, passwords, server data, and server port
  • Email information stored in the user’s Windows Address Book (WAB) file

  SOLUTION

Minimum Scan Engine:

9.300

Step 1

Before doing any scans, Windows XP, Windows Vista, and Windows 7 users must disable System Restore to allow full scanning of their computers.

Step 2

Remove the malware/grayware file that dropped/downloaded TSPY_ZBOT.MTF

    • JS_REDIR.MTF

Step 3

Restart in Safe Mode

[ Learn More ]

Step 4

Delete this registry key

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

  • In HKEY_CURRENT_USER\Software\Microsoft
    • {random}
  • In HKEY_CURRENT_USER\Software\Sysinternals
    • PsExec
  • In HKEY_CURRENT_USER\Software\Microsoft
    • WAB

Step 5

Delete this registry value

[ Learn More ]

Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.

  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • {random CLSID} = "%Application Data%\{random folder 1}\{random file name 1}.exe"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\DomainProfile\AuthorizedApplications\List
    • %windir%\explorer.exe = "%windir%\explorer.exe"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List
    • %windir%\explorer.exe = "%windir%\explorer.exe"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List
    • %User Temp%\{random number}.tmp\PsExec.exe = "%User Temp%\{random number}.tmp\PsExec.exe:*:Enabled:enable"
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List
    • %User Temp%\{random number}.tmp\msupdate.exe = "%User Temp%\{random number}.tmp\msupdate.exe:*:Enabled:enable"

Step 6

Search and delete these folders

[ Learn More ]
Please make sure you check the Search Hidden Files and Folders checkbox in the More advanced options option to include all hidden folders in the search result.
  • %User Temp%\{random number}.tmp
  • %Application Data%\{random folder 1}
  • %Application Data%\{random folder 2}
  • %Application Data%\Identities\{GUID}

Step 7

Search and delete these files

[ Learn More ]
There may be some files that are hidden. Please make sure you check the Search Hidden Files and Folders checkbox in the "More advanced options" option to include all hidden files and folders in the search result.
  • %Application Data%\Microsoft\Address Book\winxp.wab
  • %Application Data%\Microsoft\Address Book\winxp.wab~

Step 8

Reset Internet security settings

[ Learn More ]

Step 9

Restart in normal mode and scan your computer with your Trend Micro product for files detected as TSPY_ZBOT.MTF. If the detected files have already been cleaned, deleted, or quarantined by your Trend Micro product, no further step is required. You may opt to simply delete the quarantined files. Please check this Knowledge Base page for more information.

Step 10

The following created registry key(s) cannot be identified by the user since there are no reference values in the created key. The only way it can be identified is by comparing the present keys with a backup of the system registry. Note that the said key(s) do not have to be deleted since it won't be harmful to the system:

  • HKEY_CURRENT_USER\Software\Microsoft\{random key}


Did this description help? Tell us how we did.