Analysis by: Kennard Yap

ALIASES:

Trojan:Win32/Emotet.PC!MTB (MICROSOFT); Trojan-Banker.Win32.Emotet.dbcx (KASPERSKY)

 PLATFORM:

Windows

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

  • Threat Type: Trojan Spy

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

Infection Channel: Dropped by other malware, Downloaded from the Internet

This Trojan Spy 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. It deletes itself after execution.

  TECHNICAL DETAILS

File Size: 1,677,312 bytes
File Type: EXE
Memory Resident: Yes
Payload: Connects to URLs/IPs, Steals information

Arrival Details

This Trojan Spy 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 Spy drops the following copies of itself into the affected system and executes them:

  • With Admin rights:
    • %System%\{String1}{String2}.exe
  • Without Admin rights:
    • %AppDataLocal%\{String1}{String2}\{String1}{String2}.exe
  • {String1} and {String2} can be any of the following strings:
    • rel
    • tables
    • glue
    • impl
    • texure
    • related
    • key
    • nis
    • langs
    • iprop
    • exec
    • wrap
    • matrix
    • dump
    • phoenix
    • ribbon
    • sorting
    • pinned
    • lics
    • bit
    • unpack
    • adt
    • rep
    • jobs
    • acl
    • title
    • sound
    • events
    • targets
    • scrn
    • mheg
    • lines
    • prompt
    • adjust
    • xian
    • ser
    • cycle
    • redist
    • its
    • boxes
    • dma
    • small
    • cloud
    • flow
    • guid
    • def
    • whole
    • parent
    • bears
    • random
    • bulk
    • idebug
    • viewer
    • starta
    • comment
    • sel
    • source
    • hotspot
    • pnf
    • portal
    • sitka
    • iell
    • slide
    • typ
    • sonic

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %AppDataLocal% is the Local Application Data folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It adds the following processes:

  • {Malware Path}\{Malware File Name}.exe --{8 random characters}
  • With Admin rights:
    • %System%\{String1}{String2}.exe
    • %System%\{String1}{String2}.exe--{8 random characters}
  • Without Admin rights:
    • %AppDataLocal%\{String1}{String2}\{String1}{String2}.exe
    • %AppDataLocal%\{String1}{String2}\{String1}{String2}.exe --{8 random characters}

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %AppDataLocal% is the Local Application Data folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It creates the following folders:

  • Without Admin rights:
    • %AppDataLocal%\{String1}{String2}

(Note: %AppDataLocal% is the Local Application Data folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

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

  • Global\I{Volume Serial Number}
  • Global\M{Volume Serial Number}

Autostart Technique

This Trojan Spy registers itself as a system service to ensure its automatic execution at every system startup by adding the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{String1}{String2}
ImagePath = %System%\{String1}{String2}.exe

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\
Services\{String1}{String2}
ImagePath = %System%\{String1}{String2}.exe

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{String1}{String2} = %AppDataLocal%\{String1}{String2}\{String1]{String2}.exe"

Information Theft

This Trojan Spy gathers the following data:

  • Computer Name
  • System Locale
  • OS Version
  • Running Processes

Other Details

This Trojan Spy connects to the following website to send and receive information:

  • {BLOCKED}.{BLOCKED}.43.213/{Strings}
  • {BLOCKED}.{BLOCKED}.200.114/{Strings}
  • {BLOCKED}.{BLOCKED}.35.140/{Strings}
  • {BLOCKED}.{BLOCKED}.215.66/{Strings}
  • {BLOCKED}.{BLOCKED}.139.101/{Strings}
  • {BLOCKED}.{BLOCKED}.35.122/{Strings}
  • {BLOCKED}.{BLOCKED}.59.244/{Strings}
  • {BLOCKED}.{BLOCKED}.10.111/{Strings}
  • {BLOCKED}.{BLOCKED}.155.238/{Strings}
  • {BLOCKED}.{BLOCKED}.5.109/{Strings}
  • {BLOCKED}.{BLOCKED}.187.118/{Strings}
  • {BLOCKED}.{BLOCKED}.253.112/{Strings}
  • {BLOCKED}.{BLOCKED}.149.55/{Strings}
  • {BLOCKED}.{BLOCKED}.19.145/{Strings}
  • {BLOCKED}.{BLOCKED}.17.7/{Strings}
  • {BLOCKED}.{BLOCKED}.225.150/{Strings}
  • {BLOCKED}.{BLOCKED}.187.192/{Strings}
  • {BLOCKED}.{BLOCKED}.168.7/{Strings}
  • {BLOCKED}.{BLOCKED}.211.99/{Strings}
  • {BLOCKED}.{BLOCKED}.0.160/{Strings}
  • {BLOCKED}.{BLOCKED}.180.172/{Strings}
  • {BLOCKED}.{BLOCKED}.147.179/{Strings}
  • {BLOCKED}.{BLOCKED}.49.124/{Strings}
  • {BLOCKED}.{BLOCKED}.156.10/{Strings}
  • {BLOCKED}.{BLOCKED}.3.54/{Strings}
  • {BLOCKED}.{BLOCKED}.106.160/{Strings}
  • {BLOCKED}.{BLOCKED}.166.152/{Strings}
  • {BLOCKED}.{BLOCKED}.71.72/{Strings}
  • {BLOCKED}.{BLOCKED}.100.202/{Strings}
  • {BLOCKED}.{BLOCKED}.52.255/{Strings}
  • {BLOCKED}.{BLOCKED}.69.115/{Strings}
  • {BLOCKED}.{BLOCKED}.18.37/{Strings}
  • {BLOCKED}.{BLOCKED}.106.137/{Strings}
  • {BLOCKED}.{BLOCKED}.228.47/{Strings}
  • {BLOCKED}.{BLOCKED}.195.208/{Strings}
  • {BLOCKED}.{BLOCKED}.38.31/{Strings}
  • {BLOCKED}.{BLOCKED}.234.27/{Strings}
  • {BLOCKED}.{BLOCKED}.110.170/{Strings}
  • {BLOCKED}.{BLOCKED}.87.75/{Strings}
  • {BLOCKED}.{BLOCKED}.161.166/{Strings}
  • {BLOCKED}.{BLOCKED}.37.188/{Strings}
  • {BLOCKED}.{BLOCKED}.108.144/{Strings}
  • {BLOCKED}.{BLOCKED}.173.71/{Strings}
  • {BLOCKED}.{BLOCKED}.138.82/{Strings}
  • {BLOCKED}.{BLOCKED}.130.148/{Strings}
  • {BLOCKED}.{BLOCKED}.210.191/{Strings}
  • {BLOCKED}.{BLOCKED}.125.212/{Strings}
  • {BLOCKED}.{BLOCKED}.130.149/{Strings}
  • {BLOCKED}.{BLOCKED}.56.242/{Strings}
  • {BLOCKED}.{BLOCKED}.210.39/{Strings}
  • {BLOCKED}.{BLOCKED}.9.18/{Strings}
  • {BLOCKED}.{BLOCKED}.140.110/{Strings}
  • {BLOCKED}.{BLOCKED}.117.85/{Strings}
  • {BLOCKED}.{BLOCKED}.42.93/{Strings}
  • {BLOCKED}.{BLOCKED}.37.192/{Strings}
  • Strings can be any of the following:
    • teapot
    • pnp
    • tpt
    • splash
    • site
    • codec
    • health
    • balloon
    • cab
    • odbc
    • badge
    • dma
    • psec
    • cookies
    • iplk
    • devices
    • enable
    • mult
    • prov
    • vermont
    • attrib
    • schema
    • iab
    • chunk
    • publish
    • prep
    • srvc
    • sess
    • ringin
    • nsip
    • stubs
    • img
    • add
    • xian
    • jit
    • free
    • pdf
    • loadan
    • arizona
    • tlb
    • forced
    • results
    • symbols
    • report
    • guids
    • taskbar
    • child
    • cone
    • glitch
    • entries
    • between
    • bml
    • usbccid
    • sym
    • enabled
    • merge
    • window
    • scripts
    • raster
    • acquire
    • json
    • rtm
    • walk
    • ban

It does the following:

  • It deletes previous versions of itself in the system:
    • %AppDataLocal%\{String1}{String2}\{String1}{String2}
    • %System%\{String1}{String2}.exe
  • Based on the following strings:
    • not
    • ripple
    • svcs
    • serv
    • wab
    • shader
    • single
    • without
    • wcs
    • define
    • eap
    • culture
    • slide
    • zip
    • tmpl
    • mini
    • polic
    • panes
    • earcon
    • menus
    • detect
    • form
    • uuidgen
    • pnp
    • admin
    • tuip
    • avatar
    • started
    • dasmrc
    • alaska
    • guids
    • wfp
    • adam
    • wgx
    • lime
    • indexer
    • repl
    • dev
    • mapi
    • resw
    • daf
    • diag
    • iss
    • vsc
    • turned
    • neutral
    • sat
    • source
    • enroll
    • mfidl
    • idl
    • based
    • right
    • cbs
    • radar
    • avg
    • wordpad
    • metagen
    • mouse
    • iprop
    • mdmmcd
    • jersey
    • thunk
    • subs
  • It will create a startup service if it has admin privileges, otherwise it will only create an autorun entry in the registry.

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

It deletes itself after execution.

  SOLUTION

Minimum Scan Engine: 9.850
FIRST VSAPI PATTERN FILE: 14.986.03
FIRST VSAPI PATTERN DATE: 07 May 2019
VSAPI OPR PATTERN File: 14.987.00
VSAPI OPR PATTERN Date: 08 May 2019

Step 1

Trend Micro Predictive Machine Learning detects and blocks malware at the first sign of its existence, before it executes on your system. When enabled, your Trend Micro product detects this malware under the following machine learning name:

     
    • Troj.Win32.TRX.XXPE50FFF030

Step 2

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

Step 3

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 4

Restart in Safe Mode

[ Learn More ]

Step 5

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.
  • %System%\{String1}{String2}.exe
  • %AppDataLocal%\{String1}{String2}\{String1}{String2}.exe

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.
  • %AppDataLocal%\{String1}{String2}

Step 7

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_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\{String1}{String2}
    • ImagePath = %System%\{String1}{String2}.exe
  • In HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\{String1}{String2}
    • ImagePath = %System%\{String1}{String2}.exe

Step 8

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
    • {String1}{String2} = %AppDataLocal%\{String1}{String2}\{String1]{String2}.exe

Step 9

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

Scan your computer with your Trend Micro product to delete files detected as TrojanSpy.Win32.EMOTET.THEHAI. 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 the following Trend Micro Support pages for more information:


Did this description help? Tell us how we did.