The Galactic Attack · quantum-proof encryption explained
By Amiro
An AI found a new attack on the math behind quantum-proof encryption, yet today's systems aren't at risk. Built from scratch: how a math lock works, what a lattice is, the puzzle behind ML-KEM, and why the new 'galactic' attack stays out of reach.
Transcript
- 0:00 In November 2026, Anthropic announced that one of its unreleased AI models had found a new attack on the math behind quantum-proof encryption: the locks the world is switching to right now.
- 0:12 Then a group of cryptographers worked out what it would cost to run. Even this many operations would not be enough: two to the power one thousand, a number with three hundred and two digits.
- 0:25 So an attack exists, and yet today's systems aren't at risk. How can both be true? To find out, we'll build it all from scratch: the lock, the lattice, and the attack.
- 0:37 When your phone connects to a website for the first time, the two have never met. Anyone in between can read what they send. Yet somehow, they agree on a secret key that only they know.
- 0:50 The trick is public-key encryption. You hand out open padlocks: that's your public key. Anyone can snap one shut on a message. But only your private key opens it.
- 1:01 A lock like this is safe because of a math problem that's easy one way and hard the other. Multiplying is easy: thirteen times seventeen is two hundred and twenty-one. Going back is hard: which two primes make two hundred and twenty-one? You have to search. Two? Three? Five? Seven? Eleven? Thirteen: found it.
- 1:24 With small numbers that's quick. But real locks use numbers with over six hundred digits. Even the best known methods would take far longer than the age of the universe to split one apart. That one-way street has protected the internet for decades.
- 1:40 Then, in 1994, Peter Shor showed that a large enough quantum computer could split numbers like this quickly, turning the one-way street into a two-way street. Nobody has built a quantum computer that large yet. But a message recorded today could be decrypted years from now.
- 1:58 So in 2024, the US standards body NIST published new locks built to survive quantum computers: ML-KEM, for agreeing on a secret key, and ML-DSA, for digital signatures. They rest on a completely different hard problem: one about lattices.
- 2:19 Start with a single dot: the origin.
- 2:22 Now add two arrows. Call them b-one and b-two; b for basis, the building blocks.
- 2:30 From the origin, you may step along b-one or along b-two, forwards or backwards, as many whole steps as you like. Three steps along b-one, one step back along b-two: you land here. So this spot gets a dot.
- 2:45 Do this in every possible way, and every landing spot fills in. That's a lattice: an endless, perfectly regular grid of points.
- 2:55 In symbols: every lattice point v is x-one times b-one, plus x-two times b-two. This sign means: belongs to. So x-one and x-two belong to the hollow Z: the set of whole numbers, positive, negative or zero. The curly brackets list what's in the set. And for the dot we just found, x-one is three, and x-two is minus one.
- 3:21 Now the twist that everything depends on. Swap our two arrows for two long, skinny ones. Call them c-one and c-two. And look: exactly the same dots.
- 3:33 Why? Each long arrow is just whole steps of the short ones: c-one is two b-ones plus a b-two. And going back: b-one is two c-ones minus a c-two. Whatever one pair can reach, so can the other. Same lattice, two descriptions.
- 3:51 Short, nearly square arrows make a good basis. Long, nearly parallel ones make a bad basis. Hold on to that difference.
- 4:00 Now tilt the picture, and add a third arrow, pointing out of the plane. Whole steps along three arrows: a lattice in three dimensions, like atoms in a crystal.
- 4:12 And nothing stops us at three. With d arrows, we get a d-dimensional lattice. We can't draw it, but the rule is exactly the same. The lattices inside ML-KEM have hundreds of dimensions.
- 4:25 Now for the puzzle at the heart of the lock. Back to two dimensions, where we can see everything.
- 4:32 Pick a lattice point: this one. That's the secret.
- 4:36 Now nudge it by a small random amount, so it lands between the dots. Call the nudged point t. Publish only t, together with a description of the lattice.
- 4:47 The puzzle: which lattice point is closest to t? Mathematicians call this the closest vector problem.
- 4:54 With a good basis it's easy. Write t in steps: two point eight steps along b-one, and one point three along b-two. Round each to the nearest whole number: three and one. And we land right on the secret.
- 5:09 Now try the bad basis. In steps of c-one and c-two, t is one point seven c-ones and minus zero point two c-twos. Round: two and zero. That lands here: nowhere near the secret.
- 5:25 Rounding sends every point in a little parallelogram to the dot at its centre. With short arrows, the parallelogram is small and snug. With long, skinny arrows, it's long and skinny, and the answer can slide far away.
- 5:40 In two dimensions you could just look. But in hundreds of dimensions there's nothing to look at. With only a bad basis in hand, the best known methods would take far longer than the age of the universe, even on a quantum computer.
- 5:54 ML-KEM writes this puzzle as an equation called learning with errors: t equals A s plus e.
- 6:02 A is a big public table of numbers. Its columns play the role of the basis arrows, so A describes the lattice. s is the secret: the list of step counts, the x's from before. For our secret dot, s is three and minus one. So A times s means three steps of the first column, and minus one of the second: exactly the secret dot. e is the small nudge, the error. And t is what everyone sees.
- 6:32 One more detail: all of this arithmetic wraps around, like a clock. On a clock, eleven plus three is two. Mathematicians write mod twelve for this wrap-around. ML-KEM's clock has three thousand three hundred and twenty-nine hours, a number called q.
- 6:51 So here is the lock. Everyone sees A and t. Only the owner knows s. Nobody holds a good basis: the owner simply remembers s. And anyone else would have to solve the closest-point puzzle in hundreds of dimensions, with only a bad basis.
- 7:09 There's a catch. If A were completely random, ML-KEM-512's table would hold two hundred and sixty-two thousand numbers, and keys that size are slow to send.
- 7:22 So ML-KEM builds A from blocks with a pattern. Each block is a list of n numbers. Here's a block of eight, instead of two hundred and fifty-six.
- 7:33 The pattern is one rule, called multiplying by capital X: every number shifts one place to the right, and the one that falls off the end comes back to the front, with its sign flipped.
- 7:45 Why the flip? Think of the block as a polynomial: three, plus one X, plus four X squared, and so on, up to six X to the seventh. Multiplying by X raises every power by one, so the last term becomes six X to the eighth. And the rule is X to the eighth equals minus one. So that term becomes minus six, with no X at all: the front of the list.
- 8:11 Shift again and again, and stack the results: one row of eight numbers fills a whole eight by eight table. In ML-KEM, two hundred and fifty-six numbers fill a table of sixty-five thousand five hundred and thirty-six.
- 8:26 This shifting is a symmetry: a move that carries the lattice onto itself. With blocks of just two numbers, you can see it. Multiplying by X sends the point two, one to minus one, two: a quarter turn. And every dot lands exactly on another dot.
- 8:44 ML-KEM arranges these blocks in a k by k grid. The block size, n, is always two hundred and fifty-six. Only k changes. With k equals two, you get ML-KEM-512. With three, 768. And with four, 1024.
- 9:05 Lattices built from blocks like this are called structured. Those from a fully random table are unstructured. Structure buys small keys and speed. But structure is also a pattern, and a pattern is something an attacker can try to grab.
- 9:21 Now, the news. In November 2026, Anthropic published a paper called Galactic quasi-polynomial quantum algorithms for integral and module lattices. It describes quantum algorithms, found by an internal Claude model, that solve certain structured-lattice problems, including random instances of module learning with errors: the problem behind ML-KEM. They work by exploiting exactly that algebraic structure.
- 9:50 How fast are they? To compare algorithms, we ask how the work grows as the problem grows. On this chart, each step up means ten times more work.
- 10:01 Polynomial growth, like n squared: double n, and the work goes up four times.
- 10:08 Exponential growth, like two to the n: just add one to n, and the work doubles.
- 10:14 From n equals ten to n equals forty, n squared goes from a hundred to sixteen hundred. Two to the n goes from about a thousand to about a trillion. Before this paper, the best known attacks on these lattices grew roughly exponentially. That's what keeps them safe.
- 10:31 Next, one more symbol: log n. It counts how many times you double, starting from one, to reach n. One, two, four, eight, and so on: ten doublings reach one thousand and twenty-four. So log of 1024 is 10.
- 10:50 Now, the new algorithms sit in between: quasi-polynomial. Roughly, n to the power log n. Written as a power of two, that's two to the power log-n squared. And for large n, log n squared is far smaller than n.
- 11:07 The expert group's assessment gives the full cost as n to the power poly k times log n. Here n is the block size, k is the number of blocks, and poly of k means some fixed power of k, like k squared or k cubed.
- 11:23 So why isn't this a disaster? First: these are asymptotic statements. They describe how the cost grows, not how big it is. The new curve grows more slowly, but it starts astronomically higher, and it only overtakes the old methods when n is enormous, far beyond any real system.
- 11:44 That's what galactic means in computer science: an algorithm that's faster in theory, but only for inputs too big to ever use.
- 11:53 Second: look at where the speedup comes from. It comes from growing n, the block size. ML-KEM and ML-DSA never grow n: it's locked at two hundred and fifty-six. They get stronger by growing k, and k sits up in the exponent, where it only makes this attack more expensive.
- 12:13 For the smallest standard settings, the expert group says even two to the power one thousand quantum operations would fall far short of what the attack needs. For scale: the number of atoms in the observable universe is only about two to the two hundred and sixty-six.
- 12:30 Anthropic says it tried to turn the method into a practical attack, and couldn't.
- 12:35 So it's not a break. But it is a signal. The attack works by exploiting structure, and the expert group expects it to be improved. The open question is whether improvements will ever reach real-world sizes. That's why Anthropic says the result lowers its long-term confidence in structured lattices.
- 12:55 The other three papers point the other way. They're reductions: proofs of the form, if you could break this scheme on average, you could solve a hard lattice problem on every lattice. Nobody knows how to do that, so these proofs raise confidence in unstructured lattices. They also answer questions that had been open since at least 2009.
- 13:16 Before release, the results were shared with outside cryptographers and the US government. The main theorems, one hundred and thirty-two of them, were machine-checked in the proof language Lean.
- 13:28 A proof checker is a very strict reader. Every step must follow from the ones before, by the rules of logic, or it refuses. The formal statements were written by AI too, so people still need to check that they say what the papers say.
- 13:44 The advice: keep moving to post-quantum encryption. Combine schemes built on different kinds of math, so a single flaw isn't fatal. And build systems that can swap a lock quickly.
- 13:57 Because in cryptography, the best defence isn't a perfect lock. It's being able to change the lock fast.
More explanations on Sifr