Analysis by: Joshua John Bantayan

ALIASES:

Win64:CoinminerX-gen [Trj] (AVAST); HEUR:Trojan.Win32.Miner.vho (KASPERSKY)

 PLATFORM:

Windows

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

  • Threat Type: Coinminer

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel: Downloaded from the Internet

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

It uses the system's central processing unit (CPU) and/or graphical processing unit (GPU) resources to mine cryptocurrency.

  TECHNICAL DETAILS

File Size: 1,439,744 bytes
File Type: DLL
Memory Resident: Yes
Initial Samples Received Date: 16 Oct 2020
Payload: Connects to URLs/IPs

Arrival Details

This Coinminer 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 Coinminer adds the following mutexes to ensure that only one of its copies runs at any one time:

  • Samplexn07

Backdoor Routine

This Coinminer connects to the following URL(s) to send and receive commands from a remote malicious user:

  • {BLOCKED}.{BLOCKED}.23.196:443

Other Details

This Coinminer does the following:

  • Supported algorithm options:
    • cryptonight-aeonv7
    • cryptonight-bittube2
    • cryptonight-heavy
    • cryptonight-heavy/0
    • cryptonight-heavy/tube
    • cryptonight-heavy/xhv
    • cryptonight-light
    • cryptonight-lite
    • cryptonight-lite/0
    • cryptonight-lite/1
    • cryptonight/double
    • cryptonight/half
    • cryptonight/msr
    • cryptonight/rto
    • cryptonight/rwz
    • cryptonight/xao
    • cryptonight/zls
    • RandomARQ
    • RandomWOW
    • RandomX
    • randomx/arq
    • randomx/loki
    • randomx/test
    • randomx/wow
    • RandomXL
    • rx/loki


  • Supported coin options:
    • monero
    • arqma
  • Accepts the following Parameters:
    • --algo=ALGO - mining algorithm
    • --coin=COIN - specify coin instead of algorithm
    • --api-worker-id=ID - custom worker-id for API
    • --api-id=ID - custom instance ID for API
    • --http-enabled - enable HTTP API
    • --http-host=HOST bind host for HTTP API
    • --http-access-token=T access token for HTTP API
    • --http-port=N bind port for HTTP API
    • --http-no-restricted - enable full remote access to HTTP API (only if access token set)
    • --daemon - use daemon RPC instead of pool for solo mining
    • --daemon-poll-interval=N - daemon poll interval in milliseconds (default: 1000)
    • --self-select=URL - self-select block templates from URL
    • --background - run the miner in the background
    • --config=FILE - load a JSON-format configuration file
    • --cpu-affinity - set process affinity to CPU core(s), mask 0x3 for cores 0 and 1
    • --cpu-priority - set process priority (0 idle, 2 normal to 5 highest)
    • --donate-level=N donate level, default 5%% (5 minutes in 100 minutes)
    • --donate-over-proxy=N control donate over xmrig-proxy feature
    • --dry-run - test configuration and exit
    • --keepalive send keepalived packet for prevent timeout (needs pool support)
    • --log-file=FILE - log all output to a file
    • --nicehash enable nicehash.com support
    • --no-color - disable colored output
    • --no-huge-pages - disable huge pages support
    • --pass=PASSWORD - password for mining server
    • --print-time=N - print hashrate report every N seconds
    • --retries=N - number of times to retry before switch to backup server (default: 5)
    • --retry-pause=N - time to pause between retries (default: 5)
    • --syslog - use system log for output messages
    • --threads=N - number of CPU threads
    • --user=USERNAME username for mining server
    • --cpu-max-threads-hint=N - maximum CPU threads count (in percentage) hint for autoconfig
    • --cpu-memory-pool=N - number of 2 MB pages for persistent memory pool, -1 (auto), 0 (disable)
    • --cpu-no-yield prefer maximum hashrate rather than system response/stability
    • --tls-fingerprint=HEX - pool TLS certificate fingerprint for strict certificate pinning
    • --randomx-init=N - threads count to initialize RandomX dataset
    • --randomx-no-numa - disable NUMA support for RandomX
    • --randomx-mode=MODE RandomX mode: auto, fast, light
    • --randomx-1gb-pages use 1GB hugepages for dataset (Linux only)
    • --randomx-wrmsr=N write custom value (0-15) to Intel MSR register 0x1a4 or disable MSR mod (-1)
    • --opencl - enable OpenCL mining backend
    • --opencl-devices=N - list of OpenCL devices to use
    • --opencl-platform=N- OpenCL platform index or name
    • --opencl-loader=PATH - path to OpenCL-ICD-Loader (OpenCL.dll or libOpenCL.so)
    • --opencl-no-cache - disable OpenCL cache
    • --cuda enable CUDA mining backend
    • --cuda-loader=PATH path to CUDA plugin (xmrig-cuda.dll or libxmrig-cuda.so)
    • --cuda-devices=N comma separated list of CUDA devices to use
    • --cuda-bfactor-hint=N bfactor hint for autoconfig (0-12)
    • --cuda-bsleep-hint=N bsleep hint for autoconfig
    • --no-nvml-disable NVML (NVIDIA Management Library) support
    • --health-print-time=N - print health report every N seconds
    • --help - display this help and exit
    • --version - output version information and exit
    • --export-topology - export hwloc topology to a XML file and exit
    • --print-platforms - print available OpenCL platforms and exit

It uses the system's central processing unit (CPU) and/or graphical processing unit (GPU) resources to mine cryptocurrency. This behavior makes the system run abnormally slow.

  SOLUTION

Minimum Scan Engine: 9.800
FIRST VSAPI PATTERN FILE: 16.296.05
FIRST VSAPI PATTERN DATE: 19 Oct 2020
VSAPI OPR PATTERN File: 16.297.00
VSAPI OPR PATTERN Date: 20 Oct 2020

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

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

Identify and terminate files detected as Coinminer.Win64.MALXMR.GAIM

[ Learn More ]
  1. Windows Task Manager may not display all running processes. In this case, please use a third-party process viewer, preferably Process Explorer, to terminate the malware/grayware/spyware file. You may download the said tool here.
  2. If the detected file is displayed in either Windows Task Manager or Process Explorer but you cannot delete it, restart your computer in safe mode. To do this, refer to this link for the complete steps.
  3. If the detected file is not displayed in either Windows Task Manager or Process Explorer, continue doing the next steps.

Step 4

Scan your computer with your Trend Micro product to delete files detected as Coinminer.Win64.MALXMR.GAIM. 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.