LOCA:用LLM智能体从门级网表恢复RTL代码
Verified Netlist-to-RTL Recovery with LLM Agents
LOCA是一种基于LLM的攻击方法,将匿名门级网表切分为逻辑锥,由并行智能体分别改写后组装成紧凑RTL,仅保留经证明与网表等价的代码。在21组模型-设计组合中,LOCA成功恢复17组,而整网表提示仅恢复6组,单次运行恢复率从5%升至74%,中位成本低于1美元。测试中保持功能的混淆无法阻止LOCA,但未知密钥或隐藏单元功能会使其无法证明恢复出原始设计。
arXiv:2611.25324v1 Announce Type: cross Abstract: Gate-level netlists circulate among IP integrators and foundries and can be extracted from chips. Reverse engineering them into readable register-transfer-level (RTL) code would help an adversary understand and modify a design, but remains difficult because word-level operations are scattered across many gates. Large language models (LLMs) can write and optimize RTL, but often fail to recover it from a whole netlist. We propose LOCA (LOgic Cone Attack), an LLM-based attack that divides an anonymized netlist into logic cones, has parallel agents rewrite them, and assembles compact RTL. Each cone contains the complete next-state logic of a group of related registers, giving an agent a small, meaningful task. Of five partitioning methods tested, only grouped cones lead to recovery. LOCA keeps only RTL proven equivalent to the netlist and measures its quality by compression. Function-preserving obfuscation does not stop LOCA on the tested designs, whereas unknown keys or hidden cell functions prevent it from proving recovery of the original design. Across 21 model-design pairs, LOCA recovers 17, versus 6 with whole-netlist prompting. Per-run recovery across models rises from 5% to 74%, at a median cost below one dollar with a low-cost model.
来源:arXiv (Robotics + Hardware + Signal) · arxiv.org