TSPY_EMOTET.XXQD

 Analysis by: RonJay Kristoffer Caragay

 ALIASES:

Trojan:Win32/Emotet.G (Microsoft); Trojan.Win32.Emotet (Ikarus); Win32/Emotet.AD (ESET-NOD32); W32/EMOTET.XXQD!tr (Fortinet)

 PLATFORM:

Windows

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

  • Threat Type: Spyware

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

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

However, as of this writing, the said sites are inaccessible. It deletes itself after execution.

  TECHNICAL DETAILS

File Size:

307,274 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

26 Feb 2015

Arrival Details

This spyware 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 spyware drops the following copies of itself into the affected system:

  • %Application Data%\Microsoft\msdb{random}.exe

(Note: %Application Data% is the Application Data folder, where it usually is C:\Documents and Settings\{user name}\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Roaming 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.)

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
msdb{random}.exe = "%Application Data%\Microsoft\msdb{random}.exe"

Other System Modifications

This spyware adds the following registry keys:

HKEY_CURRENT_USER\Software\Rocal AppWizard-Generated Applications\
Apriori

HKEY_CURRENT_USER\Software\Rocal AppWizard-Generated Applications\
Apriori\Recent File List

HKEY_CURRENT_USER\Software\Rocal AppWizard-Generated Applications\
Apriori\Settings

HKEY_CURRENT_USER\Software\Microsoft\
Multimedia\Audio\Box

HKEY_CURRENT_USER\Software\Microsoft\
Multimedia\Audio\Box\
{random 1}6

HKEY_CURRENT_USER\Software\Microsoft\
Multimedia\Audio\Box\
{random 1}7

HKEY_CURRENT_USER\Software\Microsoft\
Multimedia\Audio\Box\
{random 1}8

It adds the following registry entries:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Internet Settings
GlobalUserOffline = "0"

Other Details

This spyware connects to the following possibly malicious URL:

  • http://{BLOCKED}.{BLOCKED}.138.90:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.254.29:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.85.224:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.129.13:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.151.38:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.207.58:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.17.67:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.6.134:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.189.24:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.213.41:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.225.91:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.160.196:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.193.123:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.135.44:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.3.194:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.17.144:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.105.107:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.224.231:8080/{random 1}/{random 2}/
  • http://{BLOCKED}.{BLOCKED}.138.90:8080/{random 1}/{random 2}/

However, as of this writing, the said sites are inaccessible.

It deletes itself after execution.

  SOLUTION

Minimum Scan Engine:

9.750

FIRST VSAPI PATTERN FILE:

11.502.05

FIRST VSAPI PATTERN DATE:

26 Feb 2015

VSAPI OPR PATTERN File:

11.503.00

VSAPI OPR PATTERN Date:

26 Feb 2015

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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • msdb{random}.exe = "%Application Data%\Microsoft\msdb{random}.exe"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
    • GlobalUserOffline = "0"

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\Rocal AppWizard-Generated Applications
    • Apriori
  • In HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Audio
    • Box

Step 6

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