Join our Newsletter — 33% off our NHI Course

Why do NHI and cloud controls matter when attackers deploy miners?

Because miners are often installed through stolen service access, remote admin tools, or workload abuse. Weak governance over non-human identities, such as overprivileged service accounts or exposed API keys, gives attackers the entry path they need. Strong identity controls reduce the chance that a simple miner becomes the first visible symptom of broader compromise.

Why This Matters for Security Teams

Cryptominers are rarely the real objective. They are often the noisy byproduct of attackers who have already found a reusable foothold through service accounts, CI/CD tokens, exposed API keys, or cloud permissions that were never meant to be permanent. That makes NHI governance and cloud control coverage central to detection and containment, not just to identity hygiene. When non-human access is overly broad, a miner can be deployed quickly, scaled across workloads, and used to test how far the attacker can move.

NHIMG research shows the gap is real: in Ultimate Guide to NHIs, 97% of NHIs are reported to carry excessive privileges, and 79% of organisations have experienced secrets leaks, with 77% causing tangible damage. Those conditions make cloud miner incidents more than a cost problem. They become a signal that identity sprawl, weak rotation, and missing segmentation are already in play. Current guidance also aligns with NIST SP 800-53 Rev 5 Security and Privacy Controls, which treats access control, configuration, and auditability as shared controls across identity and infrastructure.

In practice, many security teams discover miner activity only after the attacker has already used the same access path for broader cloud abuse.

How It Works in Practice

Attackers usually pair identity abuse with cloud-native exploitation. A stolen workload token, overly permissive IAM role, or leaked secret can be used to create compute instances, mount existing storage, or hijack Kubernetes jobs for mining. The miner itself may be small and disposable, but the path that enabled it is usually durable. That is why cloud controls and NHI controls have to be designed together: one limits what the identity can do, the other limits what a compromised workload can reach.

Practitioners generally focus on four layers:

  • Reduce standing privilege for service accounts, automation users, and workload identities.
  • Use short-lived credentials and rotate secrets quickly, especially for cloud and pipeline access.
  • Restrict egress, instance creation, and container runtime permissions so a miner cannot easily spread.
  • Alert on anomalous API calls, unusual compute consumption, and identity reuse across environments.

This is where NHIMG guidance on 52 NHI Breaches Analysis matters: breach patterns repeatedly show that compromised non-human identities become the operating system for the incident, not just one compromised account. External threat intelligence from the CISA cyber threat advisories and technique mapping in the MITRE ATT&CK Enterprise Matrix help teams map miner activity to privilege escalation, persistence, and cloud resource abuse.

These controls tend to break down in multi-cloud estates with shared secrets, inherited roles, and poor workload visibility because the same credential can authorize both the initial intrusion and the mining workload creation.

Common Variations and Edge Cases

Tighter cloud and identity controls often increase operational overhead, requiring organisations to balance rapid automation against the risk of accidental lockout or brittle deployment pipelines. That tradeoff is real in ephemeral build systems, auto-scaling platforms, and managed services that rely on service-to-service trust. Best practice is evolving, and there is no universal standard for this yet, but the direction is clear: move away from long-lived credentials and toward scoped, time-bound workload access.

Some miner cases do not begin with stolen credentials at all. They begin with exposed management planes, misconfigured Kubernetes dashboards, or public container registries that allow an attacker to deploy workloads without ever touching a human account. In those environments, cloud guardrails matter as much as identity governance. That is why the Top 10 NHI Issues and the CSA Cloud Controls Matrix are useful together: one frames the identity failure modes, the other frames the cloud control expectations.

For organisations building stronger detection, the practical question is not only whether a miner is running, but whether the identity that enabled it should have been able to create that workload in the first place. When that answer is unclear, the environment is already overexposed.

Standards & Framework Alignment

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

OWASP Non-Human Identity Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Miner abuse often starts with stale or overprivileged non-human credentials.
CSA MAESTRO T1 Agentic and workload identities need scoped authorization and runtime guardrails.
NIST CSF 2.0 PR.AC-4 Access control is the first line against stolen service access used for mining.
NIST AI RMF AI RMF supports governance for autonomous systems that may abuse cloud resources.
NIST Zero Trust (SP 800-207) SC.L4 Zero Trust limits lateral movement after a miner foothold or token theft.

Inventory NHI secrets, rotate them aggressively, and remove credentials that still enable cloud workload abuse.