An attack where a valid authentication token is stolen and replayed by an attacker to gain unauthorised access. Short token lifespans and token binding are the primary mitigations.
Expanded Definition
Token theft is the compromise of a valid bearer credential, such as a session token, OAuth access token, or API token, followed by replay from a different context to impersonate the original identity. In NHI security, the risk is not password guessing but possession of something that is already trusted.
Usage in the industry is still evolving because vendors describe the same event as token replay, token hijacking, or session theft. The practical distinction is that token theft usually preserves the original claims and privileges until expiry or revocation, so detection must focus on anomalous use rather than login failure. That is why short lifetimes, binding tokens to device or workload context, and fast revocation matter. NIST Cybersecurity Framework 2.0 reinforces this by treating identity assurance, access control, and continuous monitoring as linked functions rather than separate tasks, which is exactly how token theft must be handled in production. For identity-bound deployments, NIST Cybersecurity Framework 2.0 is a useful baseline for translating theft into control requirements.
The most common misapplication is treating token theft as a password incident, which occurs when teams reset credentials but leave the stolen token active.
Examples and Use Cases
Implementing token protections rigorously often introduces operational friction, requiring organisations to weigh user and automation convenience against shorter sessions, stricter binding, and more frequent reauthentication.
- An attacker steals a cloud console access token from a developer laptop and uses it from another region before the token expires.
- A malicious actor replays an OAuth token captured in a support ticket or chat export, which is a pattern seen in incidents like the Salesloft OAuth token breach.
- A compromised browser session token lets an intruder bypass password resets, MFA challenges, and normal login checks until the session is invalidated.
- In CI/CD, a stolen deployment token can be replayed to push artefacts, modify pipelines, or exfiltrate secrets, which aligns with the exposure patterns documented in Guide to the Secret Sprawl Challenge.
- For workload identity systems, token theft becomes especially dangerous when the same credential is reused across services instead of being scoped to one execution context, a design issue that NIST Cybersecurity Framework 2.0 would treat as a control gap in identity protection.
In practice, the deciding factor is often whether the token is bound to a device, workload, or transport layer. Without that binding, theft and replay are much easier to automate.
Why It Matters in NHI Security
Token theft is one of the fastest ways to turn a single exposed credential into broad access because the attacker inherits whatever the token can already do. In NHI environments, that can mean application access, cloud control-plane actions, data export, or privilege escalation inside automation workflows. The problem is amplified when tokens are duplicated, overused, or left active after offboarding, because a stolen token may remain valid long after the original owner has forgotten it.
NHIMG research shows the scale of the issue: 44% of NHI tokens are exposed in the wild, and 91% of former employee tokens remain active after offboarding. That makes revocation discipline just as important as detection. The broader secrets picture is equally stark, with The 2025 State of NHIs and Secrets in Cybersecurity showing how exposed tokens and duplicated secrets persist across teams and tooling. When these failures intersect with cloud sessions or agentic systems, theft becomes a governance problem, not just an incident response problem. Related cases such as the Internet Archive breach and the Dropbox Sign breach show how rapidly token exposure can become enterprise compromise.
Organisations typically encounter the full impact only after an abnormal access event or data exfiltration, at which point token theft becomes operationally unavoidable to address.
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 address the attack and risk surface, while NIST CSF 2.0 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-02 | Token theft is a core NHI secret exposure and replay risk. |
| NIST CSF 2.0 | PR.AA | Identity and access assurance controls map directly to stolen token risk. |
| NIST Zero Trust (SP 800-207) | section 3.2 | Zero trust requires continuous verification after token issuance, not blind trust. |
Continuously validate context and deny access when token use deviates from expected trust signals.
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on May 16, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org