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

TrojanGYM:一种检测器在环的大语言模型用于自适应RTL硬件木马插入

TrojanGYM: A Detector-in-the-Loop LLM for Adaptive RTL Hardware Trojan Insertion

NYU Tandon School of Engineering(纽约大学Tandon工程学院);NYU Abu Dhabi(纽约大学阿布扎克分校)

Saideep Sreekumar, Zeng Wang, Akashdeep Saha, Weihua Xiao, Minghao Shao, Muhammad Shafique, Ozgur Sinanoglu, Ramesh Karri, Johann Knechtel

AI总结:

提出TrojanGYM框架,利用大语言模型智能体自动生成多样化的硬件木马,暴露基于GNN的检测器盲点,并设计鲁棒检测器Robust-GNN4TJ,在生成的基准上将检测率从0%提升至60%。

摘要:

硬件木马(HT)仍然是一个关键威胁,因为基于学习的检测器常常过度拟合于狭窄的触发/负载模式和小的、风格化的基准。我们引入了TrojanGYM,一个基于智能体的、由大语言模型驱动的框架,它自动策划HT插入以暴露检测器的盲点,同时保持设计正确性。给定高级HT规范,一组协作的LLM智能体(使用GPT-4、LLaMA-3.3-70B和Gemini-2.5Pro实例化)提出并优化RTL修改,实现多样化的触发器和负载而不影响正常功能。TrojanGYM实现了一个与HT检测器共同设计的反馈驱动的基准生成循环,其中约束感知的语法检查和基于GNN的HT检测器提供反馈,迭代优化HT规范和插入策略,以更好地暴露检测器盲点。我们进一步提出了Robust-GNN4TJ,这是GNN4TJ的一个新实现,具有改进的图提取、训练鲁棒性和预测可靠性,特别是在LLM生成的HT设计上。在最具挑战性的TrojanGYM生成的基准上,Robust-GNN4TJ将HT检测率从0%提高到60%,相对于先前的基于GNN的检测器。我们在RTL级别上对SRAM、AES-128和UART设计实例化TrojanGYM,并表明它系统地产生了多样化的、功能正确的HT,对现代基于GNN的检测器达到了高达83.33%的逃避率,揭示了这些检测器仅在现有TrustHub风格基准上评估时并不明显的鲁棒性差距。同行评审后,我们将发布所有代码和工件。

英文摘要:

Hardware Trojans (HTs) remain a critical threat because learning-based detectors often overfit to narrow trigger/payload patterns and small, stylized benchmarks. We introduce TrojanGYM, an agentic, LLM-driven framework that automatically curates HT insertions to expose detector blind spots. Given high-level HT specifications, a suite of cooperating LLM agents (instantiated with GPT-4, LLaMA-3.3-70B, Gemini-2.5Pro, and Claude Opus 4.5) proposes and refines RTL modifications that realize diverse triggers and payloads without impacting functionality of both the HT and the design under attack. TrojanGYM implements an agentic loop co-designed with HT detectors, in which constraint-aware syntactic checking, testbench-based functional verification, and GNN-based HT detectors provide feedback that iteratively refines HT specifications and insertion strategies to better surface detector blind spots. We further propose Robust-GNN4TJ, a new implementation of GNN4TJ with improved graph extraction, training robustness, and prediction reliability, especially on LLM-generated HT designs. On the most challenging TrojanGYM-generated benchmarks, Robust-GNN4TJ raises HT detection rates from 0% to 60% relative to prior art. We instantiate TrojanGYM on SRAM, AES-128, UART, and RISC-V designs at RTL, and show that it systematically produces diverse, functionally correct HTs that reach up to 68.75% evasion rates against modern GNN-based detectors, revealing robustness gaps that are not apparent when these detectors are evaluated on existing TrustHub-style benchmarks. We release all codes and artifacts at https://github.com/DfX-NYUAD/TrojanGYM.

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

↑