TrojanSpy.Win32.EMOTET.THIBCAI

 Analysis by: Jay Garcia

 ALIASES:

Trojan:Win32/Emotet.BB!MTB (Microsoft); GenericR-QRI!37618A07FE6D (McAfee); Trojan-Banker.Win32.Emotet.dneu (Kaspersky)

 PLATFORM:

Windows

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

  • Threat Type: Trojan Spy

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

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:

438,272 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

20 Sep 2019

Payload:

Connects to URLs/IPs, Steals information, Deletes itself

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 adds the following folders:

  • %AppDataLocal%\{string1}{string2} → if run without admin privileges

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

  • %System%\{string1}{string2}.exe → if run with admin privileges
  • %AppDataLocal%\{string1}{string2}\{string1}{string2}.exe → if run without admin privileges
    where {string1} and {string2} can be any of the following strings:
    • chunk
    • counter
    • drawa
    • isve
    • two
    • next
    • mapi
    • rtapi
    • nlsdl
    • defs
    • tenant
    • rstrt
    • window
    • machine
    • mira
    • system
    • stream
    • cursor
    • structs
    • history
    • watched
    • hash
    • report
    • program
    • durable
    • offc
    • rsat
    • folders
    • shell
    • yellow
    • sounds
    • adjust
    • toner
    • tlb
    • sorted
    • loop
    • post
    • txt
    • icons
    • intel
    • inset
    • move
    • reports
    • trc
    • based
    • wim
    • lumber
    • violet
    • dom
    • easy
    • cvt
    • center
    • even
    • readand
    • xinput
    • mem
    • cues
    • layer
    • tools
    • wfd
    • running
    • mail
    • gesture
    • misc

(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 File Path}\{Malware File Name}.exe --{8 Random Characters}
  • %System%\{string1}{string2}.exe → if run with admin privileges
  • %System%\{string1}{string2}.exe --{8 Random Characters} → if run with admin privileges
  • %AppDataLocal%\{string1}{string2}\{string1}{string2}.exe → if run without admin privileges
  • %AppDataLocal%\{string1}{string2}\{string1}{string2}.exe --{8 Random Characters} → if run without admin privileges

(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 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\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"

Other System Modifications

This Trojan Spy adds the following registry keys:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{string1}{string2}

It adds the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{string1}{string2}
Type = 16

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{string1}{string2}
Start = 2

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{string1}{string2}
ErrorControl = 0

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{string1}{string2}
DisplayName = {string1}{string2}

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{string1}{string2}
ObjectName = {string1}{string2}

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}.116.97:80/{string}
    • {BLOCKED}.{BLOCKED}.14.52:80/{string}
    • {BLOCKED}.{BLOCKED}.65.229:80/{string}
    • {BLOCKED}.{BLOCKED}.8.148:8080/{string}
    • {BLOCKED}.{BLOCKED}.150.240:7080/{string}
    • {BLOCKED}.{BLOCKED}.208.175:8080/{string}
    • {BLOCKED}.{BLOCKED}.60.230:7080/{string}
    • {BLOCKED}.{BLOCKED}.124.163:8080/{string}
    • {BLOCKED}.{BLOCKED}.144.228:80/{string}
    • {BLOCKED}.{BLOCKED}.183.211:8080/{string}
    • {BLOCKED}.{BLOCKED}.101.134:8080/{string}
    • {BLOCKED}.{BLOCKED}.60.129:80/{string}
    • {BLOCKED}.{BLOCKED}.79.48:8080/{string}
    • {BLOCKED}.{BLOCKED}.42.131:80/{string}
    • {BLOCKED}.{BLOCKED}.35.138:7080/{string}
    • {BLOCKED}.{BLOCKED}.166.192:80/{string}
    • {BLOCKED}.{BLOCKED}.133.253:8080/{string}
    • {BLOCKED}.{BLOCKED}.4.66:22/{string}
    • {BLOCKED}.{BLOCKED}.143.108:80/{string}
    • {BLOCKED}.{BLOCKED}.51.40:8080/{string}
    • {BLOCKED}.{BLOCKED}.253.234:990/{string}
    • {BLOCKED}.{BLOCKED}.68.89:443/{string}
    • {BLOCKED}.{BLOCKED}.60.129:80/{string}
    • {BLOCKED}.{BLOCKED}.233.46:443/{string}
    • {BLOCKED}.{BLOCKED}.93.124:7080/{string}
    • {BLOCKED}.{BLOCKED}.106.4:7080/{string}
    • {BLOCKED}.{BLOCKED}.8.192:8080/{string}
    • {BLOCKED}.{BLOCKED}.27.158:443/{string}
    • {BLOCKED}.{BLOCKED}.22.225:7080/{string}
    • {BLOCKED}.{BLOCKED}.50.210:8080/{string}
    • {BLOCKED}.{BLOCKED}.223.190:8080/{string}
    • {BLOCKED}.{BLOCKED}.182.254:8080/{string}
    • {BLOCKED}.{BLOCKED}.102.71:8443/{string}
    • {BLOCKED}.{BLOCKED}.160.178:8080/{string}
    • {BLOCKED}.{BLOCKED}.64.180:7080/{string}
    • {BLOCKED}.{BLOCKED}.18.56:443/{string}
    • {BLOCKED}.{BLOCKED}.87.122:8080/{string}
    • {BLOCKED}.{BLOCKED}.90.6:8080/{string}
    • {BLOCKED}.{BLOCKED}.143.100:7080/{string}
    • {BLOCKED}.{BLOCKED}.13.70:80/{string}
    • {BLOCKED}.{BLOCKED}.134.129:443/{string}
    • {BLOCKED}.{BLOCKED}.124.145:443/{string}
    • {BLOCKED}.{BLOCKED}.97.25:80/{string}
    • {BLOCKED}.{BLOCKED}.4.186:80/{string}
    • {BLOCKED}.{BLOCKED}.140.14:443/{string}
    • {BLOCKED}.{BLOCKED}.148.222:8080/{string}
    • {BLOCKED}.{BLOCKED}.173.247:8080/{string}
    • {BLOCKED}.{BLOCKED}.206.153:443/{string}
    • {BLOCKED}.{BLOCKED}.211.77:8080/{string}
    • {BLOCKED}.{BLOCKED}.111.142:7080/{string}
    • {BLOCKED}.{BLOCKED}.149.134:80/{string}
    • {BLOCKED}.{BLOCKED}.86.13:8080/{string}
    • {BLOCKED}.{BLOCKED}.163.131:8080/{string}
    • {BLOCKED}.{BLOCKED}.175.216:8080/{string}
    • {BLOCKED}.{BLOCKED}.171.51:80/{string}
    • {BLOCKED}.{BLOCKED}.142.33:80/{string}
    • {BLOCKED}.{BLOCKED}.77.40:7080/{string}
    • {BLOCKED}.{BLOCKED}.151.103:8080/{string}
    • {BLOCKED}.{BLOCKED}.141.15:50000/{string}
    • {BLOCKED}.{BLOCKED}.159.3:8080/{string}
    • {BLOCKED}.{BLOCKED}.166.147:80/{string}
    • {BLOCKED}.{BLOCKED}.87.73:80/{string}
    • {BLOCKED}.{BLOCKED}.105.59:8080/{string}
    • {BLOCKED}.{BLOCKED}.51.143:8080/{string}
    • {BLOCKED}.{BLOCKED}.42.205:443/{string}
    • {BLOCKED}.{BLOCKED}.37.125:443/{string}
    • {BLOCKED}.{BLOCKED}.57.42:80/{string}
    • {BLOCKED}.{BLOCKED}.84.80:8080/{string}
    • {BLOCKED}.{BLOCKED}.60.231:7080/{string}
    • {BLOCKED}.{BLOCKED}.204.126:8080/{string}
    • {BLOCKED}.{BLOCKED}.74.202:443/{string}
    • {BLOCKED}.{BLOCKED}.215.57:7080/{string}

It does the following:

  • It deletes the outdated copy of itself:
    • %System%\{string1}{string2}.exe
    • %AppDataLocal%\{string1}{string2}\{string1}{string2}.exe
      where {string1} and {string2} can be any of the following strings:
      • bml
      • vault
      • apo
      • ttls
      • winsat
      • cim
      • types
      • depth
      • idaho
      • example
      • photos
      • gateway
      • themes
      • khmer
      • lite
      • rpl
      • media
      • tran
      • mondeu
      • plan
      • power
      • sans
      • subs
      • namesof
      • sine
      • events
      • enums
      • tier
      • icon
      • nirmala
      • cred
      • was
      • ipsm
      • sms
      • flows
      • code
      • sound
      • dlls
      • click
      • lanes
      • vmbus
      • blb
      • setthe
      • tasks
      • item
      • als
      • cluster
      • prof
      • psec
      • cofire
      • ram
      • phong
      • vector
      • notices
      • cull
      • netsh
      • wan
      • cpl
      • shims
      • convert
      • chx
      • sens
      • ihun
      • priv
  • It creates a startup service if it has admin privileges, otherwise it only creates an autorun entry in the registry.

(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 deletes itself after execution.

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

15.384.04

FIRST VSAPI PATTERN DATE:

20 Sep 2019

VSAPI OPR PATTERN File:

15.385.00

VSAPI OPR PATTERN Date:

21 Sep 2019

Step 1

Trend Micro products with the XGen technology detect this malware as

[ Learn More ]
  • TROJ.Win32.TRX.XXPE50FFF031P0005

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

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 6

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}

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

Step 8

Search and delete this folder

[ 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 9

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