Author丨Gao Yunyi

Editor丨Cen Feng

On November 20, AI for Science ushered in a day that will go down in history: Anthropic mathematicians and Claude achieved a key breakthrough in the Riemann Hypothesis. On the same day, the field of cryptography, known for its complex mathematical calculations, was also shaken by AI.

According to MiniMax’s official display, its latest internal model, MIM, has successively broken multiple NIST cryptographic candidate schemes and the latest cutting-edge results published by the top conference. 94 private keys were directly recovered from TII McEliece, 55 of which were captured for the first time in the world. In the most concerned area of ​​deciphering efficiency, the speed is directly increased by 43,400 times.

MiniMax's cryptanalysis results not only attracted forwarding and attention from Anthropic team members, but were also cited as a cutting-edge case by Henry Yuen, a tenured professor at Columbia University and the world's top quantum cryptography expert, and written into the latest academic speech.

Note: Columbia University professor Henry Yuen’s latest academic speech cited MiniMax’s AI cryptographic analysis results as a cutting-edge case. Direct video: https://www.youtube.com/watch?v=tpTp2WVhgJU&t=558s

Cryptoanalysis is regarded by the industry as a “touchstone” to test whether AI can do real scientific research. Because design flaws need to be found from public mathematical rules, the model is required to have zero-error-tolerant long-range reasoning capabilities, and a complete closed loop from mathematical derivation, coding to experimental verification is required.

In the past six months, we have seen leading overseas players such as OpenAI and Anthropic continue to produce "big results" in the fields of mathematics, physics, biology and other fields. This time, the domestic model represented by MiniMax has also entered the deep water of scientific research.

01

What exactly is cryptanalysis trying to break?

Modern cryptography can be simply divided into cipher design and cryptanalysis, which are like a spear and a shield. Cryptography is responsible for "building locks" to protect information security, while cryptanalysis is responsible for "opening locks" to find loopholes. MiniMax is focusing on cryptanalysis this time, allowing AI to play the role of a top "locksmith".

Many people confuse cryptanalysis with "stealing accounts" and "cracking passwords", but in fact they are not the same thing at all.

What we call "cracking passwords" every day refers to the login password of a specific account. Hackers obtain passwords by guessing, trying with leaked passwords, or phishing scams. They rely on the "confidentiality" of the password itself. But cryptanalysis is different. It studies the entire set of mathematical rules behind data encryption.

The principles of modern encryption algorithms are often made public, just like having a design drawing of an anti-theft lock placed directly in front of you. What cryptanalysis needs to do is to rely on a superb "mathematical mind" to find innate design flaws directly from the drawings, use mathematical ideas to bypass massive calculations, derive the key at low cost, or lower its security rating.

It is precisely this characteristic that makes cryptanalysis an excellent testing ground for testing the long-range reasoning capabilities of large models, because its requirements are very demanding.

First of all, it is difficult to have "zero fault tolerance". In cryptography, the derivation process often takes hundreds of steps. As long as there is a wrong sign in the formula, or a bit is missing in the code, the final output will be gibberish. More importantly, this derivation cannot just be done on paper. Code must be written, experiments must be run through, and a true closed loop must be completed.

Leifeng.com (public account: Leifeng.com) discussed with a cryptography expert who has participated in the network security of the Beijing Olympics. He pointed out that a qualified cryptanalysis result must undergo five strict tests:

First of all, the "rules" must be written clearly. How much data the attacker can see, the upper limit of the number of queries, and how many historical comparisons are known must be clear. On this basis, these conjectures must be turned into mathematical derivation and executable algorithms. At the same time, the reasoning must be verifiable, and the key can be recovered, effective forgery can be constructed or collisions can be found, and effective results can be obtained.

Not only that, the computational cost of deciphering must also be written down. How much time, memory, data size, and computing power this attack consumed must be known. And it must be reproducible stably in a regular environment; even if the result is finally out, interfering factors must be eliminated and it must withstand third-party review.

Therefore, cryptanalysis is different from ordinary long-distance tasks. It is not like "all roads lead to Rome". It is more like solving a rigorous mathematical problem. Every step of reasoning must be strictly connected. There are also objective and clear verification standards for whether the final decryption can be successful.

02

Half-Year Rush: Breaking from Anthropic,

Sweep to MiniMax

A year ago, if you asked a cryptography expert "Can AI decipher codes by itself?", you would most likely get a negative answer.

Cryptoanalysis at that time was stuck in such a situation. Traditional mathematical solvers, such as Z3, only knew mechanical calculations and could not deal with complex cryptographic structures. Although AI understands some logic, it has poor mathematical foundation, and its derivation is prone to "illusions", and it cannot touch the underlying mathematical structure of the algorithm. The industry is tacitly aware of this. If you want to dig out original loopholes, you have to rely on human experts, and AI can only provide assistance.

Until July of this year, Anthropic changed the situation.

They equipped the internal cutting-edge model Claude Mythos Preview with a full set of tools for code writing, symbolic operations, and automatic verification, allowing it to conduct "red team testing" of cryptographic algorithms. As a result, it only took Claude 60 hours to dig out the underlying mathematical loopholes in the NIST post-quantum signature scheme HAWK.

HAWK was originally an alternative to the next generation encryption standard. Prior to this, the world's top cryptographers had conducted two rounds of rigorous reviews for more than two years, and no faults had been found. After the vulnerability was exposed, the R&D team directly withdrew from the standard selection the next day.

At the same time, Claude also used his own algebraic techniques to increase the decryption speed of the simplified test version of AES, the world's mainstream encryption standard, by 200 to 800 times.

This is the first time that AI has independently dug out loopholes in the underlying mathematical design of the algorithm without human guidance. Moreover, AI produces such complex attack plans so quickly that human experts have no time to review them. In this regard, Johns Hopkins University cryptography professor Matthew Green commented, "The most powerful thing about AI is that it can combine and combine existing mathematical tools over and over again, and check more thoroughly than humans."

But its limitations were equally clear. At that time, Claude was more like a "semi-autonomous cutting-edge scientific research assistant", and the research direction still needed to be determined by humans. The cost of computing power is also very high, with a single result costing approximately US$100,000.

In order to find out the decryption capabilities of AI, ETH Zurich, Anthropic and other institutions jointly built a password test question bank CryptanalysisBench, with a total of 191 questions, all taken from previous cryptography competition tasks.

Among them, Tier1 has 49 questions, which are all basic questions that humans have long found solutions to. They are used to test whether AI can reproduce existing attacks; Tier2 has 142 questions, which are high-level problems for which no feasible attack plan has been publicly disclosed before. They are designed to test whether AI can dig out new vulnerabilities on its own.

The results of the first round of basic testing came out. The strongest model at the time could only win 6 to 12 Tier 2 questions. The industry generally feels that there is still a long way to go before AI can independently perform original cryptanalysis.

Unexpectedly, just five months later, the Chinese team broke through this upper limit.

If Anthropic has completed a 0 to 1 breakthrough, then MiniMax has a wider coverage this time and tested various types of encryption technologies. From candidate solutions that have participated in the NIST international standard selection, to various cutting-edge algorithms for encrypting files and verifying data authenticity, to classic mathematical problems such as McEliece that are specifically designed to prevent quantum computers from being cracked.

MIM not only found the design flaws of the algorithm itself, but also uncovered more than a dozen loopholes in the official reference code. On problems such as TII McEliece and HAWK that humans have already found solutions to, it directly optimized and speeded up the old methods by a large margin, truly verifying whether the model can draw inferences from one example to other cases.

03

MiniMax’s third-level breakthrough,

Redefining AI cryptanalysis capabilities

MiniMax directly chose the more difficult Tier 2 candidate. They are all candidates that have participated in the NIST international standard selection and have undergone years of public scrutiny by the world's top cryptography researchers. No one has yet found a practical cracking method. Moreover, there are no prompts during the entire test, only public papers and reference codes are given, and the model relies entirely on itself to find loopholes.

▎Level 1: Win the NIST “No One Cracked” question bank and bring theoretical attacks into reality

Let’s start with the encryption algorithm Waterfall-256, which has been pending for 18 years.

It belongs to the hash function. The hash function generates a fixed-length string of characters no matter what is input, which is unique like a human fingerprint. Normally, hash functions with different contents cannot be repeated, otherwise it is called a "collision", which means that the anti-counterfeiting mechanism fails.

Waterfall-256 was a candidate for the 2008 US NIST International Cryptographic Standards Competition. Its design logic is particularly complex. After the data is entered, it must be repeatedly interleaved and scrambled through three sets of internal sequences of different lengths, and finally summarized and output. At that time, its designers believed that the design was confusing enough and the defense line was high enough.

It was certainly not breached for the next 18 years. The academic community has proposed theoretical cracking ideas, but the amount of calculations required is an astronomical number, even with a supercomputer.

However, MIM still uncovered a hidden pattern. It found that as long as the changes in the input data conform to a certain pattern, after layers of disruption, the differences will not spread, and complex operations that were originally unsolvable become traceable. At the same time, the model also optimizes the offset logic in the aggregation process. Instead of running the process twice to eliminate traces like the traditional method, it can be completed in a single pass. Coupled with the technique of narrowing the scope of investigation, the search volume of each step is reduced by 256 times.

As a result, a theoretical attack that originally required supercomputers to run for tens of thousands of years can now generate a pair of collisions in as little as 3.5 milliseconds on an ordinary computer's CPU, and the stable version takes less than 0.05 seconds. A paper conjecture that had been suspended for 18 years has become a real-life attack that can be reproduced by ordinary computers for the first time.

If Waterfall-256 tests the agility of the model in finding mathematical loopholes, then the NIST post-quantum cryptography candidate solutions LOCKER and ROLLO-I test how to significantly reduce the amount of astronomical calculations.

As a new generation of encryption algorithms designed to combat future quantum computers, the defenses of LOCKER and ROLLO-I are based on a set of ultra-large-scale complex equations. If dismantled and solved according to conventional methods, the solution matrix alone would be as high as 572 million columns, and it would require 42PB of memory to save, which is equivalent to the total capacity of tens of thousands of home hard drives. It is impossible to run in reality.

MIM uses a more labor-saving angle to disassemble the system of equations. With the help of the symmetry properties of the structure, one set of solutions can be calculated to deduce the remaining sets of solutions, eliminating a lot of repeated operations. At the same time, before solving, mathematical methods are used to eliminate variables that do not need to participate in the calculation to reduce memory usage.

After optimization, the 572 million column solution matrix was reduced to 2240 columns, and the memory was reduced from 42PB to 58MB, so that an ordinary computer can run it. Finally, under 12 threads, it only took 1.15 seconds to crack LOCKER-I. For the 2019 version of ROLLO-I-128, MIM requires less than 2 MB of memory, and a single core takes only 5.97 seconds.

It also explored a set of universal cracking methods and continuously tested 27 different configurations, 14 of which directly broke academic records.

In addition to digging out flaws in mathematical principles, MIM also uncovered more than a dozen fatal bugs in the official source codes of these algorithms that human experts had missed. Sometimes, cracking encryption does not necessarily rely on exhaustive calculations. Programmers write wrong code or have loopholes in random number generation, which can directly invalidate the entire encryption.

For example, it caught a symbol typo in the DRS signature scheme code, which directly bypassed the verification of the forged signature; it discovered that the RQC-128 random number was leaked, and the original encryption content was quickly restored; it also found various vulnerabilities in memory, parameter configuration, and sampling logic in multiple candidate schemes such as LAC-128, KCL, LEDAkem, and ISAP.

These codes have also been publicly inspected by the global cryptography community for more than ten years, and no one has found any problems. MIM picked them all out when studying the principles of the algorithm.

▎Level 2: Find out the mathematical loopholes in the top conference’s cutting-edge solution

If the previous NIST candidate solutions are old test questions from the past few years, then the winning solutions in cryptography summits and international competitions in recent years are the most cutting-edge encryption designs at the moment. These new schemes have undergone rigorous mathematical derivation before being released. In the cryptography community, they represent the highest level of current cryptography design. And MIM still dug out design loopholes that human experts ignored.

A typical case comes from the low-latency algorithm ARADI released by the US National Security Agency in 2024.

This is a block cipher. Its principle is to cut the data into a fixed size and repeatedly scramble it for several rounds to turn it into ciphertext. Its security depends largely on the "number of rounds". Generally speaking, the more rounds, the harder it is to crack. Therefore, the job of the cryptanalyst is to get through as many rounds as possible. The closer the number of rounds that can be broken is to the total number of rounds, the easier it is to break the algorithm.

Prior to this, researchers around the world had tried their best and could only crack the first five rounds of ARADI at most. However, MIM found a set of mathematical rules from the public algorithm parameters that no one had noticed before, and pushed it directly to the 8th round. A single core can restore the complete master key in as fast as 2.4 seconds. At the same time, it set a new theoretical attack boundary record on rounds 9 to 12.

In this regard, senior cryptography experts pointed out the key to us. ARADI has not yet published parameter design guidelines, and it is not yet possible to determine whether it has been completely broken. However, the significance of this test directly exposed its underlying mathematical flaws, forcing designers to create safer solutions.

▎Level 3: 43,400 times faster, AI deciphers classic mathematical problems

The essence of the first two levels of breakthroughs is to allow AI to find loopholes in algorithm design. However, there are still a number of classic mathematical problems in cryptography that have been tested for decades and have no obvious design flaws. MiniMax directly shortens the deciphering time.

Take the internationally recognized TII McEliece Key Recovery Challenge, for example. The mathematical puzzle behind it has existed for nearly half a century and is the core basis of NIST's candidate post-quantum cryptography standard. It challenges a large number of high-level problems in the library that no one has been able to solve before. MiniMax directly recovered the private keys of 94 cases this time, 55 of which were conquered for the first time in the world.

What deserves more attention is the deciphering speed displayed by MinMax. Previously, the best record published by the International Cryptozoology Summit was that it took 9.2 hours to solve a problem; while the MiniMax model could be solved in as fast as 1.8 seconds on an ordinary 64-core server, a speed increase of 43,400 times.

How is it done? MIM first digs out the hidden mathematical properties from the structure and compresses the scale of the system of equations to be solved by up to 6.59 times; then it performs in-depth code optimization for the underlying architecture of modern CPUs to fully release computing power.

This requires the model to be able to think like a mathematician and act like an engineer. This comprehensive ability is more intuitive when compared horizontally with Anthropic.

Five months ago, Anthropic broke the post-quantum signature scheme HAWK using a 96-core server. This time, MiniMax performs full-link optimization for the same target, further reducing the difficulty of cracking.

In the past, it often took months or even years for a set of complex attacks to go from theoretical conception to actual implementation, and many more attacks remained in theoretical research forever. Now, AI has compressed the most labor-intensive trial and error process in research, and the entire process can be run through in a few seconds. At the same time, researchers can explore more unsolved problems, and the rhythm of cryptography research is changing.

04

The era of “manual workshops” in cryptography research,

may come to an end

For a long time, the study of cryptography and even basic science has been like a "craft" that requires great patience.

Reading papers, dismantling formulas, building models, writing codes... From birth to successful completion of a complex hypothesis, researchers need to keep their eyes peeled and keep trying and making mistakes. Which way of thinking is correct? When can it be run through? They are all unknowns.

Now, this "manual workshop" style of scientific research rhythm is being rewritten by AI. It can be deeply involved in these execution links, not only saving humans time on dirty work, but also proposing new ideas and discovering design blind spots. The role of AI has evolved from “an auxiliary tool for scientific research” to “a co-discoverer of new knowledge.”

What has changed subsequently is the re-division of labor in the field of cryptography. Researchers can focus more on research directions, theoretical audits, and verification of final results, and can cover a wider range of scientific research.

AI4S’s competitive players are also changing. In the past few years, whether it was DeepMind's prediction of protein structure, OpenAI's formal mathematical proof, or Anthropic's breakthrough in cryptanalysis, there were few Chinese players among these charging into the scientific research highlands. The results of MiniMax this time mean that domestic large models are paying attention to and stepping into the deep water area of ​​AI4S, and also verify the long-range reasoning and engineering implementation capabilities of domestic models.

When the threshold for scientific research is significantly lowered, more and more "one-person scientific research teams" may emerge in the future, and Chinese scientists will also unleash amazing innovation efficiency and make more substantial contributions to overcoming the world's scientific problems.

Reference link: https://MiniMax.cn/blog/practical-cryptanalysis-with-MiniMaxs-latest-internal-model

Original articles from Leifeng.com, unauthorized reproduction is prohibited. See the reprint instructions for details.

edit

Resend Email Modify Email