Analysis by: Joshua John Bantayan

ALIASES:

Generic.Application.CoinMiner.1.F8C53C97 (BITDEFENDER); Win64:CoinminerX-gen [Trj] (AVAST)

 PLATFORM:

Windows

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

  • Threat Type: Worm

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel: Propagates via software vulnerabilities

This Worm 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,251,200 bytes
File Type: EXE
Memory Resident: Yes
Initial Samples Received Date: 01 Apr 2021
Payload: Connects to URLs/IPs, Terminates processes

Arrival Details

This Worm 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 Worm drops the following files:

  • {Malware Directory}\Packet.dll
  • {Malware Directory}\wpcap.dll
  • %User Temp%\npf.sys
  • %User Temp%\.{Random Characters}\[kthreaddi].exe -> xmrig
  • %User Temp%\.{Random Characters}\config.json -> xmrig config

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

  • %System%\cmd.exe /c "sc stop npf"
  • %System%\cmd.exe /c "sc delete npf"
  • %System%\cmd.exe /c "sc create npf type= kernel start= auto binpath= %User Temp%\npf.sys"
  • %System%\cmd.exe /c "sc start npf"
  • route print 0.0.0.0
  • %System%\cmd.exe /c start %User Temp%\.{Random Characters}\[kthreaddi].exe

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 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).)

Process Termination

This Worm terminates the following processes if found running in the affected system's memory:

  • apaceha.exe
  • apachiii.exe
  • cpuset.exe
  • crond64.exe
  • cryptonight.exe
  • devtool.exe
  • devtools.exe
  • haveged.exe
  • irqbalanc1.exe
  • jawa.exe
  • kdevtmpfsi.exe
  • kinsing.exe
  • ksoftirqds.exe
  • kthrotlds.exe
  • kworker34.exe
  • kworkerds.exe
  • linux32.exe
  • Loopback.exe
  • miner-cpu.exe
  • miner-notls.exe
  • miner.exe
  • minerd.exe
  • minergate.exe
  • mixnerdx.exe
  • monerohash.exe
  • mstxmr.exe
  • nanoWatch.exe
  • netdns.exe
  • nginxk.exe
  • nqscheduler.exe
  • nullcrew.exe
  • performedl.exe
  • phpguard.exe
  • phpupdate.exe
  • pnscan.exe
  • pythno.exef
  • redis2.exe
  • solrd.exe
  • sourplum.exe
  • stratum.exe
  • suppoie.exe
  • sustse.exe
  • sustse3.exe
  • svcguard.exe
  • svcupdate.exe
  • svcupdates.exe
  • sysguard.exe
  • sysstats.exe
  • systemctI.exe
  • systemten.exe
  • systemxlv.exe
  • sysupdate.exe
  • vmlinuz.exe
  • voltuned.exe
  • watchbog.exe
  • watchd0g.exe
  • watchdogs.exe
  • xmr-stak.exe

Other Details

This Worm does the following:

  • It uses the following default details on its coin mining routine (from config.json):
    • Algo: rx/0
    • Url: xmr-eu1.nanopool.org:14444
    • User: 49dnvYkWkZNPrDj3KF8fR1BHLBfiVArU6Hu61N9gtrZWgbRptntwht5JUrXX17ZeofwPwC6fXNxPZfGjNEChXttwWE3EGUEa.W
    • Password: x
  • If exploitation is successful, connects to the following URL to download and execute a malicious file:
    • http://{BLOCKED}.{BLOCKED}.227.21
  • It may use the following exploits to aid its propagation:
    • XXL-JOB unauthorized access
    • WebLogic Unauthorized Access (CVE-2020-14882)
    • ThinkPhp5Rce
    • Hadoop unauthorized access
    • Jupyter unauthorized access
    • Nexus unauthorized access
    • Tomcat unauthorized access
    • WordPress unauthorized access
    • Jenkins RCE
    • CVE-2017-11610
    • CVE-2019-10758
    • CVE-2020-16846
    • CVE-2021-3129
  • It scans the following ports to be used in exploitation and propagation:
    • 8088
    • 8081
    • 7001
    • 9001
  • It uses the following credentials to bruteforce a system:
    • Username:
      • admin1234
      • admin@123
      • Admin@123
      • admin
      • Admin123
      • mfgproadmin
      • root
      • test
      • user
      • tomcat
    • Password:
      • 12345678
      • 123456
      • Admin123
      • P@ssw0rd
      • admin123
      • password
      • admin
      • tomcat
      • root
      • test
      • user
      • secret
      • tomcat123
      • oracle
  • It tries to bruteforce the following systems:
    • Wordpress
    • Tomcat
    • Nexus
    • Jupyter
    • Jenkins

  SOLUTION

Minimum Scan Engine: 9.800
FIRST VSAPI PATTERN FILE: 16.632.02
FIRST VSAPI PATTERN DATE: 02 Apr 2021
VSAPI OPR PATTERN File: 16.633.00
VSAPI OPR PATTERN Date: 03 Apr 2021

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

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.  
  • {Malware Directory}\Packet.dll
  • {Malware Directory}\wpcap.dll
  • %User Temp%\npf.sys
  • %User Temp%\.{Random Characters}\[kthreaddi].exe
  • %User Temp%\.{Random Characters}\config.json

Step 5

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