Token theft, replay and forgery

Track: Threats and detection

Reviewed

In short: Once someone signs in, their access travels as a token. An attacker who steals, replays or forges that token skips the password and the MFA entirely. NIST IR 8587, final since 15 September 2026, is the reference on protecting tokens.

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

  1. How long do sessions and tokens last by default, and can I shorten them?
  2. What happens to active sessions when risk changes?
  3. Does the product send or receive shared security signals?
  4. Where is the token-signing key held, and who can use it?

Related pages

    Sources

    Next lesson

    Per-call authorization and human approval for AI agents

    3 min read