Hundreds of RSA keys with biased zero bits were factored using a polynomial attack
RSA keys with many zero bits (short-sleeve keys) can be efficiently factored using polynomial factorization, exposing hundreds of vulnerable keys in the wild
Crypto & theory Trail of Bits 12 Jun 2026 Disclosure Real-world evidence
Published as “Factoring "short-sleeve" RSA keys with polynomials”
Why it matters
Short-sleeve RSA keys can be factored quickly, exposing private keys of hundreds of hosts and demonstrating the impact of biased random generation in cryptographic software
Summary
The researchers identified RSA and DSA keys whose private components have large blocks of zero bits, a condition they call short-sleeve. By converting the modulus into a polynomial with small coefficients and factoring that polynomial, they recover the prime factors quickly. Scanning public sources they recovered 603 RSA and 74 DSA private keys generated by a buggy version of CompleteFTP. The underlying bug was a limb-size mismatch in the random number generation routine, which has since been fixed and mitigated with detection tools.
What they found 1
- 603 RSA and 74 DSA private keys generated by vulnerable CompleteFTP versions were recovered
“In total, we recovered private keys for 603 unique RSA public keys and 74 DSA keys generated by vulnerable versions of CompleteFTP”
Caveats 5
- Pattern 1 remains unexplained and its source is unknown
- The authors note that their data sources are heavily biased toward RSA SSH keys, so the counts do not reflect true prevalence
- Pattern 1 remains unexplained, and it is unclear whether it extends to other key types
- Our data sources are heavily biased toward RSA SSH keys, so these numbers do not reflect the actual prevalence
- The attack only works when the short-sleeve property yields polynomials with exceptionally small coefficients
What’s new here 4
- A polynomial-based factoring technique tailored to short-sleeve RSA moduli
- Discovery of a CompleteFTP big-integer limb bug that creates short-sleeve keys
- Recovery of 603 RSA and 74 DSA private keys from internet-wide scans
- Release of detection tooling and a remediation update from EnterpriseDT