mabus.ai

Signed agent requests

How does a website know which agent sent a request? The agent signs it.

Web Bot Auth is an open IETF draft built on HTTP Message Signatures (RFC 9421). An agent signs parts of each request with its own key. It names the place its public keys live in a Signature-Agent header. The site fetches those keys and checks the signature.

I built a strict verifier for it. You can try it on this page, or call it from your own agent. It accepts Ed25519 and nothing else, and it stops at the first failed check.

Spec
draft-ietf-webbotauth-httpsig-protocol-01 and RFC 9421
Keys
Ed25519 only
Window
5 minutes max
Nonce
Required
Dependencies
None. WebCrypto, plus Node's own modules for the directory fetch.

Try it

Your browser makes a throwaway Ed25519 key pair. The private key never leaves your browser. The site receives only the public key, publishes it as a key directory for 10 minutes, then forgets it.

Checking for Ed25519 support in your browser…

Signature-Agent form

Request your browser sent

Press a button above.

Checks on the server

    Signature base your browser signed

    …

    Signature base the server rebuilt

    …

    What the verifier checks

    1. The request carries Signature, Signature-Input and Signature-Agent, and all three parse as Structured Fields.
    2. The signature has tag="web-bot-auth" and covers @authority (or @target-uri) and its own Signature-Agent member.
    3. created and expires are present. The window is at most 5 minutes, with 30 seconds of clock allowance. The draft only recommends 24 hours or less. The tighter limit is this site's policy.
    4. keyid is a JWK thumbprint. A nonce is present. The draft does not require one; this site does.
    5. The algorithm is Ed25519. Nothing else is accepted.
    6. The verifier rebuilds the signature base from the request it actually received.
    7. It fetches the key directory named in Signature-Agent and picks the key by keyid. Keys are cached by the pair (directory URL, keyid), never by keyid alone.
    8. It verifies the Ed25519 signature.
    9. Only then does it record the nonce. A forged or tampered request cannot use up a real agent's nonce. A second request with the same nonce fails as a replay.

    If any early check fails, the verifier stops before it fetches keys or runs crypto. Results come in three kinds, as the draft suggests: verified, invalid (a check failed), and unverified (the key could not be found, so no decision either way).

    Call it from your own agent

    Send any request to https://mabus.ai/agents/verify (or any path below it) with a Web Bot Auth signature. Publish your public key as a JWK Set at an https URL, ideally /.well-known/http-message-signatures-directory on your own domain, and put that URL in Signature-Agent. The answer is a JSON report of every check.

    GET /agents/verify HTTP/1.1
    Host: mabus.ai
    Signature-Agent: sig1="https://agent.example/.well-known/http-message-signatures-directory"
    Signature-Input: sig1=("@authority" "@method" "@path" "signature-agent";key="sig1");created=1795000000;keyid="<JWK SHA-256 thumbprint>";expires=1795000060;nonce="<random, base64>";tag="web-bot-auth"
    Signature: sig1=:<base64 Ed25519 signature>:
    • Status 200 means verified. 401 means invalid or unverified, with an Accept-Signature header that says what to sign. 400 means a header did not parse. 429 means slow down (30 requests a minute per address).
    • Both Signature-Agent forms work: the dictionary form above, and the older plain string "https://…", which must then be covered as "signature-agent" without a key.
    • The directory must answer 200 over https on port 443. Redirects are not followed. Hosts that resolve to private, loopback or link-local addresses are refused. The fetch times out after 3 seconds and stops at 16 KB and 10 keys.
    • Use a fresh nonce and a short expires for every request.

    For comparison, Cloudflare runs its own public checks. https://crawltest.com/cdn-cgi/web-bot-auth answers 200, 401 or 400 for a signed request. Its research server at http-message-signatures-example.research.cloudflare.com is the draft's demonstration server. Their open-source web-bot-auth code can sign requests. This verifier does not depend on any of them.

    How it works

    • The verifier is a small library with no dependencies. It uses only WebCrypto, apart from one file that does the guarded directory fetch in Node. The browser demo signs with the same signature-base code the server verifies with.
    • The tests rebuild the signature bases of the draft's Ed25519 test vectors (appendix E.2) and RFC 9421's example B.2.6 exactly, and check each failure path.
    • The demo key directories live in this site's memory. When the verifier sees one of its own demo directory URLs, it reads the key from memory instead of fetching itself over the internet. The draft allows this: a verifier that already holds the keys does not need to fetch them.
    • The RFC 9421 test key is refused, as the draft asks.
    • Not built yet: signed directory responses (the draft makes them optional for keys a verifier resolves itself), and @query-param and other component parameters, which this verifier refuses with a reason.

    Sources

    • draft-ietf-webbotauth-httpsig-protocol-01, 29 October 2026: sections 5.2 (what to sign), 5.2.1 (Signature-Agent forms), 5.4 (validation, (URL, key) lookup), 5.5 (key directory), 6.7 (SSRF), 6.8 (test keys), appendix C (outcomes, caching, replay), appendix E (test vectors).
    • RFC 9421, HTTP Message Signatures: sections 2.5 (signature base), 3.2 (verifying), 7.2.2 (replay), appendix B (test keys and examples).
    • RFC 8941, Structured Field Values. RFC 7638 and RFC 8037, JWK thumbprints for Ed25519 keys.
    • Cloudflare, Web Bot Auth (last updated 8 October 2026): the plain-string Signature-Agent form, test endpoints, unsupported components.
    • OWASP SSRF Prevention Cheat Sheet, which the draft points to.