Analysis by: Augusto II Remillano

ALIASES:

Win32/Emotet.BK (NOD32), Trojan-Banker.Win32.Emotet.awwr (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

Canal de infección 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. However, as of this writing, the said sites are inaccessible. It deletes the initially executed copy of itself.

  TECHNICAL DETAILS

Tamaño del archivo 78,848 bytes
Tipo de archivo EXE
Residente en memoria Yes
Fecha de recepción de las muestras iniciales 11 Jul 2018
Carga útil 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:

  • %System%\{string1}{string2}.exe - if run with admin privileges
  • %AppDataLocal%\Microsoft\Windows\{string1}{string2}.exe - if run without admin privileges
    {string1} and {string2} are randomly chosen from the following strings:
    • mute
    • aero
    • trace
    • asp
    • montana
    • key
    • router
    • mdmsg
    • prn
    • plugins
    • ref
    • duplex
    • nic
    • mheg
    • case
    • tvout
    • isvc
    • footer
    • initial
    • old
    • icons
    • entry
    • powr
    • boost
    • apply
    • wcf
    • ecl
    • cim
    • wim
    • luna
    • smx
    • mfidl
    • catch
    • export
    • royale
    • xinput
    • droid
    • channel
    • sls
    • ncl
    • look
    • sketch
    • logs
    • owin
    • prime
    • putil
    • more
    • vsix
    • enums
    • dbg
    • example
    • color
    • pack
    • voice
    • appx
    • diagram
    • pla
    • asc
    • styles
    • ding
    • oobe
    • wfd
    • cabinet
    • edge

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

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

  • PE{hash of full file path}
  • 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}
Description = “Transfers files in the background using idle network bandwidth. If the service is disabled, then any applications that depend on BITS, such as Windows Update or MSN Explorer, will be unable to automatically download programs and other information.”

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{string1}{string2}
ImagePath = "%System%\{string1}{string2}.exe"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{string1}{string2}
Name = “{string1}{string2}”

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{string1}{string2}
ErrorControl = “0”

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{string1}{string2}
ObjectName = “LocalSystem”

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{string1}{string2}
Start = “0x02”

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
services\{string1}{string2}
Type = “0x10”

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%\Microsoft\Windows\{string1}{string2}.exe"

It registers as a system service to ensure its automatic execution at every system startup by adding the following registry keys:

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

Information Theft

This Trojan Spy gathers the following data:

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

Other Details

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

  • http://{BLOCKED}.{BLOCKED}.246.57
  • http://{BLOCKED}.{BLOCKED}.176.48:443
  • http://{BLOCKED}.{BLOCKED}.127.246:443
  • http://{BLOCKED}.{BLOCKED}.42.25:443
  • http://{BLOCKED}.{BLOCKED}.116.230:990
  • http://{BLOCKED}.{BLOCKED}.201.243:995
  • http://{BLOCKED}.{BLOCKED}.104.194
  • http://{BLOCKED}.{BLOCKED}.54.171:8080
  • http://{BLOCKED}.{BLOCKED}.173.247:8080
  • http://{BLOCKED}.{BLOCKED}.12.199
  • http://{BLOCKED}.{BLOCKED}.110.17:443
  • http://{BLOCKED}.{BLOCKED}.182.42:8080
  • http://{BLOCKED}.{BLOCKED}.170.58
  • http://{BLOCKED}.{BLOCKED}.14.231
  • http://{BLOCKED}.{BLOCKED}.165.108:443
  • http://{BLOCKED}.{BLOCKED}.201.243:443
  • http://{BLOCKED}.{BLOCKED}.213.242
  • http://{BLOCKED}.{BLOCKED}.118.8:443
  • http://{BLOCKED}.{BLOCKED}.207.129:443
  • http://{BLOCKED}.{BLOCKED}.17.209
  • http://{BLOCKED}.{BLOCKED}.214.210:443
  • http://{BLOCKED}.{BLOCKED}.88.56
  • http://{BLOCKED}.{BLOCKED}.89.209:8080
  • http://{BLOCKED}.{BLOCKED}.131.87
  • http://{BLOCKED}.{BLOCKED}.78.38:443
  • http://{BLOCKED}.{BLOCKED}.131.69:8080
  • http://{BLOCKED}.{BLOCKED}.170.222:8080
  • http://{BLOCKED}.{BLOCKED}.218.192:4143
  • http://{BLOCKED}.{BLOCKED}.1.90:995
  • http://{BLOCKED}.{BLOCKED}.175.215:8090
  • http://{BLOCKED}.{BLOCKED}.246.242:443
  • http://{BLOCKED}.{BLOCKED}.168.27:8443
  • http://{BLOCKED}.{BLOCKED}.78.9:443
  • http://{BLOCKED}.{BLOCKED}.60.231:4143
  • http://{BLOCKED}.{BLOCKED}.184.52
  • http://{BLOCKED}.{BLOCKED}.43.125:7080
  • http://{BLOCKED}.{BLOCKED}.164.23:8080

It does the following:

  • It will create a startup service if it has admin privileges, otherwise it will only create an autorun entry in the registry.
  • It is capable of downloading different modules from the C&C server.

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

It deletes the initially executed copy of itself

  SOLUTION

Motor de exploración mínimo 9.850
Primer archivo de patrones de VSAPI 14.372.08
Primera fecha de publicación de patrones de VSAPI 11 Jul 2018
Versión de patrones OPR de VSAPI 14.373.00
Fecha de publicación de patrones OPR de VSAPI 12 Jul 2018

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 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. Before you could do this, you must restart in Safe Mode. For instructions on how to do this, you may refer to this page If the preceding step requires you to restart in safe mode, you may proceed to edit the system registry.

 
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services
    • {string1}{string2}

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%\Microsoft\Windows\{string1}{string2}.exe"

Step 6

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