Recent testing of unreleased AI models surfaced weaknesses in classical cryptography that protects most of the internet. The weaknesses are in the underlying math, not in any library you can patch. That is exactly why the migration to post-quantum cryptography (PQC) matters to you right now.

By the end of this article you'll know which parts of your stack need replacing, how to test PQC on a real endpoint with OpenSSL, and what breaks during the migration.

Why patching won't save you

Most TLS handshakes today rely on elliptic-curve Diffie-Hellman (ECDHE) for key agreement and RSA or ECDSA for signatures. These schemes share a mathematical foundation. When that foundation weakens, no CVE patch helps because the assumption itself is broken.

NIST's post-quantum standards avoid that problem by using different math. The relevant ones for you:

  • ML-KEM (FIPS 203) for key encapsulation, replacing ECDHE
  • ML-DSA (FIPS 204) for signatures, replacing ECDSA and RSA

If you run TLS endpoints, ML-KEM is the urgent one. An attacker who records today's handshake can decrypt it later if key agreement falls. Signatures have a different exposure window, so key exchange comes first.

The hybrid handshake

Nobody migrates by swapping one algorithm for another. Real deployments use a hybrid key exchange: the client and server combine a classical key exchange with a post-quantum one, and the shared secret mixes both outputs.

The logic is simple. If the classical half breaks, the PQC half still protects the key. If a bug appears in the PQC implementation, the classical half still works. You give up a slightly larger handshake payload for that redundancy.

A qualitative tradeoff comparison:

Approach Tradeoff When to use
Classical only (X25519) Fast, small keys, known weaknesses possible Internal networks you fully control
Hybrid (X25519MLKEM768) Slightly larger handshake, two systems to maintain Public TLS endpoints, today's default choice
PQC only (ML-KEM) Smallest trust base, newest code paths Only when the ecosystem is fully settled

Test it on your own endpoint

You don't need a certificate authority to try ML-KEM. Key exchange in TLS 1.3 is negotiated independently of certificate signatures, so a hybrid handshake works with your existing certificates.

Check what your OpenSSL supports:

openssl version openssl list -kem-algorithms openssl list -signature-algorithms 

Then attempt a hybrid connection to any TLS 1.3 server that advertises it:

openssl s_client -connect www.cloudflare.com:443 \ -groups X25519MLKEM768 < /dev/null 2>&1 | grep "Server Temp Key" 

If the output shows the hybrid group, the key agreement succeeded. If your OpenSSL build predates ML-KEM support, the group name is rejected and the client falls back to classical groups. That fallback is itself a failure mode worth watching: a silent downgrade means you believe you're protected when you aren't.

Pin the group explicitly in your own server config so downgrade is visible instead of silent. In nginx, set ssl_ecdh_curve X25519:MLKEM768; and verify clients still connect.

What breaks during migration

Three things go wrong in practice:

  • Middleboxes. Some enterprise proxies reject handshakes with unfamiliar key-share sizes. ML-KEM key shares are measured in kilobytes, not bytes, and a few TLS stacks choke on the larger ClientHello. Instrument your traffic before you enforce hybrid-only.
  • Certificate signatures. ML-KEM fixes key agreement, not certificates. Root CAs must replace RSA and ECDSA signatures too, and trust stores update on their own schedule. Plan for hybrid keys with classical certificates as the long middle phase.
  • Session resumption and CT logs. Anything that hashes or signs handshake material assumes current key sizes. Cross-check your load balancers and any custom TLS termination code.

Harden the AI angle on your side

The labs that found these weaknesses also restricted their models' ability to help develop attacks on widely used cryptography. If you expose an LLM in your own product, treat it the same way: don't point it at your production crypto configs as an oracle, and log prompts that touch secrets or key material.

More practically, use AI testing the way cryptographers use fuzzing. Probe your own TLS endpoints with every client you can find, including new PQC-capable ones, and alert on any downgrade. Systems earn trust by surviving attempts to break them, not by never being tested.

Key takeaways

  • The reported weaknesses live in the mathematics of classical crypto, so library updates cannot fix them; migration is the only response.
  • Prioritize hybrid key exchange (X25519MLKEM768) on public TLS endpoints; signatures and certificates can follow later.
  • Key agreement comes first because recorded traffic can be decrypted retroactively if the classical half fails.
  • Test with openssl s_client -groups X25519MLKEM768 and treat silent group fallback as an incident, not a convenience.
  • Follow the NSA's migration guidance and accelerate on your own schedule rather than waiting for a coordinated deadline.

Source

Joint statement from Anthropic and OpenAI on recent advances in cryptography — I added the practitioner view: what to migrate first, working OpenSSL commands, hybrid handshake tradeoffs, and real migration failure modes the statement doesn't cover.

Support this work

These write-ups are researched and published with no paywall, sponsor, or tracking. If one saved you an afternoon, a small tip keeps them coming.

USDT, USDC or USDD · TRC-20 (Tron)

TFTNsfyomKrnUutRjBTGVULp19ByW29KbY