Abstract
Graph Neural Networks (GNNs) have emerged as a powerful tool for hardware security, particularly in detecting Intellectual Property (IP) piracy and Hardware Trojans. However, their adversarial robustness remains largely untested. This paper introduces AttackGNN, the first red-teaming framework that utilizes reinforcement learning (RL) to systematically expose vulnerabilities in hardware GNNs. By leveraging functionality-preserving logic transformations, AttackGNN generates adversarial circuits that maintain identical Boolean logic while completely fooling GNN-based defenses. Our evaluation demonstrates a 100% success rate across multiple state-of-the-art GNN frameworks.
Introduction
The globalization of the semiconductor supply chain has introduced significant security risks, including IP piracy and the insertion of malicious Hardware Trojans (HTs). Because electronic circuits can be naturally represented as graphs, GNNs have become a popular defense mechanism. Despite their high reported accuracy, these models are often vulnerable to structural perturbations.
The primary challenge in attacking hardware GNNs is maintaining functional correctness; unlike social networks, random edge deletions in a circuit graph can break its logic. AttackGNN addresses this by using industry-standard logic synthesis tools to perform transformations that alter a circuit's graph structure without changing its truth table.
Methodology
AttackGNN employs a reinforcement learning agent based on the Proximal Policy Optimization (PPO) algorithm. The agent treats circuit modification as a sequential decision-making process, where the goal is to find a sequence of transformations that maximizes the GNN's classification error.
Key components of the methodology include:
- Functionality-Preserving Actions: The agent utilizes transformations from tools like ABC and Synopsys Design Compiler. These include resynthesis and specific standard cell selection strategies (e.g., restricting the use of certain multi-input gates) to force structural changes.
- Multi-Task Learning: Using a Contextual Markov Decision Process (MDP), a single agent is trained to attack multiple security problems simultaneously by receiving a context vector representing the target GNN defense.
- Efficiency via Sparse Rewards: To minimize time-consuming GNN queries, rewards are only provided at the end of a modification sequence, enabling the agent to train in under 12 hours.
Evaluation and Results
We evaluated AttackGNN against five state-of-the-art GNN frameworks (GNN4IP, TrojanSAINT, GNN-RE, and OMLA) using benchmarks like TrustHub and real-world processors (Stanford MIPS and Google IBEX).
The results were definitive: AttackGNN achieved a 100% success rate in generating adversarial examples for every defense tested. In IP piracy detection, it successfully masked pirated designs as legitimate. In Trojan localization, it reduced GNN performance to levels worse than random guessing. Furthermore, it demonstrated that GNNs often over-rely on structural features rather than functional behavior, allowing a MIPS processor to be misidentified as an IBEX processor.
Conclusion
AttackGNN reveals a critical fragility in current GNN-based hardware security defenses. By repurposing logic synthesis as an adversarial tool, we show that high accuracy on static datasets does not equate to robustness in the field. Future work must shift toward developing certifiable robustness and defenses that account for the functional identity of circuits rather than just their structural appearance.
Summary updated