Look for repeated short-lived invocations, unexpected writes to temporary storage, outbound connections to mining pools, and resolver activity that does not match the workload’s normal application profile. Those signals matter because Lambda abuse often aims for low-friction monetisation, not obvious persistence or lateral movement.
What mining abuse looks like inside a Lambda runtime
Lambda abuse for mining usually shows up as a bursty, cost-driven workload rather than a slow, persistent implant. The practical tell is that the function starts behaving like a resource consumer, not like its normal business logic. That means you look for runtime behaviour that is unusual for the function’s intended purpose, especially when the pattern is repeated across many invocations or across multiple versions of the same function.
A function that is mining will often spin up, consume CPU and memory, then disappear, because serverless platforms reward short bursts and hide the underlying host. The abuse can be hard to distinguish from legitimate spikes unless you compare the execution pattern with the application’s normal invocation cadence, error profile, and downstream dependencies. SPIFFE workload identity specification is useful background for understanding how strongly bounded workload behaviour should normally look in authenticated service-to-service environments.
For Lambda, the signs are less about long-term footholds and more about abnormal runtime economics: sustained high utilisation, unexpected ephemeral storage use, and network destinations that do not fit the function’s business role. A good indicator is when the workload starts looking operationally “busy” but produces no corresponding business output.
Network, storage, and resolver signals that stand out
The strongest signal is often network behaviour. Mining abuse commonly reaches out to mining pools or related infrastructure, so outbound connections to unfamiliar domains, odd ports, or repeated connections with a stable cadence deserve attention. DNS resolver activity is also important because a compromised function may resolve domains that are unrelated to the application’s normal dependency set.
Unexpected writes to temporary storage are another practical clue. Lambda mining often uses local scratch space for binaries, scripts, or downloaded helpers, so a function that normally reads request data but suddenly writes repeatedly to /tmp is behaving like a staging point. When that pattern appears together with outbound traffic, it is more consistent with abuse than with a one-off application bug.
Watch for these behaviours together rather than in isolation: repeated short-lived invocations, temporary storage writes, outbound pool-like connections, and resolver activity that does not match the workload profile. OWASP API Security Top 10 is a useful adjacent reference when the Lambda is fronting an API, because abnormal function access patterns often begin with weak API exposure or abuse of function-facing interfaces.
Why the pattern is often missed, and what it implies
Mining on Lambda is easy to miss because it does not need classic persistence, lateral movement, or noisy malware behaviour. The attacker is often optimising for low-friction monetisation, so the abuse can look like ordinary scale unless you compare it against the workload’s expected purpose and baseline. That makes cost anomalies, execution shape, and egress destinations more valuable than host-based artefacts.
The implication is that a Lambda mining case can exist even when there is little sign of interactive intrusion. A function may have valid execution rights, but still be misused for an unauthorised workload. That is why detection should focus on the function’s execution profile and external communications, not just on whether the account attached to the function looks suspicious.
Risk and Threat Considerations
Lambda mining abuse is primarily a cost and abuse-of-trust problem, but it can also indicate broader compromise of deployment pathways, credentials, or function invocation paths. The attacker’s goal is often to convert your serverless capacity into anonymous compute, which can raise bills quickly and mask other malicious activity inside legitimate-looking execution noise.
Failure mechanism: the function is induced to repeatedly execute non-business payloads, often with outbound network access and temporary storage use that support mining or helper tooling. Because the runtime is ephemeral, defenders may see many short runs without a durable host artefact to inspect.
Impact: elevated cloud spend, degraded function performance, noisy telemetry, and possible exposure of surrounding controls if the same weakness also permits broader function abuse or dependency tampering.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10, MITRE ATT&CK and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP API Security Top 10 | API8 — Security Misconfiguration | Lambda abuse often starts with exposed or misconfigured function interfaces. |
| Recommendation — Audit function-facing API controls and remove unnecessary exposure paths. | ||
| NIST SP 800-53 Rev 5 | AU-6 — Audit Review, Analysis, and Reporting | Abuse is usually detected through anomalous invocation, egress, and resolver telemetry. |
| Recommendation — Review Lambda logs and alerts for repeated short-lived execution and unusual destinations. | ||
| NIST CSF 2.0 | DE.CM-01 — Monitoring for anomalous or unauthorized activity | Mining abuse is a behavioural anomaly that should surface in continuous monitoring. |
| Recommendation — Track serverless execution baselines and alert on anomalous runtime behaviour. | ||
| MITRE ATT&CK | T1496 — Resource Hijacking | The scenario is resource hijacking for unauthorized compute use. |
| Recommendation — Map suspicious Lambda activity to resource hijacking and hunt for sustained compute abuse. | ||
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | Abuse becomes easier when a function identity can reach more resources than it needs. |
| Recommendation — Reduce Lambda permissions to the minimum needed for legitimate execution. | ||
Practitioner Guidance
What to prioritise: Compare the function’s invocation cadence, duration, memory profile, and egress destinations against a known-good baseline before you chase host-level explanations. For Lambda, the most useful evidence is often behavioural, not forensic.
What to verify: Confirm whether the function is allowed to reach the observed domains, whether the temporary storage growth matches any approved workload step, and whether the resolver activity maps to expected application dependencies. If those answers do not line up, treat the function as abused until proven otherwise.
Common mistake: teams often look only for persistence indicators and miss abuse that is deliberately transient. Mining on serverless commonly succeeds because defenders expect a malware-shaped problem, but the real signal is an execution-pattern mismatch.
Practitioner takeaway: A Lambda mining case is best treated as an execution-behaviour anomaly with cost and egress consequences, so detection should be anchored in runtime baselines and network destinations rather than in traditional endpoint persistence signals.
Related resources from NHI Mgmt Group
- What are the signs that a cloud workload is being abused for cryptocurrency mining?
- How should teams reduce the risk of exposed AI credentials being abused?
- What are the signs that a Kubernetes workload is being abused for cryptojacking or bot activity?
- What are the signs that a cloud workload has been pulled into a mining botnet?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on October 13, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org