Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› How can security teams detect cryptomining in the…
Cyber Security

How can security teams detect cryptomining in the cloud?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 19, 2026 Domain: Cyber Security

Security teams detect cryptomining in the cloud by watching for sustained CPU or GPU spikes, new processes or containers, unexpected egress, and identities creating resources outside normal patterns. They should compare costs, scale events and logins to known workloads, then investigate exposed credentials, overly permissive roles and compromised APIs used to launch miners.

How to Spot Cryptomining Activity in Cloud Telemetry

Detection starts with pattern recognition, not a single alert. Cryptominers usually create a mix of sustained compute pressure, repeated scaling, noisy process activity and unusual network behaviour. The most useful signal is when those technical symptoms line up with identity or resource actions that do not match the workload’s normal deployment pattern.

In practice, teams should separate expected bursty usage from abuse. A batch job can spike CPU, but it should do so on known schedules, from known identities, with known images and destinations. When compute spikes appear alongside fresh containers, new instances, unfamiliar regions or odd logins, the probability of mining rises quickly.

For cloud teams, the cloud control plane matters as much as the workload layer. The answer becomes stronger when telemetry shows resource creation by unexpected principals, changes to autoscaling, or API activity that does not fit normal deployment behaviour. A useful starting point is to anchor baseline patterns to a Cloud Security Guide, then compare current activity against those expected account, logging and architecture norms.

Which Cloud Signals Most Often Distinguish Mining from Legitimate Load?

CPU or GPU saturation alone is not enough, because legitimate workloads can also be compute-heavy. The stronger indicators are persistence and inconsistency: load that stays high when no business process should be running, egress to unfamiliar pools or endpoints, and process trees that do not match the approved application stack. Container environments add another clue, because miners are often launched as short-lived jobs or sidecars to hide inside normal orchestration noise.

Cost and scale telemetry can sharpen the picture. Cryptomining frequently produces an out-of-family cost curve, especially when small misconfigurations let an attacker fan out across many instances or nodes. If scaling events, instance launches and authentication events do not correlate with deployment windows or change records, the team should treat the environment as potentially abused rather than merely inefficient.

Credential and role abuse often sit behind those symptoms. Cloud mining is rarely just a performance issue, it is usually an access issue first, which is why resource abuse often begins after exposed keys, stolen sessions or overbroad permissions have been used to launch compute at scale. For incident patterns that show how this plays out in cloud environments, ShadowRay 2024 is a useful reference point, and Storm-1283 OAuth apps abuse 2023 shows how abused identities can translate directly into mining activity.

What Should Investigators Check Once Mining Is Suspected?

Once the signal is strong, the goal is to prove whether the activity is just waste or an active compromise. Start with the identities that created or modified compute, the images or templates used, and the API calls that launched the workload. Then check whether the same principals touched secrets, role assignments, service accounts or token material, because mining campaigns often preserve access through those paths even after the miner itself is removed.

Investigation should also look for evidence of lateral cloud abuse. A miner may be the visible payload, but the root cause may be a compromised CI/CD token, an exposed management plane key or a role that can create resources without meaningful guardrails. In that sense, cloud cryptomining is often a symptom of broader access failure, not a standalone malware event.

If the event involved rapid resource creation or unexpected credential use, a focused response playbook can help teams preserve evidence while they contain the abuse. The Cloud Incident Response Guide is a practical reference for that sequence because it ties containment, key handling and snapshot forensics to cloud-specific compromise patterns.

Risk and Threat Considerations

Cryptomining in cloud environments is risky because it converts stolen access into immediate cost, capacity and trust damage. Even when the attacker’s goal is only profit, the same access path can be reused for data theft, persistence or broader infrastructure abuse, so mining should be treated as evidence of a live compromise path rather than a nuisance workload.

Failure mechanism: Attackers exploit exposed credentials, overprivileged roles or weak API controls to launch compute and keep it running long enough to profit before detection. The compromise often survives the miner itself because the underlying identity, session or automation path remains valid.

Impact: Organisations can face unexpected cloud spend, noisy operations, reduced capacity for legitimate workloads and a wider incident response effort if the abused identity also had access to other services or secrets.

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 OWASP API Security Top 10 address the attack and risk surface, while CIS Controls v8, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-5 — Account ManagementCloud mining often starts with abused or excessive accounts and roles.
Recommendation — Review and remove unnecessary cloud account privileges and stale access paths.
NIST CSF 2.0DE.CM-01 — Monitoring for Unauthorized Personnel, Connections, Devices, and SoftwareDetecting miners depends on continuous monitoring of unusual workloads and connections.
Recommendation — Monitor cloud telemetry for unauthorized software, connections, and workload behavior.
NIST SP 800-53 Rev 5AU-6 — Audit Review, Analysis, and ReportingMining investigation requires reviewing logs for abnormal resource creation and API use.
Recommendation — Correlate cloud audit logs with workload and identity anomalies to confirm compromise.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHICloud mining frequently uses overly permissive service or automation identities.
Recommendation — Reduce cloud workload and service identity privileges to the minimum required.
OWASP API Security Top 10API2 — Broken AuthenticationCompromised cloud APIs are a common launch path for cryptomining abuse.
Recommendation — Harden API authentication and revoke exposed tokens or keys immediately.

Practitioner Guidance

What to prioritise: Prioritise identity and resource provenance before tuning detection thresholds. If you can tie the workload to a known deployment pipeline, approved image and expected principal, the event is more likely benign; if you cannot, treat it as suspicious and investigate the control plane first.

What to verify: Verify whether the suspicious workload was launched by an approved human, service or automation identity, whether the role had the ability to create new compute, and whether the same identity touched tokens, keys or session material. Those checks usually tell you faster than CPU graphs whether the cloud activity is a compromise or a workload anomaly.

Practitioner takeaway: The best cryptomining detections correlate compute anomalies with identity and API behaviour, because cloud miners usually arrive through abused access, not through the miner alone.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org