Secure Until Someone Looks

AI did not break our encryption this year. It changed what it costs to look for a break, and our confidence was priced in that cost.

Secure Until Someone Looks ~5K words

On November 30, Anthropic published four papers on lattice cryptography, more than 540 pages with machine-checked proofs, and said an internal research Claude model had found the results [1]. The lead paper describes a quantum algorithm against versions of the mathematical problems underneath ML-KEM and ML-DSA, the standards the world is adopting so that its secrets survive quantum computers. Within hours, the headlines had AI cracking post-quantum encryption.

It did not. I think the accurate version is more unsettling than the headline, though, and it is the same story as the other security news of 2026, in which models found flaws in code that people have been hardening since the 1990s.

Three questions have followed me around since. What does it mean when a machine finds a crack in something we treated as a foundation? What does it mean when it starts producing code with better evidence of security than anything we tuned by hand? And what do we do the morning after?


What actually happened

The facts first, because the essay is worthless if they are wrong.

When What was attacked What was found
July 28 HAWK, a post-quantum signature candidate, demonstrated on its HAWK-256 challenge parameters Key recovery reported to fall from about 2^64 to about 2^38 operations [2]
July 28 AES-128 cut down to 7 of its 10 rounds An attack that Anthropic puts at 200 to 800 times less computation than the previous best of its kind [2]
November 30 Module-lattice problems, including versions of the ones under ML-KEM and ML-DSA A new quantum algorithm, quasi-polynomial in the ring degree [1]

The number of deployed systems broken by all three is zero. The three are not equally harmless, though.

HAWK was a third-round candidate in NIST's search for additional signature schemes, never a standard. Its designers withdrew it the day after the attack was published [3]. Reports on the withdrawal say the attack also reduced the margins of the larger parameter sets, and that the obvious repairs would have made the scheme uncompetitive [4].

The AES result is a gain in computation on an attack that still needs an astronomical number of chosen plaintexts. The cryptographer Matthew Green described it as a modest constant-factor improvement on work from 2013, and the HAWK result as a real break [5]. Full AES is untouched.

The November result is the one that touches what is deployed, so it deserves a careful reading. The best known attacks on these lattice problems take exponential time. A quasi-polynomial algorithm is, on paper, a different class of animal. On paper is the operative phrase. The speedup is asymptotic in the degree of the underlying ring, which the standards fix at 256. They add security by raising the module rank instead, and the algorithm's running time is exponential in a power of that rank. The repository says it in one line: "The results are asymptotic, and the algorithms are not practical for the parameter sets of ML-KEM and ML-DSA." [1]

On November 16, Anthropic shared the results with members of the Cryptography Incident Review Group, a newly formed group of 21 cryptographers from academia and industry that describes itself as independent. Its assessment, published the same day as the papers, calls the attack's scale "galactic". Applied to the standards, the algorithm needs vastly more computation than the best attacks already known. Even 2^1000 quantum operations would fall far short against the smallest standardized parameter sets, ML-KEM-512 and ML-DSA-44 [6]. For scale, the observable universe holds about 2^266 atoms. The paper's own title uses the word galactic, which is, if anything, modest.

The reviewers added something the reassuring headlines left out. They expect the attack to be improved, and they say the open question is whether improvements will ever lower the cost of breaking the standards themselves [6]. Reassurance about today is not a forecast.

Two more findings got less press. Anthropic reported no improvement in classical attacks on any mainstream lattice system, and no quantum improvement against unstructured lattices. The reviewers called that "meaningful evidence in support of" the unstructured schemes [6]. Their recommendation is to keep migrating to post-quantum cryptography, at the highest security level each application can support.

The software half of the year was less theoretical. In April, Anthropic said a restricted model, Claude Mythos Preview, had found thousands of high-severity vulnerabilities, including a 27-year-old bug in OpenBSD and a 16-year-old bug in FFmpeg on a line that automated testing had executed five million times without noticing [7]. A startup, AISLE, said its AI system found all twelve CVEs in OpenSSL's January security release, some of them in code decades old [8].

So the scoreboard for 2026 reads: deployed ciphers broken, zero. Candidate schemes withdrawn, one. Deployed programs found vulnerable, a great many.


What "secure" always meant

Here is the part that the headline gets wrong and the panic gets right.

Nobody has ever proved that AES is secure. Nobody has proved that factoring is hard, or that lattice problems are. For factoring and lattices, a proof would imply that P differs from NP, a question open since 1971. For AES, a fixed-size cipher, it would take lower-bound techniques nobody has. What we have instead is a track record. AES was standardized in 2001, and after a quarter century of attempts the best known attack on full AES-128, in the standard single-key setting, saves about two bits out of 128 [9].

That is what "secure" has always meant in practice: not broken, by the people who looked, with the time they had. A cryptosystem is a hypothesis, and an attack is the experiment. Confidence grew with the quantity and quality of failed experiments.

Experiments were expensive, because the people able to run them were few. Lattice cryptanalysis is the work of a research community small enough to know each other by name. And the wider post-quantum community has sunk leading candidates before, without any help from machines:

So a machine finding a weakness is not a break with how the field works. It is how the field works. What changed is the price of an experiment. Anthropic put the HAWK result at about 60 hours of work and roughly $100,000 of API usage [2]. That is a lot for a hobby and a rounding error for a state. The search can be run against many schemes in parallel. The checking cannot: every result still has to be verified by people, and that part is as slow as it ever was.

Read the July results side by side and they confirm an old rule more than they overturn it. AES, the most studied cipher in the world, gave up a constant factor on a reduced-round attack. HAWK, published in 2022 and studied by far fewer people, fell. Longevity is only as good as the attention behind it, and for most schemes, and nearly all code, that attention was thin.

That is what I think the moment means. "It has survived years of scrutiny" was a measurement denominated in expert-hours, and the exchange rate just moved. Everything that earned its reputation on a small budget of attention has to be repriced.

The same repricing cuts the other way, and this is the part I find hopeful. Scrutiny used to be bought slowly, through competitions, prizes and audits. It can now be bought in bulk. A serious search that comes back empty is evidence, and the reviewers read the November null result for unstructured lattices in exactly that way. Anthropic's announcement, for its part, said the attack lowered its own long-term confidence in structured lattices. One release moved both estimates.

That evidence needs a caveat of its own. An empty search is worth only as much as the searcher's record on problems known to be breakable. That record is a few results long, and nobody has published how many targets were tried without success.

Code tells the same story with less mathematics. "Battle-tested" meant tested by the battles that happened to occur. The FFmpeg line had been executed five million times by automated tests, by Anthropic's count. It had not been read by something that understood it.


The second question depends on who is asking, and how

Does AI now write code more secure than what we spent decades tuning? My first answer was no, on the strength of the big benchmarks. That answer was too quick, and the reason is instructive.

By default, no. Veracode's benchmark put the share of AI-generated code that passes its security tests at 56% in July, against 55% in its first report a year earlier, with syntax close to perfect [13]. An October update moved the average to 62%, with the two best models, Claude Opus 5.5 and GPT-6-Sol, tied at 73% [14]. That is the frontier with nobody asking: about one security task in four still fails. IOActive tested 27 models and tools on 730 prompts, and its automated analysis rated 31.6% of the samples fully exploitable [15]. In October, maintainers of OpenSSL, Bouncy Castle and cryptlib compared notes on a panel at the OpenSSL Conference. One report of the session ran under the headline auditor, not author [16].

Those benchmarks deliberately give the model no security guidance. They measure what comes out when nobody asks. That is how most code is now written, so it is a fair measure of the average, and the average is what attackers will meet. It says little about what a model can do when someone who knows what secure means is directing the work. Most of these benchmarks have no human baseline either, and the matched comparisons that exist point both ways. A large measurement of real repositories found AI-written code triggering fewer static-analysis alerts than comparable human code, with high-risk alerts about level [17].

When asked, somewhat. On a benchmark of backend applications scored on working exploits, the best model of early 2025 produced code that was both correct and secure less than 40% of the time [18]. By December the leader stood at 56%, and a one-line reminder to write secure code added about ten points [19]. Veracode saw extended reasoning lift one model family from about 55% to above 70% [20]. Those are real gains, and they still leave roughly a third of the working backends exploitable.

On tasks inside real repositories it is worse. An agent that got 61% of the features working got 10.5% of them working securely, and hints naming the class of vulnerability barely helped [21]. IOActive found that a bare "write secure code" was often ineffective or counterproductive [15]. A survey of the field names the pattern: models know the secure-coding principles before they start, and fail to apply them while writing [22].

The strongest models do not escape this. A mid-2026 rerun of two security benchmarks on Claude Opus 4.8, GPT-5.5 and two Gemini models found working code 83% to 95% of the time, and only 24% to 36% of that code secure. A generic instruction to write secure code added little. So did turning the effort setting to maximum. What helped was threat modeling followed by a review loop, at a higher token cost [23]. A study that followed model families over time found the same shape: every family narrowed the gap between working and secure, and none closed it [24]. Asking is not enough.

When checked, yes. Google's security team had a model port giflib, a C library that dates from 1989, to Rust. Engineers reviewed the unsafe boundary. A differential fuzzer ran the old and new code side by side for 200 million iterations and fed every disagreement back to the model, and the result was compared on more than 30 million real files before it shipped. When an outside researcher later found an out-of-bounds heap write in the original, the replacement was not affected [25].

That is the premise of the question made true: AI-written code, more secure than code people had maintained for three decades. Look at where the security came from, though. The old implementation served as the oracle. The fuzzer and the file corpus did the checking. The language removed a class of bugs, and people reviewed the part it could not cover. The model supplied the labor. The harness supplied the assurance.

I have run a small version of this myself. kContainerOS was written mostly by an AI model. What I trust about it is not that I asked for security. It is the 504 end-to-end checks with controls, and an audit anyone can run again.

Proof is the same idea taken to its limit. Where "secure" can be stated precisely enough for a machine to check, AI now produces the evidence at a fraction of what it used to cost.

Machine-checked software is not new. Verified cryptography has shipped in Firefox and Chrome for years, and seL4 is a verified operating-system kernel. Each took specialists years. What is new is the price.

A group including Stanford researchers built a system that writes proofs for a mechanical checker. Given human-written contracts for the public API and a fixed trusted library of axioms and arithmetic facts, it produced a new machine-checked proof of functional correctness for curve25519-dalek, a production elliptic-curve library, in 11.4 hours and about $467 of API calls, without changing the executable code [26]. The paper compares that with the original human verification, which its developers describe as a focused five-month, three-person effort. Two cautions apply. That human effort also produced the contracts the machine started from, and the authors say their system was tuned on this library.

Anthropic's lattice papers ship with Lean proofs of 132 main theorems, written by AI models and checked by a program that cannot be flattered. The repository is candid about the limit: "That the statements say what the papers say is for the reader to judge." [1]

This is still hard. On a benchmark that asks agents to build whole verified repositories in Lean, the best configuration fully solved 27 of 43 tasks, and most did far worse [27]. But the direction is clear, and it reframes the craft. We spent decades tuning because checking cost too much. Hand-hardened code was never known to be secure. It was known not to fail in the ways already found.

Proof has limits that matter. The dalek proof establishes functional correctness against the contracts it was given, not constant-time execution or resistance to side channels [26]. A checker confirms that the formal statement is proved, not that the statement says what you meant. The weak point moves from the implementation to the specification, and then to the checker itself. I have argued both points before: review is the bottleneck in The AI Verification Debt, and a check is only worth something if the thing it checks cannot reach it in The Verifier Is the Target.

Is this a cost problem, then? If the loop works and the prompt does not, it is tempting to conclude that security is now something you buy. Mostly it is not.

The compute is cheap. The dalek proof cost a few hundred dollars. In one independent test, a multi-agent review of a pull request cost about $21 [28]. Set against an engineer's week or a breach, neither number matters.

More spending runs out of road quickly, though. In that same test the $21 review caught 23 of 27 serious bugs. A single agent caught 21 of them for 11 cents [28]. Maximum effort bought little in the frontier rerun above. A model reviewing its own work shares its own blind spots, so more passes buy repetition, not independence. My kContainerOS audit says the same of itself: it cannot rule out a mistake that every agent makes in the same way.

What money cannot buy is the thing to check against. "Follow secure best practices" is not checkable. A threat model is, and so are a reference implementation, a fuzzer and a proof obligation. Someone has to supply those, and someone has to rule on what the checks turn up. Neither job got cheaper.

Cost does bite in one place, which is the default. Nobody pays for the loop unless they decide to, so most code ships at the unprompted rate.

This essay is a small instance. Its first draft was written by a frontier model under instructions to get the facts right. It called a withdrawn signature scheme a current candidate and miscounted DARPA's planted bugs. Five reviewer agents, each given only the text and told to check it against sources, caught those errors and more than a dozen others. They were the same kind of model as the author, so the caveat above applies to them too: what made them useful was starting from the sources and not from the draft's reasoning. The whole exercise cost about twenty dollars in compute. Asking for rigor did not produce it. The check did, and it was cheap.

So the decades of tuning are not being beaten by the model's taste, by a better prompt, or by a bigger budget. They are being beaten by checking that used to be unaffordable, run by someone who can say what "secure" means.


What became scarce instead

Finding used to be the expensive part. It is getting cheap, and the constraint moved downstream.

By May, Anthropic said that it and about fifty partners had found more than ten thousand high- or critical-severity vulnerabilities, and that some open-source maintainers had asked it to slow its disclosures [29]. Its open-source scanning is tracked in public. By November 2 the ledger listed about 38,000 findings, most of them not yet sent to a maintainer. The dashboard counted 5,087 reported to 680 projects and 629 patched upstream [30]. An outside analysis by VulnCheck, counting ledger entries marked fixed, found 217, and disputes the quality of many findings [31]. That dispute is the point, not a rebuttal of it. Sorting real from marginal is itself the labor that ran out.

Machines can draft patches. In the final of DARPA's AI Cyber Challenge, automated systems found 54 of 63 planted vulnerabilities and patched 43 [32]. But a patch is not a fix until someone reviews it, releases it, and several million machines install it. Those steps did not get cheaper at anything like the same rate.

An attacker needs one exploitable flaw that stays unpatched. A defender needs throughput. That asymmetry is the security problem of the next decade, and it is an operations problem, not a mathematics problem.


How we evolve from there

1. Stop treating age as proof. Longevity measured the attention a system received, and most systems received little. Assume that anything unverified contains findable flaws, and budget for the day they are found.

2. Build for replacement, not permanence. The right lesson from November is not "lattices are doomed, wait and see". Waiting keeps you on RSA and elliptic curves, which a large quantum computer breaks outright with an algorithm known since 1994, and traffic recorded today can be decrypted later. NIST's transition plan, finalized in October, deprecates those algorithms after 2030 and disallows them after 2035 [33]. The standards body hedged long before this result: it selected HQC, a code-based scheme, as a backup to ML-KEM precisely because it rests on different mathematics [34], and it standardized a hash-based signature alongside the lattice one. Deployed TLS already pairs ML-KEM with classical X25519 for key exchange, so recorded traffic stays safe unless both are broken [35]. Diversity and the ability to swap an algorithm in a release cycle are worth more than any single bet.

3. Prove what can be specified, and shrink what cannot. Memory-safe languages remove whole classes of bugs by construction. Verified cores, long confined to a few flagship projects, are becoming affordable for the code that matters most. Where proof is out of reach, give the model an oracle it cannot argue with: a reference implementation, a differential fuzzer, tests it has not seen. Everything else should be small enough to audit, which is an argument for fewer dependencies and less code that I have made elsewhere.

4. Run the search on yourself first. The capability is symmetric, and the position is not. Defenders have the source, the tests, the build, and the authority to ship a fix. Restricting the strongest models to defenders buys time. It does not buy a monopoly.

5. Fund the bottleneck. Maintainer time, triage, release engineering and patch deployment are now the scarce resources of software security. A world that spends on discovery and not on remediation is manufacturing a public list of its own weaknesses.

6. Build institutions for machine-speed disclosure. The November release was handled well: outside experts had two weeks with the results, and the papers, the proofs and an outside assessment were published together. That was a courtesy. It should be a norm, with rules that do not depend on the goodwill of whoever finds the next result.

7. Keep the people who can check. By Anthropic's own account, the model that improved the AES attack at first declined to try, on the grounds that the problem was impossible [2]. Outside cryptographers had to read the lattice papers before anyone else could know what they meant. Expertise is the verification layer of this whole arrangement, and it does not come from a download. That was the argument of Trusted Like a Bridge, and this year supplied the evidence.


What it means

The foundation was never the cipher, and it was never the code. It was a process: publish the design, invite the attack, keep what survives. Kerckhoffs wrote down the premise in 1883: a system must not depend on its design staying secret.

AI did not break that process. It joined it, at a scale the process was not staffed for. The discomfort many of us feel is the discovery that our bedrock was a consensus among people who had looked and found nothing.

That is uncomfortable, and it should also be a relief. A consensus can be tested, and we can now afford to test it far more widely. Security stops being a state that a system reaches and keeps. It becomes a rate: how fast you can find, prove, fix and replace, compared with how fast someone else can find.

Everything was always secure until someone looked. The difference now is that someone always will, so it had better be us, first.


References

[1] Anthropic. (2026, November 30). Galactic quasi-polynomial quantum algorithms for integral and module lattices, with three companion papers and a Lean 4 formalization. GitHub. https://github.com/anthropics/formal-math/tree/main/lattices

[2] Anthropic. (2026, July 28). Discovering cryptographic weaknesses with Claude. https://www.anthropic.com/research/discovering-cryptographic-weaknesses

[3] NIST. (2026). Round 3 Additional Signatures. Post-Quantum Cryptography: Additional Digital Signature Schemes. https://csrc.nist.gov/projects/pqc-dig-sig/round-3-additional-signatures

[4] The Qubit Report. (2026, August 13). HAWK Lattice Signature Scheme Withdrawn from NIST Round 3 After AI-Assisted Key-Recovery Attack. https://thequbitreport.com/security-policy/2026/08/13/hawk-lattice-signature-scheme-withdrawn-from-nist-round-3-after-ai-assisted-key-recovery-attack/

[5] Green, M. (2026, July 29). Some notes about Anthropic's new results. A Few Thoughts on Cryptographic Engineering. https://blog.cryptographyengineering.com/2026/07/29/some-notes-about-anthropics-new-results/

[6] Cryptography Incident Review Group. (2026, November 30). Initial Assessment of Anthropic's Findings on Lattice Cryptography. https://cirg.org/statements/1/

[7] Anthropic. (2026, April). Project Glasswing: Securing critical software for the AI era. https://www.anthropic.com/glasswing

[8] AISLE. (2026, January). AISLE Discovered 12 out of 12 OpenSSL Vulnerabilities. https://aisle.com/blog/aisle-discovered-12-out-of-12-openssl-vulnerabilities

[9] Bogdanov, A., Khovratovich, D., & Rechberger, C. (2011). Biclique Cryptanalysis of the Full AES. ASIACRYPT 2011. https://eprint.iacr.org/2011/449

[10] Castryck, W., & Decru, T. (2022). An efficient key recovery attack on SIDH. IACR ePrint 2022/975. https://eprint.iacr.org/2022/975

[11] Beullens, W. (2022). Breaking Rainbow Takes a Weekend on a Laptop. IACR ePrint 2022/214. https://eprint.iacr.org/2022/214

[12] Chen, Y. (2024). Quantum Algorithms for Lattice Problems. IACR ePrint 2024/555. https://eprint.iacr.org/2024/555

[13] Veracode. (2026, July 28). 2026 GenAI Code Security Report. https://www.veracode.com/resources/analyst-reports/2026-genai-code-security-report

[14] Veracode. (2026, October 29). Fall 2026 GenAI Code Security Update. https://www.veracode.com/blog/fall-2026-genai-code-security

[15] IOActive. (2026, April). The Security Gap in AI-Generated Code. https://www.ioactive.com/the-security-gap-in-ai-generated-code/

[16] Cyber Magazine. (2026, October). AI in Open-Source Cryptography: Auditor, Not Author. https://cybermagazine.com/news/ai-in-open-source-cryptography-auditor-not-author

[17] A Large-Scale Comprehensive Measurement of AI-Generated Code in Real-World Repositories. (2026). arXiv:2603.27130. https://arxiv.org/abs/2603.27130

[18] Vero, M., et al. (2025). BaxBench: Can LLMs Generate Correct and Secure Backends? arXiv:2502.11844. https://arxiv.org/abs/2502.11844

[19] Vero, M. (2025, December). New #1 on the BaxBench leaderboard [post]. X. https://x.com/mark_veroe/status/1998802911191839076

[20] Veracode. (2026). Spring 2026 GenAI Code Security Update: Despite Claims, AI Models Are Still Failing Security. https://www.veracode.com/blog/spring-2026-genai-code-security/

[21] Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks. (2025). arXiv:2512.03262. https://arxiv.org/abs/2512.03262

[22] Patir, R., Guo, K., Cai, H., & Hu, H. (2026). SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward. arXiv:2606.25195. https://arxiv.org/abs/2606.25195

[23] Checkmarx. (2026). Capability Without Security: Measuring the Functionality-Security Gap in AI-Generated Code. https://checkmarx.com/capability-without-security-measuring-functionality-security-gap-ai-generated-code/

[24] Newer and Bigger, but Safer? A Longitudinal Study of the Functionality-Security Gap in LLM-Generated Code. (2026). arXiv:2610.08240. https://arxiv.org/abs/2610.08240

[25] Google. (2026). Scaling Memory Safety: AI-Assisted Rewrites of C/C++ Dependencies to Rust. Google Bug Hunters. https://bughunters.google.com/blog/scaling-memory-safety

[26] Sun, C., Fong, S., Kuang, Z., Jiao, Y., Narodytska, N., Wu, H., Dill, D. L., & Barrett, C. (2026). An AI Approach to Verified Production Cryptographic Libraries. arXiv:2608.00965. https://arxiv.org/abs/2608.00965

[27] Ye, Z., Lou, H., Sun, Y., Song, P., Yan, Z., Kasriel, T., Zhang, Q., Yang, K., Kong, S., He, J., & Song, D. (2026). Vero: Can AI Agents Build Formally Verified Software Repositories? arXiv:2608.13522. https://arxiv.org/abs/2608.13522

[28] Quickchat AI. (2026). What Claude Code's multi-agent code review costs and finds. https://quickchat.ai/post/claude-code-multi-agent-code-review

[29] Anthropic. (2026, May 22). Project Glasswing: An initial update. https://www.anthropic.com/research/glasswing-initial-update

[30] Anthropic. (2026). Coordinated vulnerability disclosure dashboard, figures as of November 2, 2026. https://red.anthropic.com/2026/cvd/

[31] Garrity, P. (2026, November 9). After 7-months, Glasswing Overwelms Maintainers with Underwhelming Findings. VulnCheck. https://www.vulncheck.com/blog/anthropic-glasswing-november-update

[32] DARPA. (2025, August 8). AI Cyber Challenge marks pivotal inflection point for cyber defense. https://www.darpa.mil/news/2025/aixcc-results

[33] Moody, D., Perlner, R., Regenscheid, A., Robinson, A., & Cooper, D. (2026, October). Transition to Post-Quantum Cryptography Standards (NIST IR 8547). https://csrc.nist.gov/pubs/ir/8547/final

[34] NIST. (2025, March 11). NIST Selects HQC as Fifth Algorithm for Post-Quantum Encryption. https://www.nist.gov/news-events/news/2025/03/nist-selects-hqc-fifth-algorithm-post-quantum-encryption

[35] Kwiatkowski, K., Kampanakis, P., Westerbaan, B., & Stebila, D. (2026, August). Post-Quantum Traditional (PQ/T) Hybrid Key Agreement Mechanisms for TLS 1.3. RFC 10024. https://www.rfc-editor.org/info/rfc10024


Kyberneees, December 2026. Drafted with an AI model made by Anthropic, the company whose results this essay discusses. Read it accordingly, and check the references.