TRENDING
A small white dog with a dark ear curled up asleep on a wooden table beside a brown clay pot, a wicker basket and a bundle of sticks, in a dark seventeenth century Dutch painting
December 2, 2026
How to Alert When Prometheus Stops Seeing Your Service: Tell a Crash From a Removed Target From a Renamed Metric, Use absent() Without False Alarms, and Test Every Silent Failure With promtool
Four round faceted dark red garnet gemstones in a row on a white surface
December 2, 2026
DeepMind’s CellGemma Turns Virtual Drug Screening Into a Residual on Top of the Population Mean, but an MLP Given the Same Baseline Reproduces About Half of Its 16-Point Lead, “All 32 Settings” Holds for One of 12 Metrics, and the Wet-Lab Result Is Three of Five Compounds Against No Comparison Set
Roulette wheel with the white ball resting in the zero pocket
December 2, 2026
CISA Lists the Rejetto HFS Session-Forgery Flaw 140 Days After Its Fix, and GreyNoise’s Report of Its Use Shows One HFS Server Serving as a Relay for 24 Check Point Management Servers the Actor Already Held, With an AI Role It Infers but Does Not Show
Three dark hybrid ducks with white markings foraging in tall green grass on a sunny bank
December 2, 2026
How to Turn On Post-Quantum Key Exchange in nginx and Prove It: Read the Negotiated Group With OpenSSL 3.5, Handle Fallbacks and Oversized Hellos, and Check Every Host in CI
A yellow diamond road sign showing a speed bump beside a SLOW sign on a leafy residential street, with painted chevrons on the road ahead of the raised bump
December 2, 2026
Amodei’s “Pace the Frontier” Essay Turns a Six-Week Delay Into a Legislative Prototype, but Only One of Its Three Delays Has a Date, the 14-Day Wait Has No Stated Start and Adds at Most Two Weeks a Generation in a Simple Model, and the January Restart Has No Test
02 Dec 2026
SXZ.io SXZ.io
  • Home
Search the Site
Popular Searches:
Technology Amazon AI
Recent Posts
A black compact spare tire lying flat on a concrete floor next to a scissor jack and a lug wrench, photographed from above
How to Back Up a Live SQLite Database Without Corrupting It: Count the Broken Copies, Use the Backup API or VACUUM INTO, Publish Only Backups That Verify, and Restore Past a Stale -wal File
December 2, 2026
A blue Link Trainer, the 1930s flight simulator, with yellow wings and tail on a museum stand
Ai2’s DR Tulu 2 Turns Search Bills Into a Local Simulator and Its Table Reproduces, but the Repo Trains Finance Before Science While the Paper Says the Reverse, Never Names DR-Anything, the Framework the Post Tells Readers to Use, and Two Benchmarks Supply 56% of the +9.7 Lead
December 2, 2026
An open split key ring lying on a gray surface, its two ends not meeting
Docker Fixes a Sandboxes Bug That Let a Kit Update Redirect a Stored API Key, but the Same Flaw Scores 5.6, 6.9 or 8.2, the Finder Demonstrated One of 13 Services, and the Upgrade Stops Reading the Environment Variables Some Teams Use to Require Signed Kits
December 2, 2026
SXZ.io SXZ.io
  • Home

Categories

Articles 328 Posts
News 334 Posts
Learning Hub 300 Posts
Home/News/Anthropic Publishes Four Lattice Papers and Calls Its Quantum Attack on ML-KEM and ML-DSA Galactic; Its Text Puts Some Sampling Instances Above Rank 2^10400 at ML-KEM-512, the 2^1000 Floor Is CIRG’s, Not the Papers’, and the Title Is Not the One Hashed Beforehand
News

Anthropic Publishes Four Lattice Papers and Calls Its Quantum Attack on ML-KEM and ML-DSA Galactic; Its Text Puts Some Sampling Instances Above Rank 2^10400 at ML-KEM-512, the 2^1000 Floor Is CIRG’s, Not the Papers’, and the Title Is Not the One Hashed Beforehand

Anthropic’s four lattice papers call their quantum attack on ML-KEM and ML-DSA galactic, the 2^1000 cost floor in circulation comes from CIRG rather than the papers, and none of the four published...

December 1, 2026 20 Min Read
23

On Monday, November 30, Anthropic published four papers on lattice cryptography and a Lean 4 formalization of their results. The repository README says an internal research Claude model discovered the results and AI models wrote the formalization. The lead paper gives a quantum algorithm for the module-lattice problems behind ML-KEM and ML-DSA, NIST’s lattice-based key-exchange and signature standards, that scales better with the ring degree than anything previously known, and everyone we found commenting, Anthropic and the cryptographers it briefed included, says it is not a practical threat. This report checks that against the documents: the 541 pages of papers, the repository, Anthropic’s post on X and the statement of the Cryptography Incident Review Group (CIRG). The papers’ own text is the best evidence of how impractical the attack is, and it also shows that some of the cost figures now in circulation do not come from the papers.

Table Of Content

  • The short version
  • What was published, and when
  • What Anthropic and CIRG say
  • Anthropic’s post
  • CIRG’s statement
  • What paper 1 says about its own size
  • Whose numbers are these?
  • The title behind Monday’s hashes is not the published title
  • The Lean repository
  • What CIRG’s advice looks like on a server
  • What is still open
  • How we checked
  • Sources

The short version

  • Paper 1 calls its own algorithms galactic. For ML-KEM-512 it says some sampling instances have a lattice rank above 210400, and one execution of a subroutine at rank 1024 prepares about 2840 copies of a quantum state.
  • The 21000 “far below its cost” floor sits in a CIRG footnote and was produced with AI models. None of the four PDFs names ML-DSA-44, ML-KEM-768 or ML-KEM-1024, and none contains “billion” or “logical qubit”, so we found no source in the papers for the cost and qubit figures Cloudflare gives.
  • The text limits its own scope: Falcon keys and ML-DSA’s Module-SIS parameters are not treated, and for the three ML-DSA parameter sets the first term of the paper’s probability bound already exceeds 1.
  • None of the four published titles matches either hash posted on X on Monday, hours before the release. The string that does match ends with “of small rank over power-of-two cyclotomic rings” and lacks the word “Galactic” that now opens paper 1’s title.
  • The Lean folder holds 385 sorry placeholders, all in Challenge/, one per statement as the README says, with no axiom declarations and no native_decide. We did not build it; the README says the build takes “a little over an hour on 12 cores”.
  • Of 24 sites we tested at about 10:24 UTC today, 21 negotiate the ML-KEM-768 hybrid in TLS 1.3, none negotiates the ML-KEM-1024 hybrid, and one (www.google.com) accepts ML-KEM-1024 on its own.

What was published, and when

Times are UTC. The table mixes primary records with our own earlier reporting, which is linked where it applies.

Time (UTC) Event Source
Nov 16 Anthropic shares a collection of results with several CIRG members CIRG statement
Nov 25, 19:01 Scott Aaronson posts that some AI-developed algorithms “break currently deployed cryptosystems” and that he is “virtually certain” the labs hold “one or more bombshells” in that area his blog, as quoted by The Register
Nov 30, 01:45 and 11:33 Two hashes of a paper title are posted on X (SHA-256 by Hoskinson, SHA3-256 by Kobeissi) our earlier report
Nov 30, 18:17 Aaronson posts “Now It Can Be Told”, saying Anthropic will announce later that day blog feed timestamp
Nov 30, 20:54:18 One commit, “Add lattices: four papers and their Lean formalization”, lands in anthropics/formal-math GitHub API
Nov 30, 23:01:32 Anthropic’s post on X announces the papers api.fxtwitter.com
Nov 30 CIRG publishes “Initial Assessment of Anthropic’s Findings on Lattice Cryptography” cirg.org
Dec 1 Cloudflare and The Register publish analyses their pages

The four papers, with the number of Lean statements the README lists for each (main plus further):

Paper Title as published PDF pages Lean statements
1 Galactic quasi-polynomial quantum algorithms for integral and module lattices 283 81 + 104
2 Approximate search SVP reduces to SIS and SIVP and, quantumly, to LWE and GapSVP 114 24 + 35
3 A converse of the dual attack, and a quantum equivalence of SIVP and LWE at small noise rates 95 19 + 35
4 Public-key encryption from GapSVP within Õ(n), classically: an adaptive reduction to decision LWE in dimension kn with exponential modulus 49 8 + 16
Total 541 132 + 190

The README describes the folder as a “Research artifact. Not maintained and not accepting contributions.” It states that “The results were discovered by an internal research Claude model. The formalization was written by AI models.”

What Anthropic and CIRG say

Anthropic’s post

Anthropic’s post says “The results do not have practical, real-world consequences for today’s security systems.” The main result of one paper is an algorithm that, in theory, solves some of the problems behind ML-KEM and ML-DSA on quantum computers “asymptotically faster than previously-known methods”, but “only for very large key sizes”. For real-world key sizes, it adds, “the method is still dramatically slower than the methods that already exist.”

The post is not purely reassuring. The results “lower our long-term confidence in structured lattices”, which both schemes use, and Anthropic sees them as “a limited signal that weaknesses in structured lattices could be found in the future”. The other three papers “raise our overall confidence in unstructured lattices”. Anthropic says it shared the results “in draft form with a group of outside cryptographers and the US government” and is now publishing “the most impactful full papers and proofs”, a phrase that leaves open whether other results stay unpublished.

CIRG’s statement

CIRG, which describes itself as “a group of cryptographers aiming to review and help navigate cryptanalytic advances”, says Anthropic “shared with several of us a collection of mathematical results about lattice cryptography” on November 16. It explains the split: a family of structured lattices called module lattices “forms the basis of several NIST PQC standards”, while unstructured lattices underlie “other cryptosystems that are less efficient, but may offer fewer avenues for attack”. It reports that Anthropic found no improvement in classical attacks on mainstream lattice cryptosystems, or in quantum attacks on unstructured lattices. For the structured lattices behind the NIST standards, the attack is a quantum algorithm whose running time is npoly(k) log n for module lattices of rank k over power-of-two cyclotomic rings of degree n, which is nO(log n) for fixed rank. CIRG’s verdict on cost is blunt: “the scale of the new attack is galactic”. It also says “It is reasonable to expect that the attack will be improved in the near future.”

CIRG’s advice is to continue the transition to post-quantum cryptography, to “choose the highest security level each application can support”, to use hybrids and agile designs, and to have NIST “prioritize standardizing additional public-key cryptosystems based on diverse designs, even at some cost in efficiency”. A footnote separates the result from “recent classical, slightly subexponential-time attacks on structured lattices using OpenAI’s refutation of the Exponential Time Hypothesis”, a claim we examined in our report on the two ETH claims.

What paper 1 says about its own size

The abstract of paper 1 ends: “The algorithms are galactic: the bounds on their running times are asymptotic, and the algorithms are not practical for the parameter sets of ML-KEM and ML-DSA.” The body backs that with numbers. The script below counts pages and key terms in all four PDFs at the pinned commit, prints the passages that carry the size limits, and redoes the arithmetic. It marks superscripts by font size, because plain text extraction turns 2840 into the string 2840.

# paper_check.py
# paper_check.py: read what the four published PDFs say about size, then redo the arithmetic.
# Needs: pip install requests pymupdf
import math
import pathlib
import re
import statistics

import pymupdf
import requests

BASE = "https://raw.githubusercontent.com/anthropics/formal-math/44431b0b29/lattices/papers/"
PAPERS = {
    1: "01-quasi-polynomial-quantum-algorithms.pdf",
    2: "02-search-svp-to-sis-and-lwe.pdf",
    3: "03-converse-of-the-dual-attack.pdf",
    4: "04-pke-from-gapsvp-classical.pdf",
}
TERMS = ["ML-KEM-512", "ML-KEM-768", "ML-KEM-1024", "ML-DSA-44", "ML-DSA-65", "ML-DSA-87",
         "billion", "logical qubit", "Falcon"]

docs = {}
for number, name in PAPERS.items():
    path = pathlib.Path(name)
    if not path.exists():
        path.write_bytes(requests.get(BASE + name, headers={"User-Agent": "sxz-research-script"}, timeout=120).content)
    docs[number] = pymupdf.open(path)

print("== 1. Pages and term counts in the four papers ==")
text = {n: re.sub(r"-\s+", "-", re.sub(r"\s+", " ", " ".join(p.get_text() for p in d))) for n, d in docs.items()}
print(f"{'':15}" + "".join(f"{'paper ' + str(n):>9}" for n in docs))
print(f"{'pages':15}" + "".join(f"{d.page_count:9}" for d in docs.values()) + f"   total {sum(d.page_count for d in docs.values())}")
for term in TERMS:
    print(f"{term:15}" + "".join(f"{len(re.findall(re.escape(term), text[n])):9}" for n in docs))


def marked(page):
    """Page text with superscripts shown as ^{...}, found from the font size of each span."""
    lines = []
    for block in page.get_text("dict")["blocks"]:
        for line in block.get("lines", []):
            spans = [s for s in line["spans"] if s["text"]]
            if not spans:
                continue
            base = statistics.mode(round(s["size"], 1) for s in spans)
            normal = [s["origin"][1] for s in spans if abs(s["size"] - base) < 0.3]
            top = max(normal) if normal else spans[0]["origin"][1]
            out, level = "", 0
            for s in spans:
                small = s["size"] < 0.85 * base
                raised = s["origin"][1] < top - 1.5
                want = (2 if s["size"] < 0.65 * base else 1) if (small and raised) else 0
                while level < want:
                    out += "^{"
                    level += 1
                while level > want:
                    out += "}"
                    level -= 1
                out += s["text"]
            lines.append(out + "}" * level)
    return re.sub(r"\s+", " ", " ".join(lines))


print()
print("== 2. Size limits that paper 1 prints (superscripts shown as ^{...}) ==")
wanted = [
    r"prepares about \S+ copies of the class state",
    r"prepares about \S+ copies \(Section 31\.5\)",
    r"greater than n\^\{52.5\^\{2\}\} = \S+\.",
    r"the first term of the bound for the probability in Theorem C\(a\) and \(c\) exceeds 1",
    r"The keys of Falcon are not treated\.",
    r"The Module-SIS parameters of ML-DSA are not treated\.",
    r"the number of qubits is bounded only by the number of steps",
]
pages = [marked(p) for p in docs[1]]
for rx in wanted:
    where = [(i + 1, m.group(0)) for i, t in enumerate(pages) for m in re.finditer(rx, t)]
    print(f"pages {sorted({w[0] for w in where})}: {where[0][1] if where else 'NOT FOUND'}")

print()
print("== 3. The arithmetic ==")
n = 256
print(f"quasi-polynomial at face value: n^(log2 n) at n = 256 is 2^{int(math.log2(n) ** 2)}")
print("paper 1 bounds the rank of the lattices its sampler runs on by n^(52 k^2), with k = d + m + 1;")
print("it prints the ML-KEM-512 row, the other two rows apply the same formula:")
for name, d in (("ML-KEM-512", 2), ("ML-KEM-768", 3), ("ML-KEM-1024", 4)):
    k = 2 * d + 1
    print(f"  {name:12} d = m = {d}  k = {k}  rank above 2^{int(math.log2(n)) * 52 * k * k}")
print("Section 12.5 families need q >= 13n (ML-KEM) and q >= 32736n (ML-DSA); the standards use:")
for name, q, ratio in (("ML-KEM", 3329, 13), ("ML-DSA", 8380417, 32736)):
    print(f"  {name}: q = {q} = {ratio} * 256 + {q - ratio * n}")
== 1. Pages and term counts in the four papers ==
                 paper 1  paper 2  paper 3  paper 4
pages                283      114       95       49   total 541
ML-KEM-512             2        0        0        0
ML-KEM-768             0        0        0        0
ML-KEM-1024            0        0        0        0
ML-DSA-44              0        0        0        0
ML-DSA-65              0        0        0        0
ML-DSA-87              0        0        0        0
billion                0        0        0        0
logical qubit          0        0        0        0
Falcon                 4        0        0        0

== 2. Size limits that paper 1 prints (superscripts shown as ^{...}) ==
pages [13]: prepares about 2^{840} copies of the class state
pages [13]: prepares about 2^{551} copies (Section 31.5)
pages [49, 78]: greater than n^{52·5^{2}} = 2^{10400}.
pages [78]: the first term of the bound for the probability in Theorem C(a) and (c) exceeds 1
pages [50]: The keys of Falcon are not treated.
pages [50]: The Module-SIS parameters of ML-DSA are not treated.
pages [13]: the number of qubits is bounded only by the number of steps

== 3. The arithmetic ==
quasi-polynomial at face value: n^(log2 n) at n = 256 is 2^64
paper 1 bounds the rank of the lattices its sampler runs on by n^(52 k^2), with k = d + m + 1;
it prints the ML-KEM-512 row, the other two rows apply the same formula:
  ML-KEM-512   d = m = 2  k = 5  rank above 2^10400
  ML-KEM-768   d = m = 3  k = 7  rank above 2^20384
  ML-KEM-1024  d = m = 4  k = 9  rank above 2^33696
Section 12.5 families need q >= 13n (ML-KEM) and q >= 32736n (ML-DSA); the standards use:
  ML-KEM: q = 3329 = 13 * 256 + 1
  ML-DSA: q = 8380417 = 32736 * 256 + 1

Five points follow from the output.

  1. Quasi-polynomial is not small. At n = 256, nlog n with a base-2 logarithm is only 264. The size comes from the exponent’s dependence on the rank k. The README’s featured Lean statement for search Module-LWE, which it says holds “for every fixed rank, all large degrees, moduli above a polynomial bound and almost all square matrices”, bounds the running time by 2 ^ (c * rank ^ 8 * n.log2 ^ 2) for some constant c. The theorem covers large n only, so plugging in n = 256 and rank 2 is an illustration, not a result, but it shows the shape: with any positive integer c the exponent is at least 16,384. Aaronson’s update says the attack is “exponential in poly(r)”, and CIRG notes that ML-KEM and ML-DSA “reach higher security levels by increasing the number of components” while n stays at 256.
  2. The paper prints its own ML-KEM-512 number. For n = 256 and d = m = 2, it says “some sampling instances have rank over Z greater than” 210400. Its formula, n52k² with k = d + m + 1, gives 220384 and 233696 for ML-KEM-768 and ML-KEM-1024. Those two rows are our arithmetic with the paper’s formula; the paper prints only the first.
  3. Subroutine sizes. On page 13 the paper says that at rank m = 1024 one execution of the Part 1 decoder circuit prepares about 2840 copies of a quantum state (the paper calls it the class state), and the Part 5 list decoder about 2551. The constants in the exponents of its bounds are not made explicit.
  4. Scope. “The keys of Falcon are not treated.” “The Module-SIS parameters of ML-DSA are not treated.” For the three ML-DSA parameter sets the paper says “the first term of the bound for the probability” in Theorem C, parts a and c, exceeds 1; on our reading, that makes the guarantee empty there. Section 12.5 defines parameter families that grow n, with q at least 13n for ML-KEM and at least 32,736n for ML-DSA. The standards’ own q values are exactly 13 · 256 + 1 and 32,736 · 256 + 1, so the families start at the standards’ q-to-n ratios.
  5. Qubits. For its main theorems the paper says “the number of qubits is bounded only by the number of steps”. It prints no separate qubit count for them.

Whose numbers are these?

The figures in circulation have different owners, and the term counts above show which of them are in the papers.

Figure Stated by In the four PDFs?
21000 quantum operations “would be far below its cost for the smallest parameter sets (ML-KEM-512 and ML-DSA-44), even under assumptions favorable to the attacker” CIRG, footnote 2: “We used AI models to help optimize the current attack and estimate its cost.” No operation count for either parameter set. ML-DSA-44 appears zero times.
An ML-DSA attack costing on the order of 2x with x above a thousand, against a 2128 target for the smaller instance, “Based on the paper’s estimates” Cloudflare Not found. ML-DSA-44, ML-DSA-65 and ML-DSA-87 appear zero times.
“at least billions of logical quantum bits (qubits) for a straightforward implementation” Cloudflare Zero hits for “billion” or “logical qubit”. The paper bounds qubits by the number of steps.
A sampling lattice of rank above 210400 for ML-KEM-512 Paper 1, pages 49 and 78 Yes, in the paper’s own limitations text.

None of this says the figures are wrong. A computation that has to handle a lattice of rank above 210400 cannot finish in fewer steps than that rank, which is our inference rather than a sentence in the paper, and it makes CIRG’s 21000 floor look conservative. Cloudflare’s conclusion that the attack would need “more resources than are available in our galaxy” matches the paper’s own word, galactic. The point is provenance. We found no cost for attacking ML-DSA-44 in Anthropic’s papers, where the name never appears, and the only stated source we found is a footnote saying AI models helped estimate it. Cloudflare also notes that “73% of human traffic to Cloudflare is post-quantum encrypted”, a statement about adoption, not about the attack.

The title behind Monday’s hashes is not the published title

Our earlier report showed that one 126-character string matches both hashes posted on X on November 30. With the papers public, the check is simple: hash the four published titles and compare.

# titles_check.py
# titles_check.py: do the two title hashes posted on X on Nov 30 2026 match any title Anthropic published?
import difflib
import hashlib

# Posted on X on Nov 30 2026: Hoskinson (SHA-256, 01:45 UTC) and Kobeissi (SHA3-256, 11:33 UTC reply)
HOSKINSON_SHA256 = "cfbaf75b3a174da179befb0af94421f60a2cdfcf94b24ab1aa565978d6f335a4"
KOBEISSI_SHA3_256 = "560296b35da4dc4add8104d573b5c479eb3c97c66b677a3513b5aaa6432aa387"

CIRCULATED = ("Quasi-polynomial quantum algorithms for integral lattices and module "
              "lattices of small rank over power-of-two cyclotomic rings")
PUBLISHED = {
    "paper 1": "Galactic quasi-polynomial quantum algorithms for integral and module lattices",
    "paper 2": "Approximate search SVP reduces to SIS and SIVP and, quantumly, to LWE and GapSVP",
    "paper 3": ("A converse of the dual attack, and a quantum equivalence of SIVP and LWE "
                "at small noise rates"),
    "paper 4": ("Public-key encryption from GapSVP within " + chr(0xD5) + "(n), classically: an adaptive "
                "reduction to decision LWE in dimension kn with exponential modulus"),
}


def verdict(title):
    a = "match" if hashlib.sha256(title.encode("utf-8")).hexdigest() == HOSKINSON_SHA256 else "no match"
    b = "match" if hashlib.sha3_256(title.encode("utf-8")).hexdigest() == KOBEISSI_SHA3_256 else "no match"
    return a, b


print(f"{'string':34} {'chars':>5}  {'SHA-256':9} {'SHA3-256':9}")
rows = [("string that circulated on X", CIRCULATED)] + [(k + " as published", v) for k, v in PUBLISHED.items()]
for label, title in rows:
    a, b = verdict(title)
    print(f"{label:34} {len(title):5}  {a:9} {b:9}")

print()
print("Words that differ between the circulated string and the title of paper 1:")
old = CIRCULATED.lower().split()
new = PUBLISHED["paper 1"].lower().split()
for tag, i1, i2, j1, j2 in difflib.SequenceMatcher(None, old, new).get_opcodes():
    if tag != "equal":
        print(f"  {tag:8} {' '.join(old[i1:i2]) or '-'}  ->  {' '.join(new[j1:j2]) or '-'}")
string                             chars  SHA-256   SHA3-256 
string that circulated on X          126  match     match    
paper 1 as published                  77  no match  no match 
paper 2 as published                  80  no match  no match 
paper 3 as published                  93  no match  no match 
paper 4 as published                 138  no match  no match 

Words that differ between the circulated string and the title of paper 1:
  insert   -  ->  galactic
  delete   lattices  ->  -
  delete   of small rank over power-of-two cyclotomic rings  ->  -

Only the circulated string matches. Paper 1’s published title adds “Galactic”, folds “integral lattices and module lattices” into “integral and module lattices” and drops “of small rank over power-of-two cyclotomic rings”. The hashes therefore commit to a title that differs from the one Anthropic released, which fits a title that was revised between the version Hoskinson committed to and the release. We cannot say when the change was made, because the repository holds a single commit. The abstract still limits the module-lattice results to “polylogarithmic rank over power-of-two cyclotomic rings”, so the scope wording is now carried by the abstract rather than the title, and the word that now leads the title is the one CIRG uses for the attack.

The Lean repository

The README makes checkable claims: 132 main, 190 further and 63 machine statements, “Only Challenge/ contains sorry”, and three standard axioms behind the compared theorems. It also says “That the statements say what the papers say is for the reader to judge; AI readers have compared them with the text.” The script below reads the repository tarball at the pinned commit in memory and counts, without building anything.

# lean_scan.py
# lean_scan.py: static scan of the Lean files in anthropics/formal-math/lattices at a pinned commit.
# Needs: pip install requests. Reads the repository tarball in memory; nothing is built or run.
import re
import sys
import tarfile
from collections import defaultdict

import requests

REPO = "anthropics/formal-math"
SHORT = "44431b0b29"
HEAD = {"User-Agent": "sxz-research-script"}
full = requests.get(f"https://api.github.com/repos/{REPO}/commits/{SHORT}", headers=HEAD, timeout=60).json()["sha"]
print("commit", full)


def strip_comments(src):
    """Drop Lean block comments (nested) and line comments; keep string literals."""
    out, i, depth, in_str, n = [], 0, 0, False, len(src)
    while i < n:
        two = src[i:i + 2]
        ch = src[i]
        if ch == "\n":
            in_str = False
        if depth == 0 and not in_str and two == "--":
            j = src.find("\n", i)
            i = n if j < 0 else j
            continue
        if not in_str and two == "/-":
            depth += 1
            i += 2
            continue
        if depth > 0 and two == "-/":
            depth -= 1
            i += 2
            continue
        if depth > 0:
            i += 1
            continue
        if ch == '"' and (i == 0 or src[i - 1] != "\\"):
            in_str = not in_str
        out.append(ch)
        i += 1
    return "".join(out)


COUNTS = {
    "sorry": re.compile(r"\bsorry\b"),
    "axiom": re.compile(r"(?m)^\s*(?:@\[[^\]]*\]\s*)?axiom\b"),
    "native_decide": re.compile(r"\bnative_decide\b"),
    "decide +kernel": re.compile(r"\bdecide\s*\+kernel\b"),
    "ofReduceBool": re.compile(r"\bofReduceBool\b"),
    "extern/implemented_by": re.compile(r"@\[\s*(?:implemented_by|extern)\b"),
    "unsafe": re.compile(r"\bunsafe\b"),
}
THEOREM = re.compile(r"(?m)^\s*(?:@\[[^\]]*\]\s*)*(?:private\s+|protected\s+)*(?:theorem|lemma)\s+(\S+)")

files = defaultdict(int)
lines = defaultdict(int)
hits = defaultdict(lambda: defaultdict(int))
challenge = {}
where = defaultdict(list)
resp = requests.get(f"https://codeload.github.com/{REPO}/tar.gz/{full}", headers=HEAD, stream=True, timeout=300)
with tarfile.open(fileobj=resp.raw, mode="r|gz") as tar:
    for member in tar:
        parts = member.name.split("/")
        if len(parts) < 3 or parts[1] != "lattices" or not member.isfile() or not member.name.endswith(".lean"):
            continue
        top = parts[2] if len(parts) > 3 else "(top level)"
        raw = tar.extractfile(member).read().decode("utf-8", errors="replace")
        code = strip_comments(raw)
        files[top] += 1
        lines[top] += raw.count("\n") + 1
        for label, rx in COUNTS.items():
            found = len(rx.findall(code))
            hits[top][label] += found
            if found and label in ("unsafe", "extern/implemented_by"):
                where[label].append("/".join(parts[2:]) + f" ({found})")
        if top == "Challenge":
            challenge[parts[-1]] = len(THEOREM.findall(code))

labels = list(COUNTS)
print(f"{'folder':22} {'files':>5} {'lines':>9} " + " ".join(f"{l[:9]:>9}" for l in labels))
tot = defaultdict(int)
for top in sorted(files, key=lambda t: -lines[t]):
    print(f"{top:22} {files[top]:5} {lines[top]:9} " + " ".join(f"{hits[top][l]:9}" for l in labels))
    tot["files"] += files[top]
    tot["lines"] += lines[top]
    for l in labels:
        tot[l] += hits[top][l]
print(f"{'all':22} {tot['files']:5} {tot['lines']:9} " + " ".join(f"{tot[l]:9}" for l in labels))
print()
print("sorry outside Challenge/:", sum(hits[t]["sorry"] for t in files if t != "Challenge"))
print("theorems in Challenge/ files:", challenge, "total", sum(challenge.values()))
print("README: 132 main + 190 further + 63 machine statements =", 132 + 190 + 63)
for label, paths in where.items():
    print(f"files with {label}:", "; ".join(paths))
commit 44431b0b294e191241f480adc840c811fda1f44e
folder                 files     lines     sorry     axiom native_de decide +k ofReduceB extern/im    unsafe
proof                   4118    874972         0         0         0        94         0         3         5
PaperDetails             169     14061         0         0         0         0         0         0         0
PaperDefs                 17      6734         0         0         0         0         0         0         0
Challenge                  3      1220       385         0         0         0         0         0         0
CryptoDefs                 7      1042         0         0         0         0         0         0         0
scripts                    1       407         0         0         0         0         0         0         0
ConsistencyDefs            6       373         0         0         0         0         0         0         0
Solution                   3        87         0         0         0         0         0         0         0
(top level)                4        65         0         0         0         0         0         0         0
all                     4328    898961       385         0         0        94         0         3         5

sorry outside Challenge/: 0
theorems in Challenge/ files: {'Machine.lean': 63, 'Paper1.lean': 185, 'Papers2to4.lean': 137} total 385
README: 132 main + 190 further + 63 machine statements = 385
files with extern/implemented_by: proof/QL/Extract/Memo.lean (3)
files with unsafe: proof/QL/Extract/Memo.lean (4); proof/QL/Host/Oblivious/Load.lean (1)

The numbers line up. The folder has 4,328 Lean files and about 899,000 lines, of which 874,972 lines sit under proof/. All 385 sorry placeholders are in the three Challenge/ files, which hold exactly 385 theorems (63 for the machine, 185 for paper 1 and 137 for papers 2 to 4), matching 132 + 190 + 63 and the 81 + 104, 24 + 35, 19 + 35 and 8 + 16 split in the README table. There are no axiom declarations and no native_decide. The only unsafe and extern or implemented_by uses are in two files under proof/QL/, and decide +kernel appears 94 times, all under proof/. This is a structural scan. It does not show that the Lean statements say what the papers say, which the README leaves to readers, and we did not run the Comparator check, which the README says takes about 60, 40 and 5 minutes in three configurations.

What CIRG’s advice looks like on a server

CIRG’s advice to adopters, to choose the highest security level each application can support and to prefer hybrids, points at ML-KEM-1024 paired with a classical key exchange. The sweep below asks 24 public sites which TLS 1.3 key-exchange groups they accept. It needs OpenSSL 3.5 or newer, and the results depend on the day and on the network.

# tls_mlkem.py
# tls_mlkem.py: which ML-KEM key-exchange groups do 24 public sites accept in TLS 1.3 today?
# Needs OpenSSL 3.5 or newer on the PATH (it has the ML-KEM groups built in). Results depend on the day.
import json
import re
import subprocess
from concurrent.futures import ThreadPoolExecutor

HOSTS = [
    "cloudflare.com", "www.google.com", "github.com", "www.facebook.com",
    "www.microsoft.com", "www.apple.com", "www.amazon.com", "aws.amazon.com",
    "en.wikipedia.org", "openai.com", "www.anthropic.com", "signal.org",
    "www.kernel.org", "www.mozilla.org", "www.linkedin.com", "www.netflix.com",
    "x.com", "www.reddit.com", "www.python.org", "sxz.io",
    "www.paypal.com", "www.chase.com", "www.bankofamerica.com", "www.irs.gov",
]
# ML-KEM-768 with X25519, ML-KEM-1024 with P-384, ML-KEM-1024 alone, and the classical control
GROUPS = ["X25519MLKEM768", "SecP384r1MLKEM1024", "MLKEM1024", "X25519"]


def probe(job):
    """One handshake, retried once if it times out or fails to parse."""
    for attempt in range(2):
        result = probe_once(job)
        if result[2] not in ("timeout", "error"):
            break
    return result


def probe_once(job):
    host, group = job
    cmd = ["openssl", "s_client", "-connect", f"{host}:443", "-servername", host,
           "-groups", group, "-tls1_3"]
    try:
        run = subprocess.run(cmd, input="", capture_output=True, text=True, timeout=25)
    except subprocess.TimeoutExpired:
        return host, group, "timeout"
    out = run.stdout + run.stderr
    found = re.search(r"Negotiated TLS1\.3 group: (\S+)", out)
    if found:
        return host, group, "refused" if found.group(1) == "<NULL>" else found.group(1)
    found = re.search(r"Peer Temp Key: ([A-Za-z0-9]+)", out)
    if found:
        return host, group, found.group(1)
    if re.search(r"alert|handshake failure|no shared", out, re.I):
        return host, group, "refused"
    return host, group, "error"


if __name__ == "__main__":
    jobs = [(h, g) for h in HOSTS for g in GROUPS]
    with ThreadPoolExecutor(max_workers=8) as pool:
        results = list(pool.map(probe, jobs))
    table = {}
    for host, group, outcome in results:
        table.setdefault(host, {})[group] = outcome
    for group in GROUPS:
        ok = sum(1 for h in HOSTS if table[h][group].upper() == group.upper())
        print(f"{group:20} negotiated at {ok:2} of {len(HOSTS)} sites")
    json.dump(table, open("tls_mlkem.json", "w"), indent=1)

    def sites(group, accepted=True):
        return ", ".join(h for h in HOSTS if (table[h][group].upper() == group.upper()) == accepted) or "none"

    print("refused the ML-KEM-768 hybrid:    ", sites("X25519MLKEM768", accepted=False))
    print("accepted the ML-KEM-1024 hybrid:  ", sites("SecP384r1MLKEM1024"))
    print("accepted ML-KEM-1024 on its own:  ", sites("MLKEM1024"))
    odd = {h: v for h, v in table.items() if "error" in v.values() or "timeout" in v.values()}
    print("sites with an error or timeout in any row:", ", ".join(odd) or "none")
X25519MLKEM768       negotiated at 21 of 24 sites
SecP384r1MLKEM1024   negotiated at  0 of 24 sites
MLKEM1024            negotiated at  1 of 24 sites
X25519               negotiated at 24 of 24 sites
refused the ML-KEM-768 hybrid:     github.com, en.wikipedia.org, www.netflix.com
accepted the ML-KEM-1024 hybrid:   none
accepted ML-KEM-1024 on its own:   www.google.com
sites with an error or timeout in any row: none

The ML-KEM-768 hybrid is common (21 of 24, with github.com, en.wikipedia.org and www.netflix.com refusing it), the ML-KEM-1024 hybrid is absent from all 24, and one site accepts ML-KEM-1024 on its own. A first run a few minutes earlier gave the same counts, plus one timeout that the script now retries. To see what one server does with every ML-KEM group, loop over the group names:

# google_groups.sh: which ML-KEM groups does one server accept in TLS 1.3? Needs OpenSSL 3.5 or newer.
host=www.google.com
for g in MLKEM512 MLKEM768 MLKEM1024 X25519MLKEM768 SecP256r1MLKEM768 SecP384r1MLKEM1024; do
  if openssl s_client -connect $host:443 -servername $host -groups $g -tls1_3 </dev/null 2>&1 | grep -q "Negotiated TLS1.3 group: $g"; then r=accepted; else r=refused; fi
  printf "%-20s %s\n" $g $r
done
MLKEM512             refused
MLKEM768             refused
MLKEM1024            accepted
X25519MLKEM768       accepted
SecP256r1MLKEM768    refused
SecP384r1MLKEM1024   refused

www.google.com accepted the ML-KEM-768 hybrid and ML-KEM-1024 alone, and refused ML-KEM-512, ML-KEM-768 alone and both other hybrids. In this sample, moving up a level would take server changes almost everywhere, and a client that offers the group. For the deadlines behind the migration, see our report on NIST’s final IR 8547.

What is still open

  • Improvements. CIRG expects the attack to improve, and Aaronson writes that “astronomical constants can be and often are astronomically improved”, adding that he is “deeply uncomfortable with any cryptosystem whose security rests only on constant factors”. Whether the rank dependence can be cut is the open question for the low-rank sets such as ML-KEM-512, which has rank 2.
  • Independent checking. The papers run to 541 pages, and the Lean artifact needs more than an hour on a 12-core machine. We did not build it. We found no report yet of an independent, completed check of the proofs or of the Lean build.
  • What else exists. Anthropic says it is publishing “the most impactful full papers and proofs”. Falcon, the NTRU-based signature scheme behind the FN-DSA standard now in development, is outside paper 1’s scope by its own text.
  • NIST. A plain-text search of NIST’s post-quantum project page and its CSRC updates page this morning found no mention of Anthropic or CIRG. Both pages lean on JavaScript, so that is a weak test, not a statement that NIST has said nothing.

How we checked

We read Anthropic’s post through the fxtwitter API, CIRG’s statement and member page, the README, all four PDFs at commit 44431b0b29, Aaronson’s feed, Cloudflare’s post and The Register’s report, and we ran the four scripts above plus the single-server loop. We did not build the Lean project, run any quantum algorithm, or contact Anthropic, CIRG, Cloudflare or any server beyond a TLS handshake. The page counts, term counts and superscripts come from PyMuPDF; the Lean counts come from a comment-stripping scan that treats sorry and axiom as tokens. The TLS sweep ran from one network at about 10:24 UTC on December 1.

Sources

  • Anthropic’s post on X, November 30, 23:01 UTC
  • CIRG, Initial Assessment of Anthropic’s Findings on Lattice Cryptography
  • anthropics/formal-math, lattices folder and the paper 1 PDF
  • Scott Aaronson, “Now It Can Be Told” and his November 25 post
  • Cloudflare, Post-quantum cryptography is still safe
  • The Register, Phew! AI hasn’t broken encryption and thrown the world into chaos
  • NIST FIPS 203 (ML-KEM) and FIPS 204 (ML-DSA)

Tags:

AnthropicCryptanalysisLattice-Based CryptographyLean 4ML-DSAML-KEMPost-Quantum CryptographyQuantum Algorithms

Share

A bicycle chain with a missing link lying on an open palm beside the loose pin and clip that should have joined it
Previous Post

How to Fix SSL CERTIFICATE_VERIFY_FAILED in Python Without Turning Verification Off: Read the Error Code, Find Who Has to Fix It, Trust Your Own CA, and Catch Broken Chains in CI

A yellow diamond road sign showing a speed bump beside a SLOW sign on a leafy residential street, with painted chevrons on the road ahead of the raised bump
Next Post

Amodei’s “Pace the Frontier” Essay Turns a Six-Week Delay Into a Legislative Prototype, but Only One of Its Three Delays Has a Date, the 14-Day Wait Has No Stated Start and Adds at Most Two Weeks a Generation in a Simple Model, and the January Restart Has No Test

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest
02 Dec
How to Back Up a Live SQLite Database Without Corrupting It: Count the Broken Copies, Use the Backup API or VACUUM INTO, Publish Only Backups That Verify, and Restore Past a Stale -wal File
02 Dec
Ai2’s DR Tulu 2 Turns Search Bills Into a Local Simulator and Its Table Reproduces, but the Repo Trains Finance Before Science While the Paper Says the Reverse, Never Names DR-Anything, the Framework the Post Tells Readers to Use, and Two Benchmarks Supply 56% of the +9.7 Lead
Trending
December 2, 2026
How to Back Up a Live SQLite Database Without Corrupting It: Count the Broken Copies, Use the Backup API or VACUUM INTO, Publish Only Backups That Verify, and Restore Past a Stale -wal File
December 2, 2026
Ai2’s DR Tulu 2 Turns Search Bills Into a Local Simulator and Its Table Reproduces, but the Repo Trains Finance Before Science While the Paper Says the Reverse, Never Names DR-Anything, the Framework the Post Tells Readers to Use, and Two Benchmarks Supply 56% of the +9.7 Lead
December 2, 2026
Docker Fixes a Sandboxes Bug That Let a Kit Update Redirect a Stored API Key, but the Same Flaw Scores 5.6, 6.9 or 8.2, the Finder Demonstrated One of 13 Services, and the Upgrade Stops Reading the Environment Variables Some Teams Use to Require Signed Kits
December 1, 2026
How to Alert When Prometheus Stops Seeing Your Service: Tell a Crash From a Removed Target From a Renamed Metric, Use absent() Without False Alarms, and Test Every Silent Failure With promtool
December 1, 2026
DeepMind’s CellGemma Turns Virtual Drug Screening Into a Residual on Top of the Population Mean, but an MLP Given the Same Baseline Reproduces About Half of Its 16-Point Lead, “All 32 Settings” Holds for One of 12 Metrics, and the Wet-Lab Result Is Three of Five Compounds Against No Comparison Set
December 1, 2026
CISA Lists the Rejetto HFS Session-Forgery Flaw 140 Days After Its Fix, and GreyNoise’s Report of Its Use Shows One HFS Server Serving as a Relay for 24 Check Point Management Servers the Actor Already Held, With an AI Role It Infers but Does Not Show

Related Posts

Rows of server racks in a data center representing network infrastructure targeted by botnets
News

C0XMO Botnet Shows Why Old Router Firmware Still Matters

June 7, 2026
Close-up of a USB flash drive, representing physical data-theft risk in office security incidents
News

Fake IT Support Is Now Walking Through the Front Door

June 7, 2026
A phone security app on a smartphone resting on a laptop keyboard.
News

Everest Forms Pro Flaw Is Being Exploited to Create Rogue WordPress Admins

June 7, 2026
Rows of server racks in a data center, illustrating the infrastructure behind frontier AI funding.
Articles

AI’s Biggest Backers Are Hedging the Frontier Model Race

June 8, 2026
SXZ.io SXZ.io
  • [email protected]

Categories

Articles
Learning Hub
News

All Rights Reserved by SXZ.io ©2026