Posts

4 posts, 1 series

Securing AI Agents, Layer by Layer

A series in 4 parts, best read in order. About 67 minutes in all.

  1. The Building Blocks

    An AI agent decides for itself, while it runs, which tool to call and with which arguments. That is what makes it useful, and it is also why something else has to check what it does. This post follows one payment from start to finish and shows, step by step, which component checks what.

    , 17 min read

  2. Shared Signals

    The design from the first post checks every tool call. What it cannot do is notice when something changes after the token was issued, such as the user’s account being disabled. This post adds one building block and one path, so that the authorization server can tell the rest of the design about a change as it happens. The standard for this is the OpenID Shared Signals Framework.

    , 14 min read

  3. Delegation

    To run a tool, an MCP server often has to call another API. It is not allowed to pass on the token it received, and if it calls with its own credential, the next API no longer knows who the request is for. This post adds that next hop to the design. It shows how OAuth Token Exchange issues a new token for the next API, one that still names the user and records who is acting for her, and it then covers Transaction Tokens inside a service and chaining across domains.

    , 18 min read

  4. Proof of Possession

    Every token in this design so far is a bearer token, which means that whoever holds it can use it. This post binds each token to a key that only the agent holds, using DPoP or mutual TLS, so that a token copied out of a log is useless on its own. It also explains what this does not stop, and where the agent’s key should come from, which is the agent’s own workload identity.

    , 18 min read