TrojanSpy.Win32.EMOTET.YXCCPZA

 Analysis by: Khristian Joseph Morales

 ALIASES:

Trojan:Win32/Emotetcrypt.DV!MTB (MICROSOFT)

 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 executes commands from a remote malicious user, effectively compromising the affected system.

It saves downloaded files into the said created folder.

It deletes the initially executed copy of itself.

  TECHNICAL DETAILS

File Size:

1,019,904 bytes

File Type:

DLL

Memory Resident:

Yes

Initial Samples Received Date:

22 Mar 2022

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:

  • If executed with admin rights:
    • %System%\{Random characters}\{Random characters}.{3 random characters}
  • If executed without admin rights:
    • %AppDataLocal%\{Random characters}\{Random characters}.{3 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 adds the following processes:

  • If executed with admin rights:
    • %System%\regsvr32.exe /s "%System%\{Random characters}\{Random characters}.{3 random characters}
  • If executed without admin rights:
    • %System%\regsvr32.exe /s "%AppDataLocal%\{Random characters}\{Random characters}.{3 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:

  • If executed with admin rights:
    • %System%\{Random characters}
  • If executed without admin rights:
    • %AppDataLocal%\{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).)

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\{File Name of Copy} → If executed with admin rights
ImagePath = %System%\regsvr32.exe /s "%System%\{Random characters}\{Random characters}.{3 random characters}

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run → If executed without admin rights
{File Name of Copy} = %System%\regsvr32.exe /s "%AppDataLocal%\{Random characters}\{Random characters}.{3 random characters}

Backdoor Routine

This Trojan Spy executes the following commands from a remote malicious user:

  • Download and run module or executable file
  • Download and execute code in memory

Download Routine

This Trojan Spy saves the files it downloads using the following names:

  • For Download and run module command:
    • {Malware Installation Folder Path}\{random characters}.dll
  • For Download and run executable file:
    • {Malware Installation Folder Path}\{random characters}.exe

It saves downloaded files into the said created folder.

Information Theft

This Trojan Spy gathers the following data:

  • Computer Name
  • OS Version
  • Process Architecture
  • Volume Serial Number
  • Windows Version
  • Process ID
  • Malware Path

Other Details

This Trojan Spy deletes the initially executed copy of itself.

NOTES:

This Trojan Spy does the following:

  • It receives commands and sends encrypted gathered information to the following URLs via HTTP/HTTPS GET by storing it in the Cookie header:
    • https://{BLOCKED}.{BLOCKED}.33.122:443/{random characters}
    • http://{BLOCKED}.{BLOCKED}.48.5:80/{random characters}
    • https://{BLOCKED}.{BLOCKED}.39.118:443/{random characters}
    • http://{BLOCKED}.{BLOCKED}.81.119:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.172.107:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.72.155:8080/{random characters}
    • https://{BLOCKED}.{BLOCKED}.204.80:443/{random characters}
    • https://{BLOCKED}.{BLOCKED}.237.188:443/{random characters}
    • http://{BLOCKED}.{BLOCKED}.195.104:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.106.167:8080/{random characters}
    • https://{BLOCKED}.{BLOCKED}.130.138:443/{random characters}
    • http://{BLOCKED}.{BLOCKED}.244.177:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.25.78:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.168.15:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.192.135:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.209.141:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.204.169:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.168.220:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.58.120:7080/{random characters}
    • https://{BLOCKED}.{BLOCKED}.73.125:443/{random characters}
    • https://{BLOCKED}.{BLOCKED}.93.250:443/{random characters}
    • https://{BLOCKED}.{BLOCKED}.233.66:443/{random characters}
    • http://{BLOCKED}.{BLOCKED}.132.177:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.178.147:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.98.190:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.250.14:80/{random characters}
    • https://{BLOCKED}.{BLOCKED}.57.149:443/{random characters}
    • https://{BLOCKED}.{BLOCKED}.253.194:443/{random characters}
    • http://{BLOCKED}.{BLOCKED}.62.48:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.103.16:80/{random characters}
    • https://{BLOCKED}.{BLOCKED}.228.122:443/{random characters}
    • http://{BLOCKED}.{BLOCKED}.172.165:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.239.39:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.128.206:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.209.107:8080/{random characters}
    • https://{BLOCKED}.{BLOCKED}.72.86:443/{random characters}
    • https://{BLOCKED}.{BLOCKED}.143.207:443/{random characters}
    • http://{BLOCKED}.{BLOCKED}.97.83:7080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.209.142:8080/{random characters}
    • https://{BLOCKED}.{BLOCKED}.242.185:443/{random characters}
    • https://{BLOCKED}.{BLOCKED}.146.35:443/{random characters}
    • https://{BLOCKED}.{BLOCKED}.216.46:443/{random characters}
    • http://{BLOCKED}.{BLOCKED}.98.78:8080/{random characters}
    • http://{BLOCKED}.{BLOCKED}.67.203:8080/{random characters}

  SOLUTION

Minimum Scan Engine:

9.800

FIRST VSAPI PATTERN FILE:

17.456.06

FIRST VSAPI PATTERN DATE:

22 Mar 2022

VSAPI OPR PATTERN File:

17.457.00

VSAPI OPR PATTERN Date:

23 Mar 2022

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:

    • TSPY.Win32.TRX.XXPE50FFF054E0002

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
    • {File Name of Copy} = %System%\regsvr32.exe /s "%AppDataLocal%\{Random characters}\{Random characters}.{3 random characters}

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\{File Name of Copy}

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%\{Random characters}\{Random characters}.{3 random characters}
  • %AppDataLocal%\{Random characters}\{Random characters}.{3 random characters}
  • {Malware Installation Folder Path}\{random characters}.dll
  • {Malware Installation Folder Path}\{random characters}.exe

Step 8

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.  
  • %System%\{Random characters}
  • %AppDataLocal%\{Random characters}

Step 9

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