COINMINER_COINHIVE.SM2-JS

 Analysis by: John Anthony Banes

 ALIASES:

JS/Miner (AVG); Trojan.JS.Miner.m (Kaspersky); JS.Webcoinminer, Wasm.Webcoinminer (Norton)

 PLATFORM:

Windows, Linux, MacOS, Android, iOS

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

  • Threat Type: Coinminer

  • Destructiveness: No

  • Encrypted: No

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Dropped by other malware


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 may be hosted on a website and run when a user accesses the said website.

  TECHNICAL DETAILS

File Size:

262,243 bytes

File Type:

JS

Memory Resident:

Yes

Initial Samples Received Date:

01 May 2018

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.

It may be hosted on a website and run when a user accesses the said website.

Other Details

This Coinminer does the following:

  • This JavaScript is embedded into websites to run a miner for Monero cryptocurrency.
  • It uses the system's central processing unit (CPU) resources to mine for cryptocurrency.

NOTES:

This coinminer checks either of the following before it runs its coinminer:

  • WebAssembly
  • asm.js

The script accepts the following relevant parameters:

  • Target number of mining threads per tab
  • Throttle rate
  • Execution / start - mode
  • Target number of hashes to solve

It can have the following start modes:

  • IF_EXCLUSIVE_TAB - The miner will only start if no other tabs are already mining.
  • FORCE_EXCLUSIVE_TAB - The miner will always start and immediately kill all miners in other tabs that have not specified CoinHive.FORCE_MULTI_TAB.
  • FORCE_MULTI_TAB - The miner will always start.

It has the capability to monitor the following events:

  • open
  • authed
  • close
  • error
  • job
  • found
  • accepted
  • optin

It sends events and other data to the following URLs/Websocket Shards:

  • wss://{BLOCKED}1.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}2.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}3.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}4.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}5.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}6.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}7.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}8.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}9.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}0.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}1.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}2.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}3.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}4.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}5.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}6.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}7.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}8.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}9.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}0.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}1.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}2.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}3.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}4.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}4.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}5.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}6.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}7.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}8.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}9.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}0.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}1.{BLOCKED}ve.com/proxy
  • wss://{BLOCKED}2.{BLOCKED}ve.com/proxy

It accesses the following libraries:

  • https://{BLOCKED}ve.com/lib
  • https://{BLOCKED}ve.com/captcha
  • https://{BLOCKED}ve.com/media/miner.html
  • https://{BLOCKED}mine.com/authenticate.html

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

14.214.08

FIRST VSAPI PATTERN DATE:

26 Apr 2018

VSAPI OPR PATTERN File:

14.215.80

VSAPI OPR PATTERN Date:

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

Close all opened browser windows

Step 3

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