CryptanalysisBench: Can LLMs do Cryptanalysis?
This paper introduces CryptanalysisBench, a comprehensive benchmark of 191 cryptographic tasks across six primitive families, demonstrating that frontier large language models can not only replicate known attacks on established schemes but also discover novel vulnerabilities in both scaled-down and production-level cryptographic primitives.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the digital world as a massive, bustling city where every bank, message, and secret is locked inside a vault. The keys to these vaults aren't made of metal, but of complex mathematical recipes called "cryptographic primitives." For decades, only a tiny group of human experts—like master locksmiths with PhDs in math—could test these locks to see if they were truly unbreakable. If a lock has a flaw, every single vault using that lock becomes unsafe, potentially exposing secrets from the past and future. This is the high-stakes game of cryptanalysis: the art of finding the weak spots in these mathematical locks before the bad guys do.
Recently, a new kind of "apprentice locksmith" has arrived: Large Language Models (LLMs). These are the super-smart AI chatbots that can write code, solve riddles, and chat about almost anything. The big question hanging over the city is: Can these AI apprentices actually outsmart the human masters? Can they look at a complex mathematical lock, figure out how to pick it, and break it open without needing a human to hold their hand? This isn't just a game; it's a race to see if our digital safety net is about to get a serious upgrade or a terrifying hole.
The Great Lock-Picking Contest: CryptanalysisBench
In this paper, a team of researchers from top universities and tech labs decided to put these AI apprentices to the ultimate test. They built a giant training ground called CryptanalysisBench. Think of it as a massive obstacle course filled with 191 different types of locks. Some of these locks are old and already known to be broken (like a door with a loose hinge), while others are brand new, shiny, and currently considered "unbreakable" by humans.
The researchers invited five of the smartest AI models on the planet (including versions of Claude, GPT, and GLM) to try and break these locks. The rules were strict: the AI had to write a computer script that could actually crack the code, not just guess the answer. If the script worked, the AI won the round.
The Results: The AI is Already Good at the Basics
The results were surprising. When the AI faced the "easy" locks—the ones humans already knew how to break—the models were incredibly successful. Depending on the model, they managed to break between 65% and 86% of these known locks.
But here is the really cool part: the AI didn't just copy the answers from a textbook. In many cases, the models looked at the code from scratch, figured out the flaw on their own, and wrote a working attack script. It's like giving a student a broken toy and asking them to fix it; instead of looking up the manual, they figured out the broken gear just by looking at the toy.
The New Discoveries: AI Finding Flaws Humans Missed
The most exciting discovery happened when the AI tackled locks that humans thought were safe. The researchers found that the AI models discovered brand new ways to break some of these systems.
- The SpoC Case: Two different AI models independently found a way to break a lock called "SpoC" that no one knew was broken. They realized that if you sent a specific type of empty message, the lock forgot to do its safety check. By sending two clever messages, the AI could steal the secret key. This was a genuine "Eureka!" moment that happened without any human help.
- The KINDI Case: Another model found a mistake in the official "safety proof" of a system called KINDI. The designers had written a rule saying, "This is safe because only one key fits this lock." The AI proved them wrong, showing that you could actually trick the lock into accepting many different keys. The AI then used this trick to steal the secret key. However, the researchers noted that this wasn't an accidental oversight by the designers; it was actually a deliberate design choice to make the system more efficient, even though it introduced a vulnerability that the AI successfully exploited.
Where the AI Struggles
The AI isn't a magic wand yet. When the researchers gave the models the "hard" locks—the ones that are currently used to protect real-world data and haven't been broken by humans—the success rate dropped significantly. The models could often spot the idea of an attack but failed to write the final code to make it work. It's like the AI knew the door was unlocked but couldn't quite figure out how to push it open before the time ran out.
However, when the researchers gave the AI more time (increasing the limit from 2 hours to 16 hours), the models got much better. They managed to break even more of the difficult locks, including some that required very complex, heavy-duty math. This suggests that the AI's main limitation right now isn't a lack of intelligence, but a lack of time to finish the job.
The Bottom Line
The paper concludes that AI is already a serious player in the world of cryptography. It can find flaws in designs that have been scrutinized by human experts for years. However, the researchers also found that a significant number of the "breaks" the AI found were actually bugs in the reference code (the sample implementation provided by the designers) rather than fundamental flaws in the mathematical design itself. While the AI is finding cracks in the code, it is also starting to find cracks in the design that even the masters missed.
While it hasn't completely mastered the hardest, real-world locks yet, it is moving fast. The researchers released their benchmark as a tool to keep watching this race. They want to track exactly when AI might become strong enough to break the locks protecting our digital lives, so we can fix them before the AI does.
In short: The AI apprentices are no longer just watching the masters; they are starting to pick the locks themselves, and they are finding cracks that even the masters missed.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.