How Web Bot Auth works, step by step
A practical walkthrough of signed agent requests: what is signed, where the key lives, and how a verifier decides.
Client integrity
Does the environment look intact, or automated?
Behaviour
Do timing and movement look like a person?
Agent-tell
What markers does the interaction leave?
Network
How did the request arrive?
Disclosure
Did the automation identify itself?
Consistency
Do the signals agree with each other?
A user-agent string is a claim, not a credential. Anyone can send Googlebot's; nothing about a plain request proves who sent it. Web Bot Auth exists to fix that by letting an agent sign its requests with a key it publishes.
The idea in one paragraph
Web Bot Auth applies HTTP Message Signatures to automated requests. An agent signs selected parts of its request with a private key, and publishes the matching public key in a directory anyone can fetch. A verifier that can fetch the key and check the signature learns something a header never tells it: this request really came from the party it claims.
The pieces
- A signature. The request carries signature headers describing which components were signed, and the signature itself (HTTP Message Signatures, RFC 9421).
- A key directory. The agent publishes a JWKS document at a well-known URL, so verifiers can find its public keys.
- A verifier. The receiving service fetches the directory, validates the signature against the request, and decides what the result means.
The verification loop
- Read the signature headers and the claimed key identifier.
- Fetch the agent's key directory (with caching) and find the key.
- Recompute and check the signature over the signed components.
- Return one of three outcomes.
Three outcomes, three responses
- Verified. The signature matches a published or registered key. The request is treated as authorised automation — allowed through by policy without being called human.
- Known key, bad signature. The key is known but the signature fails. That is spoofed disclosure, and it is capped hard. Claiming an identity you cannot back up is worse than staying anonymous.
- Unresolvable. No directory, no key. The signer is ignored rather than penalised, so an agent that has not published keys yet is not punished for trying.
That third case is what keeps a young standard usable. If every unverifiable signature were treated as an attack, early adopters would be blocked for doing the right thing imperfectly.
The headers on the wire
A signed request carries a small set of headers: which components were signed, the signature itself, and the directory that identifies the agent. The exact values are base64 and implementation-specific, but the shape is stable:
Signature-Input: sig1=("@authority" "signature-agent");created=1760000000;keyid="key-1"
Signature: sig1=:base64-signature:
Signature-Agent: https://agent.example.com
The verifier reads the claimed key id, fetches the agent's JWKS directory, finds the key, and checks the signature over the signed components. The directory is the trust anchor; the key id is only a pointer to it.
What can go wrong in production
- A stale directory. The agent rotated its key but your cache still holds the old one. Refresh on an unknown key id rather than treating the signer as spoofed.
- An unreachable directory. A timeout is not a failed signature. Treat it as an unresolved signer, not as deception.
- A bounded fetch. Directories can be large or slow; cap the response and the time you spend on it so a bad actor cannot turn verification into a denial-of-service.
- Multiple signatures. Verify the one whose key resolves. Do not guess which signature is “the real one” when the request carries several.
- A known key with a bad signature. That is the one case that deserves a hard response: the caller claimed an identity it cannot back up.
The three outcomes, as a table
| Outcome | What it means | Reasonable policy |
|---|---|---|
| Verified | The signature matches a published or registered key. | Admit by name, or charge by rule. |
| Known key, bad signature | The caller claims a key it cannot use correctly. | Cap hard; block or challenge. |
| Unresolvable | No directory, no key, or a timeout. | Ignore the claim; treat as unknown automation. |
What to verify in your logs
Log the signer, the key id, and the trust result — verified, spoofed, or unresolved. Do not log the raw signature unless you have a specific debugging need; it is large and it does not help a support agent. If a verified agent is later blocked by a behavioural signal, the log should let you see both facts side by side.
A verification checklist
- Check every request, or cache the decision for a short TTL. A signature on the first request does not authorize the next one.
- Treat a directory timeout as unresolved, not as spoofed.
- Refresh on an unknown key id; key rotation is normal.
- Keep verification off the hot path with a bounded cache.
A directory is a public key set, not a reputation list. A verified agent can still be unwelcome; the signature tells you who, not whether.
For a small site, the practical path is to let the platform verify and read the result. For a larger one, cache the directory and the decision, and keep the verification off the hot path. A verifier that caches a directory should also record when it last refreshed it; a stale cache is the most common cause of a false “unresolved”. The important part is the policy response, not the cryptography.
What it does not do
A valid signature proves a request came from a particular agent. It does not prove the agent is welcome, well-behaved, or acting for a human. It is one high-quality signal — the difference between "an agent says who it is" and "a stranger claims to be one" — and your policy still decides what that agent may do.
Volance verifies these signatures alongside behavioural and client signals, and publishes its own key material at a well-known directory so other parties can identify Volance's traffic in return.
Frequently asked
Does a verified signature mean the agent is safe?
No. It proves the request came from the agent that signed it. Whether that agent is welcome is a policy decision on your side.
What happens to agents that have not published keys?
Their signature is unresolvable, so it is ignored rather than penalised. They are treated as unknown automation, not as spoofed.