dashboard
← all posts

Zero verified — our bug, not theirs

2026-11-19

In July, The files agents actually read listed Web Bot Auth among the things nobody uses: "Zero verified requests in 51 days." In August, the Unidentified bucket correction repeated it: Web Bot Auth "still sits at zero verified requests." Both times the number was right, and both times we drew the wrong conclusion from it. Zero meant our verifier accepted nothing, not that nobody was signing.

What was actually arriving

Every request that carries a signature is checked and its result stored with the visit. Between 12 June and our first fix on 3 November the log recorded 314 signed requests, and all 314 are marked failed:

The weekly count grew from three in June to around twenty since late August. None of the 314 touched a honeypot. They read robots.txt and the sitemap and occasionally a grounding page, which is what a well-behaved crawler does.

A dashboard column of failures from one large, well-documented crawler, with no successes from anyone, should have looked like a verifier problem from the start. Nobody here looked at the failure column.

Why every signature failed

AhrefsBot publishes its keys where the protocol says, at /.well-known/http-message-signatures-directory: two Ed25519 keys, each labelled with its own thumbprint. Their directory was in order. Our verifier had three faults. For a crawler signing in the current form of the protocol, any one of them was enough to reject every request. All three were real, and all three are fixed. As it turned out, none of them was what stopped AhrefsBot. That came fourth.

1. We parsed the header in its old format. A signed request names the location of its keys in a Signature-Agent header. Early drafts made that a plain string:

Signature-Agent: "https://crawler.example/…"

Revision -04 of the directory draft, published on 20 October 2025, changed it to a dictionary keyed by the signature's label:

Signature-Agent: sig1="https://crawler.example/…"

We wrote our verifier on 3 June 2026, more than seven months later, and wrote it against the string form. It was out of date on the day it shipped. Every request in the current form was rejected before a single key was fetched.

2. Our library signed the wrong thing. The new form signs one dictionary member, written as "signature-agent";key="sig1". Version 2 of the Python library we use ignored that key parameter and computed the signature over the whole header instead. The recomputed signature could never match. Version 3 resolves the member correctly. We now require it.

3. We checked the required parts by exact text. The protocol requires the signature to cover the site's address and the Signature-Agent entry. We compared against the literal string "signature-agent", which the keyed form, "signature-agent";key="sig1", never equals.

Fixing it took four attempts

The first fix handled all three faults and passed its tests. In production it still failed, because the deployed image had installed version 3 of the library while the development machine still had version 2. requirements.txt only set a minimum version, so every build picked up whatever was newest. Our workaround for version 2 broke version 3. The second fix pinned the library to version 3 and removed the workaround.

Rereading the protocol for this post turned up the third problem. The drafts we had followed expired in September 2026. Their successor is now an IETF working group document, draft-ietf-webbotauth-httpsig-protocol-01 (29 October 2026), and our verifier fell short of it in three ways. It required @authority where @target-uri is equally valid. It did not fall back to a key's thumbprint when the directory labels its keys differently. And one gap mattered more than the rest: it merged the keys of every directory a request listed. A signature covering one directory could therefore verify with a key from another. The draft forbids that outright (§5.2.2): "A verifier MUST NOT attribute a signature to a member that signature does not cover." Because nothing was ever verified, this never produced a false result. Once the first fix worked, it could have.

All three are fixed. The test suite now also checks the working group's own example signature against the pinned library, so a future update that breaks this again fails before it ships.

The fourth problem: a website is not a key directory

The last of these fixes went live on 3 November at 10:25 UTC. In the two weeks that followed, 84 signed requests arrived and exactly one verified: a single request from GeedoShopProductFinder on 6 November. AhrefsBot sent 39, ibou-search 28, Barkrowler 13, and every one of them failed. So on 13 November we started logging why each signature failed, together with the headers it came with.

The log had the answer within four days. All 27 failures it caught stopped at the same step, fetching the keys. AhrefsBot sends

Signature-Agent: "https://ahrefs.com"

and ibou-search sends Signature-Agent: https://ibou.io. Neither value names a key directory. Both name a website, and a website's address, fetched as given, returns its homepage, not keys. The directories do exist, at /.well-known/http-message-signatures-directory under each address, and the key IDs in the log match the keys published there.

The log settles two more things. AhrefsBot uses the old string form of the header, not the dictionary form from revision -04, and its signature covers "signature-agent" without a key parameter. None of our first three faults touched those requests. Whether it sent the same header before 13 November we cannot say, because headers were not logged until then. And Barkrowler, the crawler from babbar.tech, signs with the same ibou.io key as ibou-search: each of its four failures since 13 November matches a log line naming https://ibou.io and that key, to the millisecond.

Whose bug was this one? Not quite anyone's. The working group draft says a verifier "fetches that URL directly and interprets the response as a JWK Set" (§5.5), and our verifier did exactly that. But the directory draft it grew out of, draft-meunier-http-message-signatures-directory-05, uses a bare address in its own example (Appendix A.3, my_test="https://directory.test") and never says whether the value names the directory or the site. A signer who copied that example ends up exactly where AhrefsBot and ibou did.

Since 17 November our verifier reads an address with no path, or only /, as shorthand for its well-known directory. Any other URL is still fetched exactly as given. That goes beyond the letter of the working group draft: it is a concession to how signers read the specification, not something the specification asks for.

What the number says now

The fourth fix went live on 17 November at about 09:30 UTC. As of 19 November, 10 signed requests have arrived since, and all 10 verified: six from AhrefsBot and four from Barkrowler. None failed. In the two weeks before, the same two crawlers had failed 52 times.

Ten requests are a small sample, but the turn is clean: the same crawlers, the same keys, the same directories, and now they verify. ibou-search itself has not sent a signed request since the fix. Barkrowler's four followed the same pattern of paths as ibou-search's earlier visits and almost certainly used the same ibou.io key, but successes are not logged with their headers, so that is an inference.

A verified AhrefsBot request proves only that it was signed with a key from the directory at ahrefs.com. Sitting at the well-known path on Ahrefs' own domain, that directory is Ahrefs'.

What a verified request does and does not tell you

A valid signature proves that whoever controls the key directory named in the request signed it. It does not prove that the signer is honest, and anyone can host a directory. What it does give is a stable identity that cannot be borrowed: the bursts in The bots in the trap weren't the bots only worked because a User-Agent costs nothing to fake. A signature from ahrefs.com's directory cannot be faked without Ahrefs' private key. How a crawler signs a request — and what that proves explains the mechanism from the ground up.

Corrections

Sources and further reading