Dev.to Security πŸ” Cybersecurity πŸ‘ 2 πŸ“– 4 min read

Did AI break RSA? What we know so far and what to check in your stack

In ten days, "AI broke RSA" went from a rumor on X to a joint statement from the NSA, CISA and the White House. We went through 22 sources, including NIST SP 800-131A and NIST IR 8547, RFC 8017 and RFC 8446, Anthropic's

In ten days, "AI broke RSA" went from a rumor on X to a joint statement from the NSA, CISA and the White House. We went through 22 sources, including NIST SP 800-131A and NIST IR 8547, RFC 8017 and RFC 8446, Anthropic's research papers, the Cryptography Incident Review Group's assessment, the NSA/CISA/ONCD joint statement, Cloudflare's analysis, and the posts by the cryptographers who pushed back on the hype. Here is what is known so far and what it means for the RSA in your stack: TLS certificates, SSH keys, JWTs signed with RS256, DKIM selectors and code-signing keys.

What happened

  • Late November. A post on X claimed a frontier AI lab had cracked 2048-bit RSA. Elon Musk replied that he'd "heard this from a few people." Nobody published evidence.
  • November 30. Anthropic published four research papers. They are about lattice problems, the math behind ML-KEM and ML-DSA, the post-quantum standards meant to replace RSA. The papers don't address RSA. Anthropic's own summary says the algorithms are not practical for the ML-KEM and ML-DSA parameter sets. A review group of 21 cryptographers (CIRG) found that, against those standards, the attack needs vastly more computation than earlier attacks, plus a large quantum computer that doesn't exist yet.
  • December 2. The NSA, CISA and the White House Office of the National Cyber Director said AI companies had disclosed further discoveries affecting some cryptography in use, without naming the algorithms. The NSA told operators of national security systems to speed up the move to post-quantum cryptography, and eight tech companies, including Anthropic, OpenAI, Google and Microsoft, backed that advice.

The bottom line: no published method, AI-assisted or not, breaks a properly generated 2048-bit RSA key.

Why the rumor sounded believable

In September 2026 the public factoring record moved twice in sixteen days, after standing for six and a half years:

Number Size Factored Compute
RSA-250 829 bits Feb 2020 ~2,700 core-years on CPUs
RSA-260 862 bits Sep 3, 2026 13.5 GPU-years
RSA-896 896 bits Sep 19, 2026 ~30 GPU-years over 10 days

AI coding agents built the GPU pipelines for both runs. But Stephen Weis, who factored RSA-896, wrote that the work did not meaningfully improve the number field sieve and does not affect RSA-2048. The algorithm stayed the same. Only the cost of running it at scale went down.

The distance to 2048 bits is still huge: RSA-2048 needs about 35 billion times the work of RSA-896. RSA-1024 is a different story. Factoring one RSA-1024 key is estimated at roughly $28 million in rented GPU time, so it is within reach of anyone with a data-center GPU fleet.

RSA in 60 seconds

  • Each party has a key pair. The public key encrypts or verifies, and the private key decrypts or signs.
  • Security rests on factoring: multiplying two large primes is trivial, but recovering them from a 617-digit product would take longer than the age of the universe with the best known algorithm.
  • RSA protects keys, not files. With a 2048-bit key and OAEP-SHA-256, one operation encrypts at most 190 bytes. Real systems use hybrid encryption: AES-256 encrypts the data, and RSA wraps the AES key.
  • Never deploy "textbook" RSA. It's deterministic, so the same input always gives the same output. Padding adds randomness: RFC 8017 requires OAEP for new applications and keeps PKCS #1 v1.5 for compatibility only. PSS is the modern signature scheme.

Where RSA hides in your stack

Where What to check
TLS certificates Key length; whether TLS 1.2 endpoints still allow RSA key exchange
SSH 1024-bit keys in authorized_keys; private keys without a passphrase
Code signing and updates Where the signing key lives and who can use it
Email (DKIM, S/MIME) Old 1024-bit DKIM selectors
JWT (RS256) Storage and rotation of the signing key
VPN and device certs Key length; issuance and revocation
Key-wrapping systems Published key size and padding scheme

A note on TLS: TLS 1.3 removed static RSA key exchange, so RSA certificates only authenticate the server. On TLS 1.2 endpoints that still accept RSA key exchange, one stolen or factored private key decrypts every recorded session.

Key sizes and deadlines

  • 1024 bits: NIST disallows it for new signatures and key transport. Replace it.
  • 2048 bits: the working minimum, with about 112 bits of security strength (NIST SP 800-131A Rev. 2).
  • 3072/4096 bits: more classical margin and slower operations. Use them for long-lived keys.

No key size protects against a large quantum computer running Shor's algorithm. NIST IR 8547 deprecates RSA after 2030 and disallows it after 2035. Migrate key exchange first, because traffic recorded today can be decrypted later (harvest now, decrypt later). Signatures aren't exposed to that attack.

What to do with the RSA you already run

  1. Inventory every RSA key and certificate: TLS endpoints, SSH authorized_keys, DKIM records, code-signing setups, token-signing services and firmware-verification keys.
  2. Replace anything under 2048 bits. Factoring one is now a budget decision.
  3. Use OAEP for encryption and PSS for signatures where your software allows it.
  4. Move to TLS 1.3, so that a private key compromised later doesn't open recorded sessions.
  5. Control who can read private keys, and log every access. A 4096-bit key in a shared folder protects nothing.
  6. Start the post-quantum migration now, with key exchange first. For signatures, start with firmware signing and hardware roots of trust, which are hard to update once devices ship.

Read the full breakdown

The full article has a worked RSA example you can check on a calculator, the complete timeline of the rumor with links to every primary source, a threat table and an FAQ.

πŸ‘‰ What is RSA encryption: How it works and what breaks it

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.