IT EN

Security10 min

Post-quantum cryptography: can AI break RSA keys?

AI is solving maths problems open for decades. What RSA and elliptic curves risk, the harvest now, decrypt later attack, and the NIST, EU and UK deadlines.

In two years post-quantum cryptography has moved from research topic to deadline, written into the documents of NIST, the European Union and national security agencies. Meanwhile artificial intelligence models have started solving maths problems open for decades. The question follows on its own: if a model can prove theorems the best mathematicians had not closed, how long before it finds the shortcut that brings down RSA or elliptic curves?

Can AI break RSA encryption?

To date no public source shows an AI model able to break RSA, elliptic curves or the new post-quantum standards. The concrete risk comes from three directions: the code that implements cryptography, where AI finds errors faster than anyone; models used to attack simplified versions of the new algorithms; and the quantum computer, whose cost for breaking RSA keeps falling. The dates for changing algorithms are already set.

What AI can do in mathematics today

The catalogue of Paul Erdős's problems, curated by Thomas Bloom, became the proving ground for models within a year. According to Quanta Magazine, on 20 May 2026 OpenAI announced that an internal model had disproved Erdős's 1946 unit distance conjecture; Tim Gowers said he would have recommended it for publication "without any hesitation". In the same month a Google DeepMind team wrote that its most capable agent had autonomously resolved 9 of 353 open Erdős problems, at a cost of a few hundred dollars per problem.

On 1 August 2026 OpenAI published ten results obtained by an internal version of Astra, its next model: among them three Erdős problems and a result on the closest vector problem, which OpenAI describes as a foundational lattice question related to post-quantum cryptography. Each proof comes with a certificate for the Lean proof checker, at a total cost of about $2,000. According to SiliconANGLE none of the ten had yet been through peer review.

A year of mathematics with AI

  1. October 2025

    OpenAI announces that GPT-5 solved 10 Erdős problems. Thomas Bloom calls it "a dramatic misrepresentation": the model had found solutions already published.

  2. January 2026

    A Google DeepMind team reviews 700 "open" conjectures: it solves four and finds existing solutions for nine more.

  3. 20 May 2026

    An internal OpenAI model disproves Erdős's 1946 unit distance conjecture.

  4. May 2026

    A Google DeepMind agent resolves 9 of 353 open Erdős problems on its own, at a few hundred dollars each.

  5. 1 August 2026

    OpenAI publishes ten results of an internal version of Astra, checked in Lean, one of them on the closest vector problem.

The limits matter as much as the results. Quanta notes that the unit distance result was improved by human mathematicians within weeks, and that many "open" problems were open mostly because few people had looked at them. Several announced solutions turned out to be already known. It is still a change of pace: journal-level problems, closed by a model in days and at low cost.

What a cryptographic key rests on

Every public key rests on a mathematical problem that is easy to compute one way and believed impractical the other way. RSA relies on how hard it is to factor a 2048-bit number into primes. Elliptic curves, used in ECDSA and ECDH, rely on the discrete logarithm. The new post-quantum standards, such as ML-KEM, rely on lattices: finding a short or nearby vector in a space with hundreds of dimensions, hidden by small random errors (the problem known as Learning With Errors).

None of these problems has a proof of hardness: security rests on decades of failed attempts. That is why a model capable of new mathematics interests cryptographers. Astra's closest vector result is reassuring, since it proves a version of the problem is hard; it also shows that models are already working on exactly this ground.

Machine learning against lattices: where the attacks stand

Since 2022 a line of research has used neural networks to recover the secret hidden in Learning With Errors problems. The first work, SALSA, recovered the secret in small and mid-size instances with sparse binary secrets. SALSA VERDE, in 2023, reached dimension 512 with sparse secrets, using less time and power than earlier attempts. NoMod, in October 2025, reports recovering sparse secrets in "CRYSTALS-Kyber settings", the algorithm ML-KEM comes from.

The decisive detail: all of these works attack sparse secrets, with few non-zero values, chosen precisely to make the attack feasible. The standards do not use such secrets, and none of these papers claims to have broken ML-KEM with its standardised parameters. In June 2026 another team trained a model through self-play, in the style of AlphaZero, to improve the LLL lattice reduction algorithm: it uses fewer operations than the original, but on lattices of up to 32 dimensions, far from the hundreds of the standards.

The near risk: flaws in cryptographic code

The algorithms can be sound and the key still exposed if the program that uses it has a bug. Here AI has already changed the numbers. In its security advisory of 7 April 2026, OpenSSL, one of the most widely used cryptographic libraries, fixed 7 vulnerabilities: 5 had been reported by researchers at Aisle, which credits the findings to its autonomous AI system. One of the five, a read error in the AES-CFB code for processors with AVX-512 instructions, was found independently by Alex Gaynor of Anthropic. Aisle says its systems found 20 OpenSSL vulnerabilities across three consecutive releases; that figure is the company's own, and we checked only the five of April.

OpenSSL rated those five as low severity. Speed is what counts: the same tool that helps maintainers fix bugs helps an attacker be the first to find the flaw in the code that signs, encrypts or checks a certificate. For an attacker, finding a flaw in how a key is handled costs far less than factoring a 2048-bit number.

The quantum computer and Shor's algorithm

Against RSA and elliptic curves an efficient algorithm already exists, Shor's, but it needs a quantum computer far larger than today's. Estimates of how much larger keep falling. In 2019 Craig Gidney of Google and Ekerå estimated 20 million qubits to factor a 2048-bit RSA key in eight hours. In May 2025 Gidney published a new estimate: fewer than one million qubits, in less than a week, with the same assumptions about hardware quality (one error in a thousand operations).

Qubits estimated to break a 2048-bit RSA key

20 mln

2019 estimate

−95%

1 mln

2025 estimate

Source: Gidney and Ekerå 2019, Gidney 2025 (arXiv 2505.15917)

Google notes that quantum computers with useful error rates have between 100 and 1,000 qubits today, and gives no date for a machine able to break RSA. In the 2023 edition of the Global Risk Institute's Quantum Threat Timeline, cited by the European agencies, 17 of 37 experts put the chance of a cryptographically relevant quantum computer within ten years above 5%; 10 of them put it above 50%.

What is the harvest now, decrypt later attack?

The danger already exists for data that must stay confidential for long. NIST describes it this way: attackers collect encrypted data now, intending to decrypt it once quantum technology matures. The European agencies point to sensitive personal data and trade secrets as the most exposed cases. A contract, a medical record or an industrial design intercepted today may still be valuable in ten years. The second risk is time: for complex systems such as public key infrastructures and for devices with a long life, migration takes years.

When RSA becomes obsolete: the NIST, EU and UK deadlines

The algorithms that replace RSA and elliptic curves already exist. On 13 August 2024 NIST published the first three post-quantum standards: FIPS 203 (ML-KEM, for key exchange), FIPS 204 (ML-DSA, for signatures) and FIPS 205 (SLH-DSA, hash-based signatures, as a backup). On 11 March 2025 it chose HQC, based on error-correcting codes, as an alternative to ML-KEM, with the standard expected in 2027.

In October 2026 NIST published the final version of report IR 8547: RSA, ECDSA and ECDH are deprecated after 2030 and disallowed after 2035, at every security level. Symmetric cryptography holds up better: AES-128 and symmetric algorithms with at least 128 bits of security remain adequate. In the United Kingdom the National Cyber Security Centre asks for discovery and planning by 2028, priority migrations by 2031 and the whole migration by 2035. For finance, the G7 Cyber Expert Group points to critical systems by 2030-2032 and the rest by around 2035.

The dates of the move to post-quantum cryptography

  1. 13 August 2024

    NIST publishes ML-KEM, ML-DSA and SLH-DSA, ready for use.

  2. 31 December 2026

    EU: every Member State has started the transition and has a national roadmap.

  3. 2028

    United Kingdom: discovery complete and migration plan ready.

  4. 31 December 2030

    EU: transition completed for high-risk use cases, quantum-safe upgrades enabled by default. United States: RSA and ECC deprecated in NIST standards.

  5. 2030-2032

    G7, financial sector: critical systems and assets migrated. United Kingdom: priority migrations by 2031.

  6. 2035

    EU: transition completed for medium-risk use cases. United States: RSA and ECC disallowed. United Kingdom and G7: migration completed.

The situation in Italy

Italy's National Cybersecurity Agency (ACN) published "Crittografia post-quantum e quantistica", a document on preparing for the quantum threat, in July 2024, and an Italian version of the European agencies' joint statement of 27 November 2024. The statement recommends using post-quantum cryptography for now in hybrid solutions, which combine a classical scheme with a new one, and protecting the most sensitive use cases against "store now, decrypt later" attacks by the end of 2030 at the latest, with a strategy for public key infrastructures on the same timeline. On its website the Agency says it is developing a national strategy for the transition to quantum-resistant schemes; on 22 October 2026 it named crypto-agility as a design requirement for systems.

The financial sector moves with the Bank of Italy. The G7 Cyber Expert Group roadmap, published on 13 January 2026, grew out of the priorities of Italy's 2024 G7 presidency. In the Bank for International Settlements' Project Leap 2, completed on 11 December 2025, the Bank of Italy, Banque de France, Deutsche Bundesbank, Nexi-Colt and SWIFT replaced traditional digital signatures with post-quantum algorithms in liquidity transfers between central banks, in a live environment.

How to prepare for the post-quantum migration

The longest part of the work is finding where cryptography is used: certificates, VPNs, document signatures, access to business systems, industrial devices, suppliers' services. Previous cryptographic transitions, NIST recalls, took 10 to 20 years.

Where to start

  1. Inventory

    Where RSA and elliptic curves are used: certificates, VPNs, signatures, API keys, devices, suppliers' services.

  2. Priorities

    First the data that must stay confidential beyond 2030 and the signatures that must remain valid for long.

  3. Updates

    Cryptographic libraries kept up to date at all times: flaws are now found by AI too, and found fast.

  4. Hybrid schemes

    Key exchange that combines a classical algorithm with ML-KEM, as the European agencies recommend and as Google already does in Chrome.

  5. Crypto-agility

    Systems where the algorithm is changed through configuration, without rewriting the software.

Frequently asked questions

What is post-quantum cryptography?

Public-key algorithms that run on today's computers and resist attacks by quantum computers. The first NIST standards are ML-KEM for key exchange and ML-DSA and SLH-DSA for signatures, published on 13 August 2024.

Can artificial intelligence already break RSA?

No public source shows it. Models do find flaws in cryptographic code, such as the OpenSSL vulnerabilities fixed in April 2026, and machine learning attacks on lattices work on simplified versions.

When will RSA no longer be allowed?

In NIST standards RSA, ECDSA and ECDH are deprecated after 2030 and disallowed after 2035. The European Union asks for the transition of high-risk use cases to be completed by the end of 2030.

Is AES safe from quantum computers?

According to NIST, symmetric algorithms with at least 128 bits of security, such as AES-128, remain adequate. Those at 112 bits must be dropped by 2030.

Where should a business start?

With an inventory of where it uses cryptography, then the data that must stay confidential for long. The European agencies recommend hybrid schemes and crypto-agility.

What we don't know

There is no date for the first quantum computer able to break RSA, and no public source shows an AI model finding a weakness in the post-quantum standards. The mathematics of models and the power of quantum computers are rising together all the same: the NIST, EU and G7 deadlines are the most prudent reference.

For us the conclusion is practical. AI capable of advanced mathematics speeds up everyone's work: defenders can use it to check their own code and prepare the migration, attackers to find the flaw first. The calendar is already set.

Want to know where cryptography runs through your systems and where to start the migration?

Get in touch

Sources

Related