Token replay

Theme: Threats

Reviewed

In short: Token replay is an attack where someone captures a valid access token and reuses it to make requests as the original holder. In the desk's scores it falls under no standing credentials, weighted 20%, where NewCore, Aembit, Descope and Cyera Identity score highest at 9 out of 10.

How it works

Most access tokens are bearer tokens. Whoever holds the token can use it, and the server cannot tell who sent it. An attacker may read a token from a log file, a proxy or a leaked configuration. They can then send it from anywhere until it expires.

Defences limit what a stolen token is worth. Short lifetimes shrink the window. Audience restrictions mean a token for one service fails at another. Sender-constrained tokens, using DPoP or mutual TLS, bind the token to a key the attacker does not hold, so a copied token is rejected. Servers can also detect reuse of one-time values and flag requests from unexpected places.

Monitoring helps too. A token used from two places at once, or from an unusual network, is a strong sign of replay.

Why it matters for AI agents

Agents handle many tokens and pass them between tools, so tokens end up in more places. An MCP server that forwards a token it received to another service makes replay easier. The MCP specification forbids that token passthrough for this reason. Sender-constrained, short-lived tokens make a leaked agent token far less useful. Agents also run unattended, so a replayed token may go unnoticed for longer than a human session would. Combining short lifetimes, audience checks and sender constraints gives layered protection. The desk's credentials criterion rewards products that publish how they bind and limit agent tokens.

Example

An agent's debug log records a full access token. An attacker with log access copies it and calls the CRM API. Because the token was bound with DPoP, the CRM rejects the request without the agent's private key.

Related terms

  • DPoPDPoP, Demonstrating Proof of Possession, binds an OAuth token to the client's key, so a copied token fails without that key.
  • Certificate-bound tokens (mTLS)Certificate-bound tokens are OAuth tokens tied to the client's TLS certificate, accepted only over mutual TLS with that certificate.
  • Short-lived credentialsShort-lived credentials are tokens, keys or certificates that expire quickly, so a leaked one stops working soon after it is stolen.
  • Session hijackingSession hijacking is taking over an established session, usually by stealing its cookie or token, so the attacker acts as the signed-in party.

Where it shows up in our scores

Criterion: No standing credentials for agents, weighted 20% of the total. It asks: Does the agent receive short-lived, scoped credentials instead of holding a long-lived secret?

Highest on this criterion: NewCore, Aembit, Descope and Cyera Identity, at 9 out of 10. Computed from the current scores on the AI agent access governance ranking.

Top five on No standing credentials for agents, out of 10
ProductScore
NewCore9
Aembit9
Descope9
Cyera Identity9
Astrix Security8

All 45 glossary terms