This is a very unfortunate time to have to do a post-quantum migration. It was already challenging to get right. Add AI into the mix, with some cryptanalytic results published in papers and others scattered in X posts, arXiv pre-prints, Lean proofs in GitHub repositories, and blog posts by the leading AI companies. Sprinkle with the last two weeks of rumours of a major cryptanalytic result, NDAs, "those who know" and those who don't, hashes in X posts (hold the salt), and the result is widespread confusion and speculation on what protocols are still secure, and terms like "bunker mode" or "post-AI cryptography" figuring prominently on social media without a clear definition.
In this post, we'll attempt to define "post-AI cryptography" and what it could mean in this new landscape. We'll also see how results by AI could affect the transition to post-quantum cryptography, and what cryptographic engineers have to do to navigate through it. If you are only here for the practical advice, skip to the end.
A short timeline
On October 6th, 2026, OpenAI shared more than 700 results in various fields of mathematics, but, curiously, it did not contain any results in the field of cryptography. Arguably, it is one of the most consequential fields of applied mathematics and it would be reasonable to expect OpenAI (and other AI companies) to be working on such problems internally. While it is possible that they indeed did not make any notable progress yet, it cannot be known how close they might be to groundbreaking results. It is also possible they already have significant results that they chose not to share. This suspicion is what sparked the discussion around public-key cryptography being broken, and also led Ethereum Foundation researcher Justin Drake to write this post on X, urging the blockchain community to move into "bunker mode" (storing funds in a new wallet, so that the new public key is not visible, hence not vulnerable to possible ECDSA attacks).
More recently, rumours started to appear on social media that one of the frontier AI labs was about to publish a major cryptanalytic result. After about two weeks of speculation, the results were published on November 30th. They were important theoretical results, improving the asymptotic runtime of quantum attacks on ring- and module-lattice-based problems (the "ML" in ML-KEM), but they are by no means practical today1.
Meanwhile, the transition to post-quantum cryptography is underway, with NIST finalizing standards for the first post-quantum schemes in 2024, and the IETF standardizing their use in TLS 1.3 in August 2026.
Post-AI cryptography
"Post-AI cryptography" as a term can be seen in two ways, depending on how AI is viewed:
-
As a mathematician: AI is expected to find or to help mathematicians and cryptographers find new attacks on the underlying mathematics of deployed cryptographic protocols, meaning attacks on the theoretical level (cryptanalysis). It may also improve existing attacks, making them more effective than previously thought. In this case, post-AI cryptography refers to schemes based on assumptions that cannot be affected by such advances. This is the definition Justin is using, and in the next section we'll see why this definition is elusive.
-
As an auditor: AI is expected to find bugs in the implementations of cryptographic protocols, even though the theoretical algorithms are correct. That is, attacks on the implementation level. Post-AI cryptography here can be defined more broadly as the practice of leveraging all available AI tools to scan for bugs in codebases, to tackle the vast amount of bug reports received by open source projects, or to assist in the formal verification of the implementations.
Neither of these angles is something new. In the field of cryptography, this is the expected progress of research: cryptographers come up with new schemes and assumptions in theory, other cryptographers try to attack them, and after many iterations, some schemes are deemed secure enough to be implemented and standardized. On the implementation level, cryptographers, auditors, and security researchers will try to find critical bugs.
The important takeaway from this process is that a cryptographic assumption cannot be definitively proven to be secure (as things stand, at least). Confidence in a scheme has always been the result of the best efforts of the cryptography community to attack it, and what AI offers is a massive boost to such efforts. So, the worry around AI breaking existing schemes is about the possibility that it can discover an attack that these efforts had missed throughout the years.
There is, however, a deeper fear regarding the foundations of cryptography in computational complexity. Cryptography relies on certain problems being hard, but that hardness is assumed, not proven, and proving it is thought to be very difficult. What if AI changes that?
AI as a mathematician
There is a well-known article by Russell Impagliazzo laying out the possible answers to open questions in computational complexity and what they would mean for cryptography. Impagliazzo describes five "worlds", one for each answer, each specifying which cryptographic protocols can exist.2
- Algorithmica: In this world, P = NP, so there are no hard-to-solve but easy-to-check problems, which are the ones needed for cryptography, meaning computational cryptography is impossible. Note, however, that information-theoretically secure schemes, like the one-time pad, would still be secure in this world.
- Heuristica: P ≠ NP, so such problems exist, but they are easy in the average case. There are still hard instances of these problems, but these instances are not efficiently samplable. For example, there would exist no efficient way to generate hard keys, so the user would have to spend effort comparable to that of the attacker solving the problem, leaving no computational "gap" providing the asymmetry between honest user and attacker. Again, no computational cryptography is possible in this world.
- Pessiland: P ≠ NP, hard-to-solve but easy-to-check problems exist, and they are hard in the average case too. However, even though the hard instances are efficiently samplable, a hard instance cannot be sampled together with its solution. Computational cryptography is impossible in this world too.
- Minicrypt: Same as Pessiland, with the core difference that one-way functions (OWFs) exist. These are functions $f$ for which $f(x) = y$ is easy to compute, but for a random $x$, given only $y$, it is hard to find any $x'$ for which $f(x') = y$. The difference with Pessiland is that in Pessiland, every efficiently computable function can be inverted, so any instance $y$ generated alongside its solution $x$ would be easy to solve. One-way functions allow for many cryptographic schemes, such as symmetric key cryptography, cryptographically secure PRGs, commitment schemes, zero-knowledge proofs and hash-based digital signatures, but not public-key encryption or key exchange. Note, however, that STARKs in their current form are not guaranteed by Minicrypt alone.3
- Cryptomania: Public-key encryption and key exchange are possible. In essence, this world guarantees the existence of hard problems with richer mathematical structure, which would enable more complex cryptographic constructions. Hard instances of some of these problems can be generated along with a "trapdoor", a secret piece of information that allows its holder to easily solve the problem by exploiting its mathematical structure. This asymmetry is what public-key schemes rely on, and it can also produce very efficient constructions for schemes already possible in Minicrypt4. Assumptions such as the RSA assumption, the Diffie-Hellman assumption, the Learning-With-Errors (LWE) assumption, and pairing assumptions are examples of the assumptions that belong in Cryptomania, and widely deployed constructions such as RSA, ElGamal, ECDH key exchange, and ML-KEM rely on them.
What does AI have to do with this?
Obviously, the assumption now is that we are in Cryptomania, even though we cannot definitively prove it. Simply put, the existential fear is that AI will lead to a ground-breaking computational complexity result that would prove we are not in Cryptomania, or even worse, that we are not in any world that allows computational cryptography.
The higher the world, the higher the minimum mathematical structure required for it. For example, schemes in Minicrypt, at the idealized, theoretical level, can be built from random oracles, which are truly random functions that have no underlying structure at all. In contrast, Cryptomania provably cannot be built from random oracles, and thus, even the most basic constructions will need to carry some structure. Since a richer mathematical structure can mean a bigger attack surface, the worry is that AI will be able to find attacks that exploit it, insinuating that Cryptomania constructions, or even the Cryptomania world in general, are more vulnerable. So, the idea behind Justin's post is that post-AI cryptography will mean only using Minicrypt or Minicrypt-like assumptions (like collision resistance) to minimize exposure. However, there is still no guarantee that Minicrypt is safe from AI.5
More importantly, the more pressing matter is not AI coming up with a world-breaking result in complexity theory, but the threat of breaking or weakening existing schemes, still leaving us none the wiser as to which world we are in. For instance, a recent quasipolynomial-time attack on the Classic McEliece public-key encryption scheme weakened its security, although it is not yet practical. AI assisted the authors in expanding their original idea to a key recovery. An AI-led effort also attacked the HAWK signature scheme, a lattice-based scheme, in July 2026. The fear in this case is that deployed and widely used schemes such as RSA, ECDH, and ECDSA might be attacked similarly in the near future, or that new attacks have already been discovered, but not shared with the public. Hence Justin's post, worrying over ECDSA, and Matthew Green's, cryptography professor at Johns Hopkins University, post on X, worrying over public-key cryptography in general.
While all the schemes above assume Cryptomania, Minicrypt-like schemes are not completely unaffected. In practice, the concrete instantiations, such as SHA-256 for hash functions, or AES for symmetric encryption, are only heuristically believed to have no exploitable deeper structure, but it may well be possible that AI discovers it and improves attacks on them.6 So, even if "post-AI cryptography" is taken to mean that Minicrypt is the world we are in, there is no guarantee that the actual schemes deployed today are secure.
AI as an auditor
Even though breakthroughs in cryptanalysis make the headlines, projects using cryptography are far more likely to be affected by AI at the implementation level. Scanning repositories with AI to find vulnerabilities was a natural use case (see our AI meets Cryptography series), and one that scales as models get better. We've seen first-hand at zkSecurity that with each new generation, substantially more vulnerabilities are discovered.
At the same time, attackers also have access to powerful models, including open-weight ones, meaning vulnerabilities in open-source projects can now be discovered with significantly less effort. For many projects, especially those with bug bounty programs, AI-assisted vulnerability scanning also meant an influx of bug reports, many of them low quality or false positives. Still, project maintainers cannot afford to ignore them completely, since some of them are real bugs that must be patched.
Post-AI cryptography, in this sense, can be thought of as the set of practices leveraging AI to keep a project's implementation continuously secure against adversaries with the same tools. On the one side, this means AI-assisted scanning, both before publishing new features and across existing code, alongside AI-assisted triage of the incoming reports. On the other, it means formally verifying the core components, which is now much cheaper with the help of AI, to prevent entire classes of bugs.7
A characteristic of frontier AI development is that it needs massive amounts of compute power (mainly GPUs). To support it, there has been a boom in hardware development and concentration in data centers. An indirect side effect of this development is that this hardware can also be used for running algorithms to solve hard problems, such as factoring. Already, a new implementation of the GNFS factoring algorithm optimized for GPUs was used by Cognition to factor the RSA-260 challenge. Similarly, the RSA-896 challenge was factored by Steve Weis. Of course, attacks of this nature are nothing new, and the currently suggested parameters for cryptographic schemes are still safe from this kind of attack (by a large margin too).
Post-quantum cryptography
Post-quantum cryptography is defined as the set of cryptographic schemes believed to be secure against a quantum computer. The necessity for post-quantum cryptography stemmed from Shor's algorithm (1994), an algorithm that can solve the factoring and discrete logarithm problems in polynomial time on a quantum computer. These are the hard problems most existing asymmetric schemes at the time relied on, such as RSA, DSA, and elliptic curve cryptography in general, schemes which are still the most widely deployed. Grover's algorithm (1996) extended the worry to symmetric schemes, although it only offers a square-root speedup asymptotically over classical algorithms, and its concrete runtime is not expected to be a threat as things stand.8
Naturally, the focus shifted to the effects of Shor's algorithm on public-key cryptography. It's important to note that, to our knowledge, no quantum computer capable of breaking existing schemes exists today. Still, a transition of cryptographic schemes at this scale, if it ever turned out to be necessary9, would take time to get right. Standardization bodies, such as NIST in the US, started the process of exploring schemes not susceptible to quantum attacks as early as 2016. More followed with similar competitions, such as South Korea's KpqC (2021), and China's NGCC (2025), run by ICCS. NIST's initial rough estimate for Q-day (a day where quantum computers that could break these schemes in practical time would exist) was in the 2030s.
However, a paper by Google Research in March 2026 announced it had an optimized theoretical implementation of Shor's algorithm (a better "circuit") applied to the discrete logarithm problem over elliptic curves, and on the same day, a paper by Oratomic showed that Shor's algorithm can be run on a less powerful quantum computer than previously expected. In view of these results, Google and Cloudflare moved their target for a full transition to post-quantum schemes to 2029. Governments have also set deadlines: the US and the EU target a migration of critical systems by 2030, the UK and Canada by 2031, all four aim at migrating everything by 2035, and Australia, with a stricter timeline, aims at migrating everything by the end of 2030.
The algorithms chosen by NIST as the main post-quantum cryptography standards, as of August 2024, were ML-KEM (lattice-based), ML-DSA (lattice-based), and SLH-DSA (hash-based). There are also candidates currently in the process of standardization based on isogenies between elliptic curves, error-correcting codes, and multivariate polynomial equations.
Post-AI vs post-quantum
The "Post-" prefix in both terms suggests a closer similarity than it should. In this section, we'll address some misconceptions and see how post-quantum and "post-AI" cryptography relate to each other.
Quantum computers introduce a new computational model, AI operates within the existing ones.
Quantum computers introduced a completely different type of computer compared to the current classical ones. This means that they have different underlying properties, different hardware, and different architecture, running different algorithms than the classical ones. They extend the possibilities of what is computable (efficiently), hence the algorithms designed to run on a quantum computer can break problems which cannot be broken (to the best of our knowledge) by algorithms designed for a classical computer. In this sense, AI operates at a higher level: it is not a new type of computer, but it can aid in designing new and better algorithms for both classical and quantum computers.
AI could assist in finding better quantum algorithms for schemes believed to be post-quantum.
Post-quantum schemes are believed to be quantum-resistant because, so far, there have been no quantum algorithms that break them. AI as a mathematician could assist in the cryptanalysis of these schemes in the quantum setting. That is, it could find a quantum algorithm that breaks schemes previously believed to be secure on quantum computers. The Anthropic results on lattices are a step in this direction. Again, it's important to note that a human researcher could also come up with such an algorithm at any time, like Yilei Chen did in 2024, with a paper claiming a polynomial-time quantum algorithm for solving the Learning With Errors (LWE) problem. A bug was found in the algorithm, however, some days after the publication.
AI could assist in finding better classical algorithms for schemes believed to be post-quantum.
For a scheme to be considered quantum-secure, it must first be secure in the classical setting. The HAWK signature scheme was a candidate for standardization as a post-quantum scheme, but it was shown to be classically insecure by Anthropic in an AI-led effort, and it was withdrawn. Already standardized post-quantum schemes might also be vulnerable: Nigel Smart, Chief Academic Officer at Zama, recently published an AI-led attack (not yet reviewed) on the Ring-Learning With Errors problem that runs in sub-exponential time asymptotically, but is not concretely practical.10 A sufficiently general attack on R-LWE would also break M-LWE, on which the standardized post-quantum algorithms ML-KEM and ML-DSA rely.
The worry here is that such an event would be a setback in the post-quantum transition, and would invalidate many years of standardization processes and mid-way transitions. Still, there is a diversity of assumptions in the post-quantum candidates, so even if some of them fall, a transition to another scheme would be possible, even though it might require renewed effort.
AI could accelerate the progress of quantum computers and algorithms, and bring Q-day earlier.
A quantum computer capable of running Shor's algorithm does not exist today, but AI could help approach it from two directions. First, it could speed up research on quantum computers in general, scaling them up faster. Then, on the other end, it could further optimize Shor's algorithm to reduce the minimum quantum "hardware" required for a quantum computer to run it. This optimization approach, also called "auto-research", can be seen in ecdsa.fail, with agents continuously trying to reduce the qubits or Toffoli gates needed for Shor's algorithm. They have already achieved a 70.4% better circuit (at the time of writing) than the one Google Research claimed in March11.
Both AI and quantum attacks target structure.
Shor's algorithm exploits the algebraic structure of factoring and discrete logarithms, and structure is also the target of the recent quantum attacks on lattices by Anthropic. The ring and module variants of lattice-based problems were affected, but not the unstructured ones. This is also the case for the previously mentioned AI-assisted classical results (theoretical R-LWE, McEliece key recovery, HAWK attacks). In contrast, for problems where little structure is assumed, such as hash-based schemes, the best known quantum algorithm is Grover's, which is a generic speedup. This is the reasoning behind the calls for Minicrypt-like assumptions with as little structure as possible to be preferred. However, this is only a heuristic, and such schemes are not completely immune, as HashSmash shows.
The quantum threat is not related to Impagliazzo's five worlds for classical computers.
Impagliazzo's five worlds are theoretically tied to the computational model over which they are defined, so quantum computers cannot affect the worlds defined for classical computers.
AI has no Q-day analogue.
Q-day for quantum computers is the day when there will exist a quantum computer capable of breaking an instantiation with real-world parameters of the schemes affected, like RSA or ECDSA. It is possible that when this happens, it will not be known to the general public immediately, but it will, however, mark a specific point in time after which the affected classical schemes cannot be considered secure. Hence the "post-" in post-quantum. For AI, such a specific point cannot be clearly defined. As discussed in the previous sections, AI boosts the continuous process of cryptanalysis/auditing, and since it will remain a continuous process, there cannot be an "after" AI. "Post-AI" cryptography is an ambiguous term in that regard. The closest analogue to a Q-day for AI would be an AI-led foundational result in complexity theory that would disprove Cryptomania or even Minicrypt12.

Robert Fludd, "Et sic in infinitum" (1617)
What this means for cryptographic engineers
Our definitions covered AI attacking schemes and auditing their implementations, but the practical question of how to navigate this landscape as an engineer remains open. In this section we'll see how transitions to post-quantum are affected in practice, and how engineers can use AI to their advantage.
AI as a builder
Code: models write and optimize cryptographic code quickly. This allows engineers to experiment and benchmark approaches much faster than before, and is expected to accelerate the post-quantum transition development-wise.
Proofs: models can translate mathematical pen-and-paper theorems into Lean, and work on their proofs at a much faster pace than humans could. Hence, cryptographic schemes (and their implementations) can be proven correct in a robust and quickly verifiable way13. However, a proven theorem does not automatically equate to a secure scheme: the theorem (or specification, as it is often called in formal verification) must accurately cover the claims of the scheme. For implementations, the shift of trust from the code to its specification introduces a new approach to auditing (see Auditing a formal verification).
Research: the third way is auto-research, a loop in which agents keep trying to improve a result or optimize an implementation. For cryptography, this could also mean a cryptographic protocol invention and cryptanalysis loop done by AI autonomously to come up with better protocols (see Nicola Greco's Generative Cryptography). Auto-research works optimally when a formal specification can guarantee correctness of the AI-proposed improvement, which is the approach zk.golf follows to optimize ZK circuits in Clean. Even then, human review of AI-proposed improvements is still needed: on better.codes, which targets proximity gaps, several agents cheated by finding holes in the verification system. HashSmash, mentioned earlier, runs a similar loop on reduced-round hash functions.
What really changes: the way we work
The speedup offered by AI in cryptanalysis can also be beneficial for newly proposed schemes, by catching weaknesses before deployment14. A prime example of this was China's NGCC competition, where a great number of the first-round candidates were attacked in a single week after being published, most of the findings coming from a single researcher's agentic workflow15.
An audit covers one version of the code, at a specific point in time, as seen with the tools of its day, but both keep advancing. Attackers can use the latest models to uncover bugs that might have slipped through, but so can auditors. Thus, re-review of new and existing code with the newest models should now be standard practice for continuous security.
And now that finding bugs is cheap, checking and fixing bugs is the slow part. Responsible bug reporting now more than ever requires a thorough assessment of the bug and its actual severity, which takes considerable human effort to be done right, before reaching out to a maintainer. In Matthew Green's words referring to research, verifiability is now the bottleneck. Triaging, fixing, disclosing, and releasing new versions are a big part of continuous security, and none of those has sped up at the same rate as bug finding.
Post-quantum changes the algorithms, post-AI changes the process.
Migrating to ML-KEM does nothing about the bugs in the code implementing it, and ECDSA cannot be defended from Shor's algorithm by AI scanning its implementation.
What AI cannot do yet
First, AI can be confidently wrong. In our audits, the severity assigned by models to their own findings may be overstated, and when asked to back up their claims with working exploits, there have been instances of exploits that passed by disabling checks and mocking state. Of course, with each new model these occurrences become sparser. The same goes for false positives, which explains the initial flood of low-quality reports reaching maintainers, to the point where closing the bug bounty program is becoming a common response.
Second, no standardized scheme has been broken at the parameters used in practice. As of December 2026, excluding attacks on a particular implementation, there has been no known public attack (key recovery, signature forgery, or ciphertext decryption) for such a scheme. Moreover, the results presented in this post are narrower than they sound (or are rumoured to be). HAWK had not yet been standardized, the classical R-LWE attack is not concretely practical, the recent quantum attacks on lattices don't seem practical even assuming a powerful quantum computer exists, the factoring effort does not seem close to breaking RSA-2048, and the NGCC candidates were only a few days old. Of course, we can't know about results that were never published, hence the speculation that sparked the "bunker mode" discussion.
AI keeps advancing, so these limitations may soon be outdated.
- Aim for crypto-agility. Design your systems so that the core cryptographic primitives can be swapped as easily as possible if an attack is published.
- Continue the migration to standardized post-quantum schemes, preferring hybrid solutions. They are especially useful right now, as they also guard against a classical attack on one of the two schemes. Agility and hybrids are both recommended by CIRG as well.
- Adjust your threat model to account for attackers having access to the latest models, but also to account for the impact of harvest-now-decrypt-later scenarios. This was already a consideration for post-quantum migration, and still is, but with AI advances, it could also be the case for classical algorithms.
- Review the code again on every meaningful change and with each new generation of models, and keep every bug found as a regression check. Our tool zkao does exactly that.
- Expect more rumours and overreaction, but do not react in panic. Changing schemes and parameters is tricky, and making a mistake there is much more likely than being exposed to a new cryptanalytic result.
- Plan ahead for the human effort required after finding a bug: confirming it, fixing it, and disclosing it.
-
See this thread by Chris Peikert and the statement by CIRG for a more detailed explanation of the results. ↩
-
Impagliazzo's worlds have recently been applied to the AI threat and related policy (see e.g. AI Could End Encryption as We Know It by Govind Pimpale). Here, they will be useful to show both how AI can affect cryptography and how the quantum threat fits in this framework. ↩
-
STARKs mainly rely on two assumptions about hash functions: the binding of Merkle trees relies on the collision resistance of the hash function, and the Fiat-Shamir transform is analyzed in the Random Oracle Model, which models the hash function as a truly random function. Neither is guaranteed by the existence of OWFs, so Minicrypt alone cannot guarantee the security of STARKs. Collision resistance, however, cannot exist if OWFs do not, so it certainly cannot be "below" Minicrypt. ↩
-
ECDSA and ML-DSA are examples of such schemes. Digital signatures are already possible in Minicrypt, for instance with hash-based signatures, but the added structure of elliptic curves, in the case of ECDSA, and lattices, in the case of ML-DSA, makes them far more efficient. Specifically, ML-DSA relies on M-LWE, which implies public-key encryption, so Cryptomania is required for the scheme to be secure. ↩
-
Again, AI here is meant in the sense of producing or helping produce more results in cryptanalysis, boosting the already existing process in cryptography. It is still possible, as it has been possible for many years, that a human comes up with a result that has similar consequences. AI is just projected to speed up this process, if such a result does exist, anyway. ↩
-
Such efforts can be seen in the auto-research approach of HashSmash. ↩
-
Of course, formal proofs are only as good as the specifications they are checked against. ↩
-
If concretely efficient, the square-root speedup would require keys of double the current key length to preserve the same level of security as today. ↩
-
There has been some skepticism about the quantum threat, notably by Gutmann and Neuhaus, by Gil Kalai on his blog, and there has also been a relevant bet. ↩
-
It relies on an algorithm from OpenAI's recent preprint claiming that the Exponential Time Hypothesis (ETH) is false. Anthropic made the same claim days later. ↩
-
Google did not disclose the actual circuit, but they proved with a zero-knowledge proof that it achieved the claimed results. ↩
-
Although in this case, cryptography would simply be called "information-theoretic cryptography" rather than "post-AI". ↩
-
See, for example, our Lean formalization of the paper "A Simplified Round-by-round Soundness Proof of FRI", completed with Harmonic's Aristotle agent and Claude Code. ↩
-
CryptanalysisBench, with 191 tasks drawn mostly from four NIST competitions, is an instance of this. ↩
-
Saarinen's report counts 191 findings against 89 of the 119 candidates in the first week. The majority concerned implementations, but some were design-level key recoveries. ↩