Access token impersonation is the use of one access token to act as another identity, usually by exchanging, forwarding or substituting the token in an API or federated session. It is used in delegated authentication flows, where the resulting token carries the permissions of the impersonated user or service account.
How Access Token Impersonation Works
Access token impersonation is a delegated access pattern: one token is presented, exchanged, or forwarded so a call is authorised as another principal. The security significance is that the visible caller and the effective caller can differ, so downstream systems must understand whether they are authorising the original actor, an impersonated user, or a service acting on behalf of someone else.
That distinction matters most in federated and API-driven environments, where token handling often spans identity providers, resource servers, gateways, and application code. The core question is not just whether a token is valid, but whether its delegation path is intended, bounded, and auditable. OAuth token exchange and audience restriction are the most common design mechanisms used to make that delegation explicit.
RFC 8693: OAuth 2.0 Token Exchange is the clearest standard reference for the pattern because it formalises exchanging one token for another in delegated flows.
Why It Is Dangerous
Impersonation becomes risky when a token can be reused outside its intended context, when the target audience is too broad, or when a downstream service trusts the presented token without checking whether the caller is allowed to act in that role. In practice, the danger is privilege transposition: a low-trust path can inherit high-trust permissions by presenting a token that was never meant to be portable.
That is why sender-constrained tokens, strict audience validation, and short-lived delegation are so important. They reduce the chance that a stolen, forwarded, or substituted token can be replayed elsewhere and make it harder for a compromised intermediary to silently act as another identity.
RFC 9449: OAuth 2.0 Demonstrating Proof of Possession (DPoP) and RFC 8707: Resource Indicators for OAuth 2.0 both address this risk by binding tokens more tightly to the client and the intended resource.
Where Organisations Should Look for Exposure
Exposure often hides in delegated authentication flows, service-to-service integrations, “on behalf of” APIs, federation bridges, and legacy components that accept bearer tokens without strong audience checks. The practical inventory question is which applications can exchange tokens, which can forward them, and which can impersonate users or service accounts across trust boundaries.
Vendor documentation and platform advisories are especially important because token impersonation is usually implemented through product-specific delegation features. Organisations should verify whether the identity provider, API gateway, and application stack agree on who may exchange tokens, what claims survive the exchange, and whether the resulting token is constrained to the right target and lifetime.
RFC 6749: The OAuth 2.0 Authorization Framework provides the baseline protocol model, while Model Context Protocol: Authorization specification shows how modern delegated access designs increasingly try to prevent token passthrough and require audience-bound tokens.
Detection, Containment, and Recovery
Detection should focus on token exchange events, unusual impersonation chains, abnormal audiences, and access patterns that do not match the nominal user or service. A token that suddenly appears in a different application, tenant, or resource scope than expected is often the first sign that delegation has been abused or the token has been replayed.
Containment usually means revoking the affected token, invalidating dependent sessions, and reviewing all delegated paths that could have accepted the same credential. If the impersonated principal was a user, the blast radius may include mailbox access, API access, or downstream business actions; if it was a service account, the impact can extend into automation, data pipelines, or integration trust.
Token and Session Security Guide is the most directly useful NHIMG reference here because it covers token theft, replay, revocation, and sender-constrained protections in the same operational context.
Risk and Threat Considerations
Access token impersonation is dangerous because it can turn delegated trust into silent privilege transfer. If an attacker steals, forwards, or substitutes a token, they may not need to break authentication again, they only need the surrounding systems to accept the impersonation path as legitimate.
Failure mechanism: A bearer token, exchange flow, or forwarding proxy is trusted without sufficiently binding the token to the original client, the intended audience, or the approved delegation path, allowing replay or misuse as another identity.
Impact: The attacker can inherit the impersonated principal’s permissions, reach protected APIs or sessions, and persist through trusted automation or federated access paths until the token or dependent session is revoked.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Token impersonation depends on token lifecycle and revocation discipline. |
| AC-3 — Access Enforcement | Impersonated tokens carry permissions that enforcement must still constrain. | |
| AU-2 — Event Logging | Delegated token use needs traceable records for exchange and impersonation events. | |
| Recommendation — Manage token issuance, rotation, revocation, and validation to limit impersonation abuse. Enforce the effective permissions of the impersonated identity at every resource server. Log token exchange and impersonation events so unusual delegation can be investigated. | ||
| OWASP ASVS | V8 — Authorization | Impersonation changes who is authorised, so authorization checks must remain explicit. |
| V10 — OAuth and OIDC | Token exchange and federated delegation are core OAuth and OIDC concerns. | |
| Recommendation — Verify authorization decisions against the intended actor, audience, and delegated scope. Apply OAuth and OIDC requirements that bound token use, audience, and delegation. | ||
Practitioner Guidance
Why practitioners should care: Treat impersonation as an authorization boundary, not just a token-handling detail. The key operational decision is whether a given flow is genuinely delegated and bounded, or whether it is quietly allowing one principal to exercise another principal’s authority without enough visibility.
Common misunderstanding: A valid token is not automatically safe just because it was issued by a trusted identity provider. The important question is whether the token is valid for this caller, this audience, and this purpose, and whether the resulting permissions are still appropriate after exchange or forwarding.
Practitioner takeaway: Make token delegation explicit, constrain where impersonation is allowed, and review any flow that can change the effective identity behind an API call.
Related resources from NHI Mgmt Group
- Guide: Pretexting Guide
- Should organisations prioritise token controls before expanding SaaS access?
- What is the difference between access token abuse and refresh token abuse?
- What is the difference between OAuth and token exchange for AI agent access?
- Should applications use one OAuth access token for multiple APIs?
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 November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org