Blog/Post-quantum encryption and AI APIs
Security · December 2026

Post-quantum encryption and AI APIs: what changed this week

By Samuel Seidel · Published December 3, 2026 · Tested December 3, 2026

On 30 November Anthropic published a theoretical quantum attack on the lattice problems behind ML-KEM and ML-DSA, the new post-quantum standards. Cryptographers call it far from practical. Two days later the US government urged a faster move to post-quantum cryptography, and OpenAI, Anthropic, Google, Microsoft, Apple, Amazon, Cloudflare and Oracle backed that call. We tested 16 endpoints, mostly AI APIs, on 3 December: 14 chose hybrid post-quantum key exchange, and Amazon Bedrock's inference endpoint and GitHub did not. If you run models yourself, your SSH may already be protected and your TLS may not.

What did Anthropic publish?

Four papers on lattice cryptography, with their main proofs checked in the Lean 4 proof assistant, published in Anthropic's formal-math repository. Anthropic says the results were found by an internal research Claude model. The papers describe a quantum attack on module-lattice problems, the family ML-KEM and ML-DSA are built on. The repository itself says the algorithms are not practical for the parameter sets of ML-KEM and ML-DSA.

The outside reviews agree. The Cryptography Incident Review Group, which Anthropic briefed on 16 November, called the required scale "galactic" in its 30 November assessment. Cloudflare's analysis estimates that an attack would need billions of logical qubits and cost more than 21000 operations, against the 2128 the standards aim for. Cloudflare also says 73% of human traffic to its network already uses post-quantum key exchange.

So nothing deployed broke. What changed is confidence in how much margin the lattice schemes have, which is why CIRG's advice is to keep migrating rather than pause. A quantum computer big enough for this attack would break RSA and elliptic curves long before.

What did OpenAI, Google and the others sign?

A one-paragraph joint statement, dated 2 December, from Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle. It supports the US government guidance urging organisations to move to NIST's post-quantum standards and to speed up. It names no algorithms, deadlines or company commitments.

The guidance it supports is a statement from ONCD, NSA and CISA the same day. It says the current assessment is no immediate and widespread threat, and that systems should be upgraded expeditiously. It also sets no dates. Cisco's response is in its title: don't pause, accelerate. Cloudflare did: on 3 December it moved its target for being fully post-quantum from 2029 to 2027.

Which AI APIs already use post-quantum key exchange?

Most of them. We opened one TLS handshake to each endpoint with OpenSSL 4.1, offering the hybrid X25519MLKEM768 group first and classical X25519 second, and recorded what the server picked. We ran it twice, at 19:14 and 19:18 UTC on 3 December, with identical results.

EndpointServiceKey exchange chosen
api.openai.comOpenAI APIX25519MLKEM768 (hybrid)
chatgpt.comChatGPTX25519MLKEM768 (hybrid)
api.anthropic.comAnthropic APIX25519MLKEM768 (hybrid)
claude.aiClaudeX25519MLKEM768 (hybrid)
generativelanguage.googleapis.comGemini APIX25519MLKEM768 (hybrid)
api.mistral.aiMistral APIX25519MLKEM768 (hybrid)
api.deepseek.comDeepSeek APIX25519MLKEM768 (hybrid)
api.groq.comGroqX25519MLKEM768 (hybrid)
api.together.xyzTogether AIX25519MLKEM768 (hybrid)
api.fireworks.aiFireworks AIX25519MLKEM768 (hybrid)
openrouter.aiOpenRouterX25519MLKEM768 (hybrid)
huggingface.coHugging FaceX25519MLKEM768 (hybrid)
gpuwerk.com, console.gpuwerk.comGPUwerk site and consoleX25519MLKEM768 (hybrid)
bedrock-runtime (us-east-1, eu-central-1, eu-west-1)Amazon Bedrock inferenceX25519 (classical)
bedrock.us-east-1.amazonaws.comAmazon Bedrock control planeX25519MLKEM768 (hybrid)
github.comGitHub, for comparisonX25519 (classical)

One handshake per host and run, no request sent, from Czechia. The two Bedrock EU regions and the control plane were checked separately on the same evening. Results can differ by region and CDN edge. Raw output and script: pq-tls-ai-apis-2026-12-03.txt.

The odd one out is Amazon Bedrock's inference endpoint, where prompts and completions travel, including those for Amazon's new Ergo model. In all three regions we tried it chose classical X25519, and a client offering only the post-quantum group was moved down to TLS 1.2 with RSA key transport. Bedrock's control-plane endpoint did negotiate the hybrid group. Amazon is one of the eight signatories, so we expect this to change; it is what we saw on 3 December.

The key exchange is the part that matters now. An attacker who records encrypted traffic today could decrypt it once a large enough quantum computer exists, so prompts, documents and code sent over classical TLS have a long shelf life. Certificates and signatures are a different problem: they only need to resist attack while they are valid, which is why both OpenSSH and Cloudflare are migrating them later.

What should you check on your own model server?

Four things, if you run models on your own machine or a rented one.

1. SSH: probably already hybrid

OpenSSH has used a hybrid post-quantum key exchange by default since version 9.0 in 2022, according to its post-quantum page, and switched the default to mlkem768x25519-sha256 in 10.0. Ubuntu 24.04, which NVIDIA's DGX OS 7 for the DGX Spark is based on, ships OpenSSH 9.6, whose default list starts with sntrup761x25519-sha512. Ubuntu 26.04 ships 10.2. Check a connection with:

ssh -v user@host true 2>&1 | grep "kex: algorithm"

If it prints curve25519-sha256 or an ecdh or diffie-hellman name, an old client, server or a KexAlgorithms line is forcing classical exchange. OpenSSH 10.1 and later clients warn about it.

2. TLS in front of vLLM, Ollama or llama-server: probably not

ML-KEM arrived in OpenSSL 3.5 in April 2025, which also made X25519MLKEM768 a default (OpenSSL news). Ubuntu 24.04 ships OpenSSL 3.0.13, and Python's ssl module uses the system OpenSSL, so a Python model server terminating TLS itself on 24.04 cannot offer it. The simple fix is a proxy built on a newer stack: Go's TLS library has offered X25519MLKEM768 by default since Go 1.24, and Caddy's TLS options list it first among its curves. Or keep the model port private and reach it through an SSH tunnel, which gets you the SSH key exchange above. To test an endpoint from a machine with OpenSSL 3.5 or newer:

openssl s_client -connect host:443 -groups X25519MLKEM768 </dev/null 2>&1 | grep -i "group"

3. WireGuard: not post-quantum on its own

WireGuard's handshake uses Curve25519. Its protocol page offers an optional pre-shared key mixed into the handshake for post-quantum resistance, which only helps if the key itself was exchanged safely. Rosenpass automates that with post-quantum key exchange alongside WireGuard.

4. Plan for another swap

CIRG's advice is to keep migrating, use the highest security level each system can afford, prefer hybrids that combine different kinds of mathematics, and design so algorithms can be replaced quickly. All of the defaults above are hybrids: if the lattice half ever failed, the classical X25519 half would still hold against today's computers.

What does this mean for self-hosting models?

The reasons to run a model yourself, such as keeping prompts and data off someone else's logs, are the same reasons to care how they travel. A self-hosted model behind an old TLS stack can be less protected in transit than the big APIs in our table. It takes an afternoon to fix: check the SSH key exchange, put a current proxy in front of the model port, and test with the two commands above. Our private LLM hosting guide covers the rest of the setup.

FAQ

Did Anthropic break post-quantum encryption?

No. Anthropic published a theoretical quantum attack on the module-lattice problems behind ML-KEM and ML-DSA. Its own repository says the algorithms are not practical for the standardised parameter sets, and reviewers estimate the attack needs billions of logical qubits.

Does OpenAI use post-quantum encryption?

For key exchange, yes: api.openai.com and chatgpt.com negotiated the hybrid X25519MLKEM768 group in our test on 3 December 2026. OpenAI also signed the 2 December joint statement backing faster migration.

Is SSH on Ubuntu 24.04 post-quantum?

Its key exchange is hybrid post-quantum by default: OpenSSH 9.6 on Ubuntu 24.04 offers sntrup761x25519-sha512 first. Check a connection with ssh -v and look for the kex: algorithm line.

Is WireGuard post-quantum?

Not by default. Its handshake uses Curve25519; an optional pre-shared key, exchanged safely or managed with a tool such as Rosenpass, adds post-quantum resistance.

Sources

Every figure above is attributed to its source in the sentence or table where it appears. Pages were read and the TLS test run on 3 December 2026.

Related pages

Top up from $5, billed per minute

Run your model where you control the keys.

A dedicated DGX Spark, reached over SSH, with your own proxy in front of the model port.

A dedicated DGX Spark, $0.79/hour, billed per minute. Start with $5, about six Spark hours.

Create account Private LLM hosting