The Hardware Trojan (HT) problem can be thought of as a continuous game between attackers and defenders, each striving to outsmart the other by leveraging any available means for an advantage. Machine Learning (ML) has recently been key in advancing HT research. Various novel techniques, such as Reinforcement Learning (RL) and Graph Neural Networks (GNNs), have shown HT insertion and detection capabilities. HT insertion with ML techniques, specifically, has seen a spike in research activity due to the shortcomings of conventional HT benchmarks and the inherent human design bias that occurs when we create them. This work continues this innovation by presenting a tool called "TrojanForge", capable of generating HT adversarial examples that defeat HT detectors; demonstrating the capabilities of GAN-like adversarial tools for automatic HT insertion. We introduce an RL environment where the RL insertion agent interacts with HT detectors in an insertion-detection loop where the agent collects rewards based on its success in bypassing HT detectors. Our results show that this process leads to inserted HTs that evade various HT detectors, achieving high attack success percentages. This tool provides insight into why HT insertion fails in some instances and how we can leverage this knowledge in defense.
翻译:硬件木马(HT)问题可视为攻击者与防御者之间持续博弈的过程,双方均试图利用一切可用手段智胜对方。机器学习(ML)近期已成为推动HT研究发展的关键力量。强化学习(RL)和图神经网络(GNN)等多种新兴技术已展现出HT植入与检测的能力。特别值得注意的是,由于传统HT基准测试的缺陷以及人工设计时固有的认知偏差,采用ML技术进行HT植入的研究活动呈现爆发式增长。本研究延续这一创新方向,提出名为“TrojanForge”的工具,该工具能够生成可规避HT检测器的对抗性HT样本,从而展示了类GAN对抗工具在自动HT植入方面的潜力。我们构建了一个RL环境,其中RL植入智能体在“植入-检测”循环中与HT检测器交互,智能体根据其成功绕过HT检测器的程度获得奖励。实验结果表明,该流程生成的植入HT能够逃逸多种HT检测器,实现较高的攻击成功率。该工具有助于深入理解HT植入在某些场景中失效的原因,并为防御策略的构建提供知识支撑。