Join our Newsletter — 33% off our NHI Course
Home› Glossary› Authentication, Authorisation & Trust› OpenID Connect Token Theft
Authentication, Authorisation & Trust

OpenID Connect Token Theft

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Authentication, Authorisation & Trust

OpenID Connect token theft is the stealing of an OpenID Connect token, usually an ID token, access token, or refresh token. The stolen token can then be replayed to impersonate the user or application until it expires or is revoked, bypassing the normal authentication step.

What OpenID Connect Token Theft Means

OpenID Connect token theft happens when an attacker steals an ID token, access token, or refresh token and reuses it to act as the user or application. The security problem is not the theft alone, but the replay value of the token, which can preserve access even after the original login flow has ended.

Because OpenID Connect sits on top of OAuth 2.0, token theft is dangerous in both authentication and delegated access paths. A stolen token can let an attacker skip interactive sign-in, inherit the victim's trust context, and move into application or API access that was meant to be temporary and bounded.

Why Token Theft Is So Dangerous

Token theft matters because tokens often represent a completed trust decision. If the token is valid, the relying party may accept it without rechecking the original user action, device, or browser session. That makes the token a portable access artifact, especially when it is a bearer token.

Refresh tokens raise the stakes further because they can extend access beyond a single session. If an attacker captures a refresh token, they may mint fresh access tokens repeatedly until revocation or expiry breaks the chain, which turns a single theft event into sustained impersonation.

OpenID Connect is especially sensitive to token handling mistakes in browsers, mobile apps, reverse proxies, and identity providers. The biggest failures usually involve exposure at rest, interception in transit, front-channel leakage, weak session binding, or overly permissive token reuse across services.

How Organisations Check Exposure and Contain It

Exposure checks start with knowing where tokens are issued, stored, logged, forwarded, and exchanged. Teams should review application inventories, identity provider settings, browser-based flows, mobile storage, proxy handling, and any integrations that may pass tokens between services or environments.

It is also important to review whether the token is actually audience-restricted, sender-constrained, or loosely reusable. Guidance such as OpenID Connect Core 1.0, RFC 9700: Best Current Practice for OAuth 2.0 Security, and RFC 9449: OAuth 2.0 Demonstrating Proof of Possession (DPoP) helps frame how tokens should be issued and constrained.

Where OpenID Connect is used for sign-in, the trust boundary also includes the identity provider, session layer, and federation configuration. If the attacker can steal a token from the client or from an intermediary, the relying party may still accept it until the token expires or is revoked.

Detection, Response, and Post-Compromise Review

Detection usually depends on noticing token misuse rather than the theft itself. Sudden geography changes, impossible travel, new user agents, unusual token refresh rates, audience mismatches, or access from unfamiliar applications can all indicate replay or abuse after token theft.

After a suspected compromise, the review should extend beyond the token that was seen in use. Organisations often need to investigate session state, refresh token issuance, identity provider logs, consent grants, application registrations, and any downstream systems that accepted the stolen token as proof of identity.

For this reason, a good post-incident review asks not only where the token was stolen, but also what it unlocked. One practical reference point is Token and Session Security Guide, which covers token lifetime, validation, revocation, replay, and sender-constrained designs.

Standards & Framework Alignment

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

MITRE ATT&CK addresses the attack and risk surface, while OWASP ASVS, NIST SP 800-53 Rev 5, CIS Controls v8 and NIST SP 800-63 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV6 — AuthenticationOIDC token theft is a failure of authentication assurance and token handling.
V7 — Session ManagementStolen OIDC tokens often function as replayable session material across the trust boundary.
Recommendation — Verify token issuance, validation, and lifecycle controls to prevent replay after theft. Bind sessions tightly and limit reuse so stolen tokens cannot impersonate a user for long.
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)OIDC tokens are used to authenticate users and establish accepted identity claims.
IA-5 — Authenticator ManagementToken theft risk depends on protecting, rotating, and revoking identity-bearing material.
AC-2 — Account ManagementToken theft can require account or session revocation and recovery actions at scale.
Recommendation — Require strong user authentication and validate identity assertions before granting access. Manage token lifetime, storage, rotation, and revocation as high-value authenticators. Revoke affected access promptly and review accounts, sessions, and consents tied to stolen tokens.
CIS Controls v8CIS-5 — Account ManagementToken theft turns account/session governance into an incident response and containment priority.
Recommendation — Harden account lifecycle controls so stolen tokens lose usefulness quickly.
MITRE ATT&CKT1528 — Steal Application Access TokenThe term directly describes adversary theft of reusable tokens for access and impersonation.
Recommendation — Map token theft activity to T1528 and hunt for token acquisition and replay paths.
NIST SP 800-63Digital Identity GuidelinesThe subject depends on how authenticators, federation, and replay resistance are designed and evaluated.
Recommendation — Apply digital identity guidance to strengthen authenticator and federation assurance against replay.

Practitioner Guidance

Why practitioners should care: OpenID Connect token theft is a shortcut around normal authentication, so the real control problem is limiting replay value. Treat tokens as high-value credentials, not passive plumbing, because their compromise can convert a single browser or session exposure into account or API impersonation.

What to watch for: Review where tokens are stored, how long refresh tokens live, whether sessions are bound to the client, and whether logs or redirects might expose token material. A useful operational benchmark is Identity Provider and SSO Security Guide, which focuses on session and token security, token signing key protection, and federation monitoring.

Practitioner takeaway: The best defence is to reduce the value of any stolen token, not just to detect the theft after the fact.

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 November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org