TL;DR
This paper introduces a novel approach to detect and prevent hardware Trojans in third-party IP cores by leveraging standard functional verification tools. By analyzing the behavior of Look-Up Tables (LUTs) at the netlist level, the method identifies suspicious components and uses formal verification to pinpoint Trojan trigger conditions, enabling targeted reconfiguration to neutralize the threat.
What Problem Does This Paper Address?
Modern System-on-Chip (SoC) designs heavily rely on third-party intellectual property (3PIP) cores to accelerate development and reduce time-to-market. However, these IP cores, often sourced from vendors with varying trust levels, can harbor hidden malicious functionalities known as hardware Trojans. These Trojans can be stealthily embedded and activated under specific, rare conditions, making them incredibly difficult to detect using traditional testing and verification methods. Existing solutions often require specialized expertise, expensive tools, or extensive training data, and can miss Trojans that exploit "don't care" conditions or have multiple trigger points. This paper aims to bridge this gap by developing a "design for assurance" methodology that integrates hardware Trojan detection and prevention into the standard Electronic Design Automation (EDA) flow, making security verification more accessible and automated.
Methods
The core of this work lies in a novel design flow that targets the granularity of Look-Up Tables (LUTs) within a synthesized FPGA netlist. The methodology involves:
- FPGA Synthesis and Netlist Dumping: The 3PIP core is synthesized into an FPGA netlist using standard tools (e.g., Yosys, Xilinx Vivado).
- Random Simulation and Trace Analysis: The synthesized netlist undergoes random simulation to generate extensive traces. These traces are then analyzed to identify:
- Low Switching Signals: Signals that exhibit significantly biased switching probabilities, indicating they might be part of a Trojan trigger.
- Low Coverage LUTs: LUTs where certain input combinations are never reached during simulation. This is a key indicator for Trojans that exploit "don't care" conditions or have rare trigger events.
- Property Extraction and Formal Verification: For identified low switching signals and low coverage LUTs, the method automatically extracts invariant design properties. These properties are then formally verified using standard assertion languages (SVAs) and formal tools. If a property fails, the formal solver provides a "counter-example," which is precisely the Trojan trigger condition.
- LUT Reconfiguration for Prevention: Once a Trojan trigger condition is confirmed, the identified malicious LUTs are reconfigured. The goal is to flip the entries corresponding to the uncovered input combinations, effectively neutralizing the Trojan's activation path without altering the intended functionality of the design.
- Compliance Checking: The reconfigured design is then simulated with the identified trigger condition to verify that the Trojan behavior is suppressed and the original functionality remains intact.
This approach leverages familiar functional verification tools and languages, making it accessible to hardware designers without deep security expertise.
Datasets
The paper evaluates its method using several benchmark circuits:
- Trust-Hub Benchmarks: Specifically, the AES-T1000, AES-T2000, and RSA-T200 benchmarks are used. These are existing benchmarks designed to test hardware Trojan detection methods.
- Satisfiability Don't Care (SDC) Trojan Designs: The paper also tests against more recent SDC Trojans, including an AES SDC Trojan and an RSA SDC Trojan, which are known to be stealthier and harder to detect.
The paper does not introduce new benchmarks but rather uses existing ones to demonstrate the effectiveness of its proposed detection and prevention techniques.
Key Insights and Ideas
- LUTs as a Prime Target: The paper argues that LUTs, as the fundamental building blocks of FPGAs, offer an ideal granularity for Trojan detection. Their explicit structural and behavioral characteristics (initialization vectors) are rich sources of information for identifying malicious logic.
- Bridging Functional and Security Verification: By using standard functional verification tools and methodologies, the approach democratizes hardware security, allowing designers to integrate security checks seamlessly into their existing workflows without requiring specialized security expertise.
- Automated Property Extraction: The ability to automatically extract high-quality properties from simulation traces significantly reduces the burden of manual property specification, a common bottleneck in formal verification.
- Targeted Reconfiguration: The proposed prevention method focuses on reconfiguring only the identified malicious LUTs, ensuring minimal impact on the overall design functionality and performance.
- Effectiveness Against Stealthy Trojans: The method demonstrates a strong capability in detecting "don't care" Trojans, which are particularly challenging for traditional switching probability analysis due to their reliance on specific, often unexercised, input conditions.
Key Results
The experimental results demonstrate the effectiveness of the proposed method across various benchmarks:
- Trojan Detection: The method successfully identified Trojan trigger signals and suspicious LUTs in all tested benchmarks, including the stealthy SDC Trojans. For instance, in the AES SDC Trojan case, it pinpointed 128 malicious LUTs responsible for the Trojan's functionality.
- Trigger Condition Recovery: Through formal verification of extracted properties, the method accurately recovered the trigger conditions for Trojans, such as the specific input combination for the AES-T1000 and the SDC condition (dc1 & dc2 == 0) for the AES SDC Trojan.
- Trojan Prevention: The reconfiguration of identified malicious LUTs effectively prevented Trojan activation. For the AES-T1000, simulation results showed that the secret key leakage was suppressed after reconfiguration, without affecting the ciphertext output.
- Efficiency: The analysis of simulation traces and property extraction was performed using standard EDA tools, indicating a feasible integration into existing design flows.
Limitations and Future Work
- Design Phase Focus: The method is primarily applicable to Trojans present in the design phase (RTL or netlist) and cannot be used for detecting Trojans in already fabricated chips.
- Synthesis Optimization: Trojans with floating outputs might be optimized away during logic synthesis, potentially leading to false negatives.
- Coverage Analysis Limitations: While effective, coverage analysis might miss Trojans activated by multiple discrete trigger signals that are not connected to the same LUT.
- Future Work: The authors suggest that future work could explore detecting Trojans in fabricated chips and further refining the coverage analysis to handle more complex trigger scenarios. The potential for Trojans to exploit floating outputs during synthesis also warrants further investigation.
Summary updated