Token theft, replay and forgery
Track: Threats and detection
Reviewed
2 min read
Strong sign-in protects the moment of authentication. What happens next is carried by a token: a session cookie in the browser, an OAuth access token for an API, a SAML assertion or an OpenID Connect ID token for an application. In the ordinary case each is a bearer credential, which means whoever holds it is treated as the person it was issued to.
Theft
The attacker copies a valid token or session cookie, for example through adversary-in-the-middle phishing or malware on a device, and uses it before it expires.
Replay
The attacker reuses a token somewhere it should not work, or after the situation has changed, such as a new location or a device that no longer passes its checks.
Forgery
The attacker creates a token from nothing by obtaining the key that signs tokens. Golden SAML is the best-known case: with a federation service's signing key, an attacker can sign assertions for any user, and applications accept them as genuine.
What NIST IR 8587 covers
NIST IR 8587, Protecting Tokens and Assertions from Forgery, Theft, and Misuse, was published as final on 15 September 2026, after a draft on 22 December 2025. It gives recommendations for authorization servers, key management and token verification. The OpenID Foundation noted that it recommends two of its specifications: the Shared Signals Framework, which defines how authorization servers and relying parties exchange security event signals, and the Continuous Access Evaluation Profile, which lets access be re-evaluated continuously rather than only at sign-in.
Controls the vendors describe
- Short token lifetimes. The MCP authorization specification says authorization servers should issue short-lived access tokens.
- Re-checking risk during a session. The Continuous Access Evaluation Profile is built for this.
- Tokens bound to one audience. MCP servers must check that a token was issued for them and reject any other.
Questions to ask any authorization server
- How long do sessions and tokens last by default, and can I shorten them?
- What happens to active sessions when risk changes?
- Does the product send or receive shared security signals?
- Where is the token-signing key held, and who can use it?
Related pages
Sources
- NIST IR 8587: https://csrc.nist.gov/pubs/ir/8587/final
- OpenID Foundation on NIST IR 8587: https://openid.net/oidf-welcomes-cisa-and-nists-new-guidance-on-token-security/
- MCP specification: Authorization (2025-06-18): https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization
Next lesson
Per-call authorization and human approval for AI agents
3 min read