Researchers Forged a 1024-Bit RSA Signature Through an HSM’s Raw Signing Interface Without Factoring the Modulus
September 23, 2026 – Researchers at the University of California San Diego and Inria have forged a 1024-bit RSA signature without factoring the key’s modulus. They used the answers to about 4.07 billion signing requests sent to a Thales Luna hardware security module, or HSM, that they had set up to sign raw, unpadded inputs. They described the attack in “Forging 1024-bit RSA signatures in nearly SNFS time,” a preprint that the IACR Cryptology ePrint Archive approved on September 22 after receiving it on September 20.
The authors, Laura Shea, Miro Haller, Adam Suhl and Nadia Heninger of UC San Diego and Emmanuel Thomé of Inria Nancy, ran the computation from March 13 to August 31. They reported a total cost of 1,380 CPU core-years, about 1,200 for precomputation and about 180 for the forgery itself. They counted virtual cores, twice the number of physical cores on their machines.
Extrapolating from the 1024-bit run, the authors estimated that an RSA key reachable through a raw signing interface is 15 to 30 bits weaker than its factoring-based estimate, for key sizes from 1024 to 4096 bits. By their model, RSA-2048 has about 90 bits of security instead of 112, and 4096-bit RSA has less than 128. They wrote that both the measured time and these projections should be read as upper bounds.
In the authors’ model, the attacker has temporary access to an oracle that returns $$w^d \bmod N$$ for any input $$w$$, which is the RSA private-key operation with no padding. The attacker makes every query before access ends and learns the value to sign only afterwards. The authors called this setting delayed-target RSA and likened it to a lunchtime, or IND-CCA1, attack.
After the precomputation and the queries, the attacker needs about 180 core-years, offline, for each further forgery on any target. An attacker with a raw decryption oracle can decrypt any ciphertext under that key the same way, the authors wrote.
The team implemented the e-th-root number field sieve that Antoine Joux, David Naccache and Thomé published in 2007 in “When e-th Roots Become Easier Than Factoring.” With extension sieving, the practical variant the team used, its asymptotic cost is $$L_N(1/3,\ 1.577)$$, against constants of 1.923 for the general number field sieve used to factor RSA moduli and 1.526 for the special number field sieve, which applies only to integers of a special form. An attacker who holds the oracle sieves for smooth relations on one side of the algorithm instead of two, and pays close to the special sieve’s cost.
The local oracle was a Luna K6 PCIe card in the researchers’ own server, an older model that Thales has deprecated. On it, the researchers averaged about 6,500 signatures a second with 40 threads and needed about 175 hours of signing time for all 4,067,419,331 queries. They ran the same queries on a remote Luna Network HSM S750, a model with no announced end-of-life date, which a third party operated on another continent, and needed about 443 hours there.
To get raw RSA on the K6, the team switched off the card’s FIPS 140-2 approved mode and used the PKCS#11 mechanism CKM_RSA_X_509, which OASIS defines in the standard as “raw” RSA. The researchers generated the key outside the HSM and imported it, because HSMs wipe their state on a power outage. During the attack they used only black-box signing calls.
The authors identified blind RSA signatures as a deployed source of the same oracle. In the scheme, which the IRTF’s Crypto Forum Research Group published as RFC 9474 in October 2023, the client encodes its message with PSS padding and blinds it. The signer then applies the raw private-key operation to the blinded integer without learning the message behind it.
The authors named publicly verifiable Privacy Pass tokens, which Fastly, Persona and Cloudflare use in production and which Apple implements as Private Access Tokens. They also named Apple’s iCloud Private Relay and the GNU Taler payment system, whose exchanges sign coins with RSA-FDH blind signatures.
For 2048-bit keys, the authors extrapolated that an attacker would need about 2⁴³ queries, roughly 8.8 trillion. At one token a minute, the rate they wrote that Apple appears to allow, that is 17 million years on a single device. For Taler, they calculated, the attacker would have to withdraw $88 billion in one-cent coins, all signed under one denomination key.
The attacker needs an unpadded oracle. Against a signer that applies PKCS#1 v1.5 or PSS padding itself, the authors wrote, an attacker forging signatures does not seem to gain much asymptotic speed over factoring. The affine oracle that best matches PKCS#1 v1.5 signature padding, which the team did not implement, has a cost constant of about 1.817.
An attacker could also compute each raw query through a Bleichenbacher padding oracle, which takes 10⁴ to 10⁶ queries to decrypt one ciphertext, at a much higher total cost. The authors wrote that their attack does not apply to ECDSA or Ed25519.
The authors wrote that the attack “likely does not pose an immediate operational threat to most modern RSA deployments.” They called it practical “in an academic sense rather than in the script-kiddie sense.” They argued for moving away from RSA entirely during the post-quantum transition already under way.
For blind-RSA deployments, they suggested frequent key rotation in the short term, larger keys in the medium term, and zero-knowledge proofs of message well-formedness or post-quantum schemes in the long term. Taler’s newer clause blind Schnorr signatures, they noted, would not be vulnerable to this attack.
The authors wrote that they did the work without generative AI, coding and writing everything by hand. They noted that at least two people working independently on the RSA-260 factorization, announced a few days after the authors finished their computation, used AI to port the CADO-NFS factoring software to GPUs. On those GPU implementations, they estimated, the 1024-bit forgery would have cost 2 to 9 GPU-years.
My Analysis
Eric Lu at Cognition announced the factorization of RSA-260 on September 3. On September 19, Stephen Weis at Anthropic announced that he had factored RSA-896. Both had AI coding agents adapt the number field sieve to GPUs.
The UC San Diego and Inria team factored nothing. They showed that anyone who can get raw e-th roots computed under a 1024-bit RSA key can later sign any message with it, at 1,380 core-years for the first forgery and about 180 for each one after it. The authors put that effort somewhere between the RSA-240 and RSA-250 factoring records of 2019 and 2020.
For a 2048-bit key behind the same kind of interface, the authors estimate about 90 bits of security. Against a 2048-bit key whose signer applies PKCS#1 v1.5 or PSS padding itself, an attacker gains little over factoring. Anyone estimating the security of an RSA key in an HSM or a token issuer now needs two facts: the size of the modulus, and whether anyone can get the private-key operation applied to an integer of their choosing.
Breaking RSA Without Factoring the Modulus
A raw RSA signer returns the e-th root of its input t modulo N, the number s with $$s^e \equiv t \pmod N$$. A padded signer computes the same root, but of an encoded value it builds from the message. Anyone who knows the factors of N can compute the private exponent d and with it every root. Nobody has shown the converse, that computing roots requires factoring. Joux, Naccache and Thomé showed in 2007 that an attacker with oracle access can compute e-th roots faster than any known factoring method. They reported a 512-bit computation.
The raw RSA operation is multiplicative: $$(ab)^d \equiv a^d b^d \pmod N$$. Anyone holding a raw oracle has always been able to sign products of values already queried. Joux, Naccache and Thomé extended the trick to any target, including one the attacker learns only after access ends.
In the 1024-bit run, the researchers asked the oracle for the e-th roots of all 2.87 billion primes below 2³⁶ and of about 1.2 billion integers derived from relations found by sieving. They derived those algebraic and extension queries from a precomputation specific to N, so an attacker needs the public key, and months of sieving, before sending them.
Once the attacker learns the target, they use the descent step of the number field sieve to split it into pieces built from the queried values. The attacker then runs a linear-algebra step and a root extraction in a number field to assemble the forgery from the stored answers. A signer that pads returns roots only of values in the padding format, which the attacker cannot freely combine into an arbitrary target.
Raw RSA decryption is the same operation as raw signing. An attacker with temporary access to a raw decryption interface can therefore decrypt later ciphertexts under that key offline, at the same per-target cost, as the authors note in the paper and in their README.
The authors describe HSMs as a trust boundary for servers that may be partly compromised. Certificate authorities and software publishers keep their signing keys in HSMs so that an intruder on the server cannot copy them. With raw RSA enabled on a 1024-bit key, the intruder has no need to.
An intruder who has only the public key can finish the precomputation before breaking in, then needs access for only about a week of uninterrupted signing at the K6’s measured rate. After that, each forgery costs about 180 core-years offline. The intruder can sign as that key until its owner revokes it.
The lower constant from Joux, Naccache and Thomé applies only to an attacker who holds an oracle. Anyone factoring an RSA modulus without one still pays the cost of the general number field sieve, which has had the same L(1/3) form since the early 1990s.
Raw RSA Signing Interfaces in HSMs and Blind-RSA Issuers
On an HSM, raw RSA is a configuration choice. OASIS defines CKM_RSA_X_509 in PKCS#11 for applications that do not follow the PKCS #1 or ISO/IEC 9796 block formats. The authors give the likely reason integrators turn it on: to apply a padding the HSM’s API lacks, such as ISO 9796-2 for legacy e-passport active authentication and digital tachographs, ANSI X9.31, or the RSA-FDH that Taler uses. In each case the HSM will sign any integer below N with that key. The authors also name Android’s KeyMint, where apps can make unpadded RSA decryption calls.
A blind-RSA issuer needs the raw interface. In RFC 9474, the signer applies the private-key operation to the blinded integer with no padding check. Afterwards the signer only re-verifies the result, to catch hardware faults. The RFC’s authors acknowledge concerns about arbitrary signing oracles and require that a blind-signing key not be reused for any other protocol. They leave zero-knowledge proofs of message structure out of scope.
An issuer can produce PSS signatures and still act as a raw oracle. A blind-RSA client applies PSS encoding before blinding, so anyone can verify the finished token as an ordinary RSA-PSS signature, while the issuer has signed whatever integer the client sent. An attacker who can use an HSM key through a raw mechanism gets the same oracle, whatever padding the main application applies.
The IETF registered the publicly verifiable token type in RFC 9578, the Privacy Pass issuance standard, as “Blind RSA (2048-bit),” so the authors’ 2048-bit estimates apply directly to every issuer of those tokens.
The Cost of 2⁴³ Queries for HSMs and Token Issuers
At 1024 bits, the researchers needed about 175 hours of signing on the K6. At 2048 bits, the authors extrapolate about 2⁴³ queries, roughly 8.8 trillion. Thales rates its fastest Luna Network HSM 7 models at 10,000 RSA-2048 signatures a second and the S750 class at 5,000. By my arithmetic, an attacker collecting 8.8 trillion signatures at those rated speeds would need about 28 years of continuous operation on the faster device and about 56 years on an S750.
In the experiment, the researchers got about 2,500 signatures a second from the remote S750 on most queries. Through a single HSM, the 2048-bit attack is out of reach on throughput alone.
An attacker needs two things for a 2048-bit forgery. The first is about 2⁹⁰ operations of computation, which the authors very roughly put at 2²⁷ GPU-years, about 134 million. The second is an answer to every query under one key while that key is still in service, after the attacker has finished the modulus-specific precomputation. An issuer that rotates keys therefore sets a deadline for the precomputation as well as for the queries. The authors cite Privacy Pass rotation periods from hours to weeks. Apple says in its Private Relay overview that it rotates tokens and keys daily and limits how many tokens each device can fetch per day.
The authors support their deployment examples with thinner evidence than their cryptanalysis. They took the one-token-a-minute rate for Apple from developer notes in which Colin Bendell recorded Safari 16 limiting token challenges to one a minute on an established TLS connection, with other limits apparently in place. Bendell described a limit on challenges per connection, which the authors treated as a limit on tokens per device.
The authors took the 30 tokens per solved CAPTCHA from Cloudflare’s 2017 Privacy Pass deployment. Cloudflare built that deployment on elliptic-curve VOPRF tokens instead of blind RSA, so an attacker could not have used it this way. For their $13 trillion figure, the authors priced every query at $1.50, a rate that Persona charges for identity verifications and reports beyond the monthly allowance of its Essential plan. I read all three as illustrations of scale, not as limits an issuer can count on.
Issuers cannot tell attack queries from legitimate ones by their values. Every blind-RSA request is blinded by design. An attacker on an HSM’s raw interface can blind queries the same way, multiplying each by $$r^e$$ and dividing the answer by $$r$$. Operators can still count signatures per key and watch the client side: attestation, accounts, devices and networks for token issuers, and authentication and access logs for HSMs.
The 2048-bit attack is out of reach today. The authors judge that 2048-bit RSA “provides too low of a security margin for blind signatures, although the 2⁹⁰ precomputation precludes an immediate threat.” Issuers that enforce rate limits, charge for tokens or rotate keys add a second barrier on top of the computation. An issuer with loose limits, cheap tokens or rarely rotated keys has only the computational barrier left, at about 90 bits instead of 112.
What Was Measured at 1024 Bits and What Was Extrapolated Above It
The team ran the full attack at four sizes: 512 bits in 4.8 core-days, 666 bits in 3.6 core-years, 768 bits in 98 core-years and 1024 bits in 1,380 core-years. At 1024 bits, the team forged one signature, on a target chosen at random. The authors print the modulus, the target and the forged root in the paper. Anyone can check them with one modular exponentiation.
Because the researchers generated the key themselves, anyone who checks the printed signature confirms the arithmetic but learns nothing about the method. The evidence for the method is the code the team released and the published logs of the 1024-bit run. With that code, the authors say, anyone should be able to reproduce the attack on a single machine up to 512 bits. The full data set is several terabytes, available from the authors on request.
The authors call their costs upper bounds. They write that their parameters “are likely to be far from optimal.” They also consider it likely that CADO-NFS, SageMath or their own code still contains undetected bugs, in which case they may have overestimated the costs. They did not run the attack above 1024 bits, against the affine oracle that matches PKCS#1 v1.5, or through a Bleichenbacher oracle.
For key sizes above 1024 bits, the authors relied on a model:
| RSA modulus | Conventional estimate (factoring) | Authors’ model with a raw oracle | Oracle queries |
|---|---|---|---|
| 1024 bits | 80 bits | 65 bits | 2³² |
| 2048 bits | 112 bits | 90 bits | 2⁴³ |
| 3072 bits | 128 bits | 105 bits | 2⁵¹ |
| 4096 bits | 144–152 bits | 119 bits | 2⁵⁷ |
Source: Shea et al., ePrint 2026/2131, Figure 7. The authors measured the 1024-bit query count, about 2³², and extrapolated the others. Every bit level in the table comes from the model.
The authors produced these numbers two ways: by calibrating the asymptotic formulas to conventional security levels, and by scaling from cycle counts of the 1024-bit run. In both, they ignore the o(1) terms and hidden constants, a simplification they call “bodacious.” The authors found the two methods in fairly close agreement. When they scaled up from their smaller runs instead, they predicted the 1024-bit cost less accurately.
At 1024 bits, the only row of the table backed by a measured run, the gap in the authors’ own core-year figures is smaller than the table’s 15 bits. They estimate that factoring a 1024-bit modulus would take 500,000 to 1,000,000 core-years with current implementations, 360 to 725 times the 1,380 core-years the team spent on the forgery, or about 8.5 to 9.5 bits. The two figures come from different hardware and methods, so the comparison is rough. Because the forgery figure is an upper bound, the real gap may be wider.
I read the rows above 1024 bits as the model’s best estimates. At 4096 bits, the conventional estimate is a range of 144 to 152 bits, so the reduction there is 25 to 33 bits, slightly wider than the authors’ 15-to-30 summary.
On GPUs, the authors estimate 2 to 9 GPU-years for the forgery, against roughly 900 to 1,050 GPU-years projected for factoring RSA-1024, by Lu’s estimate and mine. By those projections, an attacker with the oracle needs about 100 to 500 times less GPU time.
What to Change in HSM Configuration and Blind-RSA Deployments
For HSM owners, I would start with these checks:
- Find every key that an application can use with CKM_RSA_X_509 or a vendor’s equivalent raw mode, for signing or for decryption. Record each one by its public key, since several applications may use the same key. Teams that list only algorithm and key size in their cryptographic inventory will not see the raw mode.
- Switch raw mode off wherever no application needs it. On the researchers’ K6, raw RSA required leaving FIPS-approved mode, so an HSM running outside that mode is a finding to explain. On other modules, check the firmware, the security policy and the permitted mechanisms directly.
- Where an operator has to keep raw RSA for a legacy padding, keep the key involved apart from other keys, on its own HSM if the raw-mode setting applies to the whole device. Give that key a short lifetime. Where the HSM vendor enforces the PKCS#11 attribute CKA_ALLOWED_MECHANISMS in its firmware, restrict the key to its approved mechanisms, then test that a raw call fails.
- Alert on signing and decryption volume per key, alongside authentication and access logs. The researchers needed about 4 billion calls for the 1024-bit attack. Because an attacker can blind the queries, operators can catch them by counting calls but not by inspecting inputs.
- If an HSM may have answered a large volume of unexplained raw requests under a key, replace that key. An operator who only switches raw mode off cannot take back the answers already given.
- Test for padding oracles wherever an application decrypts PKCS#1 v1.5 ciphertexts with an RSA key, since an attacker can use a Bleichenbacher oracle to compute the raw queries, at a much higher cost.
For blind-RSA issuers, the authors’ sequence is frequent key rotation now, larger keys next, and then zero-knowledge proofs of well-formedness or post-quantum blind signatures. The IETF defined the publicly verifiable Privacy Pass token type in RFC 9578 for 2048-bit keys only. An issuer that moves to a larger modulus therefore needs a new token type, and clients that accept it.
I would add one control: count the signatures issued under each key and retire the key while that count is still far below 2⁴³. Attackers can trade computation for queries. At 1024 bits, the authors describe parameters with which an attacker needs about 1.5 billion queries instead of 4.07 billion, at the cost of a longer descent.
The authors’ wider advice is to retire RSA. In the initial public draft of IR 8547, published in November 2024, NIST proposes deprecating 112-bit RSA, which includes RSA-2048, after 2030 and disallowing RSA after 2035. Organizations planning that migration can move raw-mode HSM keys and token-issuer keys to the front of it. Teams that built for crypto-agility can move faster, although blind-RSA issuers also need a replacement protocol that their clients support.
Retiring the Remaining RSA-1024 Keys
An attacker can now reach RSA-1024 by two routes, one demonstrated and one projected. With a raw oracle, the researchers needed a measured 1,380 core-years for the forgery. Without one, factoring RSA-1024 on GPUs is projected at about $30 million at cloud prices, by Lu’s estimate after RSA-260 and mine after RSA-896. The authors write that extrapolations of RSA-1024 being factored in weeks on industry-grade GPU facilities are “no fantasy.”
The authors measured how much 1024-bit RSA is still in service. In their TLS scan, 17,455 host certificates among 208 million successful handshakes had 1024-bit RSA keys. Of the 1,361 top-level domains for which they retrieved DNSSEC keys on September 8, 1,212, or 89%, had 1024-bit RSA zone-signing keys. A third of the RSA DKIM keys for 1,048 domains drawn from the lore.kernel.org mailing-list archive were 1024-bit. Atlassian still tells developers in its OAuth 1.0a documentation for the Jira REST API to generate a 1024-bit RSA key.
With all four protocols, the signer applies PKCS#1 v1.5 or PSS padding itself. The authors found no obvious raw oracle in any of them, so the forgery does not apply. Factoring does.
Under NIST’s SP 800-131A, the transition guidance for U.S. federal systems, generating 1024-bit RSA signatures has been disallowed since the end of 2013, and such keys are allowed only for verifying legacy signatures. The IETF has defined elliptic-curve signature algorithms for both DNSSEC and DKIM, and 2048-bit RSA keys are valid in both. I would treat any 1024-bit RSA key as one to replace now, whether or not it is stored in an HSM.
The authors wrote their code by hand and ran it on an academic CPU cluster. This month, Lu and Weis showed how quickly AI coding agents can port the number field sieve to GPUs. Asked whether AI or GPUs could speed up their own implementation, the authors answer “almost certainly yes.” I would retire the RSA-1024 keys first, along with every RSA key that an application can use to sign raw input, before anyone does that work.