Big Tech FOSS

Meta uses AI to sharpen AEGIS-128L cryptanalysis, finds flaw in widely used library

Key Takeaway

AI-assisted campaigns produced two distinguishers that beat published AEGIS-128L results on round reach and data complexity, while the full 10-round cipher held, and surfaced an unerased-secret implementation flaw in the most widely used AEGIS library.

Summary

Meta Engineering published results from an AI-assisted cryptanalysis campaign against AEGIS-128L, the high-speed AES-round-based authenticated cipher standardized in IETF RFC 10032 and a CAESAR winner. Working against deliberately weakened, reduced-round variants, the campaign produced two distinguishers that improve on the published literature: on the observable output it reaches four of ten rounds where the best prior result (Shiraya et al., IET Information Security, 2023) reached two, using 2^16 queries instead of 2^128; on an internal level it matches the published six-round reach with 2^96 times less data. The full-strength 10-round cipher produced no cryptanalytic finding, and all results assume an adversary who chooses the nonce, which real deployments do not grant.

The campaign was structured around falsification rather than generation: two cryptanalysis campaigns were followed by two whose only job was to invalidate the first two's claims, with one model proposing ideas and a different model rewarded for disproving them, plus independent clean-room reviews that rebuilt key results from scratch. A first campaign against full AEGIS-128L served as a null control, exercising 17 standard attack strategies against a shared reference implementation anchored to the RFC's published test vectors and returning nothing. The work also turned up an implementation flaw in the most widely used AEGIS library, secret material that is never erased, which Meta reported to maintainers with a proposed fix.

What the AI-assisted AEGIS-128L campaign actually found

  • Distinguisher reach on observable output: The campaign reaches four of AEGIS-128L's ten rounds on the output an adversary actually observes, versus two rounds in the best published result, at a cost of 2^16 queries (65,536 encryptions) against 2^128, which the post describes as every nonce the cipher will ever accept.
  • Internal-state result: On an internal level the campaign matches the published six-round reach using 2^96 times less data, converting an experiment that previously consumed the entire nonce space into one that runs in minutes.
  • Core observation: Both improvements follow from a single point the literature had not made: where an attacker varies the input matters, not merely how much of it is varied.
  • Null control and falsification structure: A first campaign ran 17 standard attack strategies against full 10-round AEGIS-128L on a reference implementation anchored to the RFC's published test vectors and returned nothing; two further campaigns were dedicated solely to invalidating claims from the first two, and only claims surviving cross-checking and clean-room review were published.

Why it matters

AEGIS-128L is standardized in IETF RFC 10032 and is used where high-speed authenticated encryption matters, so a sharper measurement of its safety margin and a concrete memory-hygiene bug in its most widely used library are directly relevant to anyone shipping it in TLS stacks, disk or network encryption, or embedded firmware. The falsification-first campaign structure, with a null control on the full cipher and adversarial models tasked with disproving claims, is a reusable pattern for applying AI to security review without publishing confident hallucinations. Because the full 10-round cipher survived and every result assumes nonce-choosing adversaries that real deployments do not permit, the practical takeaway for maintainers is to keep AEGIS-128L in place and audit their library for unerased secret material.

What to do

  • Users of the most widely used AEGIS library should apply the fix reported by Meta to address an implementation flaw where secret material is never erased.

Original reference: engineering.fb.com →