arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.25324cs.CRcs.AR
收藏

基于大语言模型智能体的经验证网表到RTL代码恢复

Verified Netlist-to-RTL Recovery with LLM Agents

Ahmet Efe, Recep Bugra Uludag, Ulya R. Karpuzcu

AI总结:

该研究提出基于LLM智能体的LOCA攻击方法,通过将网表划分为逻辑锥并行处理,可高效验证性恢复RTL代码,在21组模型-设计对中恢复率达81%,成本低且效果显著。

摘要:

门级网表在IP集成商和代工厂之间流转,且可从芯片中提取,将其逆向工程为可读的寄存器传输级(RTL)代码有助于攻击者理解和修改设计,但由于字级操作分散在大量门电路中,该任务仍具难度。大语言模型(LLM)可编写和优化RTL代码,但通常无法从完整网表中恢复RTL。我们提出LOCA(Logic Cone Attack,逻辑锥攻击),一种基于LLM的攻击方法,该方法将匿名化网表划分为逻辑锥,由并行智能体重写这些逻辑锥,再组装成紧凑的RTL代码。每个逻辑锥包含一组相关寄存器的完整次态逻辑,为智能体提供小型且有意义的任务。在测试的五种划分方法中,仅分组逻辑锥可实现恢复。LOCA仅保留与网表等价的RTL代码,并通过压缩率衡量其质量。在测试的设计上,功能保持型混淆无法阻止LOCA,而未知密钥或隐藏单元功能会阻碍其证明原始设计的恢复。在21个模型-设计对中,LOCA恢复了17个,而完整网表提示仅恢复6个;模型间的单次运行恢复率从5%提升至74%,使用低成本模型时,中位成本低于1美元。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑