CryptanalysisBench: Can LLMs do cryptanalysis?
Abstract
Cryptanalysis, the search for attacks on cryptographic schemes, sits at the intersection of mathematical reasoning and cybersecurity, two areas where LLMs have advanced fastest. Cryptanalysis offers a clean testbed for frontier reasoning, as practical attacks are automatically verifiable, and carries unusually high stakes, as the primitives studied underpin digital security. In this paper we ask whether LLMs can do cryptanalysis and find that the answer is increasingly yes. We introduce CryptanalysisBench, 191 tasks across six primitive families (block ciphers, hash functions, etc.), drawn primarily from four NIST standardization competitions. It comprises primitives with known practical breaks (Tier 1), primitives without them, evaluated at full strength and as scaled-down variants (Tier 2), and a challenge set of production primitives at the cryptanalytic frontier. Five frontier models (Claude Opus 4.8, Sonnet 5, Mythos 5, GPT‑5.5, and the open-weights GLM‑5.2) break 65-86% of Tier 1 schemes, 6-12 Tier 2 schemes at full strength, and 24-61 across all scaled-down variants. Beyond deriving known results, models also produce novel cryptanalysis, including a key-recovery attack exploiting a design flaw in the SpoC AEAD and an error in KINDI's published CCA-security proof, both previously unknown to the best of our knowledge. We release CryptanalysisBench as a tool to track whether, and when, AI cryptanalysis becomes a serious factor, and to stress-test candidate schemes before deployment. The attacks it already surfaces are an early snapshot of a fast-moving frontier that may soon match, and in places exceed, the published state of the art.