Web Bot Auth: Verifying AI Agents Cryptographically

Web Bot Auth: Verifying AI Agents Cryptographically

The agent operator signs its requests under RFC 9421 and names its published key directory; your site checks the signature against those keys. Mechanism, IETF status, and implementation paths.

User-agent strings can be typed by anyone and IP allowlists rot; Web Bot Auth replaces both with cryptography. The agent operator signs its requests under RFC 9421 HTTP Message Signatures and publishes its public keys in a key directory that the request names in a Signature-Agent header (defined in the Web Bot Auth Internet-Draft, not in RFC 9421); your site verifies the signature and learns that a holder of a key published in that directory signed the covered parts of the request, a signature that can still be replayed within its lifetime — not who operates the agent, whether the agent is benign, or whether the request is authorized. This guide covers the mechanism, its IETF standardization status, the two implementation paths, and the failure semantics that keep verification honest — including why unsigned must not mean blocked.

The problem signatures solve

Until recently, a website had two ways to decide whether a bot was who it claimed to be, and both were weak. A user-agent string is a self-description: any scraper can type a well-known crawler's name into a header, and many do. Published IP ranges are stronger but operationally brittle — they lag when operators re-deploy, they break behind proxies, and they turn every new legitimate agent into a manual allowlist errand. Both signals were tolerable when bot traffic was mostly search crawlers with low stakes per request.

Delegated agent traffic raises those stakes. When an agent is fetching pages, calling capability endpoints, or acting on a user's behalf, the site's serving decisions — rate limits, representation, access to protected surfaces — increasingly hinge on knowing the operator behind the request. A signal anyone can fake supports none of that.

The cryptographic answer is old in shape and new in application: the operator holds a private key and signs its outbound requests; the receiving site fetches the operator's published public key and verifies the signature. Under the Web Bot Auth draft, a valid signature over a resolved key directory URL proves that a holder of a key that URL publishes signed the covered parts of the request — not whoever typed a crawler's name into a header. The draft notes that the request can still be replayed, within bounds set by the signature's lifetime and covered components, and that a valid signature says nothing about who operates the agent, whether the agent is benign, or whether the request is authorized. One direction note keeps this article precise: this is enablement infrastructure, built so legitimate agents can be recognized and served confidently. Defending against adversarial automation is the security literature's opposite-direction craft. And verification only establishes which published key signed the covered parts of the request — whether to serve, shape, or decline a verified agent is a policy decision that lives above this topic.

How the mechanism works

The foundation is RFC 9421, HTTP Message Signatures — an IETF Proposed Standard since February 2024, independent of anything agent-related. It defines how to sign selected components of an HTTP request (method, authority, path, selected headers) so that the receiver can verify integrity and origin, with validity windows to bound replay.

Web Bot Auth is the application of that standard to automated traffic. It is specified in an Internet-Draft of the IETF Web Bot Auth working group, draft-ietf-webbotauth-httpsig-protocol (revision 01, October 29, 2026 — an Internet-Draft, not an RFC; as of Nov 2026). It descends from individual drafts: draft-meunier-web-bot-auth-architecture (last revision 5, March 2026) was marked as replaced on July 1, 2026 by draft-meunier-webbotauth-httpsig-protocol, which the working-group document in turn replaced (its revision 00 was posted on September 1, 2026). The shape, per revision 01 of the working-group draft:

  • The agent operator generates a keypair — the draft defines key IDs for RSA, EC, and Ed25519 keys and uses Ed25519 in its examples, and Cloudflare's verification uses only Ed25519 keys, ignoring other key types (as of Nov 2026) — and publishes the public key in a JWK Set at an HTTPS URL that the requests name in their Signature-Agent header. The draft also registers a well-known path, /.well-known/http-message-signatures-directory: when the Signature-Agent value is that well-known URI, the identifier is still the URL, but the URL now names a domain, and the domain operator stands behind the key set. Cloudflare's verification requires a key directory at that path (as of Nov 2026).
  • Each signed request carries the RFC 9421 Signature and Signature-Input headers, and a Signature-Agent header, defined by the draft rather than by RFC 9421, points the verifier at the key directory. The working-group draft requires a signed request to carry Signature-Agent, a requirement that first appeared in revision 02 of the preceding individual draft (August 2026); architecture revision 5 and that individual draft's revisions 00 and 01 only recommended it.
  • The receiving site resolves the directory, checks the signature over the covered components, and checks the validity window.
http
GET /docs/pricing HTTP/1.1
Signature-Agent: sig1="https://agent-operator.example/.well-known/http-message-signatures-directory"
Signature-Input: sig1=("@authority" "signature-agent";key="sig1");created=1751972400;expires=1751973000;keyid="...";tag="web-bot-auth"
Signature: sig1=:...:

This sample uses the dictionary form of Signature-Agent, which revision 01 requires signers to send, and the tag="web-bot-auth" parameter that the draft requires on Signature-Input. Cloudflare's verification instead implements the earlier bare-string form (Signature-Agent: "https://…") and fails to verify messages that use the dictionary form (as of Nov 2026), so a signer that targets both needs to know which form each verifier accepts.

Each verification step is cacheable, and each failure mode is distinct — a request can be unsigned, carry an invalid signature (the draft counts a signature that fails its freshness check, such as an expired one, as invalid), or point at a directory that cannot be resolved. Together with a valid signature, those are four outcomes, and they deserve four different treatments, which is the subject of the implementation section.

What makes this shape scale is that it needs no bilateral onboarding. Sites do not pre-register agents; operators do not request access site by site. An operator publishes keys once, the way it publishes crawl documentation, and any site on the internet can verify — discovery-based trust, the same deployment logic that made robots.txt workable at web scale.

Standardization status, honestly

Precision matters here, because "backed by an IETF standard" and "is an IETF standard" are different claims — and only one of them is true today.

The foundation, RFC 9421, is a published Proposed Standard: stable, implemented, not going anywhere. The Web Bot Auth application on top of it is a draft series — revision 5 of the individual architecture draft was published in March 2026, alongside a registry and agent-card draft. The IETF chartered a Web Bot Auth working group in October 2025, and the working group posted revision 00 of its own Internet-Draft for the protocol (draft-ietf-webbotauth-httpsig-protocol) on September 1, 2026. The charter's milestones — April 2026 for standards-track specifications on authentication techniques and on conveying additional information about bots, sent to the IESG, and August 2026 for a Best Current Practice operational specification sent to the IESG — have both passed, with that draft at revision 01 (as of Nov 2026); milestones are working-group targets, not commitments. The working-group draft's authors are affiliated with Cloudflare and Google, Cloudflare verifies the signatures as part of its verified-bots program (as of Nov 2026), and an OpenAI engineer, quoted by Cloudflare in May 2025, said that OpenAI signs all Operator requests with RFC 9421 HTTP Message Signatures. For a draft, that backing is notable.

It is still a draft. Header names, directory formats, and registry details can change between revisions, and an implementation that hardcodes today's spelling will need maintenance. The engineering consequence is not "wait" — it is seams: keep the draft-level details (header names, directory paths, key formats) in one swappable module, and treat that module as a maintained component with an owner who re-checks it as the working group publishes.

One design fact disciplines everything else in this guide: a verifier has to expect unsigned requests. Under the working-group draft, a client chooses whether to sign its requests, and each origin decides how to handle unsigned ones and can ask for a signature; the draft notes that an unsigned request does not establish whether the sender is human or automated, or whether it is evading identification (revision 01, Sections 4.6 and 6.11, as of Nov 2026). A verifier that treats absence-of-signature as hostility would misclassify legitimate traffic that is simply unsigned. Verification infrastructure in 2026 is forward-deployed — built now, decisive later.

Implementing verification

There are two honest paths onto this layer, and they differ in work and control.

Path one: inherit it. A CDN or bot-management layer can verify Web Bot Auth signatures itself and expose the result for your rules or origin to use — Cloudflare documents its verification as part of its verified-bots program, with the result populating its cf.bot_management.verified_bot field (as of Nov 2026); check each provider's documentation for how it exposes the result. This is the least work and the least control: coverage follows the provider's registry, and the provider's classification is the fact your application consumes. For sites already behind such a provider, this path is the sensible default — the engineering task reduces to reading the provider's verification result and logging it.

Path two: verify in your own middleware. Resolve the operator's key directory from the Signature-Agent header, cache the key set with sane TTLs and rotation tolerance, verify the signature over the covered components with an RFC 9421 library, and stamp the request context with the verified Signature-Agent URL — the agent's identifier under the draft — and the verification outcome. The operational discipline is what keeps this path safe: hard timeouts on directory resolution so verification can never become a request-path availability risk, clock-skew allowance on validity windows, and a cache policy that survives an operator rotating keys without a global cache flush.

Either way, design the failure semantics before writing code:

OutcomeMeaningTreatment
Valid signatureSigned with a key published at the Signature-Agent URL; can still be replayed, within limits set by its lifetime and covered components; does not show who operates the agent, whether it is benign, or that the request is authorizedTag with that URL as the agent identifier; highest confidence
No signatureNo claim made; does not show whether the sender is human or automatedNormal traffic at declared-UA confidence — never blocked for absence alone
Invalid signatureClaim made and failed (including an expired signature)Stronger negative signal than absence; flag it
Unresolvable directoryCannot check the claimTreat as unsigned, log for follow-up; never fail the request on your own timeout

The second row is the one to design most carefully. Unsigned is not evidence of malice — it is the internet, mid-transition. Absence downgrades confidence; it must not trigger blocking, or the verifier has quietly become a policy engine nobody chartered. Every outcome lands in the structured logs this topic's identification layer defines, where it becomes the strongest rung on the signal ladder.

What verification does not decide

Verification produces a fact: the covered parts of this request were signed with a key published at Signature-Agent URL X. Everything after that fact is someone else's decision, and keeping the separation legible in code is part of the implementation. The middleware tags; the policy layer — configured by whoever owns the business decision — consumes the tag. A team that hardcodes serve-or-block logic inside its verification module has fused two jobs that will need to change on different schedules for different reasons.

The trust chain also has a top. Verifying the signature does not verify the agent operator's customer, the delegated task, or any mandate behind it — end-user attribution belongs to protocol layers above this one, and where transactions are involved, to the commerce readiness literature entirely outside this topic.

And the maintenance ledger, stated plainly: this is draft-stage infrastructure on a stable cryptographic base. The base — RFC 9421, the keypair, the signature math — will not move under you. The application details — header names, directory conventions, registries — will, until the working group finishes. Budget for a small, owned, swappable verification seam, re-checked as revisions land, and the layer stays cheap. Built that way, Web Bot Auth is the rare piece of the agent stack you can adopt early with confidence: the likely cost is updating header formats and key-discovery details as revisions land, and the payoff is knowing — rather than guessing — which published key directory stands behind a request.

Project Inquiry