TROJ_FAKEMS.USRM

 Analysis by: John Anthony Banes

 PLATFORM:

Windows

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

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Dropped by other malware


This Trojan arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

  TECHNICAL DETAILS

File Size:

3,735,552 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

04 Jun 2018

Payload:

Drops files, Connects to URLs/IPs

Arrival Details

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

  • %Windows%\ime\{random}{malware name}.exe
  • %Windows%\{malware name}.exe

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

It drops the following files:

  • %System%\drivers\npf.sys
  • %Windows%\dllhost\MigrationDump\Packet.dll
  • %Windows%\dllhost\MigrationDump\wpcap.dll
  • %Windows%\dllhost\MigrationDump\dialers.exe
  • %Windows%\dllhost\MigrationDump\msvcr100.dll
  • %Windows%\dllhost\Eternalblue\AppCapture_x64.dll
  • %Windows%\dllhost\Eternalblue\AppCapture_x32.dll
  • %Windows%\dllhost\Eternalblue\svchost.xml
  • %Windows%\dllhost\Eternalblue\spoolsrv.xml
  • %Windows%\dllhost\Eternalblue\specials\cnli-1.dll
  • %Windows%\dllhost\Eternalblue\specials\coli-0.dll
  • %Windows%\dllhost\Eternalblue\specials\crli-0.dll
  • %Windows%\dllhost\Eternalblue\specials\exma-1.dll
  • %Windows%\dllhost\Eternalblue\specials\libeay32.dll
  • %Windows%\dllhost\Eternalblue\specials\libxml2.dll
  • %Windows%\dllhost\Eternalblue\specials\posh-0.dll
  • %Windows%\dllhost\Eternalblue\specials\spoolsrv.exe
  • %Windows%\dllhost\Eternalblue\specials\ssleay32.dll
  • %Windows%\dllhost\Eternalblue\specials\svchost.exe
  • %Windows%\dllhost\Eternalblue\specials\tibe-2.dll
  • %Windows%\dllhost\Eternalblue\specials\trch-1.dll
  • %Windows%\dllhost\Eternalblue\specials\trfo-2.dll
  • %Windows%\dllhost\Eternalblue\specials\tucl-1.dll
  • %Windows%\dllhost\Eternalblue\specials\ucl.dll
  • %Windows%\dllhost\Eternalblue\specials\xdvl-0.dll
  • %Windows%\dllhost\Eternalblue\specials\zlib1.dll
  • %Windows%\dllhost\Eternalblue\specials\svchost.xml
  • %Windows%\dllhost\Eternalblue\specials\spoolsrv.xml
  • %Windows%\svchost.xml
  • %Windows%\spoolsrv.xml
  • %Windows%\dllhost\Mssql\Code.Sql
  • %Windows%\dllhost\Mssql\Http.Sql
  • %Windows%\dllhost\Mssql\isql.exe
  • %Windows%\dllhost\Mssql\sqlack.exe
  • %Windows%\dllhost\Mssql\msvcr71.dll
  • %Windows%\dllhost\Mssql\ntwdblib.dll
  • %Windows%\dllhost\Mssql\user.txt
  • %Windows%\dllhost\Mssql\pass.txt
  • %Windows%\dllhost\Struts045\Scan\IpDuan.txt
  • %User Temp%\Networks\taskmgr.exe

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.. %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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 creates the following folders:

  • %Windows%\dllhost
  • %Windows%\dllhost\MigrationDump
  • %Windows%\dllhost\Eternalblue
  • %Windows%\dllhost\Eternalblue\specials
  • %Windows%\dllhost\Mssql
  • %Windows%\dllhost\Struts045
  • %Windows%\dllhost\Struts045\Scan
  • %User Temp%\Networks

(Note: %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.. %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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.)

Autostart Technique

This Trojan 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\cefragsvc
Type = 272

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc
Start = 2

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc
ErrorControl = 1

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc
ImagePath = %Windows%\{malware filename}.exe

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc
DisplayName = Disk Defragenter

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc\Security
Security = {hex values}

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc
ObjectName = LocalSystem

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc
Description = Provides disk defragmentation

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc\Enum
0 = Root\LEGACY_CEFRAGSVC\0000

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc\Enum
Count = 1

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc\Enum
NextInstance = 1

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\cefragsvc

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc\Security

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\cefragsvc\Enum

It drops the following file(s) in the Windows User Startup folder to enable its automatic execution at every system startup:

  • %User Startup%\{malware name}.exe

(Note: %User Startup% is the current user's Startup folder, which is usually C:\Documents and Settings\{user}\Start Menu\Programs\Startup on Windows 2000 and XP, and C:\Documents and Settings\{User name}\Start Menu\Programs\Startup on Windows Vista, 7, and 8.)

Other System Modifications

This Trojan modifies the following registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
.bat
(Default) = txtfile

(Note: The default value data of the said registry entry is batfile.)

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
.cmd
(Default) = txtfile

(Note: The default value data of the said registry entry is cmdfile.)

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
.js
(Default) = txtfile

(Note: The default value data of the said registry entry is JSFile.)

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
.vbs
(Default) = txtfile

(Note: The default value data of the said registry entry is VBSFile.)

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
.VBE
(Default) = txtfile

(Note: The default value data of the said registry entry is VBEFile.)

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
.reg
(Default) = txtfile

(Note: The default value data of the said registry entry is regfile.)

Other Details

This Trojan connects to the following possibly malicious URL:

  • {random IP addresses}

It adds the following scheduled tasks:

  • Task Name: Flashlbm
    Schedule: Every one minute
    Task to run: cmd /c echo Y|cacls %User Temp%\Networks\taskmgr.exe /p everyone:F
  • Task Name: Miscfostlbm
    Schedule: Every one minute
    Task to run: cmd /c %Windows%\ime\{malware filename}.exe
  • Task Name: Netframeworklbm
    Schedule: Every one minute
    Task to run: cmd /c echo Y|cacls %Windows%\{malware filename}.exe /p everyone:F

(Note: %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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.. %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)

NOTES:

This Trojan creates the following registry entry under this key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\{Program Name} Debugger = %System%\svchost.exe

Where: {Program Name} can be any of the following:

- powershell.exe

- wscript.exe

- sethc.exe

- magnify.exe

- perfmon.exe

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

14.294.04

FIRST VSAPI PATTERN DATE:

04 Jun 2018

VSAPI OPR PATTERN File:

14.295.00

VSAPI OPR PATTERN Date:

05 Jun 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 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_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc
    • Type = 272
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc
    • Start = 2
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc
    • ErrorControl = 1
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc
    • ImagePath = %Windows%\{malware filename}.exe
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc
    • DisplayName = Disk Defragenter
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc\Security
    • Security = {hex values}
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc
    • ObjectName = LocalSystem
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc
    • Description = Provides disk defragmentation
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc\Enum
    • 0 = Root\LEGACY_CEFRAGSVC\0000
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc\Enum
    • Count = 1
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc\Enum
    • NextInstance = 1
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\powershell.exe
    • Debugger = %System%\svchost.exe
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\wscript.exe
    • Debugger = %System%\svchost.exe
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\sethc.exe
    • Debugger = %System%\svchost.exe
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\magnify.exe
    • Debugger = %System%\svchost.exe
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\perfmon.exe
    • Debugger = %System%\svchost.exe

Step 5

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
    • cefragsvc
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc
    • Security
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cefragsvc
    • Enum

Step 6

Restore this modified 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_LOCAL_MACHINE\SOFTWARE\Classes\.bat
    • From: (Default) = txtfile
      To: (Default) = batfile
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.cmd
    • From: (Default) = txtfile
      To: (Default) = cmdfile
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.js
    • From: (Default) = txtfile
      To: (Default) = JSFile
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vbs
    • From: (Default) = txtfile
      To: (Default) = VBSFile
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.VBE
    • From: (Default) = txtfile
      To: (Default) = VBEFile
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.reg
    • From: (Default) = txtfile
      To: (Default) = regfile

Step 7

Deleting Scheduled Tasks

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

  • Task Name: Flashlbm
    Task to be run: cmd /c echo Y|cacls %User Temp%\Networks\taskmgr.exe /p everyone:F
  • Task Name: Miscfostlbm
    Task to run: cmd /c %Windows%\ime\{malware filename}.exe
  • Task Name: Netframeworklbm
    Task to be run: cmd /c echo Y|cacls %Windows%\{malware filename}.exe /p everyone:F

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 8

Search and delete this file

[ 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%\drivers\npf.sys
  • %Windows%\dllhost\MigrationDump\Packet.dll
  • %Windows%\dllhost\MigrationDump\wpcap.dll
  • %Windows%\dllhost\MigrationDump\dialers.exe
  • %Windows%\dllhost\MigrationDump\msvcr100.dll
  • %Windows%\dllhost\Eternalblue\AppCapture_x64.dll
  • %Windows%\dllhost\Eternalblue\AppCapture_x32.dll
  • %Windows%\dllhost\Eternalblue\svchost.xml
  • %Windows%\dllhost\Eternalblue\spoolsrv.xml
  • %Windows%\dllhost\Eternalblue\specials\cnli-1.dll
  • %Windows%\dllhost\Eternalblue\specials\coli-0.dll
  • %Windows%\dllhost\Eternalblue\specials\crli-0.dll
  • %Windows%\dllhost\Eternalblue\specials\exma-1.dll
  • %Windows%\dllhost\Eternalblue\specials\libeay32.dll
  • %Windows%\dllhost\Eternalblue\specials\libxml2.dll
  • %Windows%\dllhost\Eternalblue\specials\posh-0.dll
  • %Windows%\dllhost\Eternalblue\specials\spoolsrv.exe
  • %Windows%\dllhost\Eternalblue\specials\ssleay32.dll
  • %Windows%\dllhost\Eternalblue\specials\svchost.exe
  • %Windows%\dllhost\Eternalblue\specials\tibe-2.dll
  • %Windows%\dllhost\Eternalblue\specials\trch-1.dll
  • %Windows%\dllhost\Eternalblue\specials\trfo-2.dll
  • %Windows%\dllhost\Eternalblue\specials\tucl-1.dll
  • %Windows%\dllhost\Eternalblue\specials\ucl.dll
  • %Windows%\dllhost\Eternalblue\specials\xdvl-0.dll
  • %Windows%\dllhost\Eternalblue\specials\zlib1.dll
  • %Windows%\dllhost\Eternalblue\specials\svchost.xml
  • %Windows%\dllhost\Eternalblue\specials\spoolsrv.xml
  • %Windows%\svchost.xml
  • %Windows%\spoolsrv.xml
  • %Windows%\dllhost\Mssql\Code.Sql
  • %Windows%\dllhost\Mssql\Http.Sql
  • %Windows%\dllhost\Mssql\isql.exe
  • %Windows%\dllhost\Mssql\sqlack.exe
  • %Windows%\dllhost\Mssql\msvcr71.dll
  • %Windows%\dllhost\Mssql\ntwdblib.dll
  • %Windows%\dllhost\Mssql\user.txt
  • %Windows%\dllhost\Mssql\pass.txt
  • %Windows%\dllhost\Struts045\Scan\IpDuan.txt
  • %User Temp%\Networks\taskmgr.exe

Step 9

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.
  • %Windows%\dllhost
  • %Windows%\dllhost\MigrationDump
  • %Windows%\dllhost\Eternalblue
  • %Windows%\dllhost\Eternalblue\specials
  • %Windows%\dllhost\Mssql
  • %Windows%\dllhost\Struts045
  • %Windows%\dllhost\Struts045\Scan
  • %User Temp%\Networks

Step 10

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

Scan your computer with your Trend Micro product to delete files detected as TROJ_FAKEMS.USRM. 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.