TSPY_HESBOT.E

 Analysis by: Francis Xavier Antazo

 ALIASES:

Trojan-Spy.Win32.Hesperbot.r (KASPERSKY), W32/Hesperbot.R!tr (FORTINET)

 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:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:
 INFORMATION EXPOSURE:

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Downloaded from the Internet


This Trojan arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

It connects to certain websites to send and receive information.

  TECHNICAL DETAILS

File Size:

285,696 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

04 Nov 2014

Payload:

Connects to URLs/IPs, Drops files

Arrival Details

This Trojan arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

Installation

This Trojan drops the following copies of itself into the affected system:

  • %Windows%\{random foldername}\{random filename}.exe ← detected also as TSPY_HESBOT.E

(Note: %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)

It adds the following processes:

  • attrib.exe
  • explorer.exe

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

  • Global\lock_{random characters}
  • Global\inst_{random characters}
  • Global\{random characters}.mutex
  • Global\{random characters}

It is injected into the following processes running in memory:

  • (created) explorer.exe
  • (original) explorer.exe

Autostart Technique

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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
{random name} = "%Windows%\{random foldername}\{random filename}.exe"

Dropping Routine

This Trojan drops the following files:

  • %All Users Profile%\Application Data\Sun\{random characters}.bkp ← encrypted file
  • %All Users Profile%\Application Data\{random folder name}\{random characters}.dat ← encrypted file

(Note: %All Users Profile% is the All Users folder, where it usually is C:\Documents and Settings\All Users on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\ProgramData on Windows Vista (32- and 64-bit), Windows 7 (32- and 64-bit), Windows 8 (32- and 64-bit), Windows 8.1 (32- and 64-bit), Windows Server 2008, and Windows Server 2012.)

Information Theft

This Trojan gathers the following data:

  • Computer name
  • System install date
  • System Version
  • Processor information
  • Machine GUID
  • Digital Product ID

Other Details

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

  • yahoo.com
  • microsoft.com
  • facebook.com
  • wikipedia.org
  • google.com

It connects to the following website to send and receive information:

  • http://{BLOCKED}ost.net:443 - inaccessible

NOTES:

This spyware checks if the following files exist in the system before injecting its code:

  • %System%\drivers\cmdguard.sys
  • %System%\drivers\klif.sys

It injects its code through different methods depending on the existence of the said files.

This spyware has the capability to do any of the following:

  • Download configuration file
  • Download component malware
  • Download updated copy of itself

  SOLUTION

Minimum Scan Engine:

9.700

VSAPI OPR PATTERN File:

11.258.01

VSAPI OPR PATTERN Date:

05 Nov 2014

OPP PATTERN File:

11.259.00

OPP PATTERN Date:

06 Nov 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

Note that not all files, folders, and registry keys and entries are installed on your computer during this malware's/spyware's/grayware's execution. This may be due to incomplete installation or other operating system conditions. If you do not find the same files/folders/registry information, please proceed to the next step.

Step 3

Restart in Safe Mode

[ Learn More ]

Step 4

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_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • {random name} = "%Windows%\{random foldername}\{random filename}.exe"

Step 5

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