Dev.to Security πŸ” Cybersecurity πŸ‘ 2 πŸ“– 4 min read

Is Your Site Post-Quantum Safe? I Tested Mine

On 2 December, eight of the biggest names in tech signed a two-sentence joint statement: Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle. The message was simple. Move to NIST's post-quantum cry

Is Your Site Post-Quantum Safe? I Tested Mine

On 2 December, eight of the biggest names in tech signed a two-sentence joint statement: Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle. The message was simple. Move to NIST's post-quantum cryptography standards, and do it sooner than you planned.

Most of the coverage stopped at the announcement. I run my own portfolio on Next.js behind Cloudflare, so I had a more selfish question: is my site actually protected right now? I didn't want to guess, so I tested it.

Short answer: mostly yes. The longer answer has a couple of gaps worth knowing about.

Worth a watch: the backdrop to this week's push, with Anthropic and OpenAI both hitting the brakes on frontier AI.

Why this matters now: "harvest now, decrypt later"

Nobody needs a quantum computer today to put your data at risk. An attacker can record encrypted traffic now, store it, and decrypt it years later once a big enough quantum computer exists. If anything you send over HTTPS has to stay private for five or ten years (client data, contracts, health or financial records), that clock is already running.

The fix at the transport layer is a hybrid key exchange called X25519MLKEM768. It pairs the classical X25519 curve with ML-KEM-768, the lattice-based algorithm NIST standardised as FIPS 203. If either half holds up, the session key stays safe.

Cloudflare logo on a green felt background: Cloudflare enables post-quantum X25519MLKEM768 encryption by default
Zero config, already protected: Cloudflare negotiates X25519MLKEM768 at the edge by default. 73% of its human traffic is now post-quantum.

What I found on my Next.js + Cloudflare stack

  • My domain already negotiates X25519MLKEM768. I didn't change a single setting. Cloudflare turns it on at the edge for sites it proxies.
  • 11 of the 12 services my site depends on support it too, including Google APIs, Firebase, Cloudinary, EmailJS and Vercel.
  • api.github.com and github.com over HTTPS still use classical TLS only. The odd twist: SSH to GitHub already uses ML-KEM by default.
  • Certificates are still ECDSA and RSA on every host. Post-quantum certificates haven't shipped yet.

That last point is the one people miss. The key exchange (encryption) is already protected against harvest-now attacks. Authentication, the part that proves a server is who it says it is, still runs on classical signatures. It's less urgent, because a forged signature can't be recorded today and used later, but it's the next half of the migration.

Anthropic logo on a green felt background: Anthropic co-signed the 2 December 2026 post-quantum joint statement
Anthropic signed the 2 December call to move to post-quantum crypto now, not "someday".

Check your own site in one command

You need OpenSSL 3.5 or newer. Run openssl version first to check.

openssl s_client -connect yoursite.com:443 -groups X25519MLKEM768

Then look for this line in the output:

Negotiated TLS1.3 group: X25519MLKEM768

If it's there, your site's key exchange is post-quantum. If the handshake fails, your server or CDN isn't offering ML-KEM yet.

Turning a one-off test into a CI check

A test you ran once only tells you about one afternoon. Configs drift, providers change defaults, someone moves DNS. So I wrote a small Node script with no dependencies and added it to GitHub Actions.

  • The build fails if my own domain ever stops negotiating ML-KEM.
  • It reports on every third-party host the site calls, so I can see which ones still have gaps.
  • It runs with the normal build, so I find out before a deploy, not after.

OpenAI logo on a green felt background: OpenAI co-signed the 2 December 2026 post-quantum joint statement
OpenAI signed too. When eight rivals agree on one thing, it's worth an afternoon of your time.

Blue blueprint graphic reading Run the check, Fail the build, Fix the gap: a Node and GitHub Actions gate for post-quantum TLS
Run the check. Fail the build. Fix the gap. My CI does this on every deploy.

What to do about services you don't control

You can't flip a switch on GitHub's API. Here's what you can do instead:

  1. List every host your app talks to at runtime, not just your own domain.
  2. Test each one with the same OpenSSL command and write the result down.
  3. When you pick new tools, prefer providers that already support ML-KEM.
  4. Keep long-lived sensitive data off classical-only connections where you can, or encrypt it at the application level first.
  5. Re-check every month or so. Support is landing fast, and your list of gaps will shrink on its own.

Black and white graphic listing 5 post-quantum TLS checks: domain, third parties, certificates, CI gate, monthly re-check
5 checks, about 10 minutes. Steal the list, then grab the full guide at zubairhussain.xyz.

Quick checklist before you close this tab

  • Run the OpenSSL test on your main domain.
  • Test your API, auth, payment and email providers, not just the homepage.
  • Add the check to CI so a config change can't quietly undo it.
  • If you're on Cloudflare, check the Cloudflare-to-origin connection too, not only browser-to-edge.
  • Keep a list of hosts still on classical TLS and revisit it.
  • Watch for post-quantum certificates (ML-DSA). That's the next step.

Quick answers

Do I need to change anything if I'm on Cloudflare?
For visitor-to-edge traffic, usually not. It's on by default. The leg from Cloudflare to your origin depends on what your origin server supports.

Is X25519MLKEM768 slower?
The handshake carries roughly an extra kilobyte each way. The cost is small enough that Cloudflare, Google and others switched it on by default.

Does this protect traffic that was already recorded?
No. Anything captured before the switch is still classical. That's exactly why it's worth moving now instead of later.

Read the full guide

The full guide covers the command, the Node script, the CI setup and what to do about services you don't control: Post-quantum TLS on Next.js and Cloudflare

Have you tested your site yet? Drop what you find in the comments πŸ‘‡ And if you'd like the same audit for your stack, reach me through zubairhussain.xyz.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.