Permissionn
Blog

How an AI agent proves who it is

User agents and IP addresses are easy to fake. Signed requests aren’t. A plain-language look at HTTP Message Signatures and Web Bot Auth, and what to do with them.

Every request on the web carries a user agent string, a few words that say what software sent it. Anyone can type anything there. An impostor that wants to look like a well-known assistant only has to copy its name. IP address lists help a little, until the agent runs from a cloud provider that thousands of others share.

A signature on every request

The stronger answer is a digital signature. The agent holds a private key and signs the important parts of each request: the method, the address, the time and, when there is one, the body. Anyone with the matching public key can check the signature. A forged or altered request fails the check, and a replayed one is caught by its time and a one-time value.

The format comes from HTTP Message Signatures (RFC 9421), an internet standard. Web Bot Auth builds on it for automated clients: the agent publishes its public keys at a well-known address on its own domain, /.well-known/http-message-signatures-directory, and points to them from each request. Because the keys live on the agent operator’s domain, a passing signature also tells you who runs the agent.

What a business should do with it

  • Treat a valid signature as identity, not as permission. It tells you which agent called, not whether its user wanted this.
  • Treat a failed signature as a strong warning. An agent that claims a name and can’t prove it is more suspicious than one that claims nothing.
  • Expect a mix. Some agents sign, many don’t yet. Decide what unsigned automation may do, usually browse but not buy, rather than turning it all away.

Payment networks are adding their own layers on top: Visa’s Trusted Agent Protocol and Google’s Agent Payments Protocol carry the agent’s identity and the person’s authorization into checkout. They fit the same pattern: prove the agent, then check what the person agreed to.

Permissionn checks all of these on each request and tells you, in one answer, who called, whether it proved it, and what you decided.

// Act as an agent: sign each request with your key (Node.js SDK)
import { signRequest } from '@permissionn/sdk/signing';
const headers = signRequest({ method: 'POST', url, body, agentId: 'my-agent', keyid, privateKey });
await fetch(url, { method: 'POST', headers, body });

See who is already at your door

Point Permissionn at one route and your agent report starts filling in from the first request.