Trojan.Win32.BLUEROH.RPB

 Analysis by: Patrick Angelo Roderno

 ALIASES:

HEUR:Trojan.Win32.Miner.gen (KASPERSKY); A Variant Of Win32/Packed.BlackMoon.A Potentially Unwanted (ESET-NOD32); Trojan:Win32/BuleHero.190311 (ALIBABA)

 PLATFORM:

Windows

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

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted: No

  • 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 takes advantage of certain vulnerabilities.

  TECHNICAL DETAILS

File Size:

4,085,248 bytes

File Type:

EXE

File Compression:

UPX

Memory Resident:

No

Initial Samples Received Date:

09 Mar 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.

Installation

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

  • %User Temp%\{random numbers}\TemporaryFile\TemporaryFile

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, and 8.)

It drops the following copies of itself into the affected system and executes them:

  • %Windows%\miagration\{Malware Filename}
  • %Windows%\IME\{Malware Filename}

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

It drops the following non-malicious files:

  • %System%\drivers\npf.sys
  • %System%\pthreadVC.dll
  • %System%\Packet.dll
  • %System%\wpcap.dll
  • %Windows%\dispmrroe\Coolmaster\pthreadVC.dll
  • %Windows%\dispmrroe\Coolmaster\Packet.dll
  • %Windows%\dispmrroe\Coolmaster\wpcap.dll

(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 adds the following processes:

  • cmd /c ping 127.0.0.1 -n 3 & Start %Windows%\miagration\{Malware Filename}
  • cmd /c %Windows\dispmrroe\Corporate\vfshost.exe privilege::debug sekurlsa::logonpasswords exit >> %Windows%\dispmrroe\Corporate\log.txt
  • %Windows%\dispmrroe\Coolmaster\SerachProtocoiHost.exe -p80 {BLOCKED}.{BLOCKED}.255.1/24 --rate=4096

It creates the following folders:

  • %Windows%\IME
  • %User Temp%\{random numbers}\TemporaryFile
  • %Windows%\miagration
  • %Windows%\dispmrroe\Corporate
  • %Windows%\dispmrroe\UnattendGC
  • %Windows%\dispmrroe\Coolmaster
  • %Windows%\Temp\locales
  • %Windows%\dispmrroe

(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, XP, and Server 2003, or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, and 8.)

Autostart Technique

This Trojan adds and runs the following services:

  • Service Name: npf
    Path to executable: %System%\drivers\npf.sys
  • Service Name: HomeGoruplocalService
    Description: HomeGorupLocalService Services If disabled, the system may fail to start.
    Path to executable: %Windows%\miagration\{Malware Filename}

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

Dropping Routine

This Trojan drops the following files:

  • %Windows%\dispmrroe\UnattendGC\AppCapture64.dll -> 64bit downloader for malware
  • %Windows%\dispmrroe\UnattendGC\AppCapture32.dll -> 32bit downloader for malware
  • %Windows%\dispmrroe\UnattendGC\specials\svschost.xml -> DoublePulsar backdoor configuration file
  • %Windows%\dispmrroe\UnattendGC\specials\spoolsrv.xml -> EternalBlue exploit component configuration file
  • %Windows%\dispmrroe\UnattendGC\specials\svschost.exe -> DoublePulsar backdoor
  • %Windows%\dispmrroe\UnattendGC\specials\spoolsrv.exe -> EternalBlue exploit component
  • %Windows%\dispmrroe\UnattendGC\svschost.xml
  • %Windows%\dispmrroe\UnattendGC\spoolsrv.xml
  • %Windows%\miagration\svschost.xml
  • %Windows%\miagration\spoolsrv.xml
  • %Windows%\dispmrroe\Corporate\vfshost.exe -> Mimikatz component
  • %Windows%\dispmrroe\Corporate\mimidrv.sys
  • %Windows%\dispmrroe\Corporate\mimilib.dll
  • %Windows%\dispmrroe\Corporate\log.txt
  • %Windows%\dispmrroe\Coolmaster\drivekperf.exe - custom IP scanner
  • %Windows%\dispmrroe\Coolmaster\ip.txt
  • %Windows%\dispmrroe\Coolmaster\scan.bat
  • %Windows%\dispmrroe\Coolmaster\SerachProtocoiHost.exe - Masscan port scanner component
  • %Windows%\Temp\locales\taskmgr.exe -> Coinminer part
  • %Windows%\Temp\locales\config.json -> Coinminer configuration file

(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://fid.{BLOCKED}b.se/download.exe

It connects to the following URL(s) to download its configuration file:

  • http://uio.{BLOCKED}b.se:63145/cfg.ini
  • http://uio.{BLOCKED}rohero.info:63145/cfg.ini

It saves the files it downloads using the following names:

  • C:\Windows\TEMP\RestartLCore.exe

Other Details

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

  • http://2019.{BLOCKED}8.com/ic.asp

It does the following:

  • It uses the following details for its coin-mining routine:
    • Mining pool: pxi.{BLOCKED}b.se:35791
    • Username: ""
    • Password: "x"

It takes advantage of the following vulnerabilities:

It adds the following scheduled tasks:

  • Name: HispDemorn
    Action: %Windows%\IME\{malware name}
  • Name: TablteInputout
    Action: cmd /c echo Y|cacls %Windows%\miagration\{malware name} /p everyone:F
  • Name: werclpsyport
    Action: cmd /c echo Y|cacls %Windows%\Temp\locales\taskmgr /p everyone:F

(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:

14.946.07

FIRST VSAPI PATTERN DATE:

18 Apr 2019

VSAPI OPR PATTERN File:

14.947.00

VSAPI OPR PATTERN Date:

19 Apr 2019

Step 1

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

Deleting Scheduled Tasks

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

  • HispDemorn- %Windows%\IME\{malware name}
  • TablteInputout - cmd /c echo Y|cacls %Windows%\miagration\{malware name} /p everyone:F
  • werclpsyport - cmd /c echo Y|cacls %Windows%\Temp\locales\taskmgr /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 5

Disable this malware service

[ Learn More ]
  • npf
  • HomeGoruplocalService

Step 6

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%\IME
  • %User Temp%\{random numbers}\TemporaryFile
  • %Windows%\miagration
  • %Windows%\dispmrroe\Corporate
  • %Windows%\dispmrroe\UnattendGC
  • %Windows%\dispmrroe\Coolmaster
  • %Windows%\Temp\locales
  • %Windows%\dispmrroe

Step 7

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
  • %System%\pthreadVC.dll
  • %System%\Packet.dll
  • %System%\wpcap.dll

Step 8

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