Subscribe to the Non-Human & AI Identity Journal

How should security teams stop cryptojacking in cloud environments?

Security teams should restrict who can create and scale compute, monitor for unexpected API activity, and revoke exposed secrets immediately. Cryptojacking is easiest when attackers can turn valid cloud access into mining capacity without triggering obvious security alerts. Identity scope, billing telemetry, and workload detection should be correlated so that resource abuse is visible quickly.

Why This Matters for Security Teams

Cryptojacking in cloud environments is not just a cost anomaly. It is usually a privilege and visibility problem, where attackers convert valid access into compute spend, container capacity, or serverless execution. Once secrets, API tokens, or overly broad roles are exposed, mining activity can blend into ordinary automation unless identity scope and billing telemetry are tied together. NIST’s NIST Cybersecurity Framework 2.0 is useful here because the defensive problem spans both governance and detection.

The practical lesson from NHIMG research is that cloud abuse often follows identity weakness rather than malware sophistication. In the Snowflake breach and the 230M AWS environment compromise, exposed access paths mattered more than any single payload. That is why cryptojacking response should focus on who can create resources, who can scale them, and how fast suspicious access can be revoked. NHI Management Group’s research shows that control failures are often visible in identity management before they become visible in billing.

In the 2026 Infrastructure Identity Survey, 67% of organisations still rely heavily on static credentials despite the risks they pose to modern cloud workloads, which is exactly the kind of access pattern cryptojacking operators exploit. In practice, many security teams encounter runaway cloud spend only after the attacker has already turned valid access into mined output.

How It Works in Practice

Stopping cryptojacking means reducing the attacker’s ability to turn one foothold into elastic compute. Start by limiting the identities that can create instances, deploy containers, request GPU capacity, or modify autoscaling groups. Then make secret hygiene non-optional: revoke exposed API keys quickly, rotate credentials on a fixed cadence, and prefer short-lived tokens over long-lived static credentials. Current guidance suggests that the strongest control is not just MFA or perimeter filtering, but tightly scoped workload and human identities with runtime checks.

Security teams should correlate three signals:

  • Identity events, such as new access keys, unusual role assumption, or new service principals.
  • Control-plane actions, such as cluster creation, image pulls, autoscaling changes, or new scheduled jobs.
  • Usage signals, such as abrupt CPU spikes, sustained GPU utilisation, or spend growth outside expected windows.

That model aligns with the State of Non-Human Identity Security, which reports that lack of credential rotation and inadequate monitoring are among the top causes of NHI-related attacks. For implementation, pair cloud-native logging with policy-as-code and alert on behavior that does not match the identity’s expected workload. The NIST Cybersecurity Framework 2.0 can structure this across identify, protect, detect, and respond. In cloud-native environments, Codefinger AWS S3 ransomware attack demonstrates how quickly exposed access can be weaponised once an attacker gains a legitimate control path.

These controls tend to break down when logging is fragmented across accounts and regions, because the attacker can mine in a low-visibility project while the compromised identity appears routine elsewhere.

Common Variations and Edge Cases

Tighter cloud access controls often increase operational overhead, requiring organisations to balance abuse prevention against developer velocity and incident response speed. Best practice is evolving, especially for multi-account cloud estates, Kubernetes, and serverless platforms where different teams own different parts of the control plane. A single deny rule rarely solves cryptojacking if autoscaling, CI/CD runners, or orphaned service accounts can still launch workloads.

One edge case is third-party integrations. If a vendor or automation pipeline has broad OAuth or API access, mining activity can originate from a trusted integration rather than an obvious attacker session. Another is ephemeral compute: short-lived jobs can make mining harder to detect because the abuse window is small, but the cost impact can still be large if scale-out is fast. That is why response playbooks should include both kill-switches for compute and immediate revocation for secrets.

NHI Management Group’s 2026 Infrastructure Identity Survey shows that 69% of security leaders believe identity management must fundamentally shift for agentic systems, which reinforces a broader cloud lesson: static access assumptions age badly. Where environments rely on long-lived keys, shared admin roles, or unowned cloud subscriptions, cryptojacking defenses become reactive instead of preventative. There is no universal standard for this yet, but the operational pattern is clear: reduce standing privilege, shorten credential lifetime, and detect spend drift as an identity signal rather than a finance-only problem.

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 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 DE.CM Continuous monitoring is essential for spotting cloud mining abuse early.
OWASP Non-Human Identity Top 10 NHI-03 Cryptojacking often starts with exposed or poorly rotated non-human credentials.
CSA MAESTRO IAM Cloud identity and workload privilege must be constrained to stop abusive scaling.

Replace static cloud secrets with short-lived, rotated credentials and revoke exposed keys immediately.