ForASec: Formal Analysis of Hardware Trojan-Based Security Vulnerabilities in Sequential Circuits

Faiq Khalid, Imran Hafeez Abbassi, Semeen Rehman, Awais Mehmood Kamboh, Osman Hasan, Muhammad Shafique

TL;DR

This paper introduces ForASec, a novel formal analysis framework for detecting hardware Trojans (HTs) in sequential circuits. It addresses the state-space explosion problem by efficiently partitioning complex circuits and incorporates side-channel parametric behavior and process variations for more accurate vulnerability detection, achieving significant speedups over existing methods.

What Problem Does This Paper Address?

The increasing reliance on outsourced fabrication and split manufacturing in the semiconductor industry has made hardware Trojans (HTs) a significant threat to the security of critical applications. Detecting these malicious modifications is crucial, but existing methods face challenges. Simulation-based approaches lack complete coverage due to computational constraints, while formal verification methods like model checking struggle with the state-space explosion problem for complex sequential circuits. Furthermore, many existing techniques fail to account for the subtle, non-functional impacts of HTs on side-channel parameters (like power consumption and propagation delay) and the effects of process variations, which can mask or even mimic malicious behavior, especially for stealthy Trojans (SHTs). This paper aims to bridge this gap by providing a comprehensive, 100% coverage formal analysis that handles these complexities.

Methods

ForASec employs a multi-phase approach:

  1. State-Space Modeling and Translation: The circuit under verification (CuV) is translated into a state-space model. This involves creating side-channel parametric models for basic logic gates (NAND, NOR, NOT) that capture dynamic power, leakage power, and propagation delay, considering technology parameters and process variations.
  2. Segmentation for State-Space Reduction: To combat the state-space explosion, ForASec segments the CuV's functional and side-channel models. This is done by dividing the models into smaller, manageable parts based on available RAM, allowing for analysis of larger and more complex circuits.
  3. Verification and Vulnerability Analysis: The segmented models are then verified using Linear Temporal Logic (LTL) properties. The core of the analysis involves a "proof by contradiction" approach. Instead of verifying normal behavior, ForASec looks for counterexamples that indicate deviations from expected side-channel behavior when HTs are introduced. This counterexample-driven analysis helps pinpoint vulnerable nodes and gates.
  4. Hardware Trojan Integration: Pre-defined hardware Trojan benchmarks are integrated into the verified CuV model to simulate malicious behavior. The analysis then identifies how these Trojans affect the side-channel parameters.

The novelty lies in the combination of efficient state-space segmentation, comprehensive side-channel parametric modeling (including process variations), and a counterexample-driven analysis focused on identifying deviations rather than confirming normal operation.

Datasets

The paper evaluates ForASec using:

  • ISCAS89 benchmarks: A standard suite of sequential circuits used for testing and verification.
  • Trust-Hub HT benchmarks: A collection of pre-defined hardware Trojan models.
  • Basic sequential circuits: Including D-Flipflops (DFFs), shift registers, and counters.

The authors also mention using technology parameters from TSMC CMOS models (65nm, 45nm, and 22nm) for their analysis.

Key Insights and Ideas

  • Side-channel parameters are crucial for detecting stealthy Trojans: Stealthy Hardware Trojans (SHTs) are designed to be difficult to detect through functional testing. Analyzing subtle changes in power consumption, leakage, and propagation delay is essential for uncovering them.
  • Process variations can mimic HT behavior: The inherent variability in manufacturing processes can lead to changes in side-channel parameters that might be mistaken for HT activity. ForASec's ability to model these variations is key to distinguishing true threats from manufacturing noise.
  • Segmentation is vital for scalability: Directly analyzing large sequential circuits is computationally infeasible. ForASec's segmentation approach breaks down the problem into smaller, manageable parts, enabling analysis of much larger designs.
  • Focusing on deviations (counterexamples) is more efficient: Instead of trying to prove a circuit is "correct" under all conditions, ForASec focuses on finding specific instances where the circuit deviates from expected side-channel behavior when a Trojan is present. This counterexample-driven approach is more effective for vulnerability analysis.
  • Input nodes are often the most vulnerable: The analysis suggests that input nodes are frequently the most susceptible to HT intrusions, as their effects can be more easily masked by process variations.

Key Results

  • 100% Coverage: ForASec provides 100% coverage for side-channel parametric behavior and functional verification.
  • Significant Speedup: The proposed framework achieves approximately 6x to 10x speedup in analysis time compared to state-of-the-art model checking-based techniques. When combined with segmentation, the speedup can reach 11x to 16x.
  • Accurate Vulnerability Identification: ForASec successfully identifies vulnerable nodes and the minimum possible size of Stealthy Hardware Trojans (SHTs) that can be detected.
  • Robustness against Process Variations: The framework's ability to model process variations demonstrates its robustness, showing that it can distinguish between HT effects and manufacturing variations.
  • Technology Independence: The analysis indicates that while different semiconductor technologies (65nm, 45nm, 22nm) impact side-channel parameters, they do not significantly alter the outcome of the security vulnerability analysis.

Limitations and Future Work

  • Manual Segmentation: The paper acknowledges that the segmentation process is currently manual and not automated.
  • Focus on Sequential Circuits: While the framework is designed for sequential circuits, future work could extend it to other circuit types or more complex system-level analyses.
  • Exploration of More Complex HTs: The current work focuses on gate-level intrusions. Future research could explore more sophisticated HT models and attack vectors.
  • Automated Segmentation: Automating the segmentation process would further enhance the usability and scalability of the framework.
  • Integration with Design Flow: Integrating ForASec more seamlessly into the overall IC design flow could streamline the security verification process.

Summary updated

Abstract

In this article, we propose a novel model checking-based methodology that analyzes the hardware trojan (HT)-based security vulnerabilities in sequential circuits with 100% coverage while addressing the state-space explosion issue and completeness issue. In this work, the state-space explosion issue is addressed by efficiently partitioning the larger state space into corresponding smaller state spaces to enable the distributed HT-based security analysis of complex sequential circuits. We analyze multiple ISCAS89 and trust-hub benchmarks for different ASIC technologies, i.e., 65, 45, and 22 nm, to demonstrate the efficacy of our framework in identifying HT-based security vulnerabilities. The experimental results show that ForASec successfully performs the complete analysis of the given complex and large sequential circuits, and provides approximately <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$6\times $ </tex-math></inline-formula> – <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$10\times $ </tex-math></inline-formula> speedup in analysis time compared to the state-of-the-art model checking-based techniques.
BibTeX
@article{khalid2022forasec,
  author = {Faiq Khalid and Imran Hafeez Abbassi and Semeen Rehman and Awais Mehmood Kamboh and Osman Hasan and Muhammad Shafique},
  title = {{ForASec: Formal Analysis of Hardware Trojan-Based Security Vulnerabilities in Sequential Circuits}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2022},
  doi = {10.1109/tcad.2021.3061524},
}
Figure