Join our Newsletter — 33% off our NHI Course

Crypto-Mining Malware

Crypto-mining malware is malicious software that hijacks systems to mine cryptocurrency without permission. It typically consumes unusual compute resources, may connect to mining pools, and can be associated with compromised credentials or broader intrusion activity. Investigating it requires correlation across telemetry sources, not just a single alert.

How Crypto-Mining Malware Works

Crypto-mining malware is not just “software that uses CPU.” It is malicious code that quietly appropriates compute, memory, storage, and power so the operator can mine cryptocurrency at someone else’s expense. In practice, the payload may run on endpoints, servers, containers, cloud instances, or VMs, and it often blends into normal process activity until resource spikes, fan noise, billing growth, or degraded application performance expose it.

The mechanics matter because mining is usually a persistence game. Attackers may drop a miner directly, but they often first obtain access through stolen credentials, exposed remote services, vulnerable applications, or malicious packages. That is why crypto-mining malware is frequently a symptom of broader intrusion rather than a standalone nuisance. The NHIMG Amazon AWS Hacked Accounts Crypto-Mining case shows how compromised IAM credentials can turn cloud capacity into mining infrastructure.

Common Entry Paths and Persistence Patterns

Crypto-mining malware commonly arrives through weakly protected internet-facing systems, stolen tokens or keys, trojanised software, or supply-chain compromise. Once inside, it may establish persistence with scheduled tasks, startup scripts, service changes, container restarts, or modified images. In cloud environments, the attacker may prefer short-lived execution bursts that are harder to spot than a noisy long-running host process.

Because the objective is continuous resource theft, miners often disable security tools, kill competing processes, or spread across multiple hosts. The NHIMG CircleCI Breach illustrates the broader pattern of session-token theft and secret exposure that can precede downstream abuse, while the Shai Hulud npm malware campaign shows how malicious packages can expose secrets and widen the blast radius.

Detection and Investigation Signals

Mining activity is usually easier to confirm by correlation than by a single alert. Useful signals include sustained high CPU or GPU use, unusual outbound connections to mining pools, new or anomalous processes, unexpected child processes, changes in startup behaviour, and cloud billing spikes that do not match business demand. In many cases, a miner alone is not the whole story, so analysts should look for the access path, the initial payload, and any credential or secret compromise that enabled deployment.

Correlation also helps separate mining from legitimate batch workloads or analytics jobs. A server under heavy load is not automatically compromised, but a host that is mining, phoning home, and showing lateral movement indicators deserves immediate investigation. The right question is not only “is this a miner?” but “what else did the attacker gain?”

Why Crypto-Mining Malware Matters to Security Teams

Crypto-mining malware creates direct cost, availability, and trust impacts. It can reduce application performance, increase cloud spend, shorten hardware lifespan, and hide a deeper compromise that could later be used for data theft, ransomware staging, or persistence. In mature environments, it is treated as both a resource-abuse issue and a compromise indicator, not merely an endpoint cleanliness problem.

That broader view is especially important when mining appears in cloud or CI/CD estates. If the attacker can run code there, they may also be able to access secrets, pivot into adjacent systems, or weaponise the same foothold for other objectives. The operational damage is often the visible part; the hidden risk is what the miner says about the environment’s exposure.

Risk and Threat Considerations

Crypto-mining malware is risky because it converts trusted compute into attacker-owned infrastructure while often staying quiet enough to delay detection. Even when the immediate goal is “just mining,” the same access path can expose credentials, persistence mechanisms, and other systems that matter far more than the mining itself.

Failure mechanism: The malware succeeds when an attacker gains execution on a system, establishes persistence, and uses local or cloud resources long enough to generate value while blending in with normal workload behaviour.

Impact: Organisations see degraded performance, higher infrastructure cost, possible service instability, and a stronger likelihood that the miner is only one stage of a larger intrusion.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK address the attack and risk surface, while CIS Controls v8 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
CIS Controls v8 CIS Control 8 — Audit Log Management Mining detection depends on correlated logs and telemetry across hosts and cloud.
CIS Control 10 — Malware Defenses Crypto-mining malware is malware and needs preventive and detective safeguards.
CIS Control 6 — Access Control Management Compromised credentials and excessive access often enable miner deployment and persistence.
Recommendation — Centralise and retain logs that expose resource abuse, process execution, and suspicious outbound mining traffic. Deploy malware defenses that block, detect, and isolate mining payloads and droppers. Remove unnecessary access paths that attackers can use to deploy and sustain mining malware.
MITRE ATT&CK T1496 — Resource Hijacking Crypto-mining malware is a direct form of adversary resource hijacking.
T1078 — Valid Accounts Many mining campaigns begin after attackers abuse stolen credentials or keys.
T1021 — Remote Services Remote access is a common path for deploying miners across hosts and cloud workloads.
Recommendation — Map mining indicators to resource-hijacking detections and investigate the original foothold. Hunt for valid-account abuse when mining appears alongside unusual administrative or cloud activity. Monitor remote-service use for anomalous execution that precedes mining deployment.

Practitioner Guidance

What to watch for: Treat unexplained compute spikes, miner pool connections, and new launch mechanisms as compromise leads, not isolated performance issues. The most useful investigations combine host telemetry, network evidence, cloud billing, and identity or secret review so the initial access path can be identified.

Practitioner takeaway: If you remove the miner but do not find how it arrived, you have probably only cleaned up the symptom.