Skip to main content
Mallory
← Back to News
credential-access-methodinitial-access-methodcommand-and-control-methodpersistence-method

Linux Cryptojacking Campaigns Use SSH Brute Force to Spread XMRig Miners

Attack Tradecraft · 2 sources · Updated 4mo ago · First seen Nov 12, 2021

Linux Cryptojacking Campaigns Use SSH Brute Force to Spread XMRig Miners

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
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Feb 17, 2021 – Nov 12, 2021
  1. Nov 12, 20215y ago

    CUJO AI identifies previously unseen Krane malware campaign

    CUJO AI reported a previously unseen IoT/Linux malware family named Krane after capturing it in a honeypot. The analysis described SSH brute-force access, Monero mining via XMRig, persistence, log wiping, and lateral propagation tooling.

    New Threat Alert: Krane Malware - CUJO AI
  2. Feb 17, 20216y ago

    Unit 42 reports WatchDog cryptojacking campaign active for two years

    Palo Alto Networks Unit 42 published research exposing the WatchDog cryptojacking campaign and stated it had been operating for two years. The reference provides no explicit anchored start date for the campaign itself beyond that characterization.

    WatchDog: Exposing a Cryptojacking Campaign That’s Operated for Two Years
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Threat actors

1 linked

Malware

3 linked

Observables

272 linked

Indicator values are masked on this page. View all 272 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.