- AI-assisted analysis of AEGIS-128L improved on the best published cryptanalysis on two fronts: more rounds reached, and a far smaller data requirement.
- The underlying insight: where an attacker varies the input matters, not only how much data varies.
- The full 10-round cipher survived unchanged; all results target deliberately weakened variants, and assume a nonce-choosing adversary that real deployments do not permit.
- A cross-checking framework had one model propose ideas, another rewarded for disproving them, and independent reviews reconstruct key results from scratch. It is not a model benchmark.
- The campaign also surfaced an implementation flaw in the most widely used AEGIS library: internal state that is never erased. A hardening patch to clear it inside the library was shared upstream.
Advanced AI models can now go beyond plausible technical prose: they form hypotheses, design controls meant to falsify them, revise when those controls fail, write and debug the validating code, and converge on sound claims. The work described here is an illustration — roughly a few weeks of AI-assisted research produced a PhD-chapter-scale body of work, two cryptanalytic distinguishers that improve on the literature against AEGIS-128L, and an audited log of validated and refuted claims, with one distinguisher later confirmed by a theorem and proof from independent clean-room review.
Symmetric cryptanalysis is a scarce skill, so confidence in deployed ciphers usually rests less on mathematical proof than on years of failed attacks by many skilled researchers. Most primitives may therefore receive less scrutiny than their importance warrants. AI cannot replace those experts, but it can let each of them cover more ground.
The target and the measurement
AEGIS-128L is a high-speed authenticated cipher built from AES rounds and standardized in IETF RFC 10032; it is a CAESAR winner with an active cryptanalysis literature, which makes it a useful test case. Breaking it outright is unlikely, so cryptanalysts work with a distinguisher: a statistical test that separates the cipher's output from random noise. Because the cipher repeats an internal scrambling operation (a round), a distinguisher that spans more rounds says more about the security margin. AEGIS-128L uses 10 rounds; before this work, the best distinguisher on observable output covered two.
Results on two fronts
On the output an adversary actually sees, we reach four of 10 rounds, where the best published result (Shiraya et al., IET Information Security, 2023) reaches 2, using 2¹⁶ queries — 65,536 encryptions — against their 2¹²⁸, the entire nonce space the cipher will ever accept. Internally, we match the published six-round reach with 2⁹⁶ times less data, turning an experiment that consumed the whole nonce space into one that runs in minutes. Both come from a single observation the literature had not made: where the attacker varies the input matters. Byte placement is a free parameter the literature does not sweep, and varying it buys rounds.
How the campaign was structured
The hard part of AI-generated science is not plausible results but distinguishing real ones from confident-sounding ones, so the campaign was built around falsification. Two cryptanalysis campaigns were followed by two whose only job was to invalidate the earlier claims.
Null control against the full cipher
Seventeen standard attack strategies were run against full 10-round AEGIS-128L on a shared reference implementation anchored to the RFC's published test vectors. The outcome was nothing — and this was run deliberately first. A system that reports a finding every time it is pointed at a cipher is hallucinating; one that returns a clean null on a well-studied target earns credibility when it does report. The pass was not empty: it noted that libaegis does not erase its internal state after use. An attacker who can already read process memory could use the leftover state to decrypt or forge affected data, though not to recover the AEGIS key. Maintainers consider clearing that state the caller's responsibility, so we shared a patch upstream that clears it inside the library.
Weakened variants with checkable ground truth
Round-reduced variants — AEGIS-128L with fewer than 10 rounds — allow a complete invariant (the cube sum) to be computed exhaustively, making every claim checkable rather than arguable. The model swept round count, cube dimension, byte placement, keys and nonce bases, and found the placement result described above.
Falsifier and clean-room stages
A separate model, rewarded for invalidating claims rather than extending them, found four genuine defects: a weak-key threshold misstated by a factor of 256; an algebraic identity presented as independent measurement; a minimality ladder with an uncontrolled variable; and a screening criterion restated as a result. All four were recorded as refuted. Three independent reviews then worked on separate RFC-anchored engines built without reading the originals. The first found a genuinely confounded control in the proof, overinterpreted its replacement, and concluded the proof claim should be refuted — the wrong overarching verdict. The two later reviews independently found the error and recovered the correct proof. Stopping after the first review would have retracted a true theorem.
Campaigns 1 and 2 ran on Anthropic's Claude Opus 5; Campaign 3 on an internal Meta model; Campaign 4 combined Claude Opus 5 and OpenAI Codex GPT-5.6. Models were chosen as advanced at the time without specific preference, pointed at different task sets; the lessons came from mutual cross-validation across independent contexts, and no conclusion about relative model strength should be drawn.
Two Improved Distinguishers on Round-Reduced AEGIS-128L
AEGIS-128L exposes exactly one attacker-controlled input: a 16-byte public nonce, which exists so that encrypting the same message twice does not yield the same output twice. In the threat model of this literature, the attacker chooses it. The zero-sum test is the distinguisher: vary a few nonce bytes, encrypt under every combination while holding the rest fixed, and sum the results bitwise. A zero sum across all keys reveals non-random structure, and sweeping those inputs produces a cube (two bytes cost 2¹⁶ encryptions; four bytes cost 2³²). The more rounds balance survives, the thinner the cipher's security margin. Byte position matters because AES-style ciphers shuffle bytes on a 4×4 grid column by column after shifting rows: four bytes on one diagonal feed one column, while four bytes on distinct diagonals feed four.
Transversal Placement as a Free Parameter
Indexing the 16 nonce bytes by AES diagonal shows that placement changes outcomes. Classical attacks use a diagonal cube — four bytes in one diagonal. A transversal cube, with one byte in each of the four diagonals, reaches balance (Σ S[3] = 0) after six rounds at 2³² encryptions, whereas diagonal and partial-diagonal placements fail at the keys tested.

Every configuration in these tests varies four nonce bytes for 2³² encryptions — roughly 4 billion, a few minutes on one machine. Diagonal coverage counts how many distinct diagonals those four bytes occupy when testing for a zero sum (Σ S[3] = 0) after six rounds on one internal state word. The threshold is sharp at coverage 4 rather than gradual: three diagonals buy nothing over one. All 256 members of the transversal family balance, and the proof covers each of them. Compact statement of the mechanism: placement of the varied input bytes matters, not merely how many of them are varied. Prior evaluations vary cube dimension while holding placement fixed; placement costs nothing and is worth rounds.
Internal State: Six Rounds on 2³² Data
The cipher keeps eight internal state words that nothing outside the algorithm observes, alongside the keystream that is actually combined with the message. The best published integral result also reaches six of 10 rounds but needs 2¹²⁸ — the entire nonce space, with no data margin above it. This work does not claim a higher round count; it claims to reach the same count practically: 4 billion queries instead of all of them, in minutes on a laptop. The result is proved for every key, every nonce base and every transversal placement, and two independent clean-room reviews reconstructed the proof (Campaign 4).
Observable Keystream: Four Rounds on 2¹⁶ Data
With two nonce bytes in different diagonals, the keystream — what an adversary actually observes, and for an all-zero message the RFC's published ciphertext itself — reaches four of 10 rounds at 2¹⁶ data (65,536 queries, under a second on a laptop). The published comparator is two rounds at 2¹²⁸, so this doubles the round reach at a fraction of the data, and it is the more consequential of the two results because the target is observable rather than internal. It rests on measurement, not proof: the sum came out zero in all 480,000 tests across 5,000 random keys.

Why Balance Survives
Internal complexity grows gradually enough over the early rounds that a transversal input prevents the core operations from mixing the bytes too quickly. Algebraic complexity therefore stays low enough for the inputs to cancel completely through round 6, before the feedback loop fully scrambles the state at round 7.
The Automated Tools Miss It
Standard automated models returned identical predictions for every byte placement, while real tests showed clear contrast — the tools overlook the distinction under standard configurations rather than being unable to see it. That raises the broader question of how many published security limits mark a tooling boundary rather than a property of the algorithm.
Implementation Finding in libaegis
Campaign 1 found that libaegis never erases its secret state, in upstream HEAD across all six AEGIS variants. A leftover snapshot would let an attacker who can already read process memory decrypt or forge affected data, though not recover the key. The obvious patch can backfire on the hot path: wiping a working copy the compiler held in vector registers forces a spill, creating the exposure the wipe was meant to remove. The working rule is to erase a secret once the code is finished with it, and to treat a copy written back into a live state object as still in use. It was shared with the libaegis maintainers as a proposed fix.
Implications
Cryptanalysis
Placement is a knob standard evaluation never turns: published analyses vary how many input bytes get swept while holding positions fixed. Turning it doubled the best published keystream reach on AEGIS-128L, from two rounds to four, while cutting data from 2¹²⁸ to 65,536 queries, and matched the published six-round internal result on 2⁹⁶ times less data. The measured margin on the observable quantity is now six rounds rather than eight — still wide, and still unreachable without nonce control real deployments do not grant. Because the mechanism follows from how AES rounds route bytes rather than from AEGIS itself, any design in the family can be re-examined at the computational cost of changing byte indices. The automated tooling returns the same verdict for both placements, and the published byte-level method stops three rounds short of what the cipher does (a finer bit-level model, two) — a published bound can measure the reach of the method that produced it.
AI-Assisted Science
A machine produced these results, yet every headline number can be re-checked independently on one laptop; the work was built to be falsifiable. A few weeks yielded a PhD-chapter-scale body of work, putting the binding constraint on verification rather than generation. Four lessons generalize:
- A null-result control outranks a finding: Campaign 1 returning nothing against the full cipher is what makes Campaign 2 credible.
- Ground truth should be computable, so claims can be verified exhaustively instead of debated.
- Adversarial passes introduce errors as well as remove them: Campaign 3 deleted four false claims, and Campaign 4's first review refuted a true theorem that took two further independent reviews to repair.
- Independence of context matters as much as independence of model: re-running a review on the same model with no memory of the earlier work surfaced mischaracterizations it had defended the first time.
The models did the exploration and generated both the results and the errors; verification was the burdensome part — as Anthropic also reported.
For Organizations Behind Primitives
Heavy industry dependence on cryptography argues for industry discovering its own limits: attacking promising standardized primitives and publishing the outcome, finding or null, is more efficient than reading limits in someone else's paper. The same logic covers capability — if AI makes original cryptanalysis dramatically more accessible, it does so for both sides, and the useful response is to build the muscle early. The campaign left the ecosystem with a sharper published margin on a standardized primitive, plus a reported libaegis gap and a proposed fix.
Conclusion
Full 10-round AEGIS-128L survived a sustained campaign with no cryptanalytic finding against it, and that null carries weight because the same pipeline found real structure as soon as the cipher was weakened. On round-reduced variants, cube placement proved a free parameter the published evaluations hold fixed. Varying it matched the best published six-round internal reach with 2⁹⁶ times less data and doubled the best published keystream reach from two rounds to four. The six-round internal result is proved for every key; the four-round observable result is a measurement here, with a separate proof by Shay Gueron forthcoming. The campaign also identified a hardening gap in libaegis and reported it with a proposed fix.
The most interesting result is not about AEGIS: automated tooling returns the same verdict for both cube shapes, and the published byte-level method stops three rounds short of the cipher's actual behavior. A published bound can measure the reach of its method rather than a property of the primitive, and there is no reason to think AEGIS is the only instance.
Methodology is the transferable part. A null-result control, a regime with computable ground truth, and successive independent adversarial passes produced claims that survived four rounds of attack, plus a clear record of the ones that did not — a structure for checkable AI-assisted science wherever those three ingredients can be arranged. The full paper, including the proof and the complete limitations discussion, is in preparation.
Acknowledgments
We thank Taylor Dougherty, Isaac Elbaz, Kyle Gerstenschlager, Shay Gueron, Assaf Keren, Ed Knapp, Will Lowe, Forrest Mertens, Madhukar Rao, Chris Wiltz, and everyone else who reviewed this work for their feedback and support.



