Modified by: Jay Bradley Nebre

 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: Downloaded from the Internet, 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.

It connects to certain websites to send and receive information. It takes advantage of certain vulnerabilities.

  TECHNICAL DETAILS

File Size: 5,657,930 bytes
File Type: EXE
Memory Resident: Yes
Initial Samples Received Date: 08 Oct 2019
Payload: Connects to URLs/IPs, Downloads files, Drops files, Exploits vulnerabilities

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.

This malware arrives via the following means:

Installation

This Trojan drops a copy of itself in the following folders using different file names:

  • %Windows%\{random characters}\{random charactes}.exe (slightly modified copy)
  • %User Temp%\{random numbers}\TemporaryFile\TemporaryFile

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

  • %Windows%\{random characters}\{random characters}.exe (Modified Copy)

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

It terminates the execution of the copy it initially executed and executes the copy it drops instead.

Autostart Technique

This Trojan adds and runs the following services:

  • Service Name: {random characters}
    Description: {random characters}
    Path to executable: %System%\{random characters}.exe

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

Other System Modifications

This Trojan modifies the following registry entries:

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.)

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

(Note: The default value data of the said registry entry is Microsoft.PowerShellScript.1.)

Process Termination

This Trojan terminates the following services if found on the affected system:

  • SharedAccess
  • MpsSvc
  • WinDefend
  • wuauserv

Dropping Routine

This Trojan drops the following files:

  • Mimikatz:
    • %Windows%\{random characters}\Corporate\vfshost.exe
    • %Windows%\{random characters}\Corporate\mimidrv.sys
    • %Windows%\{random characters}\Corporate\mimilib.dll
    • %Windows%\{random characters}\Corporate\log.txt
  • Port Scanner:
    • %Windows%\{random characters}\{random characters}\{random characters}.exe
    • %Windows%\{random characters}\{random characters}\{random characters}.exe
    • %Windows%\{random characters}\{random characters}\Packet.dll
    • %Windows%\{random characters}\{random characters}\wpcap.dll
    • %Windows%\{random characters}\{random characters}\Result.txt
    • %Windows%\{random characters}\{random characters}\Scantest.txt
    • %Windows%\{random characters}\{random characters}\ip.txt
  • EternalBlue, DoublePulsar and Downloader payload:
    • %Windows%\{random characters}\UnattendGC\AppCapture32.dll (Malware downloader for 32-bit systems)
    • %Windows%\{random characters}\UnattendGC\AppCapture64.dll (Malware downloader for 64-bit systems)
    • %Windows%\{random characters}\UnattendGC\docmicfg.xml
    • %Windows%\{random characters}\UnattendGC\schoedcl.xml
    • %Windows%\{random characters}\UnattendGC\Shellcode.ini
    • %Windows%\{random characters}\UnattendGC\specials
    • %Windows%\{random characters}\UnattendGC\spoolsrv.xml
    • %Windows%\{random characters}\UnattendGC\svschost.xml
    • %Windows%\{random characters}\UnattendGC\vimpcsvc.xml
    • %Windows%\{random characters}\UnattendGC\specials\cnli-1.dll
    • %Windows%\{random characters}\UnattendGC\specials\coli-0.dll
    • %Windows%\{random characters}\UnattendGC\specials\crli-0.dll
    • %Windows%\{random characters}\UnattendGC\specials\docmicfg.exe
    • %Windows%\{random characters}\UnattendGC\specials\docmicfg.xml
    • %Windows%\{random characters}\UnattendGC\specials\exma-1.dll
    • %Windows%\{random characters}\UnattendGC\specials\libeay32.dll
    • %Windows%\{random characters}\UnattendGC\specials\libxml2.dll
    • %Windows%\{random characters}\UnattendGC\specials\posh-0.dll
    • %Windows%\{random characters}\UnattendGC\specials\schoedcl.exe
    • %Windows%\{random characters}\UnattendGC\specials\schoedcl.xml
    • %Windows%\{random characters}\UnattendGC\specials\spoolsrv.exe
    • %Windows%\{random characters}\UnattendGC\specials\spoolsrv.xml
    • %Windows%\{random characters}\UnattendGC\specials\ssleay32.dll
    • %Windows%\{random characters}\UnattendGC\specials\svschost.exe
    • %Windows%\{random characters}\UnattendGC\specials\svschost.xml
    • %Windows%\{random characters}\UnattendGC\specials\tibe-2.dll
    • %Windows%\{random characters}\UnattendGC\specials\trch-1.dll
    • %Windows%\{random characters}\UnattendGC\specials\trfo-2.dll
    • %Windows%\{random characters}\UnattendGC\specials\tucl-1.dll
    • %Windows%\{random characters}\UnattendGC\specials\ucl.dll
    • %Windows%\{random characters}\UnattendGC\specials\vimpcsvc.exe
    • %Windows%\{random characters}\UnattendGC\specials\vimpcsvc.xml
    • %Windows%\{random characters}\UnattendGC\specials\xdvl-0.dll
    • %Windows%\{random characters}\UnattendGC\specials\zlib1.dll
    • %Windows%\{random characters}\UnattendGC\Logs\{IP Address}.txt
  • Copies of configuration (XML) files:
    • %Windows%\{random characters}\svschost.xml
    • %Windows%\{random characters}\spoolsrv.xml
    • %Windows%\{random characters}\vimpcsvc.xml
    • %Windows%\{random characters}\docmicfg.xml
    • %Windows%\{random characters}\schoedcl.xml
  • Coinminer:
    • %Windows%\Temp\{random characters}\{random characters}.exe
    • %Windows%\Temp\{random characters}\config.json

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

Download Routine

This Trojan connects to the following website(s) to download and execute a malicious file:

  • http://fky.d{BLOCKED}g45.best/download.exe

It saves the files it downloads using the following names:

Other Details

This Trojan connects to the following URL(s) to get the affected system's IP address:

  • http://{BLOCKED}9.{BLOCKED}8.com
  • https://{BLOCKED}ig.me
  • http://v4.{BLOCKED}est.com/api/myip.php

It connects to the following website to send and receive information:

  • http://wiu.{BLOCKED}xk.me:16666 - for reporting
  • http://uio.{BLOCKED}b.se:63145/cfg.ini - config containing updated Download URL, Mining pool address and report URL.
  • http://qie.{BLOCKED}xk.me:63145/cfg.ini - config containing updated Download URL, Mining pool address and report URL.

It does the following:

  • It denies access to hosts file by executing the ff. commands:
    • cacls %System%\drivers\etc\hosts /T /D users
    • cacls %System%\drivers\etc\hosts /T /D administrators
    • cacls %System%\drivers\etc\hosts /T /D SYSTEM
  • It disables executing the following applications by adding the following registry entries:
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\{Application Name}
    • Debugger = %System%\svchost.exe
    Where {Application Name} are as follows:
    • at.exe
    • bitsadmin.exe
    • cacls.exe
    • certutil.exe
    • cscript.exe
    • icacls.exe
    • magnify.exe
    • mshta.exe
    • netsh.exe
    • perfmon.exe
    • powershell.exe
    • reg.exe
    • regini.exe
    • Regsvr32.exe
    • rundll32.exe
    • schtasks.exe
    • sethc.exe
    • takeown.exe
    • taskkill.exe
    • WinSAT.exe
    • WmiPrvSE.exe
    • wscript.exe
  • It executes the following network shell commands:
    • netsh ipsec static add filter filterlist=BastardsList srcaddr=any dstaddr=Me dstport=135 protocol=TCP
    • netsh ipsec static add filter filterlist=BastardsList srcaddr=any dstaddr=Me dstport=139 protocol=TCP
    • netsh ipsec static add filter filterlist=BastardsList srcaddr=any dstaddr=Me dstport=445 protocol=TCP
    • netsh ipsec static add filteraction name=BastardsList action=block
    • netsh ipsec static add policy name=Bastards description=FuckingBastards
    • netsh ipsec static add rule name=FuckingBastards policy=Bastards filterlist=BastardsList filteraction=BastardsList
    • netsh ipsec static set policy name=Bastards assign=y
    • netsh firewall set opmode mode=disable
    • netsh Advfirewall set allprofiles state off
  • It executes its EternalBlue/DoublePulsar components using the ff. parameters:
    • %Windows%\{random characters}\UnattendGC\specials\vimpcsvc.exe --TargetIp {Target IP Address} --TargetPort 445 --NetworkTimeout 60 --Protocol SMB --OutConfig %Windows%\{random characters}\UnattendGC\Logs\{Target IP Address}.xml
    • %Windows%\{random characters}\UnattendGC\specials\svschost.exe --NetworkTimeout 60 --TargetIp 1.1.1.1 --TargetPort 445 --OutputFile %Windows%\{random characters}\UnattendGC\Shellcode.ini --Protocol SMB --Architecture x64 --Funciton OutputInstall
  • It executes its Mimikatz component using the ff. parameters:
    • %Windows%\{random characters}\Corporate\vfshost.exe privilege::debug sekurlsa::logonpasswords exit >> %Windows%\{random characters}\Corporate\log.txt
  • It executes its Port scanner components using the ff. parameters:
    • %Windows%\{random characters}\{random characters}\{random characters}.exe -p 80 222.186.128.1-222.186.255.255 --rate=1024 -oJ %Windows%\{random characters}\{random characters}\Scant.txt
    • %Windows%\{random characters}\{random characters}\{random characters}.exe -iL %Windows%\{random characters}\{random characters}\ip.txt -oJ %Windows%\{random characters}\{random characters}\Result.txt --open --rate 4096 -p 445
    • %Windows%\{random characters}\{random characters}\{random characters}.exe -iL %Windows%\{random characters}\{random characters}\ip.txt -oJ %Windows%\{random characters}\{random characters}\Result.txt --open --rate 4096 -p 7001
  • It terminates and disables services by executing the ff. commands:
    • net stop SharedAccess
    • net stop MpsSvc
    • net stop WinDefend
    • net stop wuauserv
    • sc config MpsSvc start= disabled
    • sc config SharedAccess start= disabled
    • sc config WinDefend start= disabled
    • sc config wuauserv start= disabled

(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.)

It takes advantage of the following vulnerabilities:

It adds the following scheduled tasks:

  • Task Name: {random characters}
    Trigger: Repeat every 1 minute indefinetely.
    Task to be Run: %Windows%\C:\Windows\Fonts\{random charactes}.exe

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

  SOLUTION

Minimum Scan Engine: 9.850
FIRST VSAPI PATTERN FILE: 15.416.05
FIRST VSAPI PATTERN DATE: 08 Oct 2019
VSAPI OPR PATTERN File: 15.417.00
VSAPI OPR PATTERN Date: 09 Oct 2019

Step 1

Trend Micro products with the XGen technology detect this malware as

[ Learn More ]
Troj.Win32.TRX.XXPE50FFF032

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

Remove the malware/grayware file that dropped/downloaded Trojan.Win32.BLUEROH.RPH. (Note: Please skip this step if the threat(s) listed below have already been removed.)

    • Trojan.Win32.BLUEROH.RPH

Step 5

Restart in Safe Mode

[ Learn More ]

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_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\{Application Name}
    • Debugger = %System%\svchost.exe

Step 7

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) = VBAFile
  • 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
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.ps1
    • From: (Default) = txtfile
      To: (Default) = Microsoft.PowerShellScript.1

Step 8

Deleting Scheduled Tasks

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

  • Task Name: {random characters}
  • Task to be Run: %Windows%\Fonts\{random characters}.exe

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 9

Disable this malware service

[ Learn More ]
  • {random characters}
    • Path to executable: %System%\{random characters}.exe

Step 10

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.
  • %User Temp%\{random numbers}
  • %User Temp%\{random numbers}\TemporaryFile
  • %Windows%\{random characters}
  • %Windows%\{random characters}
  • %Windows%\{random characters}\Corporate
  • %Windows%\{random characters}\UnattendGC
  • %Windows%\{random characters}\UnattendGC\specials
  • %Windows%\{random characters}\UnattendGC\Logs
  • %Windows%\Temp\{random characters}

Step 11

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.
  • %Temp%\{random characters}.exe
  • %Windows%\{random characters}\{random characters}.exe

Step 12

Restart in normal mode and scan your computer with your Trend Micro product for files detected as Trojan.Win32.BLUEROH.RPH. 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 13

Download and apply these security patches Refrain from using these products until the appropriate patches have been installed. Trend Micro advises users to download critical patches upon release by vendors.

Step 14

Scan your computer with your Trend Micro product to clean files detected as Trojan.Win32.BLUEROH.RPH. 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.