Look for repeated SSH authentication failures, unexpected changes to SSH authorized_keys, new or edited cron entries, disabled firewall rules, sustained high CPU usage, and outbound connections to known mining pools. A single signal may be noisy, but several together strongly suggest an endpoint has been compromised and is being used for illicit mining and lateral scanning.
Why This Matters for Security Teams
A Linux endpoint that is mining crypto without permission is rarely just “busy.” It is usually part of a broader compromise that may also include credential theft, persistence, and lateral movement. The operational risk is not only resource exhaustion. It is also signal loss, because the same host activity that drives mining can mask other attacker actions and distort monitoring, patching, and incident triage.
Security teams often miss this pattern when they treat high CPU as a performance issue instead of an intrusion indicator. Mining processes can hide behind legitimate service names, custom scripts, or abused package managers, while attackers use SSH access and scheduled jobs to keep the host available. Control baselines such as NIST SP 800-53 Rev 5 Security and Privacy Controls are useful here because they tie endpoint hardening, account monitoring, and logging together instead of treating them as separate tasks.
In practice, many security teams encounter crypto mining only after the endpoint has already been repurposed for persistence and outbound scanning, rather than through intentional anomaly detection.
How It Works in Practice
On Linux, illicit mining typically follows a predictable chain. An attacker gains access through exposed SSH, weak credentials, leaked secrets, or an abused application path. Once inside, the actor tries to stay resident, reduce visibility, and maximize uptime. The miner itself may be fetched from a remote host, unpacked into a writable directory, and launched through cron, systemd, or a shell script that restarts it if killed.
At the host level, the signs usually cluster in three places: identity, process activity, and network behavior. Identity clues include repeated authentication failures, new SSH keys, unusual sudo use, and unexpected changes to accounts or startup files. Process clues include sustained CPU and memory usage, unfamiliar binaries in temporary paths, renamed processes, and disabled security tooling. Network clues include outbound connections to mining pools, strange DNS patterns, and periodic traffic bursts that align with mining difficulty updates or pool reconnects.
- Check control mappings for logging and monitoring against what the endpoint actually records.
- Correlate process trees with login history, scheduled tasks, and recent file writes.
- Compare active network destinations against known-good application baselines, not just threat feeds.
- Inspect persistence points such as cron, systemd timers, shell profiles, and SSH authorized_keys.
Current guidance suggests treating a single indicator as a lead, not proof. The strongest cases combine abnormal authentication, persistence changes, and outbound mining traffic. These controls tend to break down on lightly managed servers, container hosts with shared process visibility, and endpoints where logging is incomplete because short retention hides the initial compromise.
Common Variations and Edge Cases
Tighter monitoring often increases alert volume and operational overhead, so organisations have to balance rapid detection against the risk of noise from legitimate compute spikes or admin activity. That tradeoff is especially important on Linux servers used for build jobs, research workloads, or batch processing, where high CPU is expected.
There is no universal standard for this yet, but best practice is evolving toward context-based investigation rather than single-indicator rules. For example, a mining process running in a container may not look unusual until it is paired with image tampering, host namespace access, or unexpected network egress. Likewise, a compromised host may show no obvious miner binary if the attacker is using a script loader, memory-resident payload, or a legitimate package repurposed for abuse.
Another edge case is cloud and virtualised Linux infrastructure, where ephemeral instances can disappear before full triage. In those environments, current guidance suggests prioritising centralised telemetry, immutable logging, and access review over manual host inspection alone. When identity controls are weak, the same SSH session that launches a miner can also open the door to wider NHI abuse through stolen keys, service credentials, or automation tokens.
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 NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | DE.CM | Continuous monitoring is needed to spot mining-related host and network anomalies. |
| MITRE ATT&CK | T1053 | Scheduled tasks and cron are common persistence methods for miners. |
Instrument endpoint and network telemetry so unusual CPU, persistence, and egress patterns trigger review.
Related resources from NHI Mgmt Group
- What are the signs that a Linux runtime security agent is missing io_uring activity?
- What are the signs that crypto activity may be linked to money laundering or identity fraud?
- Why do REST endpoint wrappers fail when used as MCP tools?
- What breaks when endpoint DLP is used as the only loss-prevention control?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 1, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org