A series in 4 parts

Securing AI Agents, Layer by Layer

About 67 minutes of reading in all. Facts last checked 18 November 2026.

An AI agent decides at runtime which tool to call, and with which arguments. Most identity systems were built for clients that do what they were coded to do, and that one difference breaks several of their assumptions.

This series builds one design for keeping such an agent in check, one layer per post. Every post follows the same example: Alice asks her finance assistant, an AI agent, to pay an invoice. The steps keep their numbers from post to post, so each layer can be read as an addition to the one before.

Each layer answers a question the token cannot answer alone:

LayerThe questionAnswered by
1. The Building BlocksIs this specific call allowed?The gateway and the policy decision point, on every call
2. Shared SignalsHas anything changed since the token was issued?Shared Signals, through the policy decision point
3. DelegationWho is acting for whom, after the first hop?OAuth Token Exchange and the act claim
4. Proof of PossessionIs the one presenting the token the one it was issued to?DPoP or mutual TLS

The terms used across the series are explained in the glossary.

The parts

  1. The Building Blocks

    , 17 min read

    • An AI agent picks its tool and arguments at runtime, so the one that chooses the action cannot be the one that decides whether it is allowed.
    • A token is fixed before the call. A gateway, the policy enforcement point, asks a policy decision point about every tool call, using the AuthZEN API.
    • Two pieces have no open standard yet: the agent registry, and which token a gateway presents when it fronts several MCP servers.
  2. Shared Signals

    , 14 min read

    • A token stays valid after the user's account is disabled, and every check from Part 1 still passes.
    • The OpenID Shared Signals Framework lets the authorization server tell the rest of the design as it happens; here a signal receiver passes it to the PDP.
    • Signals are fast but not instant, silence is ambiguous, and no standard yet names an AI agent as the subject of a signal.
  3. Delegation

    , 18 min read

    • The MCP server must not pass on the token it received, and calling with its own credential hides whose request it is.
    • OAuth Token Exchange issues a new token for the next API that still names the user, and its act claim records who acts for her.
    • Inside a service, Transaction Tokens carry the context; across domains, identity chaining does the same job.
  4. Proof of Possession

    , 18 min read

    • Every token so far is a bearer token: a copy taken from a log works for anyone.
    • DPoP or mutual TLS binds a token to a key, so a stolen token without the key is refused at the gateway.
    • Neither stops a manipulated agent, which signs its own calls; that stays the PDP's job. The agent's key should come from its own workload identity.