TrojanSpy.Win32.QAKBOT.SMYXCFJZ


 ALIASES:

Trojan:Win32/Qakbot.MB!MTB (MICROSOFT), Trojan.Win32.Injector (IKARUS)

 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, Dropped by other malware

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.

  TECHNICAL DETAILS

File Size:

1,004,614 bytes

File Type:

DLL

Memory Resident:

Yes

Initial Samples Received Date:

30 Jun 2022

Payload:

Connects to URLs/IPs, Collects system information, Drops files

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:

  • %Application Data%\Microsoft\{random}\{random}.dll → modified and deleted itself after the system reboots

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

It adds the following processes:

  • %Windows%\explorer.exe (%System%\mobsync.exe or %Program Files%\Internet Explorer\iexplore.exe if not found)
  • %System%\schtasks.exe /Create /RU "NT AUTHORITY\SYSTEM" /tn {Random} /tr "regsvr32.exe -s \"{Malware Full Path and Name}.dll\"" /SC ONCE /Z /ST {Start Time} /ET {End Time}
  • whoami /all
  • cmd /c set
  • arp -a
  • ipconfig /all
  • net view /all
  • nslookup -querytype=ALL -timeout=10 _ldap._tcp.dc._msdcs.WORKGROUP
  • nltest /domain_trusts /all_trusts
  • net share
  • route print
  • netstat -nao
  • net localgroup
  • qwinsta

(Note: %Program Files% is the default Program Files folder, usually C:\Program Files in Windows 2000(32-bit), Server 2003(32-bit), XP, Vista(64-bit), 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit) , or C:\Program Files (x86) in Windows XP(64-bit), Vista(64-bit), 7(64-bit), 8(64-bit), 8.1(64-bit), 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\{GUID}

It injects codes into the following process(es):

  • Spawned %Windows%\explorer.exe (%System%\mobsync.exe or %Program Files%\Internet Explorer\iexplore.exe if not found)

(Note: %Program Files% is the default Program Files folder, usually C:\Program Files in Windows 2000(32-bit), Server 2003(32-bit), XP, Vista(64-bit), 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit) , or C:\Program Files (x86) in Windows XP(64-bit), Vista(64-bit), 7(64-bit), 8(64-bit), 8.1(64-bit), 2008(64-bit), 2012(64-bit) and 10(64-bit).)

Autostart Technique

This Trojan Spy adds the following registry entries to enable its automatic execution at every system startup:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{Random} = %System%\regsvr32.exe -s %Application Data%\Microsoft\{random}\{Name of dropped file}.dll

Backdoor Routine

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

  • Update Self
  • Update Configuration
  • Download and Install Plugins
  • Terminate Processes
  • Drop Files
  • Drop Files and Run

Information Theft

This Trojan Spy gathers the following data:

  • Computer Name
  • Username
  • IP address
  • Operating System Information
  • Processor Information
  • Installed Antivirus Products
  • Running Processes

Stolen Information

This Trojan Spy sends the gathered information via HTTP POST to the following URL:

  • {BLOCKED}.{BLOCKED}.67.228:443/t4
  • {BLOCKED}.{BLOCKED}.14.208:2078/t4
  • {BLOCKED}.{BLOCKED}.85.170:995/t4
  • {BLOCKED}.{BLOCKED}.153.43:2222/t4
  • {BLOCKED}.{BLOCKED}.182.70:443/t4
  • {BLOCKED}.{BLOCKED}.212.247:32103/t4
  • {BLOCKED}.{BLOCKED}.202.7:2222/t4
  • {BLOCKED}.{BLOCKED}.165.220:443/t4
  • {BLOCKED}.{BLOCKED}.3.81:995/t4
  • {BLOCKED}.{BLOCKED}.37.69:80/t4
  • {BLOCKED}.{BLOCKED}.158.245:2222/t4
  • {BLOCKED}.{BLOCKED}.106.209:995/t4
  • {BLOCKED}.{BLOCKED}.244.93:2222/t4
  • {BLOCKED}.{BLOCKED}.80.194:995/t4
  • {BLOCKED}.{BLOCKED}.72.159:443/t4
  • {BLOCKED}.{BLOCKED}.107.144:32101/t4
  • {BLOCKED}.{BLOCKED}.56.25:443/t4
  • {BLOCKED}.{BLOCKED}.105.64:443/t4
  • {BLOCKED}.{BLOCKED}.219.150:995/t4
  • {BLOCKED}.{BLOCKED}.157.218:990/t4
  • {BLOCKED}.{BLOCKED}.172.165:443/t4
  • {BLOCKED}.{BLOCKED}.2.201:443/t4
  • {BLOCKED}.{BLOCKED}.23.254:2222/t4
  • {BLOCKED}.{BLOCKED}.53.220:2222/t4
  • {BLOCKED}.{BLOCKED}.167.149:995/t4
  • {BLOCKED}.{BLOCKED}.9.40:443/t4
  • {BLOCKED}.{BLOCKED}.87.44:443/t4
  • {BLOCKED}.{BLOCKED}.33.254:443/t4
  • {BLOCKED}.{BLOCKED}.111.162:443/t4
  • {BLOCKED}.{BLOCKED}.236.131:443/t4
  • {BLOCKED}.{BLOCKED}.206.130:443/t4
  • {BLOCKED}.{BLOCKED}.235.247:995/t4
  • {BLOCKED}.{BLOCKED}.172.143:2222/t4
  • {BLOCKED}.{BLOCKED}.97.210:443/t4
  • {BLOCKED}.{BLOCKED}.2.111:995/t4
  • {BLOCKED}.{BLOCKED}.167.92:50000/t4
  • {BLOCKED}.{BLOCKED}.216.101:443/t4
  • {BLOCKED}.{BLOCKED}.63.92:443/t4
  • {BLOCKED}.{BLOCKED}.135.98:2222/t4
  • {BLOCKED}.{BLOCKED}.122.40:2222/t4
  • {BLOCKED}.{BLOCKED}.246.47:995/t4
  • {BLOCKED}.{BLOCKED}.1.1:443/t4
  • {BLOCKED}.{BLOCKED}.2.160:443/t4
  • {BLOCKED}.{BLOCKED}.108.232:995/t4
  • {BLOCKED}.{BLOCKED}.215.232:443/t4
  • {BLOCKED}.{BLOCKED}.154.51:995/t4
  • {BLOCKED}.{BLOCKED}.56.138:443/t4
  • {BLOCKED}.{BLOCKED}.177.139:2222/t4
  • {BLOCKED}.{BLOCKED}.167.79:443/t4
  • {BLOCKED}.{BLOCKED}.221.199:443/t4
  • {BLOCKED}.{BLOCKED}.4.244:443/t4
  • {BLOCKED}.{BLOCKED}.10.183:2222/t4
  • {BLOCKED}.{BLOCKED}.38.187:995/t4
  • {BLOCKED}.{BLOCKED}.176.36:2222/t4
  • {BLOCKED}.{BLOCKED}.68.114:2222/t4
  • {BLOCKED}.{BLOCKED}.209.207:2078/t4
  • {BLOCKED}.{BLOCKED}.96.108:443/t4
  • {BLOCKED}.{BLOCKED}.92.53:995/t4
  • {BLOCKED}.{BLOCKED}.157.219:995/t4
  • {BLOCKED}.{BLOCKED}.123.109:995/t4
  • {BLOCKED}.{BLOCKED}.238.177:443/t4
  • {BLOCKED}.{BLOCKED}.196.131:2222/t4
  • {BLOCKED}.{BLOCKED}.7.160:995/t4
  • {BLOCKED}.{BLOCKED}.227.17:443/t4
  • {BLOCKED}.{BLOCKED}.80.153:443/t4
  • {BLOCKED}.{BLOCKED}.3.34:443/t4
  • {BLOCKED}.{BLOCKED}.63.119:995/t4
  • {BLOCKED}.{BLOCKED}.238.195:995/t4
  • {BLOCKED}.{BLOCKED}.123.44:443/t4
  • {BLOCKED}.{BLOCKED}.199.13:443/t4
  • {BLOCKED}.{BLOCKED}.220.156:443/t4
  • {BLOCKED}.{BLOCKED}.28.232:443/t4
  • {BLOCKED}.{BLOCKED}.175.109:2222/t4
  • {BLOCKED}.{BLOCKED}.41.171:443/t4
  • {BLOCKED}.{BLOCKED}.99.30:443/t4
  • {BLOCKED}.{BLOCKED}.9.109:2222/t4
  • {BLOCKED}.{BLOCKED}.167.152:995/t4
  • {BLOCKED}.{BLOCKED}.202.171:32101/t4
  • {BLOCKED}.{BLOCKED}.23.35:2222/t4
  • {BLOCKED}.{BLOCKED}.94.18:443/t4
  • {BLOCKED}.{BLOCKED}.149.154:2222/t4
  • {BLOCKED}.{BLOCKED}.60.241:443/t4
  • {BLOCKED}.{BLOCKED}.96.18:443/t4
  • {BLOCKED}.{BLOCKED}.229.189:443/t4
  • {BLOCKED}.{BLOCKED}.157.150:990/t4
  • {BLOCKED}.{BLOCKED}.8.74:32103/t4
  • {BLOCKED}.{BLOCKED}.99.164:443/t4
  • {BLOCKED}.{BLOCKED}.80.220:443/t4
  • {BLOCKED}.{BLOCKED}.37.110:80/t4
  • {BLOCKED}.{BLOCKED}.167.107:995/t4
  • {BLOCKED}.{BLOCKED}.23.224:1194/t4
  • {BLOCKED}.{BLOCKED}.227.213:443/t4
  • {BLOCKED}.{BLOCKED}.39.56:443/t4
  • {BLOCKED}.{BLOCKED}.244.162:2222/t4
  • {BLOCKED}.{BLOCKED}.154.109:995/t4
  • {BLOCKED}.{BLOCKED}.56.25:443/t4
  • {BLOCKED}.{BLOCKED}.72.53:443/t4
  • {BLOCKED}.{BLOCKED}.2.213:995/t4
  • {BLOCKED}.{BLOCKED}.54.247:995/t4
  • {BLOCKED}.{BLOCKED}.92.166:995/t4
  • {BLOCKED}.{BLOCKED}.218.240:995/t4
  • {BLOCKED}.{BLOCKED}.253.229:2222/t4
  • {BLOCKED}.{BLOCKED}.1.73:443/t4
  • {BLOCKED}.{BLOCKED}.195.84:443/t4
  • {BLOCKED}.{BLOCKED}.3.115:995/t4
  • {BLOCKED}.{BLOCKED}.167.6:50000/t4
  • {BLOCKED}.{BLOCKED}.96.178:443/t4
  • {BLOCKED}.{BLOCKED}.80.241:995/t4
  • {BLOCKED}.{BLOCKED}.168.111:61201/t4
  • {BLOCKED}.{BLOCKED}.74.83:2222/t4
  • {BLOCKED}.{BLOCKED}.8.249:32103/t4
  • {BLOCKED}.{BLOCKED}.10.12:2222/t4
  • {BLOCKED}.{BLOCKED}.238.158:443/t4
  • {BLOCKED}.{BLOCKED}.56.148:443/t4
  • {BLOCKED}.{BLOCKED}.14.51:2078/t4
  • {BLOCKED}.{BLOCKED}.167.79:995/t4
  • {BLOCKED}.{BLOCKED}.41.91:443/t4
  • {BLOCKED}.{BLOCKED}.118.225:443/t4
  • {BLOCKED}.{BLOCKED}.23.160:2222/t4
  • {BLOCKED}.{BLOCKED}.87.156:443/t4
  • {BLOCKED}.{BLOCKED}.202.98:32101/t4
  • {BLOCKED}.{BLOCKED}.224.245:995/t4
  • {BLOCKED}.{BLOCKED}.235.185:443/t4
  • {BLOCKED}.{BLOCKED}.97.118:443/t4
  • {BLOCKED}.{BLOCKED}.23.210:2222/t4
  • {BLOCKED}.{BLOCKED}.220.39:443/t4
  • {BLOCKED}.{BLOCKED}.2.204:443/t4

Other Details

This Trojan Spy adds the following registry keys:

HKEY_CURRENT_USER\Software\Microsoft\
{Random}

It adds the following scheduled tasks:

  • When executed with admin rights:
    Task Name: {Random}
    Task Action: regsvr32.exe -s {Malware Full Path and Name}.dll

NOTES:

It does the following:

  • It checks the presence of the following Anti-Virus and Security Applications:
    • AvastSvc.exe
    • avgcsrva.exe
    • avgcsrvx.exe
    • avgsvcx.exe
    • avp.exe
    • bdagent.exe
    • ByteFence.exe
    • ccSvcHst.exe
    • cmdagent.exe
    • coreServiceShell.exe
    • dwarkdaemon.exe
    • dwengine.exe
    • dwwatcher.exe
    • egui.exe
    • ekrn.exe
    • fmon.exer
    • fshoster32.exe
    • isesrv.exe
    • kavtray.exe
    • mbamgui.exe
    • MBAMService.exe
    • mcshield.exe
    • MsMpEng.exe
    • NTRTScan.exe
    • PccNTMon.exe
    • SAVAdminService.exe
    • SavService.exe
    • vkise.exe
    • vsserv.exe
    • vsservppl.exe
    • WRSA.exe
  • After it is succesful in injecting its codes into its target process (explorer.exe, mobsync.exe or iexplore.exe), it will wipe its original binary with zeros and leave only the headers intact.
  • It establishes its persistence with the following routine:
    • It will only create its autostart registry entry if it detects that the system it is running on is about to restart or shutdown.
    • It will also write its code again in the original binary that was wiped previously before the system reboots or shutdowns.
    • When the system it is running on boots again, it would proceed to inject itself again to its target process and then proceed to wipe the binary and delete the autostart registry entry and binary.
  • It stores its encrypted configuration in the registry key that it creates.

  SOLUTION

Minimum Scan Engine:

9.800

FIRST VSAPI PATTERN FILE:

17.654.08

FIRST VSAPI PATTERN DATE:

28 Jun 2022

VSAPI OPR PATTERN File:

17.655.00

VSAPI OPR PATTERN Date:

29 Jun 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:

     
    • TROJ.Win32.TRX.XXPE50FFF058

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

Deleting Scheduled Tasks

The following {Task Name} - {Task to be run} listed should be used in the steps identified below:  

  • Task Name: {Random}
    Task to be run: regsvr32.exe -s {Malware Full Path and Name}.dll

For Windows 2000, Windows XP, and Windows Server 2003:

  1. Open the Windows Scheduled Tasks. Click Start>Programs>Accessories>
    System Tools>Scheduled Tasks.
  2. Locate each {Task Name} values listed above in the Name column.
  3. Right-click on the said file(s) with the aforementioned value.
  4. Click on Properties. In the Run field, check for the listed {Task to be run}.
  5. If the strings match the list above, delete the task.

For Windows Vista, Windows 7, Windows Server 2008, Windows 8, Windows 8.1, and Windows Server 2012:

  1. Open the Windows Task Scheduler. To do this:
    • On Windows Vista, Windows 7, and Windows Server 2008, click Start, type taskschd.msc in the Search input field, then press Enter.
    • On Windows 8, Windows 8.1, and Windows Server 2012, right-click on the lower left corner of the screen, click Run, type taskschd.msc, then press Enter.
  2. In the left panel, click Task Scheduler Library.
  3. In the upper-middle panel, locate each {Task Name} values listed above in the Name column.
  4. In the lower-middle panel, click the Actions tab. In the Details column, check for the {Task to be run} string.
  5. If the said string is found, delete the task.

Step 6

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\{Random}
    • {Random} = %System%\regsvr32.exe -s %Application Data%\Microsoft\{random}\{Name of dropped file}.dll

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_CURRENT_USER\Software\Microsoft\
    • {Random}

Step 8

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