2026-12-04T12:00:00

Status: blog

Is This Site Quantum-Safe? Building PQ Indicator With Claude Code

Last year I wrote about my conversation with Matthias Troyer about quantum computing, and I argued that the media panic about quantum computers stealing everyone’s Bitcoin was massively overblown. I still stand by that. Breaking a 256-bit elliptic-curve key needs millions of physical qubits, and nobody is going to rent you that machine for an afternoon.

But there is one part of the quantum threat where waiting is not an option…

PQI_Promo.png

Harvest Now, Decrypt Later

Every HTTPS connection starts with a key exchange: your browser and the server agree on a fresh secret key that encrypts everything that follows. Today that key exchange is almost always based on elliptic curves (X25519, P-256), and those are exactly what Shor’s algorithm will break once a large enough quantum computer exists.

The uncomfortable part is the timing. An attacker doesn’t need that quantum computer today. They only need to record your encrypted traffic today and store it—disk space is cheap—and decrypt it in ten or fifteen years. Medical records, legal correspondence, business plans, and trade secrets are often still valuable a decade later. This is called “harvest now, decrypt later”, and it is why the key exchange is the urgent part of the post-quantum migration. Certificates and signatures can be replaced when the quantum computers arrive, because a forged signature in 2038 can’t retroactively impersonate a server in 2026. A recorded key exchange, on the other hand, stays recorded forever.

On 2 December 2026 the NSA advised the owners, operators, and vendors of National Security Systems to immediately accelerate the transition to post-quantum cryptography, warning that “adversaries are already collecting encrypted information to decrypt once the capabilities become available.” That advisory is aimed at government systems, but the threat it describes applies to all of us. For the web, the good news is that this transition is already well under way.

X25519MLKEM768: Belt and Suspenders

In August 2024, NIST published FIPS 203, standardizing ML-KEM (formerly known as CRYSTALS-Kyber, which I mentioned in my Cryptography knowledge-base article), a key-encapsulation mechanism based on lattice problems that are believed to be hard even for quantum computers.

Browsers didn’t simply swap the old algorithm for the new one. Instead, they use a hybrid: X25519MLKEM768 performs a classical X25519 key exchange and an ML-KEM-768 encapsulation at the same time, and combines both secrets. An attacker has to break both. If ML-KEM turns out to have a weakness nobody has found yet, you still have X25519; once quantum computers can break X25519, you still have ML-KEM. Belt and suspenders.

Since Chrome 131, Chrome, Brave, and other Chromium-based browsers offer X25519MLKEM768 to every website by default. But offering is only half of the handshake. Whether the connection actually uses it depends entirely on the server. And your browser doesn’t tell you…

Well, technically it does: if you open the Developer Tools, go to the Security panel, and look at the connection details, you will find the key exchange there. But nobody does that for every site they visit.

A Shield in the Toolbar

So I built PQ Indicator: a free browser extension for Chrome, Brave, and other Chromium-based browsers. Its toolbar icon shows, at a glance and without a click, whether the site in the current tab negotiates post-quantum key exchange:

  • Green shield with a check mark: the site uses X25519MLKEM768.
  • Red shield with a cross: classical key exchange only (X25519, P-256, or even still TLS 1.2).
  • Red shield with an open padlock: plain HTTP, not encrypted at all.
  • Grey and outline shields: being checked, could not be checked, or not applicable (browser pages, your local network, sites you have excluded).

PQI_Screenshot_1.png

Click the icon, and you get the details: the key-exchange group, the TLS version, and when the site was last checked.

PQI_Screenshot_2.png

Why a Browser Extension Can’t Just Look

Here’s where it gets interesting from an engineering perspective. Chromium extensions have no API to read which key exchange the browser negotiated. The only way would be the debugger permission, which shows a big warning banner on every page and gives an extension far more power than it should ever need for this job. That was a non-starter for me.

So PQ Indicator asks a small service instead. When you visit a site that the extension hasn’t seen recently, it sends the hostname to pqi.sh. The service then opens its own TLS connection to that site, sending a ClientHello that offers exactly what a current Chromium browser offers—the same key shares, cipher suites, and extensions, in the same order, checked against a packet capture of Brave. It reads the server’s first reply, notes which key exchange the server chose, and closes the connection without completing the handshake. The answer is cached, so popular sites answer instantly, and your browser caches it, too, so a site you visit every day is only checked about once a week.

The service runs as a Cloudflare Worker, and the TLS framing is hand-written while all actual cryptography comes from the audited @noble libraries. (The ML-KEM key share has to be a valid encapsulation key, by the way—some servers check that and reject random bytes.)

One fun complication: a Cloudflare Worker cannot open raw TCP connections to Cloudflare’s own IP addresses, and more than a third of the most popular websites are served by Cloudflare. For those sites, the probe is handed to a tiny checking program running in a Cloudflare Container, which can reach them. Because the extension’s answer is only useful if it is correct, I compared it against what a real headless Brave browser negotiates for a corpus of 216 hand-picked websites: 216 out of 216 matched.

Privacy as a Feature

An extension that tells a server which websites you visit had better be careful about it. I treated privacy as a hard requirement from the first line of the specification:

  • Only the hostname leaves the browser—never the path, the query, page content, cookies, or any user, device, or install identifier.
  • Names of local and intranet hosts are never sent, incognito tabs are not checked unless you turn that on, and you can exclude any domain you like.
  • Hostnames travel in the body of a POST request, never in a URL, so they don’t show up in any web server log. The service keeps no logs, no IP addresses, and no identifiers—just the cache of results and a few aggregate counters (how many checks were green, red, or failed).

The full privacy policy is short and readable.

PQI_Screenshot_4.png

How Quantum-Safe Is the Web?

Since I had a probe anyway, I couldn’t resist pointing it at the 10,000 most popular websites, as listed in Google’s Chrome UX Report. The first measurement (taken from my home network on 4 December 2026) brought a pleasant surprise:

  • 77.9 % of the reachable sites in the top 10,000 already negotiate X25519MLKEM768, and 79.3 % in the top 1,000.
  • For sites served by Cloudflare, it’s 98 %: Cloudflare turned post-quantum key exchange on for all of its customers, and only sites that have explicitly turned off TLS 1.3 miss out.
  • For everyone else, it’s 63 %. Most of the rest still negotiate plain X25519 over TLS 1.3, and 8.5 % of all measured sites still speak only TLS 1.2.
  • There are interesting regional differences: .de sites are at 85 %, while .jp sites lag at 56 %.

Rather than leaving it at a single snapshot, pqi.sh/trend now measures the same fixed list every week, so we can watch the web’s post-quantum migration happen over time. And you can check any individual site on pqi.sh, with or without the extension.

PQI_Screenshot_5.png

Built in a Day With Claude Code

In my post in January, I described how Claude Code changed my relationship with software development. PQ Indicator is a perfect example of what that looks like in practice.

The git history starts at 9:43 in the morning with the design documents: a specification, an implementation plan broken into phases with acceptance criteria, and a CLAUDE.md file with the ground rules—including a list of “stop and ask me first” points for anything that costs money, touches my Cloudflare account, adds a permission to the extension, or deploys to production. By the evening, there were 67 commits, a feasibility spike, the TLS probe library, the Worker, the extension, the Container prober, a security review, the weekly trend, around 490 automated tests—and the extension was submitted to the Chrome Web Store.

What made this work was not speed, though. It was the same co-development pattern I wrote about in January, now with Claude Code running Opus 5.5:

  1. The spec is the source of truth. Whenever reality contradicted the design—like discovering that Workers also can’t connect to Cloudflare-hosted addresses outside Cloudflare’s published IP ranges—Claude stopped, explained what it found, and proposed a spec change for me to decide on. Twenty-one numbered decisions are now recorded in the specification.
  2. Tests before claims. “It works” had to mean a test or a recorded real-world run showed it, which is how the 216-out-of-216 ground truth came about.
  3. Pushback goes both ways. When I asked to remove a sentence from the privacy policy that I thought was outdated, Claude showed me the line of code that made it still true—and found a screenshot in the store listing that was the actual inconsistency.

The bottleneck really was never the ideas…

Try It

PQ Indicator is free, has no ads, and requires no account:

  • Install it from the Chrome Web Store (works in Chrome, Brave, and other Chromium-based browsers).
  • Pin the shield to your toolbar (puzzle-piece menu → pin), and browse as usual.
  • Check a site or follow the weekly trend at pqi.sh.

It’s a small thing, a little shield in the corner of the browser. But I find it oddly satisfying to watch it turn green on more and more of the sites I use every day—and to know which ones I’d rather not trust with anything I want to keep private for the next fifteen years…


References