Coinminer.Unix.MALXMR.AA

 Analysis by: Noel Anthony Llimos

 ALIASES:

BASH/CoinMiner.AS!tr.dldr (Fortinet)

 PLATFORM:

Linux

 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:

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

  TECHNICAL DETAILS

File Size:

5,155 bytes

File Type:

Script

Memory Resident:

Yes

Initial Samples Received Date:

19 Sep 2018

Payload:

Deletes files, Terminates processes, Downloads files, 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.

Other System Modifications

This Coinminer deletes the following files:

  • /boot/grub/deamon
  • /boot/grub/disk_genius
  • /tmp/*index_bak*
  • /tmp/*httpd.conf*
  • /tmp/*httpd.conf
  • /tmp/a7b104c270
  • /tmp/ddg
  • /tmp/wnTKYg
  • /tmp/conn
  • /tmp/conns
  • /tmp/irq.sh
  • /tmp/irqbalanc1
  • /tmp/irq

Process Termination

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

  • Sourplum
  • wnTKYg
  • AnXqV.yam
  • biosetjenkins
  • Loopback
  • apaceha
  • cryptonight
  • stratum
  • mixnerdx
  • performedl
  • JnKihGjn
  • irqba2anc1
  • irqba5xnc1
  • irqbnc1
  • ir29xc1
  • conns
  • irqbalance
  • crypto-pool
  • minexmr
  • XJnRj
  • NXLAi
  • BI5zj
  • askdljlqw
  • minerd
  • minergate
  • Guard.sh
  • ysaydh
  • bonns
  • donns
  • kxjd
  • Duck.sh
  • bonn.sh
  • conn.sh
  • kworker34
  • kw.sh
  • pro.sh
  • polkitd
  • acpid
  • icb5o
  • nopxi
  • irqbalanc1
  • minerd
  • i586
  • gddr
  • mstxmr
  • ddg.2011
  • wnTKYg
  • deamon
  • disk_genius

Download Routine

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

  • http://{BLOCKED}4pq6kufc4m.tk/bashg
  • http://{BLOCKED}4pq6kufc4m.tk/bashf

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

  • http://{BLOCKED}4pq6kufc4m.tk/lowerv2.sh
  • http://{BLOCKED}4pq6kufc4m.tk/r88.sh
  • http://{BLOCKED}4pq6kufc4m.tk/rootv2.sh
  • http://{BLOCKED}4pq6kufc4m.tk/config.json
  • http://{BLOCKED}4pq6kufc4m.tk/pools.txt
  • http://{BLOCKED}4pq6kufc4m.tk/xapache

Other Details

This Coinminer does the following:

  • Checks if it is under the "root" directory upon execution.
  • It saves the following downloaded file to the following directory in order for it to run periodically.
    • /var/spool/cron/root/r88.sh ← Contains commands to download a copy of the previously downloaded component files.
  • It saves the other downloaded files in the following directory:
    • /tmp/
  • It uses the following details for its mining routine:
    • URL: pool.supp{BLOCKED}mr.com:80
    • Wallet Address: {BLOCKED}xurp9LbZdmXkTQxK9DhpzRBphLY4bRr8KAhJgUJxT7s1BKzf5DzRNaUyCcwPWZ3cFz2o1Q7y679DSRGVbdFy1xE5xPF
    • Pool Password: bashg
    • Pool Weight: 1

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

14.514.03

FIRST VSAPI PATTERN DATE:

19 Sep 2018

VSAPI OPR PATTERN File:

14.515.00

VSAPI OPR PATTERN Date:

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

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

Identify and terminate files detected as Coinminer.Unix.MALXMR.AA

[ 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.Unix.MALXMR.AA. 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.