Linux SSH Attacks Spread XMRig Miners and Additional Malware

· Original article ↗

Summary

AhnLab analyzed attacks on poorly managed Linux servers that use SSH-scanning malware to spread XMRig miners, ShellBot, and other tools. The malware establishes persistence and disguises mining activity; the campaign appears active since at least 2023.

Key points

  • Attackers target Linux servers through SSH scanning and successful logins, using Go-written downloaders and propagation malware to install additional payloads.
  • The “run” downloader changes the current user’s password, downloads an archive, and launches an XMRig miner and the “meta” propagation malware.
  • “Meta” scans supplied address ranges using provided credentials, installs the miner on successfully accessed servers, and reports results to a remote site.
  • The miner creates a systemd service and uses watchdog and cron mechanisms to maintain execution across reboots.
  • Malware disguises processes as legitimate Linux services and uses command aliases and output manipulation to conceal activity from administrators.
  • The attackers also distributed ShellBot, a Perl-based IRC bot with DDoS and system-control capabilities, and MIG Logcleaner.
  • AhnLab recommends strong, regularly changed passwords, timely vulnerability patching, and access controls such as firewalls for publicly accessible servers.

Article Details

Attack Vectors
  • SSH scanning and login attempts against poorly managed Linux servers; after successful access, commands install downloaders and propagation malware.
  • Propagation malware scans specified address ranges for SSH services and uses supplied credentials to install additional malware.
  • The malware downloads and executes payloads, including XMRig CoinMiner variants, ShellBot, MIG Logcleaner, and XHide.
Defensive Notes
  • Use difficult-to-guess passwords and change them periodically to reduce brute-force and dictionary attacks.
  • Apply the latest vulnerability patches and use firewalls or other security products to control access to publicly accessible servers.
  • Keep V3 updated to the latest version.

Indicators of compromise

TypeIndicatorContext
DOMAINdownload[.]xrpl[.]cityMalware-download host used to retrieve the run downloader and additional payloads.
DOMAINirc[.]latShellBot C&C server address listed in its configuration.
DOMAINirc[.]undernet[.]orgShellBot C&C server address listed in its configuration.
DOMAINsad[.]latXMRig mining pool address used by the malware.
DOMAINtime[.]justnames[.]inMining pool address stored in the Discord XMRig variant's configuration.
DOMAINyoupost[.]inDestination to which the propagation malware sends attack results by HTTP POST.
IPV4143[.]20[.]185[.]252IP address listed in the article's threat indicators.
IPV4146[.]19[.]213[.]82Mining pool address used by the XMRig CoinMiner.
IPV4172[.]245[.]81[.]188Mining pool address used by the XMRig CoinMiner.
IPV4185[.]242[.]3[.]57IP address listed in the article's threat indicators.
IPV4192[.]3[.]9[.]34Mining pool address used by the XMRig CoinMiner.
IPV423[.]94[.]137[.]96Mining pool address used by the XMRig CoinMiner.
MD50d01bd11d1d3e7676613aacb109de55fMD5 hash listed in the article's malware indicators.
MD50fde38c0cfa5e5bf8e6ac2a6be0232b7MD5 hash listed in the article's malware indicators.
MD5161d62e4b7ab39f677e7a6828039ef79MD5 hash listed in the article's malware indicators.
MD52fcad1ae4a29ddb3862f3674065e7433MD5 hash listed in the article's malware indicators.
MD53565360c4102e152852976effc9aab85MD5 hash listed in the article's malware indicators.
URLhxxp[:]//download[.]xrpl[.]city/[.]b0tMalware-distribution URL used to distribute ShellBot.
URLhxxp[:]//download[.]xrpl[.]city/auto/auto[.]jpgMalware-distribution URL hosting a compressed file containing scripts, XHide, and XMRig.
URLhxxp[:]//download[.]xrpl[.]city/auto/migURL listed as malware-distribution infrastructure; the article associates MIG Logcleaner with distribution from the same address.
URLhxxp[:]//download[.]xrpl[.]city/runDownloader URL used to install malware on targeted Linux servers.
URLhxxp[:]//download[.]xrpl[.]city/test/pack[.]jpgPayload URL used by the downloader to retrieve a compressed malware package.

MITRE ATT&CK

Malware

Vendors

Products

Tools

Related Articles