TSPY64_ZBOT.AANP

 Analysis by: Anthony Joe Melgarejo

 ALIASES:

PWS:Win64/Zbot.A (Microsoft), W64.Zbot (Symantec), PWS-Zbot.gen.ds (McAfee), TR/Spy.ZBot.lsd (Antivir), W64/Zbot.A!tr (Fortinet), Trojan-Spy.Win64 (Ikarus), Win64/Spy.Zbot.F trojan (ESET), Trj/ZbotWin64.A (Panda)

 PLATFORM:

Windows XP (64-bit), Windows Vista (64-bit), Windows 7 (64-bit)

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:
 INFORMATION EXPOSURE:

  • Threat Type: Spyware

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Downloaded from the Internet, Dropped by other malware


This malware is part of the 64-bit ZBOT samples that have been spotted to target 64-bit systems during January 2014. Users affected by this malware may find the security of their systems compromised and their critical personal information stolen (such as their online banking credentials).

To get a one-glance comprehensive view of the behavior of this Spyware, refer to the Threat Diagram shown below.

This spyware may arrive bundled with malware packages as a malware component.

It deletes the initially executed copy of itself.

  TECHNICAL DETAILS

File Size:

216,064 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

28 Dec 2013

Payload:

Connects to URLs/IPs, Downloads files, Steals information

Arrival Details

This spyware may arrive bundled with malware packages as a malware component.

Installation

This spyware adds the following mutexes to ensure that only one of its copies runs at any one time:

  • Global\{GUID}
  • Local\{GUID}

It injects threads into the following normal process(es):

  • explorer.exe

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
{GUID} = "%Application Data%\{random folder name 1}\{random file name 1}.exe"

Other System Modifications

This spyware adds the following registry keys:

HKEY_CURRENT_USER\Software\Microsoft\
WAB

It adds the following registry entries:

HKEY_CURRENT_USER\Software\Microsoft\
Internet Explorer\Privacy
CleanCookies = "0"

Download Routine

This spyware connects to the following URL(s) to download its configuration file:

  • http://{BLOCKED}tnywjwabxb.onion/zs/mimi.jpg

Information Theft

This spyware gathers the following data:

  • Data on cookie files (URLs)
  • FTP credentials
  • Online banking credentials
  • Flashplayer data
  • Personal digital cerificates

Other Details

This spyware connects to the following URL(s) to check for an Internet connection:

  • http://www.google.com/webhp

It connects to the following URL(s) to get the affected system's IP address:

  • http://checkip.dyndns.org

It requires the existence of the following files to properly run:

  • %Application Data%\{random folder name}\{random file name}.exe - detected as TSPY_ZBOT.AAMV

(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 deletes the initially executed copy of itself

NOTES:

The configuration file may contain the following information:

  • Download link to an updated copy of itself
  • Site(s) where it will send its stolen information
  • Download link to an updated copy of its configuration file
  • Configuration for stealing online banking account credentials (including targeted banks)

It hides its dropped files and autostart registry.

It creates a process of svchost.exe for the execution a hidden Tor Client service for the malware's C&C communication using the following command line:
"%System%\svchost.exe" --HiddenServiceDir "%APPDATA%\tor\hidden_service" --HiddenServicePort "1080 127.0.0.1:" --HiddenServicePort "5900 127.0.0.1:"

The malware will then inform its C&C server about its current configuration, letting the attacker perform remote commands to the affected system.

It prevents the execution of newly created processes of analysis tools such as the following:

  • ImPrec
  • LodPE
  • OllyDbg
  • WinHex
  • Stud PE
  • ProcDump
  • PESam

This is the Trend Micro detection for the 64-bit version of ZBOT to be injected by TSPY_ZBOT.AAMV to 64-bit processes.

  SOLUTION

Minimum Scan Engine:

9.700

FIRST VSAPI PATTERN FILE:

10.516.02

FIRST VSAPI PATTERN DATE:

02 Jan 2014

VSAPI OPR PATTERN File:

10.517.00

VSAPI OPR PATTERN Date:

03 Jan 2014

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

Scan your computer with your Trend Micro product and note files detected as TSPY64_ZBOT.AANP

Step 3

Restart in Safe Mode

[ Learn More ]

Step 4

Remove the malware/grayware file that dropped/downloaded TSPY64_ZBOT.AANP

Step 5

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
    • WAB

Step 6

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
    • {GUID} = "%Application Data%\{random folder name 1}\{random file name 1}.exe"
  • In HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Privacy
    • CleanCookies = "0"

Step 7

Restart in normal mode and scan your computer with your Trend Micro product for files detected as TSPY64_ZBOT.AANP. 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.


Did this description help? Tell us how we did.

Related Malware