Skip to main content

What AI changes for cryptography

Question this answers: has AI broken the cryptography you rely on, could it, and what should you do before any break is known? Background: The quantum threat, Crypto-agility.

No algorithm currently recommended at its standard sizes, such as 2048-bit RSA, elliptic-curve cryptography, AES, ML-KEM or ML-DSA, has been publicly broken by AI or by anything else, and claims that one has have so far come with no paper, security advisory or factored number. A break, if one comes, may not be announced at all, because whoever finds it could use it quietly. A classical attack needs no new kind of hardware, so it could be usable soon after it is found, and data already recorded or devices already shipped cannot be protected after the fact. For what an adversary would think worth recording or attacking, waiting for proof of a break is therefore too late, and the time to prepare is before one is known.

The short version:

  • For a sponsor or board: the dates set by authorities do not change, because no authority has moved one and nothing recommended is broken. The case for bringing some work forward has strengthened, though: knowing where your cryptography is, being able to change it quickly, and moving data that must stay secret for years to post-quantum key establishment early. Most of that work is already in the post-quantum plan, so the main change is its order, not its scope.
  • For everyone else: keep products supported and updated, ask suppliers whether anything still uses short RSA keys and whether their products can change algorithms by update, and judge the next "encryption is broken" story with the checks below.

Three ways cryptography fails​

Think of a lock. A quantum computer would open every lock of certain designs; a cryptanalytic advance shows that one design, or one size of it, is weaker than thought; an implementation flaw is a badly fitted lock, where the design is sound but this lock is not.

What failsWho is exposedThe fix
Quantum attackThe mathematics of RSA, Diffie–Hellman and elliptic curves, on a quantum computer large enough to run Shor's algorithmEveryone using those algorithms, once such a machine existsReplace the algorithms: the post-quantum migration, which takes years
Classical cryptanalytic advanceOne algorithm, or one key size, becomes cheaper to attack on ordinary computersUsers of that algorithm or sizeMove to a larger size or another algorithm
Implementation flawThe code or its set-up, not the mathematics: a memory bug, a leak through timing or power use (a side channel), weak random numbers, or a misconfigurationUsers of that library, product, version or setting; other implementations of the same algorithm are not affectedApply the supplier's patch or fix the setting, usually within days or weeks, and sometimes replace keys

The quantum threat is the first row. AI so far has mostly moved the third row, and in narrow cases the second.

Has AI broken RSA?​

No, but it has changed the cost of finding weaknesses:

  • Finding bugs in cryptographic code. OpenSSL's security advisory of January 27, 2026, fixed 12 published vulnerabilities (CVEs), including one rated high. All were credited to Aisle Research, two jointly with other reporters, and Aisle says it found them with an automated AI system; OpenSSL's April 7, 2026, advisory credited Aisle, alone or among several reporters, on five of seven. The UK NCSC's assessment Impact of AI on cyber threat from now to 2027 (May 7, 2025) judges that the time between disclosure and exploitation has shrunk to days and that AI will almost certainly reduce it further.
  • New attacks on an algorithm. In July 2026 Anthropic reported that one of its researchers, working with its AI model, had cut the estimated cost of recovering a key for HAWK-256, a small parameter set of HAWK, a candidate in NIST's process for additional signature schemes, from about 2^64 to 2^38 operations, a reduction of tens of millions of times, and that the model had found a faster attack on AES-128 reduced to seven of its ten rounds. These are second-row results, changes to the mathematics rather than to code. Anthropic states that neither has a practical impact on today's systems, but HAWK's designers withdrew it from NIST's process.
  • Engineering on known attacks. In September 2026, Stephen Weis reported factoring RSA-896, a public challenge number, using an AI model to adapt an existing factoring program for GPUs. He writes that it did not improve the method and does not affect 2048-bit keys, but that 1024-bit keys are within reach of anyone with a data-center fleet of GPUs.
  • Cheaper attacks on outdated key sizes. In November 2026 two Google DeepMind working papers described AI agents working with researchers on 1024-bit RSA: one repeated a signature forgery that researchers at UC San Diego and Inria had shown in September, at about a third of the computing cost, and the other estimates that factoring many keys together could be cheaper per key. Both state that 2048-bit and larger RSA is not threatened. The September paper also estimates that signing interfaces that sign input chosen by the caller, rather than hashing the message themselves, weaken larger RSA keys too.

Could AI break RSA, or the new algorithms?​

No one can put a reliable probability on it. What can be said is how wide the results already are: within about a year, AI-assisted work has found bugs in widely used cryptographic code, cut the cost of attacks on outdated RSA key sizes, and produced a new attack on a candidate algorithm. Scott Aaronson, whose blog comments spread November 2026 rumors that an AI lab had found fast factoring, wrote on November 27, 2026, that he expects AI labs to release a major breakthrough in theoretical cryptanalysis soon, while saying it would not put any currently deployed cryptosystem in imminent danger.

Newer mathematics is not safer mathematics. RSA and elliptic-curve cryptography have had decades of public cryptanalysis. The problems behind the post-quantum standards have had less, and some candidates fell to classical mathematics late in NIST's process: in 2022 SIKE, a key-establishment candidate, was broken by an attack that recovers keys on an ordinary computer, and Rainbow, a signature finalist, was broken at its lowest security level by an attack that took a weekend on a laptop. ML-KEM and ML-DSA have withstood that scrutiny so far. Hash-based signatures such as SLH-DSA rest only on hash functions, a long-studied building block; the UK NCSC lists them for firmware signing, and France's ANSSI names them first for updates, as Firmware and secure boot describes. The protection is not to bet on old or new mathematics but to be able to change either.

When acting after a published break is too late​

A flaw in code is fixed by updating the code, so for most flaws, acting on the advisory works. In three cases a patch alone does not undo the damage, and each follows one of the cryptographic jobs:

  • Traffic already recorded. Data protected by a key exchange that is later broken stays exposed, whether the break comes from a quantum computer, new mathematics or a flaw that weakened keys while it was live. Harvest-now, decrypt-later is not only a quantum problem, although the UK NCSC judges harvesting likely to be worthwhile only for very high-value information, as The quantum threat explains.
  • Code that cannot be updated. A signature check in a boot ROM, the first code a device runs, keeps its algorithm and its flaws for the device's life, so the choice has to be made before the design freeze.
  • Keys that were exposed or made weak. Debian's 2008 random number flaw and the 2017 ROCA flaw in one supplier's RSA key generation both needed new keys, not just new code. A signing key that is exposed or broken needs replacing, and everyone who checks it has to move to the new one, which takes as long as the slowest relying party.

An advance against an algorithm or key size is fixed by moving away from it. RSA rests on factoring, while elliptic-curve methods rest on a different problem, so a factoring advance would not by itself carry over to them, although advances in factoring methods often do carry over to finite-field Diffie–Hellman; a quantum computer would break all of them, so moving from RSA to elliptic curves is not a lasting fix. For key establishment, a break exposes recorded traffic that the broken method protected; for signatures, it allows forgeries from then on, until keys and algorithms are replaced.

Prepare before a break​

Preparation that helps whatever breaks is mostly part of the post-quantum plan already:

  • Know where it is. List every system and job on a register, with its algorithm and key size, so that on the day of a break you know what is exposed without starting an inventory.
  • Move long-lived data first. For data that must stay secret for years, move key establishment to post-quantum early, in the form the hybrid rule allows for your authorities. Either form protects recordings made from then on against a classical break of RSA or elliptic curves, as well as against a quantum computer. NIST IR 8547 (October 2026, §3.2) notes that hybrid solutions are often used as a hedge against a cryptographic or implementation flaw in one of the component algorithms, and that hybrids add complexity, which can increase security risks and costs. A hybrid therefore also covers a classical break of ML-KEM while its classical part holds. Neither form covers bugs in the surrounding protocol code, or the certificates and signatures that prove who is at the other end.
  • Limit what a stolen key reveals. Use key exchanges with forward secrecy rather than RSA key transport, so that a long-term key that is stolen or exposed later does not unlock past sessions.
  • Be able to change. Use products that can switch algorithms by configuration or update, get suppliers' commitments to do so, and rehearse a key rotation and time it, so that replacing an algorithm or a key is a routine change rather than a project. This is what crypto-agility means in practice, and Keep the ability to change again turns it into capabilities you can evidence, including a faster route, with a named approver, for an urgent change after a break.
  • Hedge long-lived signatures. Choose signature schemes in the form the hybrid rule and the signature-schemes rule allow for your authorities. Where those rules and your relying parties allow them, composite signatures that combine ML-DSA with a classical algorithm stay secure if either part holds, for certificates (RFC 10073) and for content signed with the Cryptographic Message Syntax, such as signed code and documents (RFC 10082). For roots of trust that cannot be updated, hash-based schemes rest on the fewest assumptions, with LMS and XMSS used only where the signing side can control their state.

Judging a claim that cryptography is broken​

  • Is there something to read? A paper, a security advisory, or a factored challenge number. A claim with none of these is not yet a fact, but it is a reason to check that your preparation is in place.
  • Which algorithm, key size and job? A result against 1024-bit RSA signatures says nothing about 2048-bit key exchange.
  • Demonstrated or estimated? A forged signature or a CVE is different from a projected speedup.
  • Under what conditions? Some attacks need a signing service to query, physical access to a device, or one version of one library.
  • Who says what to do? Look for the supplier's advisory or a national authority's guidance before changing dated plans. A published, checkable attack on 2048-bit RSA, elliptic-curve cryptography, ML-KEM or ML-DSA, or an authority advisory, would change the position above; a rumor would not. A product sold as "AI-proof" should name the standard it follows, as for any quantum-safe claim.

What to do​

  • If your IT is supplied, follow the handbook's core actions, the short plan every organization follows: keeping products supported and updated is the main defense against AI-found flaws. Ask your IT provider and suppliers in writing whether any product or service, including email signing, still uses RSA keys shorter than 2048 bits, and whether it can change algorithms by update.
  • If you run a migration program, carry the preparation above into your inventory and your migration order. Treat RSA keys shorter than 2048 bits as replacements, since NIST's SP 800-131A, written for US federal agencies and widely used as a reference, already disallows them for creating signatures and for key establishment, and treat a published attack or flaw as a reason for an early review.
  • If you build or run systems yourself, shorten the time from a library's security advisory to production, rebuilding services that compile the library in; turn off TLS 1.2 cipher suites that use RSA key transport; find RSA keys shorter than 2048 bits in internal certificate authorities, token-signing keys and wrapped secrets; review signing interfaces that sign raw input; and check what each connection actually negotiates from the client side, as the TLS and SSH cards describe.

An insufficient record: "Encryption not affected by the AI news." A decision-ready record, for a small organization on supplied IT: "Reviewed on November 30, 2026, after reports of AI-assisted attacks: IT provider confirmed all laptops and phones are on supported versions with automatic updates; hosted email supplier asked in writing whether any key, including its email-signing keys, is shorter than 2048 bits and whether the service can change algorithms by update, answers due by December 14, 2026; office manager named to act on a supplier advisory or authority guidance; next review as scheduled."

Sources​

  • NIST, Transitions: Recommendation for Transitioning the Use of Cryptographic Algorithms and Key Lengths, SP 800-131A Rev. 2, March 21, 2019. SP 800-131A Rev. 2
  • NIST, Transition to Post-Quantum Cryptography Standards, NIST IR 8547, October 2026 (§3.2). NIST IR 8547
  • IETF, Composite Module-Lattice-Based Digital Signature Algorithm (ML-DSA) for Use in X.509 Public Key Infrastructure, RFC 10073, Proposed Standard, November 2026. RFC 10073
  • IETF, Composite Module-Lattice-Based Digital Signature Algorithm (ML-DSA) for Use in the Cryptographic Message Syntax (CMS), RFC 10082, Proposed Standard, November 2026. RFC 10082
  • UK National Cyber Security Centre, Impact of AI on cyber threat from now to 2027, May 7, 2025. NCSC assessment
  • OpenSSL Project, OpenSSL Security Advisory, January 27, 2026. Advisory (text)
  • OpenSSL Project, OpenSSL Security Advisory, April 7, 2026. Advisory (text)
  • Aisle, AISLE discovered 12 out of 12 OpenSSL vulnerabilities, company blog, January 26, 2026. Blog post
  • HAWK submission team, HAWK is withdrawn, July 29, 2026. HAWK site
  • Anthropic, Discovering cryptographic weaknesses with Claude, July 28, 2026. Research post
  • Google DeepMind, Fan Factories: Multiple Number Fields in Factorization Factories and Batch NFS, working paper, November 5, 2026. Paper (PDF)
  • Google DeepMind, Modular Roots from a Restricted Oracle: Faster Affine Roots and a 1024-bit Computation, working paper, November 2026. Paper (PDF)
  • Laura Shea, Miro Haller, Adam Suhl, Nadia Heninger and Emmanuel Thomé, Forging 1024-bit RSA signatures in nearly SNFS time, IACR ePrint 2026/2131, September 2026. ePrint
  • Wouter Castryck and Thomas Decru, An efficient key recovery attack on SIDH, IACR ePrint 2022/975, EUROCRYPT 2023. ePrint
  • Ward Beullens, Breaking Rainbow Takes a Weekend on a Laptop, IACR ePrint 2022/214, CRYPTO 2022. ePrint
  • Scott Aaronson, Every call, Shtetl-Optimized, November 27, 2026. Blog post
  • Stephen A. Weis, RSA-896, September 2026. Write-up
  • Debian, DSA-1571-1 openssl: predictable random number generator, May 13, 2008. Advisory
  • Matus Nemec, Marek Sys, Petr Svenda, Dusan Klinec and Vashek Matyas, The Return of Coppersmith's Attack: Practical Factorization of Widely Used RSA Moduli, ACM CCS 2017. Paper page