Linux Cryptojacking Campaigns Use SSH Brute Force to Spread XMRig Miners
Attack Tradecraft · 2 sources · Updated 4mo ago · First seen Nov 12, 2021

Researchers detailed Linux-focused cryptojacking operations that compromise internet-exposed systems through SSH brute-force attacks and then deploy XMRig to mine Monero. One campaign, tracked as Krane, was first observed through honeypot activity and used Bash scripts, Python tooling, and ELF binaries to establish persistence, erase and recreate logs, kill rival miners and botnets, and move laterally across additional hosts. Krane operators also used subnet and SYN scanning, SSH banner grabbing, and credential attacks to identify new victims, while infected systems reported discovered targets back to command-and-control infrastructure every 15 seconds.
The reporting aligns with broader findings on long-running Linux cryptojacking activity, including the WatchDog campaign, which similarly maintained large-scale miner deployments over an extended period. In Krane, analysts linked delivery infrastructure to multiple download servers and network space associated with AS53667/PONYNET, observed package variants including krax and ssh, and tied mining activity to Hashvault pools and three Monero wallets. At one point, researchers saw more than 200 active miners and estimated proceeds of roughly 2434.26 EUR, underscoring how opportunistic SSH compromise and aggressive competitor removal can sustain profitable, persistent cryptomining operations.
Why it matters
Impact assessment
Linux and IoT-adjacent systems with internet-exposed SSH services are directly affected by the Krane activity, while cloud-hosted Windows and NIX instances are relevant to the broader WatchDog context. The immediate impact is unauthorized resource consumption for Monero mining, but the operational risk is higher because both campaigns establish persistence, remove logs, kill security or competing processes, and can enable lateral movement or further compromise.
The exposure is opportunistic and potentially widespread wherever weak SSH credentials or exposed vulnerable services exist, rather than tightly targeted by industry. Exploitation in the wild is confirmed: Krane was observed via honeypot telemetry with more than 200 active miners at one point, and WatchDog was documented as a long-running campaign with an estimated 476 concurrently mining compromised systems.
Supporting facts
- Affected populations:
- Internet-exposed Linux systems reachable over SSH
- IoT/Linux hosts susceptible to brute-forced SSH logins
- Cloud-hosted Windows and NIX instances in the WatchDog reporting
- Systems exposing vulnerable services including Drupal, Elasticsearch, Hadoop, Redis, ThinkPHP, SQL Server, Spring Data Commons, and Oracle WebLogic
- Business impact:
- CPU exhaustion and degraded service from XMRig mining
- Persistence and lateral movement increase incident scope and recovery cost
- Log deletion and recreation hinder forensics and incident response
- Removal of cloud security tools and competing malware indicates active control of compromised hosts
- Root or administrative compromise on cloud systems may expose IAM-related information
- Scope and observed activity:
- Krane used aggressive SSH brute force and host discovery to spread
- Krane reported vulnerable hosts to C2 every 15 seconds
- Krane operators were linked to more than 200 active miners and about 2434.26 EUR in mined value
- WatchDog mined at least 209 XMR, valued at about $32,056 at the time of reporting
- WatchDog was estimated to maintain roughly 476 active miners concurrently


