Is ML-KEM Safe After Anthropic's Lattice Cryptography Findings?

Anthropic's quantum algorithm targets the module lattices behind ML-KEM, but reviewers put its cost far beyond 2^1000 operations. Here's what it means for your API's post-quantum TLS.

Medy Evrard

1 December 2026

Is ML-KEM Safe After Anthropic's Lattice Cryptography Findings?

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

Is ML-KEM safe? Yes, for now. Anthropic’s new quantum algorithm attacks the module-lattice math behind ML-KEM, but the Cryptography Incident Review Group (CIRG) says it needs vastly more computation than the best attacks already known, far beyond 2^1000 quantum operations even for ML-KEM-512. No deployed key is at risk. Keep your post-quantum TLS on, prefer hybrids and stronger parameters, and build in crypto-agility.

The details matter if you run APIs, because ML-KEM already protects a large share of HTTPS traffic through the hybrid X25519MLKEM768 key exchange. Here’s what Anthropic published, what the reviewers concluded, and what to check this week.

What Anthropic found about lattice cryptography

Anthropic’s lattice findings are four theoretical papers, discovered by an internal research Claude model and published at the end of November 2026 with a Lean 4 formalization. The headline is a quantum algorithm that solves certain module-lattice problems, including search Module-LWE, in quasi-polynomial time. Module-LWE is the hard problem ML-KEM rests on.

The four papers, as listed in Anthropic’s formal-math repository:

  1. Galactic quasi-polynomial quantum algorithms for integral and module lattices. The attack everyone is talking about.
  2. Approximate search SVP reduces to SIS and SIVP and, quantumly, to LWE and GapSVP. A reduction that strengthens the theory behind unstructured lattices.
  3. A converse of the dual attack, and a quantum equivalence of SIVP and LWE at small noise rates.
  4. Public-key encryption from GapSVP within Õ(n), classically.

The repository’s README is blunt: “The results are asymptotic, and the algorithms are not practical for the parameter sets of ML-KEM and ML-DSA.” “Galactic” in the first title is a complexity-theory term for algorithms that win only at input sizes no real system reaches.

It isn’t Anthropic’s first cryptanalysis result. In July, its research on cryptographic weaknesses showed Claude Mythos Preview roughly halving the key strength of HAWK, a candidate signature scheme that was never deployed. ML-KEM is deployed, hence the attention.

Is ML-KEM safe? What the CIRG assessment says

The CIRG published its initial assessment of Anthropic’s findings on November 30, two weeks after Anthropic shared the results with several of its members. It’s the document to read if you want an answer you can act on.

Question CIRG’s answer
Does the attack break ML-KEM today? No. Against ML-KEM and ML-DSA it needs vastly more computation than the best previously known attacks, which are already far out of reach.
How big is “galactic”? Even 2^1000 quantum operations would fall far below its cost for ML-KEM-512 and ML-DSA-44, under assumptions that favor the attacker.
Does it need a quantum computer? Yes, a large-scale one, which is far more costly than classical computation of the same scale.
Any classical speedup? Anthropic reported none, for structured or unstructured lattices.
What about unstructured lattices? No quantum improvement either, and the other papers strengthen their theory.
Should you pause your PQC migration? No. Delaying keeps you on RSA and elliptic curves, which a quantum computer breaks with far fewer resources.

So the direct answer to “is ML-KEM safe” stays yes. The more honest answer adds a caveat: the CIRG writes that “it is reasonable to expect that the attack will be improved in the near future.” The open question is whether those improvements ever reach real parameter sizes.

Schema: Anthropic's paper 1 quantum algorithm targets the module lattices behind ML-KEM (FIPS 203) and ML-DSA (FIPS 204) at a galactic cost, while papers 2 to 4 strengthen the theory of unstructured lattices, and no classical speedup was reported

Why “galactic” matters: asymptotic vs practical risk

To see why a real theoretical advance doesn’t hurt deployed keys, look at how ML-KEM grows.

A module lattice has two size knobs: the degree n of each ring component and the rank k, the number of components. Anthropic’s algorithm gets its speedup as n grows. ML-KEM never grows n. Per FIPS 203, every ML-KEM parameter set keeps n = 256 and moves up in security by raising k:

Parameter set Ring degree n Rank k NIST security category
ML-KEM-512 256 2 1
ML-KEM-768 256 3 3
ML-KEM-1024 256 4 5

The CIRG’s footnote puts it precisely: the speedup “applies as the degree n of each structured component grows. By contrast, ML-KEM and ML-DSA reach higher security levels by increasing the number of components (the rank k) while keeping n=256 fixed.”

In plain words: scale these schemes up with bigger rings and their quantum security would rise more slowly than expected. That’s a warning about a design direction, not a hole in the parameters shipping today.

For the broader picture of what would break if a hardness assumption fell, our explainer on what happens if P = NP for API security walks through RSA, elliptic curves and lattices side by side.

Does this affect post-quantum TLS for your APIs?

Not in a way you need to react to. Most post-quantum TLS today uses a hybrid key exchange, X25519MLKEM768, which runs classical X25519 and ML-KEM-768 side by side. Both shared secrets go into the TLS 1.3 key schedule, so an attacker who records your traffic has to break both to read it.

That’s exactly what the CIRG recommends: combine schemes built on different math. If ML-KEM fell tomorrow, a hybrid session would still be as strong as plain X25519, where you were before the migration.

Sequence diagram: an API client offers an X25519MLKEM768 key share, the API edge answers with its X25519 share and an ML-KEM ciphertext, both shared secrets feed the TLS 1.3 key schedule, and an attacker who records the traffic must break both X25519 and ML-KEM-768

The hybrid is already common. Cloudflare’s 2025 post-quantum report says more than half of human traffic to its network is now protected against store-now-decrypt-later attacks. OpenSSL added ML-KEM, ML-DSA and SLH-DSA in version 3.5, so you can check any endpoint yourself. Here’s real output from OpenSSL 3.6.2, run today against a public test API:

$ openssl s_client -connect api.restful-api.dev:443 \
    -groups X25519MLKEM768:X25519 -servername api.restful-api.dev </dev/null 2>&1 \
    | grep -E "Negotiated|Protocol"
Negotiated TLS1.3 group: X25519MLKEM768
Protocol: TLSv1.3

If your API shows X25519, your edge doesn’t offer the hybrid yet. If it shows X25519MLKEM768, keep it.

What API teams should do now

The CIRG’s recommendations translate into five concrete steps for anyone who runs or consumes APIs:

  1. Keep the migration going. Leave hybrid post-quantum key exchange on wherever your load balancer, CDN or gateway supports it. Recorded traffic protected only by X25519 is the bigger long-term risk.
  2. Pick the highest security level each system can carry. Where you control both ends, such as service-to-service calls, check whether your TLS library offers ML-KEM-1024 and measure the cost.
  3. Prefer hybrids. Pair ML-KEM with a classical scheme, as X25519MLKEM768 does, rather than running ML-KEM alone.
  4. Build crypto-agility. Keep algorithm names in configuration, not code, so you can swap a key exchange or signature scheme in a deploy rather than a rewrite. NIST’s draft transition plan for post-quantum standards assumes you’ll need that flexibility.
  5. Test after every crypto change. A new TLS group or certificate chain can break clients. Re-run your API regression suite against the changed edge before it takes production traffic.

Step 5 is where teams slip, because a TLS change feels like infrastructure work. If you also use client certificates, our guide to testing APIs with mTLS covers the extra flags those runs need, and our API security best practices list the rest of the hardening checklist.

Let your coding agent check it with Apidog CLI

You don’t need to run these checks by hand. Your coding agent can probe each host with OpenSSL, run your Apidog test scenarios against the same environment with Apidog CLI, and report both.

Set it up once:

npm install -g apidog-cli@latest
apidog login --with-token <YOUR_TOKEN>
npx -y skills add https://apidog.com   # pick your agent when prompted

Then give Claude Code, Codex or your agent of choice one prompt:

For each host in our staging environment, run openssl s_client with
-groups X25519MLKEM768:X25519 and report the negotiated TLS group.
Then list the Apidog test scenarios in project <projectId>, run our
regression scenario against the staging environment with apidog run,
and summarize any host still on plain X25519 and any failed assertion.

The agent finds the scenario and runs it with the flags from apidog run --help:

apidog test-scenario list --project <projectId>
apidog run -t <scenarioId> --project <projectId> -e <envId> -r cli,junit

Here’s that run on our sandbox project, against the same public API that negotiated X25519MLKEM768 above. Three requests and seven assertions pass:

Apidog CLI listing the test scenarios in a sandbox project, then running the Object CRUD lifecycle scenario against api.restful-api.dev: create, get and delete requests return 200 and 7 of 7 assertions pass

Add the same apidog run ... -r junit line to your pipeline, as shown in Apidog CLI in CI/CD, and every TLS or certificate change gets a functional check before it ships. The apidog run command reference lists the SSL flags, such as --ssl-extra-ca-certs for a private CA. For a full walkthrough of the agent setup, see Apidog CLI in Claude Code.

Once one agent can audit a host, a team can spread the work: Sharkly is a board where you assign tasks like “check every partner API for hybrid TLS” to coding agents running on your own computers with your own Claude Code or Codex plan, several in parallel, and review what they report before anything merges. It’s free to start.

Conclusion

Anthropic’s lattice papers are a real theoretical result and a useful warning about structured lattices. They aren’t a break of ML-KEM: the CIRG puts the attack’s cost against ML-KEM-512 far beyond 2^1000 quantum operations.

For API teams, the right move is the boring one: keep hybrid post-quantum TLS on, use the strongest parameters you can, keep your crypto swappable, and re-test after every change. The CIRG expects the attack to improve, and crypto-agility is what lets you respond in a deploy instead of a quarter.

FAQ

Is ML-KEM broken? No. The CIRG puts the attack’s cost against ML-KEM-512 far above 2^1000 quantum operations, on a large quantum computer. Older attacks are cheaper and still impractical.

Should I turn off post-quantum TLS? No. The CIRG recommends continuing the transition. Turning off X25519MLKEM768 leaves your recorded traffic protected only by X25519, which a future quantum computer can break with far fewer resources than this attack needs.

Is ML-DSA affected too? In the same way. ML-DSA also uses module lattices with n = 256, and the CIRG gives the same verdict: the attack is far costlier than existing ones at ML-DSA-44 and above.

What are Anthropic’s lattice cryptography findings? Four papers published at the end of November 2026: one quantum quasi-polynomial algorithm for module-lattice problems, and three results that strengthen the theory of unstructured lattices. Anthropic found no classical speedup.

How do I check if my API uses post-quantum TLS? Run openssl s_client -connect yourhost:443 -groups X25519MLKEM768:X25519 with OpenSSL 3.5 or later and read the “Negotiated TLS1.3 group” line. X25519MLKEM768 means the hybrid is active.

Explore more

Google Workspace API Terms for AI Agents: What Changes in 2027

Google Workspace API Terms for AI Agents: What Changes in 2027

Google's Workspace AI Tools Addendum moves AI agents onto Workspace MCP servers or the CLI from February 1, 2027, caps derived data at 30 days, bans training and adds user confirmations. Here's what it says and what to change.

1 December 2026

What Happens If P = NP? What It Would Mean for API Security

What Happens If P = NP? What It Would Mean for API Security

No proof of P = NP or fast factoring exists. Here's what each would break in an API stack, from TLS to JWTs and webhooks, and how to test your algorithm allowlist now.

30 November 2026

Versine MCP: What It Is and How AI Agents Send Money Safely

Versine MCP: What It Is and How AI Agents Send Money Safely

Versine MCP lets Claude and ChatGPT pay people from a USDC wallet, with a passkey on every payment by default. See its tools, limits, and how to test it with a mock first.

27 November 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

Is ML-KEM Safe After Anthropic's Lattice Cryptography Findings?