Google DeepMind Says AI Agents Found Cheaper Attacks on 1024-Bit RSA, but the 1,600x Gain Is an Estimate

On 6 November 2026, Google DeepMind said AI agents working with its researchers had found cheaper attacks on 1024-bit RSA, a key size NIST no longer approves for generating signatures. Pushmeet Kohli, a vice president at Google DeepMind and chief scientist of Google Cloud, announced the results in an X article titled “Advancing the frontier of cryptanalysis.” Google DeepMind released two working papers with it.
The work was led by Krishnamurthy Dvijotham and Abhradeep Thakurta of Google DeepMind with Nadia Heninger of UC San Diego and Emmanuel Thomé of Inria, according to the announcement. Heninger and Thomé were two of the five researchers who forged 1024-bit RSA signatures in September through a hardware security module’s raw signing interface. DeepMind’s agents re-ran that attack.
Only one of the three headline figures comes from a computation: the agents re-ran the September attack on 391 CPU core-years against about 1,380. The 1,600-fold gain for signatures over 32-byte digests and the 30-fold gain for factoring many keys after a shared precomputation are leading-order estimates for attacks DeepMind did not run at 1024 bits. These are classical attacks, run without any quantum computer.
Re-running the September 1024-bit forgery
In the first paper, “Modular Roots from a Restricted Oracle: Faster Affine Roots and a 1024-bit Computation,” the DeepMind team built on the September result. Laura Shea, Miro Haller, Adam Suhl, Heninger and Thomé had implemented a 2007 algorithm by Antoine Joux, David Naccache and Thomé, and published the work as IACR ePrint 2026/2131. An attacker who has temporary access to a raw RSA signing oracle can later forge signatures offline without factoring the key.
The September team spent 1,380 CPU core-years over five calendar months, 1,200 of them before the target was chosen and about 180 per forgery afterwards. To reach raw RSA, the CKM_RSA_X_509 mechanism in PKCS#11, they disabled FIPS 140-2 approved mode on their local Thales Luna K6 HSM.
DeepMind’s agents ran the same algorithm, with the same polynomials and factor-base bounds, against the same 1024-bit modulus. Their oracle was a separate program, the only one with access to the key’s factors. It answered 4,055,916,065 queries as 63 parallel tasks in about 20 minutes and was withdrawn before the target was drawn. The target was then derived from a public seed string through SHA-256 and recorded before the second phase began.
The first root cost 391 core-years, 318 of them before the target was drawn and 73 after. The authors left the linear algebra, which ran on GPUs, and 7.5 core-years of probes and rehearsals out of that total. September’s 1,380 includes about 17 core-years of linear algebra on CPUs. Charging DeepMind’s GPU linear algebra at that figure, the authors get a 3.4-fold saving, or 3.3-fold with the probes added. Both teams counted virtual cores.
The authors attribute the saving mainly to code. Sieving took 1,204 core-years in September and 317 in the re-run. Of the 989 core-years saved, sieving accounts for 887, about 90%. From same-machine tests, the authors put the share of hardware and other differences at no more than 1.5-fold on the core sieve. At their peak, the agents ran on about 300,000 CPU cores and 16 GPUs. The computation took 3.2 days from the first full-scale sieving job to a verified root.
Two cooperating AI agents built and ran the computation, according to the paper. A supervisor wrote the design and parameters and set the checks each stage had to pass. An executor wrote, tested and ran the code. The agents added 33,500 lines of code for the 1024-bit run. The human researcher sent about 20 short messages, most of them approvals. The researcher did not write code, start jobs or diagnose faults.
The authors list four faults that surfaced at full size. In one, a 32-bit offset overflowed, so the first complete root came out wrong. In the final check, the agents raise the root to the power e and compare it with the target. When that check failed, the agents traced the fault to the offset and replaced it with a 64-bit one. They did not have to repeat the oracle queries.
The padded-signature and fan-factory estimates
In the PKCS#1 v1.5 signature format, the caller’s data follows a fixed prefix. Under the paper’s Theorem 4.1, stated without heuristic assumptions, a caller who controls slightly more than half of the block can turn such a signer into a raw oracle, at two signing queries per raw query. The authors defer the proof to a full version of the paper. At 1024 bits, the caller has to control 65 of the 128 bytes for the theorem to apply. A caller who supplies a 64-byte SHA-512 digest is one byte short. For that case the authors tested the reduction’s local step on random 1024-bit moduli, and 79.6% of the draws succeeded.
Kohli wrote in the announcement that once attackers control roughly half of the block or more, “padding adds no protection at all.”
With a 32-byte SHA-256 digest, the caller controls a smaller window, which the authors treat as an affine-root problem. Their new algorithm for that problem has a cost exponent of 1.5803, against 1.8171 for the 2007 algorithm, under five stated heuristics. Kohli described the change, by DeepMind’s theoretical estimates, as roughly 1,600 times better than the previous best method for 1024-bit keys. The authors add: “That result is asymptotic, and we did not run it at this size.”
The second paper, “Fan Factories: Multiple Number Fields in Factorization Factories and Batch NFS,” dated 5 November, is about factoring many integers of the same size. After a precomputation that costs about as much as factoring one integer with the general number field sieve, GNFS, each further 1024-bit integer would cost about 1/58 of a GNFS run. That is about one-thirtieth of the per-integer cost of the multiple number field sieve, MNFS, which Don Coppersmith published in 1993. Both figures are leading-order estimates for factory mode, in which the precomputation’s output is kept in a stored table.
The authors write that no fan factory has been implemented. They report that one AI model generated Lean 4 proofs of the paper’s algebraic identities and exact feasibility witnesses, and that a second model verified them. The authors defer the Lean source to a full version.
The authors state in both papers that the results do not threaten deployed cryptosystems today that are based on 2048-bit and larger RSA. DeepMind released both as working papers, with no peer-review venue named.
My Analysis
What the agents did and what the cryptographers did
In 2007, Thomé, Joux and Naccache described both oracle attacks in a paper, with an exponent of about 1.526 for an unrestricted oracle and about 1.817 for the affine one. In their September paper, Thomé, Heninger and three UC San Diego colleagues implemented the unrestricted version against two Thales Luna HSMs. They left the affine version on paper and expected it to be “perhaps even barely competitive with factoring.” Thomé and Heninger are among the 12 authors of each DeepMind paper.
The DeepMind authors document the agents’ share of the computation in detail. The supervisor made 959 tool calls and the executor 15,140. A specialist sub-agent made 193, to speed up one linear-algebra step fivefold. The human researcher chose the problem, the oracle bound and the instance. The researcher also approved the conditions for the two irreversible steps: running the oracle batch and drawing the target. The authors call the models Model A and Model B and do not name them.
The signatures paper has two main theorems, one for the affine algorithm behind the 1,600x figure and one for the reduction from more than half a block to raw access. The paper has no contribution statement. In the fan-factory paper, the authors say the analysis and the Lean formalization were developed with AI agents. They describe the fan factory as Coppersmith’s 1993 design with one change, a fan of polynomials for each target, built with his MNFS construction. Kohli wrote that the team used AI agents under human supervision.
The authors report the agents’ tool calls for the re-run, the least novel of the three results, and do not say who found either theorem. I would like the full versions of both papers to carry a contribution statement.
The September team ran their computation from March to August, about five months, and sent billions of queries to two real HSMs, one of them a remote unit lent by a third party. DeepMind’s software oracle answered its 4 billion queries in about 20 minutes. The authors attribute most of the difference between five months and 3.2 days to parallelism, with up to 300,000 cores running at once. They credit most of the 3.5-fold CPU saving, the measured result, to better code.
At $0.08 per core-hour, the re-run’s 391 CPU core-years, about 3.4 million core-hours, come to roughly $274,000. Eric Lu of Cognition used that CPU rate in the cost comparison I reported in the RSA-260 piece. I have not priced the GPU linear algebra, the probes, the oracle or the research work. The authors put the first forgery at 0.04–0.08% of the 500,000 to 1,000,000 core-years that the September team estimated for factoring the key. An organization that still exposes raw RSA signing on a 1024-bit key should treat that key as forgeable.
The 1,600x figure is an L-notation estimate
The number 1,600 does not appear in the paper. The authors give two constants, 1.8171 and 1.5803, and the ratio follows from the standard way of writing number field sieve costs:
$$$L_N[1/3, c] = \exp\left((c + o(1))\,(\ln N)^{1/3}(\ln \ln N)^{2/3}\right)$$$
At leading order only the constant c differs between the two algorithms, although the o(1) terms can differ too. For a 1024-bit N, the factor $$(\ln N)^{1/3}(\ln \ln N)^{2/3}$$ is about 31.275. With the o(1) terms set to zero, the ratio of the two costs is:
$$$e^{(1.8171-1.5803)\times 31.275} = e^{7.406} \approx 1{,}646$$$
I get 1,646, which Kohli rounded to about 1,600. With the same method I also reproduce the fan-factory paper’s own 1/58 and 30x. I would read all of these numbers with three limits in mind:
- Both costs are estimates. The September team did not implement the 2007 affine algorithm either, so 1,646 is the ratio of two costs that neither team has measured at 1024 bits.
- The dropped terms can be large at real sizes. With them dropped and the GNFS constant of 1.923, factoring a 1024-bit key comes to about $$2^{87}$$ operations, a factor of more than 100 above the usual rating of 80 bits. For the raw-oracle variant the September team ran, the leading-order query count at 1024 bits is about $$1.1 \times 10^{13}$$. The team made about $$4.1 \times 10^{9}$$ queries, roughly 2,800 times fewer. The dropped terms also differ between algorithms, so a ratio of two leading-order costs can be off by more than its rounding.
- The ratio grows with the key. With the same two constants, the ratio is about 21,500 at 2048 bits, because 31.275 becomes 42.13. Neither attack becomes feasible at 2048 bits because the ratio between them is larger.
At leading order, the new affine algorithm costs about $$2^{71}$$ at 1024 bits, against about $$2^{69}$$ for the 2007 raw-oracle algorithm in its asymptotically best form and about $$2^{87}$$ for factoring with GNFS. The authors give no core-year figure for the 32-byte case. For a generic prefix c, an attacker has to collect relations in number fields of degree at least two during the offline phase. The authors write that collecting relations in those fields makes that phase far more expensive.
A CISO can read the measured 3.5x as the drop in CPU time for a known attack after agents rewrote its code. A cryptographer can read the estimated 1,600x as a guide to how the cost of a different attack would scale if the heuristics behind it are right. The agents forged a signature only in the re-run.
Signing services, HSMs and the 32-byte digest case
The September team needed raw RSA, which NIST does not approve as a signature scheme. To get it, they took their local HSM out of FIPS-approved mode. PKCS#1 v1.5 signing over a digest the caller supplies is a standard, widely supported interface. Cloud key-management services offer it too. AWS KMS, for example, signs a precomputed SHA-256 digest with PKCS#1 v1.5 padding when the caller sets the message type to DIGEST, and it skips its own hashing step. A service given only a 32-byte digest cannot establish that it is the SHA-256 hash of an authorized message, so a caller with access can submit any 32 bytes. That is the affine oracle in the paper. AWS KMS offers RSA keys of 2048, 3072 and 4096 bits, with no 1024-bit option.
I mapped PKCS#11 signing interfaces on a 1024-bit key to the paper’s results, following its Section 4.2:
| Interface on a 1024-bit key | Bytes the caller chooses freely, of 128 | What the paper says applies | Run end to end at 1024 bits |
|---|---|---|---|
| Raw RSA, CKM_RSA_X_509 | 128 | The September attack, unchanged | Yes, re-run on 391 core-years |
| PKCS#1 v1.5 with long caller data, CKM_RSA_PKCS | Up to 117 | Equivalent to raw at two signing queries per raw query from 65 bytes up, by Theorem 4.1, with no heuristics. The proof is deferred to the full version | No |
| PKCS#1 v1.5 over a caller-supplied 64-byte digest such as SHA-512, with the DigestInfo prefix enforced | 64 | One byte below the theorem’s threshold. On random moduli, 79.6% of local draws succeeded, about 1.26 draws per raw query, and each raw query still costs two signing queries | No, only the draw success rate was measured |
| PKCS#1 v1.5 over a caller-supplied 32-byte digest such as SHA-256, with the DigestInfo prefix enforced | 32 | Affine-root problem, exponent 1.5803 in place of 1.8171, under five heuristics | No |
| Hash computed inside the device, CKM_SHA256_RSA_PKCS | 0 | Outside both oracle models | Not applicable |
If the signer does not enforce the DigestInfo prefix, the caller chooses those bytes too. A SHA-512 DigestInfo is 83 bytes, above the threshold. A SHA-256 DigestInfo is 51 bytes.
For anyone running RSA signing keys behind an HSM or a signing service, I would take five steps, none of which depends on the 1,600x estimate:
- Retire 1024-bit signing keys. NIST no longer approves them for generating signatures. At cloud rates, the re-run’s CPU time is worth a few hundred thousand dollars.
- Hash inside the device wherever you can. The authors place CKM_SHA256_RSA_PKCS outside both oracle models.
- Restrict mechanisms per key. A caller who can still reach CKM_RSA_X_509 or CKM_RSA_PKCS on the same private key, through another application or an administrative interface, keeps the oracle whatever the main application does.
- Validate every DigestInfo. Where callers must supply one to CKM_RSA_PKCS, check its full DER structure, hash identifier and length, and reject trailing data. On a 1024-bit key, an attacker who can pass up to 117 bytes of arbitrary data gets the raw oracle under Theorem 4.1.
- Rate-limit and monitor signing per key, across all callers and interfaces. The September team’s 4.07 billion queries took about 175 hours on a local Luna K6, at about 6,500 signatures a second. On a remote Luna S750, at about 2,500 a second, the same queries took about 443 hours. An attacker makes those queries before choosing a target, so a defender who later revokes that access does not stop the forgeries. If I found billions of raw signing requests against a 1024-bit key in the logs, I would replace the key.
The September authors wrote that an attacker with an oracle applying PKCS#1 v1.5 or PSS padding does not seem to gain much asymptotic advantage over factoring. Under DeepMind’s Theorem 4.1, that no longer holds for PKCS#1 v1.5 once the caller controls more than half the block. On RSA-PSS, the DeepMind authors make no claim either way.
In PSS, the signer adds a salt, hashes the caller’s digest again and masks the encoded message before signing. The caller therefore does not choose the signed block. Under RFC 8017, the hash can be computed outside the signing module, and the PSS security proof still holds when an opponent controls that hash. AWS calls PSS preferred in its documentation and keeps PKCS#1 v1.5 for compatibility with existing applications.
Blind RSA signing under RFC 9474 is an exception, although verifiers check its finished signatures as ordinary PSS signatures. The server applies the raw private-key operation to a blinded value the client chooses, so it answers raw-oracle queries by design.
The 32-byte digest case at 2048 bits
Kohli and the authors of both papers say the results do not threaten deployed cryptosystems today that are based on 2048-bit and larger RSA. Before repeating that, I worked out the new exponent’s costs for a key twice as long, with the digest still at 32 bytes.
Theorem 3.1 holds for any fixed $$\theta > 0$$, as N grows, when the caller chooses from a window of $$N^{\theta}$$ values, under five heuristics. A 32-byte digest is about $$\theta = 1/4$$ at 1024 bits and $$\theta = 1/8$$ at 2048 bits. I evaluated the leading-order expression at both sizes to see how the costs scale, not to price a fixed 32-byte digest. The authors call every 2048-bit estimate in the paper asymptotic and note that windows below half the block have not been run at any cryptographic size.
With the o(1) terms set to zero, the 2048-bit figures are:
- Factoring with GNFS: about $$2^{117}$$
- The 2007 affine algorithm: about $$2^{110}$$
- The new affine algorithm: about $$2^{96}$$
- The 2007 raw-oracle algorithm, in its asymptotically best form: about $$2^{93}$$
- Chosen signatures the new affine algorithm needs, L[0.9602]: about $$2^{58}$$, or $$3.7 \times 10^{17}$$
At 10,000 signatures a second, $$3.7 \times 10^{17}$$ signatures take about 1.2 million years. That is a leading-order expression, not a lower bound on the queries an attacker would need. The September team put the raw-oracle attack at 2048 bits at about 90 bits of work with $$2^{43}$$ queries, using a different calibration from mine.
RSA-2048 signatures already have an end date. Under NIST IR 8547, which NIST finalized on 27 October, RSA signatures at every approved key size are deprecated after 2030 and disallowed under NIST standards and guidelines after 2035. NIST notes earlier deadlines for federal high-value systems.
Fan factories and the 1024-bit keys still in DNS
Factoring costs have had the form L[1/3, c] since the number field sieve was introduced in the early 1990s. The DeepMind authors lower the constant c for the second and later keys of the same size, within that form.
Coppersmith described the factory case in his 1993 paper, in which he reused smoothness computations and precomputed tables for factoring any integer in a range. In his factory, each later key costs about 1/7,300 of a GNFS run at 1024 bits, an exponent of 1.6386, but only after a precomputation at exponent 2.0069 that costs about 14 GNFS runs, both at leading order. Daniel J. Bernstein and Tanja Lange reworked Coppersmith’s ideas for a realistic circuit model in their 2014 Batch NFS paper.
The DeepMind authors aim the fan factory at the budget in between. With a precomputation equal to one GNFS run, each further integer costs exponent 1.7929, against 1.9019 for MNFS, the best method at that budget since 1993. At 1024 bits those exponents work out to the 1/58 and 30x in the announcement. Counting the precomputation, three or more integers cost less with the fan factory than with MNFS. Every integer after the precomputation has the same estimated marginal cost. From 59 integers on, the average including the precomputation is within a factor of two of that marginal 1/58.5.
The authors say their estimates “do not predict running times.” They also name memory as a second obstacle in factory mode. At a one-run budget, the stored table contains about $$2^{75}$$ pairs at 1024 bits, more than 35 decimal zettabytes even at one byte per pair. In batch mode, without a stored table, the per-integer exponent improves by at most 0.018, a leading-order factor of at most 1.75 at 1024 bits.
Under DKIM, a domain’s mail servers sign outgoing email. The domain owner publishes the matching RSA public keys in DNS. In a 2024 scan of the Tranco top million domains, the developer behind DMARC Checker found 476,617 DKIM records across 325,923 domains, 1,726 of them with keys shorter than 1024 bits. The developer queried only common selector names and could not find every record or tell which keys are still used to sign mail. Heise reported that almost half of the keys examined were 1024 bits or shorter. In DomainTools data published by dmarc.org, 2048-bit DKIM keys first outnumbered 1024-bit keys in 2021, by only about two to one.
With a factored DKIM key, an attacker can sign mail that passes DKIM for that domain. The developer behind the scan factored a 512-bit DKIM key for under $8 on a rented cloud server. Yahoo Mail, Mailfence and Tuta reported dkim=pass for test messages signed with it. No one has publicly shown a cheap factorization of a well-generated 1024-bit key. On paper, after a precomputation equal to one GNFS run, each further 1024-bit key would cost about 1/58 of a run. The authors have not built a fan factory.
Under RFC 8301, published in January 2018, DKIM signers must use RSA keys of at least 1024 bits and should use at least 2048. Moving to a 2048-bit key means generating a new key pair and configuring the signer to use it. The domain owner then publishes the new public key under a new selector and removes the old 1024-bit record, which verifiers would otherwise keep accepting. Finding every 1024-bit key still used to sign email, code, firmware or tokens takes longer. That is a cryptographic inventory task. For signing keys, I would record which mechanisms are enabled on each key and who can call them, as well as its size.
AI as a cryptanalysis research agent
In July I sorted cryptographic failures into three tiers in my piece on AI-found flaws in HAWK and seven-round AES: implementation bugs, algorithm design weaknesses, and practical breaks of a full scheme at its intended parameters. DeepMind’s two estimates are tier two. By the authors’ estimates, an attacker needs less work than earlier researchers had found against a signature format with a fixed prefix and caller-chosen bytes, and against a key size deployed many times over. Both estimates come from new algorithms, and DeepMind has run neither at a cryptographic size.
In the re-run, agents did research engineering at full scale. They reimplemented and optimized a published attack, building on CADO-NFS, the September team’s public code and an existing pipeline for smaller moduli. They then ran it at 1024 bits, with a person approving the irreversible steps. In September, AI agents built the GPU number field sieve implementations behind the RSA-260 and RSA-896 records. When I covered RSA-896, Stephen Weis had not said how the work was split between him and Claude. The DeepMind authors report tool calls by agent, the checks the supervisor set before releasing compute to each stage, and the faults found at full size. I would like that level of disclosure to become the norm for AI-assisted cryptanalysis.
In the July piece I also argued that researchers using AI could produce attack claims faster than cryptographers can check them, and I cited Markku-Juhani Saarinen’s proposal to require machine-checkable proofs or scaled-down demonstrations. The DeepMind authors met part of that bar. Anyone can check a forged signature: the root raised to the power e either equals the target or it does not. A reader who runs that check learns that the root is valid, but not how many core-years it took or who proposed the theorems. The authors report Lean 4 checks of the fan factory’s algebraic identities, but they defer the Lean source to a full version. They state Theorem 3.1, behind the 1,600x estimate, under five heuristics. They prove the fan factory’s calculus arguments in the text and check them numerically, outside the Lean work. Cryptographers outside the team still need to review both results.
DeepMind announced the re-run about seven weeks after the September paper appeared. The authors call making the affine algorithm’s offline phase practical the main open problem on the computational side. A run of it at a cryptographic size is the next result I will watch for. I would not wait for that run to retire 1024-bit RSA signing keys or to check how many bytes callers control in every PKCS#1 v1.5 signing interface.
Cryptanalysts with agents will find weaknesses like these faster. Cryptographers will use the same tools to design and check replacements. In both cases my answer is crypto-agility, the ability to find and replace an algorithm across an estate quickly.