跪拜 Guibai
← Back to the summary

AI Generated 2 Million Lines of Rust to Clone a Closed-Source Binary Analyzer, and the Clone Runs Inside the Original Host

💡 Hello everyone, I'm Kefu Xiaozhi, an independent developer and content creator focusing on AI programming, automation, and self-media.

On November 28, MiniMax released an evaluation report on the reverse engineering capabilities of its internal frontier model. In an isolated environment, they let the model autonomously orchestrate multiple agents to conduct an end-to-end functional replication experiment against a well-known closed-source binary analysis software. During the entire process, the model dispatched 2,000 sub-agent sessions, generating approximately 2 million lines of Rust experimental code and accumulating 10,000 automated test cases.

What caught the attention of the security community and developers more was the third validation. The model compiled the reconstructed Rust core modules into shared libraries, directly replaced them into the original closed-source software's runtime directory, while preserving the original frontend interface. The host program still started normally, loaded binary files, and successfully completed the decompilation pipeline.

This means AI has moved beyond the stage of just helping you interpret a few lines of assembly code. When a model can chain static analysis, dynamic debugging, code rewriting, and differential testing into an automated pipeline, many security assumptions that the software industry has taken for granted need to be re-evaluated.

image.png

How 2,000 Agents Disassembled and Rewrote a Closed-Source Software

Anyone who has done reverse engineering knows that once source code is compiled into binary machine code, function names, variable names, data structures, and comments are all stripped away, leaving only memory addresses and register operations. In the past, manually reading through assembly and piecing together business logic would take security researchers weeks or even months for a large commercial software.

Precisely because manual reverse engineering is extremely costly, many software vendors have always regarded "engineering scale" as a natural defense. The larger the codebase and the deeper the module coupling, the higher the cost for others to crack and replicate it. Previous-generation large models couldn't handle such tasks either; long contexts led to severe hallucinations, making end-to-end reconstruction impossible.

In this internal evaluation, MiniMax took a different approach. Instead of having a single model hard-parse the entire binary, they only provided a basic toolchain in the isolated sandbox, including Ghidra, the GDB debugger, test validation frameworks, C/C++ and Rust compilers, and a multi-agent orchestration scaffolding.

The model first called analysis interfaces to understand the internal structure of the target closed-source software's core binary, then split the massive reconstruction task into smaller pieces, dispatched them to 2,000 sub-agent sessions, and implemented each functional module in Rust. After each module was written, the pipeline fed the same test samples to both the original program and the reconstructed module, compared output differences, and iterated until inconsistencies were resolved.

According to MiniMax's official self-reported validation results, this pipeline covered the entire underlying chain: disassembly, intermediate code generation, data flow analysis, control flow structuring, compiler optimization, and pseudocode generation. The independently compiled Rust core library could be called via command line and API, and analysis speed was slightly faster than the original baseline. They also built a lightweight frontend interface to verify the complete loop from the underlying engine to interactive display.

image.png

Restoring 90% Even Against VMProtect and Themida

Code volume alone isn't enough; many commercial software and game clients add a second lock: code obfuscation and virtualization protection. Tools like VMProtect and Themida translate original machine instructions into private bytecode, execute it within a custom virtual machine, and add control flow flattening and complex arithmetic transformations. A few dozen lines of logic balloon into tens of thousands of lines of instruction streams that lack semantic clarity, specifically to exhaust an analyst's patience.

To test the internal model's performance against this defense, MiniMax built an internal test set of 100 high-difficulty virtualization and obfuscation samples. Without any targeted human prompts, the model independently discovered a two-phase workflow similar to that of a senior security researcher.

The first phase is static location and dynamic tracing. The model doesn't blindly read thousands of obfuscated instructions. Instead, it uses static tools to identify the virtual machine's entry point, then writes its own GDB debugging scripts to run the test samples, tracking memory reads/writes and register state changes to isolate the loops that handle core computation from the redundant instruction soup.

The second phase is iterative simplification and equivalence convergence. The model combines dynamically captured execution traces with symbolic reasoning, gradually simplifying the inflated instruction stream into readable C/C++ source code, then compares input/output with test samples, repeatedly patching logic deviations until it fully passes the validator.

According to official self-reported data, across these 100 high-difficulty samples, the model's single-pass autonomous restoration success rate reached 70.00%. When allowed to combine validator feedback over 8 rounds of multi-turn exploration, the combined restoration rate reached 94.00%. For the sample subset protected with VMProtect 3.x and Themida, the combined logic restoration rate exceeded 90.00% even without specific human prompts. Obfuscated samples that used to require security experts days to crack can now be processed by the automated pipeline in tens of minutes.

Don't Overhype: These Boundaries Haven't Been Crossed

Seeing 2 million lines of code and a 94% restoration rate easily creates the illusion that "closed-source software is now walking naked." But breaking down the limitations explicitly stated in MiniMax's original report shows a much calmer reality.

First, all the impressive numbers come from official internal test sets with self-reported figures; there is no independent third-party replication report yet. MiniMax also explicitly stated that this test used an unreleased internal version, aimed at probing technical limits and establishing safety guardrails, not indicating that publicly deployed models possess equivalent capability.

Second, model performance still degrades significantly against more extreme adversarial environments. When test samples use multi-layer nested virtualization or deeply integrate strong anti-debugging mechanisms, the first-pass success rate in fully autonomous mode drops sharply. If dynamically captured trace data becomes too voluminous, it easily overflows the model's context window, causing it to fall into an ineffective script-debugging loop.

Third, the experimental code is still a long way from being a commercial-grade product. Although the shared library can be placed into the original host and run, a mature industrial-grade software includes a large peripheral ecosystem, cross-platform UI details, and long-term stability polish. The model generates only experimental validation code for core modules, far from independently replacing a complete commercial product.

Fourth, the capability to decompose million-line codebases heavily depends on customized engineering scaffolding. Without preset divide-and-conquer strategies and differential-testing track constraints, a single prompt in a bare model run can never stabilize such a large-scale engineering reconstruction.

At the end of the report, MiniMax also issued a compliance statement, saying that all reconstructed code, shared libraries, intermediate scripts, and logs generated during the evaluation were physically destroyed from storage media after recording the metrics, and will not be retained or distributed. In future public releases, they plan to consider restricting or removing the end-to-end software cloning capability.

A Practical Reminder for Developers

For ordinary developers and software teams, the most direct signal from this report is the tilt in defense costs. The practice of protecting offline licenses, private protocols, or local core algorithms by compiling logic into binaries and adding a commercial packer is seeing its safety margin thin rapidly.

If your product contains core algorithms or authentication logic that must not leak, relying solely on client-side hardening is increasingly hard to trust. Moving high-value logic to the server side, or combining hardware-level trusted execution environments to protect key computations, is shifting from an option to a must.

In your day-to-day development, how do you protect the core logic on the client? Do you still dare to rely only on code obfuscation and packing?


If you're also tinkering with AI programming and automation, I've accumulated over 200 hands-on tutorials and real cases from the past three years in my AI Programming and Automation bootcamp, updated weekly.

Doing one thing for ten years starts today. Welcome aboard; I look forward to a ten-year AI journey with you.

📎 Reply with JJAI privately to receive the "AI Programming Practical Resource Pack-2026"