Imagine you’re a digital archaeologist. You’ve just unearthed a complex, microscopic city—a silicon chip. You have no blueprints, no street signs, and all the inhabitants (the signals) speak in a cryptic language of ones and zeros. Your job is to figure out not just how this city is built, but what it actually does.
This is the world of Hardware Reverse Engineering (HWRE), and until now, it was a feat reserved for the most patient human experts. A new paper from researchers at the Chinese Academy of Sciences asks a provocative question: Can our new AI agents do this job for us?
TL;DR
While we’ve spent the last year teaching LLMs how to write hardware code, this paper introduces HWRE-Bench to see if they can read it. The researchers found that AI agents are surprisingly adept at the "mechanical" parts of digital archaeology—like turning a physical layout back into a circuit diagram—but "understanding" the high-level logic remains a subtle, moving target.
What Problem Does This Paper Address?
In the world of hardware design, information only flows one way: downhill. You start with a high-level specification (the "intent"), turn it into Register Transfer Level (RTL) code, then a gate-level netlist (a map of logic gates), and finally a physical layout (the GDSII file).
At every step, you lose information. Names of signals vanish; hierarchical structures are flattened; the "why" is stripped away until you’re left with nothing but a sea of geometric shapes.
Existing AI benchmarks focus on the "forward" flow—asking AI to design something new. But real-world engineering often requires the "reverse" flow: auditing a chip for security backdoors, writing drivers for undocumented parts, or fixing bugs in legacy hardware. This paper fills that gap by creating a playground for agents to prove they can reconstruct the "intent" from the "artifact."
Methods
The researchers built HWRE-Bench, which challenges agents across five tracks:
- Extract: Turn a layout back into a netlist.
- Abstract: Recover the high-level parameters (e.g., "Is this a 16-bit or 32-bit adder?").
- Audit: Find hidden defects or "bugs" planted in the hardware.
- Interoperate: Write a software driver for a piece of hardware the agent has never seen.
- Modify: Perform a "surgical" repair on a broken netlist.
To keep the agents honest, they introduced a "mandatory negative control." If an agent simply copies the netlist it was given without adding new understanding, it gets a score of zero. They also used "stage annotation," tracking whether the agent was spending its time reading files, simulating the circuit, or actually writing code.
Datasets
The benchmark uses original, parameterized designs rather than common open-source ones (to prevent the LLM from simply "remembering" the answer from its training data). The "seed" tasks include:
- xbar: A complex communication hub (crossbar) for chips.
- pmover: A DMA peripheral used for moving data.
- pkr: A packet rewriter.
These designs are "sanitized" to different levels of difficulty, ranging from L0 (some names preserved) to L3 (completely anonymous cells where even the function of a gate must be guessed from its transistor geometry).
Key Insights and Ideas
- Layout is not the bottleneck: This was the biggest surprise. You might think looking at a mess of wires is the hard part, but agents were actually quite good at writing their own scripts to "extract" the logic from the layout. In one case study, an agent recovered a cycle-exact model of an accelerator from a 7nm layout in under ten minutes.
- Pass rates can be "fake": The researchers found that if the task description (the "spec") is too detailed, the agent will just build a model based on the text and ignore the hardware entirely. They call this "solving without understanding."
- Obfuscation is currently toothless: They tried "scrambling" the circuits (keyless obfuscation) to see if it would trip up the AI. It didn't. The agents were able to map the scrambled internal states back to the functional specification regardless of how messy the "wiring" looked.
- The "Safety Filter" Tax: Interestingly, 16% of one agent's runs were killed not by technical failure, but by the AI provider's safety filters, which flagged "reverse engineering" as potentially malicious activity.
Key Results
- Reliability: Agents audited sanitized layouts almost as reliably as they did clean netlists, though it took about 27% more "turns" (steps in the conversation) to get there.
- Strategy Matters: As shown in the "barcode" trajectories, different agents have different "personalities." Some spend a lot of time on structural analysis (reading the map), while others prefer "behavioral probing" (poking the circuit with inputs to see what happens).
Limitations and Future Work
The authors are the first to admit this is a pilot. The study only looked at three designs and two major agents (GPT-6.1-sol and DeepSeek-flash).
Future work needs to tackle analog layouts—which are much messier than the "digital" ones used here—and more complex "logic locking" (where the chip is literally locked with a secret key). There's also the "dual-use" elephant in the room: the same tools that help an engineer audit a chip for safety could, in theory, help a bad actor find a vulnerability. The authors argue that by measuring how "cheap" reverse engineering has become, they are helping defenders understand which protections actually still matter.
Summary updated