AIAI News Online

DeepMind's RSA-1024 agents explained: 3.5x cheaper, and what's unproven

Google DeepMind says AI agents cut the cost of attacking 1024-bit RSA. Two working papers, one real 391 core-year run, two unrun estimates. What is proven.

11 min at full depth7 sources

In 60 seconds

  • Google DeepMind published two working papers on legacy 1024-bit RSA. Two AI agents re-ran a known 1024-bit attack in 3.2 days for 391 CPU core-years instead of 1,380, and the team also reports unrun estimates of a 1,600x forgery gain and a ~30x batch-factoring gain.
  • Both attacks exploit how much of the input an attacker controls or how many keys are attacked together: a signing interface that accepts about half a block of caller data behaves like a raw RSA oracle, and giving each integer its own family of number fields makes shared precomputation pay off sooner.
  • Keys of 2048 bits and above are not threatened, per the authors. The significance is the speed of the research and a sharper map of which signature formats resist, and the claims await peer review and outside replication.

On November 6, Google DeepMind announced that its AI agents had found "two weaknesses" in legacy 1024-bit RSA, the old key size that much of the internet has spent a decade retiring. Trade coverage such as FourWeekMBA and Crypto Briefing repeated the headline. The two working papers behind the announcement are more careful than the headlines. One result was actually computed, one is a proof about how signing formats behave, and one is an estimate for a machine nobody has built. Knowing which is which is the whole story.

For: Everyone

The plain-English version

Imagine a bank vault with a very large combination lock. Nobody knows the combination except the bank. But the bank offers a service: you hand a clerk any slip of paper, and they stamp it with the vault's secret stamp. Because only the bank can make that stamp, a stamped slip counts as a signature.

An attacker's dream is to forge the stamp on a slip the clerk would never agree to stamp. Cryptographers know a way to get there without ever learning the combination: collect a huge pile of stamped slips on harmless-looking requests (about four billion in the 2026 experiment), then mathematically combine them into a stamp for a brand-new slip. That is hard work. An academic team recently did it for a 1024-bit key and reported it cost about 1,380 "core-years", meaning one processor running for 1,380 years, which they spread over many machines for about five months.

Here is what DeepMind reports. First, two AI agents repeated that exact computation, using the same method, for 391 core-years, in 3.2 days using up to 300,000 processor cores. The paper says the saving came from better code, not a new idea.

Second, the clerk usually does not stamp raw slips. They wrap your text in a fixed envelope first. The new work proves that if you may fill about half of the envelope, the envelope barely helps: it is as if the clerk stamped anything. If you may fill only a quarter (like a short fingerprint of a document), the attack is harder, and the team offers a faster method, but only on paper.

Third, they claim a smarter way to attack many keys at once, again as a theoretical estimate.

The reassuring part is real: modern keys are 2048 bits or more, and the authors say these results do not threaten them. The unsettling part is the speed. The authors say AI moved a field that usually advances slowly, and that is the claim to watch.

For: Curious

How it actually works

RSA in one paragraph. A public number NN is the product of two secret primes. Anyone can "lock" a value by raising it to a public power ee modulo NN. Undoing that, taking the ee-th root, is easy with the primes and believed hard without them. Signing is exactly that hard step, done by the key's owner. The best known general way for an outsider to do it is to factor NN with the number field sieve, which for 1024 bits the authors estimate at 500,000 to 1,000,000 core-years.

The shortcut: use the signer as an oracle. In 2007, Joux, Naccache and Thomé asked a different question: if an attacker can temporarily query a device for ee-th roots of numbers they choose, how much cheaper is the attack than factoring? In their model the attacker queries first, then the device is withdrawn, then the attacker must compute the root of a random target. The answer is "much cheaper", with a cost near the special number field sieve rather than the general one. In 2026, Shea, Haller, Suhl, Heninger and Thomé carried out the first full 1024-bit run, using about 4.07 billion queries.

The format problem. Real signers do not accept arbitrary numbers. They take your data and place it inside a fixed pattern, and the attacker only controls the data. So the oracle accepts only numbers of the form "fixed part cc plus a variable part zz". This is the "affine" oracle. Earlier work expected this to be far less practical.

New idea one: the half-block threshold. DeepMind's paper proves that if the variable part can be as large as roughly the square root of NN, the format constraint stops mattering. Two admissible inputs can be combined into a ratio that reaches any target. For a 1024-bit key, the block is 128 bytes, and PKCS#1 v1.5 allows up to 117 bytes of data. More than about 64 bytes, or a 64-byte digest, gives the attacker enough freedom. A 32-byte digest falls below the line.

New idea two: fans of number fields. The number field sieve finds relations between numbers, and a "factory" reuses a large precomputation across many targets. Until now, a precomputation costing about one factorization bought nothing: you were better off ignoring it. The second paper gives every target its own family, a "fan", of number fields, all drawing on the same stored data, which makes mid-sized precomputations worthwhile.

Result Evidence grade Figure
Re-run of 1024-bit raw-oracle attack Measured 391 vs 1,380 core-years (3.5x)
Half-block threshold Proved, plus measurement at 1024 bits 2 queries per query
Short-digest forgery Asymptotic, not run ~1,600x (DeepMind's announcement; not stated in the paper)
Batch factoring with fans Leading-order estimate, nothing built ~1/58 of NFS; ~30x vs MNFS
For: Practitioner

The deep dive

Complexity language

Both papers measure progress using

LN[1/3,c]=exp⁡((c+o(1))(ln⁡N)1/3(ln⁡ln⁡N)2/3),L_N[1/3, c] = \exp\big((c+o(1))(\ln N)^{1/3}(\ln\ln N)^{2/3}\big),

so an algorithm improves by lowering the constant cc. The general number field sieve has cGNFS=(64/9)1/3≈1.923c_{GNFS}=(64/9)^{1/3}\approx 1.923; the special number field sieve has cSNFS=(32/9)1/3≈1.526c_{SNFS}=(32/9)^{1/3}\approx 1.526. Lowering cc by Δ\Delta saves a factor LN[1/3,Δ]L_N[1/3,\Delta], which grows faster than any power of ln⁡N\ln N. This is also why asymptotic claims are slippery: the o(1)o(1) terms hide constants that can dominate at 1024 bits. Both papers say so explicitly.

Paper 1: the affine modular root problem

The model asks for t1/e mod Nt^{1/e} \bmod N for random targets tt, after an offline phase of non-adaptive queries to an oracle accepting c+zc+z with ∣z∣≤Z|z|\le Z.

The square-root threshold. The authors show that for every fixed cc, an oracle with a window of O(N1/2)O(N^{1/2}) offsets simulates the unrestricted oracle using two queries per query, after a constant number of re-randomisations on average. Writing a residue as a ratio ρ=(c+z)/(c+z′)\rho = (c+z)/(c+z') is a closest-vector problem in a two-dimensional lattice of determinant NN, and the root of ρ\rho is the quotient of two oracle answers. The statement is proved without heuristics down to N1/2N^{1/2}. At 1024 bits with a window of half the bits they measured 1.26 re-randomisations per query. Below N1/2N^{1/2}, a counting argument says the required re-randomisations multiply by four for every bit removed from the window.

The practical reading, from their classification of PKCS#11 mechanisms: raw maps and long data are unrestricted; a 64-byte digest at 1024 bits sits at the threshold; a 32-byte digest is a genuine affine problem; a digest computed inside the device is outside the model. Because the property belongs to the format, it holds "for every correct implementation of it", as the discussion section puts it.

A faster affine algorithm. For the genuine affine case, the old algorithm cost L[61/3]≈L[1.8171]L[6^{1/3}]\approx L[1.8171] per root because the initialisation of the descent was paid per target. The new method costs L[0.9602]L[0.9602] queries, offline L[1.5803]L[1.5803] and online L[1.5803]L[1.5803] per root. With a larger offline phase L[1.5930]L[1.5930] the online cost drops to L[cSNFS]L[c_{SNFS}], and with L[1.6373]L[1.6373] it approaches L[(8/3)1/3]=L[1.3867]L[(8/3)^{1/3}]=L[1.3867]. The gains come from optimal multi-stage early-abort smoothness testing. A candidate is discarded as soon as the smooth part found so far is too small. For ss stages the cost is

L[(3(1−Cs)2y)1/3],L\big[(3(1-C_s)^2 y)^{1/3}\big],

where CsC_s is the largest left Riemann sum of r2r^2 on ss intervals of [0,1][0,1], and Cs→1/3C_s\to 1/3 so the cost tends to L[(4y/3)1/3]L[(4y/3)^{1/3}]. The paper adds a factor-base extension using only admissible inputs. Importantly, the offline exponent never falls below cSNFSc_{SNFS}, and the authors state they did not run this algorithm at cryptographic size, because the number fields of degree two or more that a generic cc requires make the offline phase far more expensive. The "~1,600x" figure comes from DeepMind's announcement, which calls it a theoretical estimate for forging signatures over 32-byte digests. We could not find that number in the paper itself; it presumably reflects the exponent drop from 1.81711.8171 to 1.58031.5803 at leading order, and the paper flags that result as asymptotic and not run at this size.

The 1024-bit computation

This is the measured result. Same modulus, same polynomials, same factor-base bounds as the earlier study, implemented in C++ on top of CADO-NFS with e=65537e=65537.

Quantity Earlier study (reported) DeepMind agents (reported)
First root, total 1,380 core-years 391 core-years
Offline / online ~1,200 / 180 318 / 73
Oracle queries 4.07 × 10⁹ ~4.06 × 10⁹
Calendar time ~5 months 3.2 days on up to 300,000 cores and 16 GPUs
Factoring the modulus (estimate) 500,000 to 1,000,000 core-years same

Both numbers come from the authors; the comparison uses costs the earlier team reported on different hardware. The paper bounds that caveat with a same-machine test of the siever (1.8 to 4.4 times faster than CADO-NFS, finding the same relations), which accounts for about 90% of the saving. Stage-wise savings were 2.7x and 4.0x in the two sieving stages, 2.2x in the descent and about 6x in root extraction. The authors state the factor of 3.5 is "one of implementation and execution, not of algorithms". They also compute that once the offline work is done, additional roots cost 0.007% to 0.015% of factoring, so computing roots for fewer than roughly 6,800 to 13,600 targets beats factoring the modulus.

Paper 2: Fan Factories

Coppersmith's factory spends L[2.007]L[2.007] once on the rational side of the sieve, then L[1.639]L[1.639] per integer. With a budget near one factorization, the best known per-integer cost was Coppersmith's MNFS at cMNFS=((92+2613)/27)1/3≈1.9019c_{MNFS}=\big((92+26\sqrt{13})/27\big)^{1/3}\approx1.9019, unchanged since 1993. The new construction gives each target a fan of L[τ]L[\tau] algebraic polynomials, all tested against the same stored pairs. The authors solve for the minimum per-target exponent at every precomputation budget in closed form. For a budget of one factorization, the per-integer exponent is L[1.793]L[1.793]. The improvement holds for budget exponents strictly between 1.902 and (2401/324)1/3≈1.950(2401/324)^{1/3}\approx1.950; above that, one field per integer is optimal. For batches factored together with no precomputation, the gain is at most 0.018 in the exponent, or at most 1.75x. The headline "1/58 of the cost, 30x below MNFS" is explicitly at leading order with o(1)o(1) terms set to zero, and no fan factory has been implemented. The algebraic identities and feasibility witnesses are machine-checked in Lean 4.

The agent setup

For the computation, a supervisor model wrote the design, set checkpoints and audited results while an executor model wrote the code and ran jobs. The agents wrote about 33,500 lines of new code, ran 336 distributed experiments, and fixed failures that a rehearsal missed, including descent nodes of 82 to 85 bits that the siever abandoned and a 32-bit index overflow that had made the first computed root wrong. The human researcher sent about twenty short messages, mostly approvals. For the factoring paper, one model generated proofs and a second verified them.

For: Everyone

Why it matters

For everyday users: nothing breaks today. Web traffic, banking and messaging overwhelmingly use 2048-bit or larger keys, and the authors say these are unaffected. NIST already limits 1024-bit RSA to verifying existing signatures, and DKIM email signing, according to one analysis citing RFC 8301, still tolerates 1024-bit keys while recommending 2048.

For developers and security teams: the sharpest lesson is about interfaces, not key sizes. The half-block threshold says that an API letting a caller choose a large part of the signed block hands them an oracle regardless of how carefully the padding is implemented. The practical hygiene is to hash inside the device, avoid raw modes, and retire 1024-bit keys, especially in hardware security modules and smart cards reachable by untrusted callers. The attack needs billions of queries, which is also something rate limits and monitoring can notice.

For companies: the cost to a determined attacker with a large cluster dropped by a factor of a few. Defensive planning should not hinge on the headline ratios, but legacy 1024-bit systems that remained out of inertia have a less comfortable story.

For the field: two points. First, a reproduction that took five months by an academic team took 3.2 days once agents handled the engineering at 300,000 cores, though most of that difference is parallelism, per the paper. Second, the agents built machine-checkable proofs. If this pattern holds, the cadence of cryptanalytic improvement may speed up, which strengthens the case for planning key-size and format transitions earlier. The authors say as much in the paper's outlook.

For: Critical

What to be skeptical of

  • Three grades of evidence, one headline. Only the 391 core-year run was executed at 1024 bits. The ~1,600x signature figure appears as a theoretical estimate in the announcement and is described in the paper as asymptotic and not run. The ~30x batch figure is a leading-order estimate with the o(1)o(1) terms dropped, and nothing was built.
  • The 3.5x is mostly engineering. The authors themselves attribute it to code, not algorithms. Their comparison also uses costs reported on other hardware, though they bound the effect with a same-machine siever test.
  • "Found by AI" is partly framing. The attack algorithm dates to Joux, Naccache and Thomé in 2007 and the 1024-bit target and parameters came from the earlier team. The agents' credited contribution is execution and proofs, and a human directed the work with Heninger and Thomé, who wrote the original attack, among the authors. That makes them informed collaborators rather than independent reviewers.
  • Not peer-reviewed or replicated. Both are working papers. We found no independent cryptographer assessment as of November 8, and the coverage we read relied on DeepMind's own materials, with at least one outlet saying so openly.
  • Threat model is narrow. The attack needs direct, caller-controlled calls to a signing interface, about four billion of them, all chosen before the target is known. Devices that hash internally are out of scope.
  • Asymptotics at 1024 bits are shaky. Both papers say hidden o(1)o(1) factors are not determined by the analysis.
For: Everyone

What to watch next

  • Peer review and outside replication of the 391 core-year computation, and of the same-machine siever speed-ups, in the CADO-NFS community.
  • Whether anyone runs the affine algorithm or builds a fan factory at a real size. The authors list making the affine offline phase practical as the main open problem.
  • Vendor responses from HSM and smart-card makers on whether any product exposes a caller-controlled interface above the half-block threshold, and any guidance from NIST or standards bodies on formats.
  • The 1024-bit tail: watch for further moves to disallow or flag 1024-bit signing keys in email and certificate ecosystems.
  • Follow-on AI-for-mathematics results. Our earlier coverage of OpenAI's Lean-checked maths papers and the ETH disproof shows the same pattern of machine-checked claims, and Anthropic's quantum circuit work sits nearby.
  • Related offensive-AI context in OpenAI's 948 Linux root exploits for how agents are changing the cost of security research.

Check your understanding

Pick an answer — you'll see why right away.

1. Which of DeepMind's three headline numbers was actually measured in a full-scale computation?

2. Why does a PKCS#1 v1.5 signing interface that accepts more than half a block of caller data matter?

3. A signing device computes the hash of the message itself before padding. According to the paper, what follows?

4. What does the 'fan' in Fan Factories give each integer, and when does the trick help?

Glossary

RSA
A public-key system whose security rests on the difficulty of factoring a large number N that is the product of two secret primes.
Oracle (cryptanalysis)
A black box that performs the secret operation, here taking e-th roots modulo N, on inputs the attacker chooses.
Number field sieve (NFS)
The fastest known classical algorithm for factoring large integers, whose cost is measured by a constant c in a formula of the form L_N[1/3, c].
Core-year
The work one processor core does in a year; a computation of 391 core-years could be spread over 300,000 cores in a few days.
PKCS#1 v1.5 padding
A long-standing format that wraps data in fixed bytes before RSA signing; at 1024 bits the data may be up to 117 of the 128 bytes.
PKCS#11
A standard programming interface for talking to hardware security modules and smart cards that hold keys.
Factorization factory
A scheme that does a large one-off precomputation so that each further integer of the same size is cheaper to factor.
Lean 4
A proof assistant in which a mathematical statement is checked mechanically, line by line.
Asymptotic estimate
A statement about how cost grows as numbers get large, which ignores constant factors and smaller terms and so does not by itself give a real-world running time.

Questions people ask

Did DeepMind's AI break RSA?

No. It reported two working papers about legacy 1024-bit RSA: a measured 3.5x cheaper reproduction of an existing attack, and two cost estimates that were not run. The authors say 2048-bit and larger keys are not threatened.

Is my 2048-bit RSA key still safe?

According to the authors, yes: every cost estimate at 2048 bits is asymptotic and the actual computation was at 1024 bits. NIST already disallows creating new signatures with 1024-bit keys, per the authors' references.

What did the AI agents actually do?

Per the paper, one agent designed and audited the work and another wrote about 33,500 lines of code and ran 336 distributed experiments, with a human sending about twenty short messages. Separately, one agent drafted the batch-factoring proofs and a second checked them, with Lean 4 verifying the algebra.

Has anyone outside DeepMind confirmed the results?

Not yet, as far as we could find. Both papers are unreviewed working papers, and two of the authors, Nadia Heninger and Emmanuel Thomé, are outside collaborators who also wrote the original attack.

What is a raw RSA oracle?

It is a device that applies the secret RSA operation to whatever number you submit, with no padding or hashing in the way. Some hardware security modules expose such a mode, and the new paper shows certain padded modes behave nearly the same.

Discussion

  1. Loading comments…

Sources

  1. Modular Roots from a Restricted Oracle: Faster Affine Roots and a 1024-bit Computation (working paper) — Google DeepMind · paper
  2. Fan Factories: Multiple Number Fields in Factorization Factories and Batch NFS (working paper) — Google DeepMind · paper
  3. Advancing the frontier of cryptanalysis (announcement thread) — Pushmeet Kohli, Google DeepMind · official announcement
  4. Forging 1024-bit RSA signatures in nearly SNFS time — IACR ePrint (Shea, Haller, Suhl, Heninger, Thomé) · paper
  5. Google says its AI made old 1024-bit encryption cheaper to attack — transclew. · analysis
  6. DeepMind AI Agents Find 2 Weaknesses in Legacy 1024-Bit RSA — FourWeekMBA · analysis
  7. Google DeepMind's AI agents expose two weaknesses in legacy 1024-bit RSA — Crypto Briefing · news

How this was made: researched and written by an AI model (Claude) from the primary sources listed above, then checked claim-by-claim against those sources in a separate AI fact-check pass. Spotted an error? Email [email protected] and we correct it publicly. Our process.