[Paper Review] Automatic Hardware Trojan Insertion using Machine Learning
This paper proposes MIMIC, a machine learning-based framework for automatically generating high-fidelity hardware Trojan benchmarks by learning multi-dimensional features from existing Trojans. It uses trained models to identify stealthy trigger and payload nets, then binds virtual Trojans to designs with up to 80% Top-5 accuracy, significantly outperforming baseline methods without ML guidance.
Due to the current horizontal business model that promotes increasing reliance on untrusted third-party Intellectual Properties (IPs), CAD tools, and design facilities, hardware Trojan attacks have become a serious threat to the semiconductor industry. Development of effective countermeasures against hardware Trojan attacks requires: (1) fast and reliable exploration of the viable Trojan attack space for a given design and (2) a suite of high-quality Trojan-inserted benchmarks that meet specific standards. The latter has become essential for the development and evaluation of design/verification solutions to achieve quantifiable assurance against Trojan attacks. While existing static benchmarks provide a baseline for comparing different countermeasures, they only enumerate a limited number of handcrafted Trojans from the complete Trojan design space. To accomplish these dual objectives, in this paper, we present MIMIC, a novel AI-guided framework for automatic Trojan insertion, which can create a large population of valid Trojans for a given design by mimicking the properties of a small set of known Trojans. While there exist tools to automatically insert Trojan instances using fixed Trojan templates, they cannot analyze known Trojan attacks for creating new instances that accurately capture the threat model. MIMIC works in two major steps: (1) it analyzes structural and functional features of existing Trojan populations in a multi-dimensional space to train machine learning models and generate a large number of "virtual Trojans" of the given design, (2) next, it binds them into the design by matching their functional/structural properties with suitable nets of the internal logic structure. We have developed a complete tool flow for MIMIC, extensively evaluated the framework by exploring several use-cases, and quantified its effectiveness to demonstrate highly promising results.
Motivation & Objective
- To address the lack of diverse, realistic hardware Trojan benchmarks for evaluating detection and verification tools.
- To enable automated exploration of the complex, multi-dimensional hardware Trojan attack space beyond static or signal-probability-based insertion.
- To develop a flexible, AI-driven framework that mimics the behavior of known Trojans while generating new, valid Trojan instances.
- To provide a scalable solution for creating high-quality, synthetic Trojan benchmarks that reflect evolving threat models in untrusted semiconductor supply chains.
Proposed method
- MIMIC trains three machine learning models—on trigger nets, payload nets, and full Trojan behavior—using multi-dimensional structural and functional features extracted from a pool of known Trojans.
- The framework analyzes flattened Verilog netlists to identify candidate trigger and payload nets based on their fitness scores from the trained models.
- Each candidate net pair is functionally and structurally verified to ensure validity and avoid combinational loops or inconsistent behavior.
- Virtual Trojans are generated by mapping the feature set of candidate net pairs to a reference Trojan behavior vector, and ranked by similarity.
- The fittest virtual Trojans are bound to the design using a Trojan template, with user-configurable parameters for template type, feature weights, and model selection.
- The framework supports both same-template and cross-template insertion, enabling evaluation of model generalization across different Trojan behaviors.
Experimental results
Research questions
- RQ1Can a machine learning framework effectively learn and replicate the multi-dimensional features of stealthy hardware Trojans to generate new, valid Trojan instances?
- RQ2How well can the framework generalize to different Trojan templates when trained on one type, especially across combinational and sequential logic?
- RQ3What is the impact of incorporating trigger, payload, and full Trojan behavior models on the accuracy and quality of generated Trojans?
- RQ4To what extent can the framework explore the broader Trojan attack space beyond one-dimensional signal probability constraints?
- RQ5How does the framework’s performance vary when inserting Trojans with different functional behaviors, such as DoS or data-leakage types?
Key findings
- With all three models (trigger, payload, and Trojan behavior) included, MIMIC achieves approximately 80% Top-5 accuracy in identifying suitable net pairs for Trojan insertion, representing a 74% improvement over the baseline without models.
- The inclusion of the trigger and payload models individually increases Top-5 accuracy by 16% and 20%, respectively, demonstrating their individual contribution to performance.
- When inserting a different Trojan template into the same benchmark, MIMIC achieves an average Top-5 accuracy of 87% for combinational templates (c1 and c2), indicating strong generalization within similar behavioral classes.
- For sequential templates (s1 and s2), performance drops significantly, with only 9.09% and 11.11% Top-5 accuracy, due to low feature space overlap and structural complexity.
- The framework successfully identifies valid Trojan locations even when models are excluded, though with reduced accuracy, confirming the robustness of the structural and functional validation pipeline.
- The results show that MIMIC can effectively generate synthetic, high-quality Trojan benchmarks that closely mimic real-world stealthy Trojan behaviors, enabling more rigorous evaluation of countermeasures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.