Advancing the state-of-the-art in hardware Trojans design

Syed Kamran Haider, Chenglu Jin, Marten van Dijk

TL;DR

This paper reveals that current hardware Trojan (HT) detection tools are over-optimized for a tiny, simplistic set of public benchmarks. The authors define a massive, exponentially large class of "Deterministic Hardware Trojans" ($H_D$) and introduce four key metrics—dimension, delay, implicit behavior, and locality—that allow attackers to design stealthy Trojans that easily bypass state-of-the-art defenses.

What Problem Does This Paper Address?

The global semiconductor supply chain relies heavily on third-party Intellectual Property (IP) cores. This creates a massive security loophole: a malicious vendor or an insider could plant a "Hardware Trojan"—extra circuitry designed to leak data or disable the system.

While researchers have developed detection tools (like VeriTrust and FANCI), these tools often claim 100% success rates because they are tested against the TrustHub benchmark suite. The authors argue this is a "cat-and-mouse" game where defenders are winning only because the "mice" (the benchmarks) are intentionally simple. In reality, the landscape of possible Trojans is vast, and current tools are blind to sophisticated designs that don't fit the narrow profile of existing benchmarks.

Methods

The authors formalize the design of stealthy Trojans by defining the $H_D$ class (Deterministic HTs) and identifying four "Achievable Quadruples" $(d, t, \alpha, l)$ that determine a Trojan's stealthiness:

  1. Trigger Signal Dimension ($d$): The number of wires used to activate the Trojan. Most benchmarks use $d=1$, making them easy to spot. High $d$ makes the trigger signal complex and hard to isolate.
  2. Payload Propagation Delay ($t$): The number of clock cycles between the trigger event and the actual malicious behavior. A long delay makes it unlikely that the Trojan will be caught during standard functional testing.
  3. Implicit Behavior Factor ($\alpha$): The probability that a triggered Trojan produces an output that is indistinguishable from normal behavior. This leads to "false negatives" where the Trojan is active but the test passes anyway.
  4. Trigger Signal Locality ($l$): How spread out the trigger wires are across the chip. If wires are scattered ($l$ is high), region-based detection tools fail.

To prove their point, they introduce a new "proof-of-concept" Trojan: the XOR-LFSR. This design uses a Linear Feedback Shift Register to create a high-dimensional trigger that is mathematically difficult to distinguish from legitimate logic.

Datasets

The paper primarily uses the TrustHub benchmark suite, which is the industry standard for hardware Trojan research.

Novel Contribution: Rather than just running tests, the authors provide a comprehensive re-classification of TrustHub benchmarks (Table 1) based on their new $(d, t, \alpha)$ framework. They show that almost all existing benchmarks are "bottom-tier" in terms of complexity, mostly featuring $d=1$.

Key Insights and Ideas

  • The "Tip of the Iceberg" Fallacy: Current HT detection research is "over-fitted." Because benchmarks are simple, detection tools assume all Trojans are simple. The authors show that the number of possible Trojans is actually exponential relative to the number of wires in a circuit.
  • Implicit vs. Explicit Malice: A Trojan doesn't have to break the system immediately to be effective. By manipulating the $\alpha$ factor, an attacker can ensure the Trojan remains "quietly" active, only manifesting as an error under very specific, rare conditions.
  • The Power of LFSRs: By using an XOR-LFSR design, an attacker can create a Trojan where the trigger condition is essentially a "needle in a haystack" that standard logic testing will almost never find.
  • Quantifying Stealth: This paper moves HT design from an "art" to a "science" by providing a mathematical framework to measure exactly how stealthy a design is.

Key Results

  • TrustHub Analysis: The authors found that the vast majority of "state-of-the-art" benchmarks have a trigger dimension of $d=1$. This explains why existing tools like FANCI and VeriTrust perform so well on them but fail in the real world.
  • XOR-LFSR Stealth: They mathematically demonstrate that for their XOR-LFSR Trojan, the trigger dimension $d$ increases logarithmically with the size of the counter ($k$). This means as the Trojan's "wait time" increases, it becomes exponentially harder to detect.
  • Classification Framework: The paper successfully categorizes Trojans into $S_t$ (Standard I/O) and $S_i$ (Side-channel) types, further refining the $H_D$ class to help researchers target their defenses more effectively.

Limitations and Future Work

  • Scope: The paper limits its scope to trigger-activated digital Trojans with digital payloads. It does not address "always-on" Trojans or those that use analog side-channels (like power consumption or heat) to leak data.
  • Non-Deterministic Cores: The framework focuses on deterministic IP cores. The authors note that non-deterministic cores (like those with True Random Number Generators) present a different set of challenges for HT detection that are not fully explored here.
  • Future Defense: The authors call for a new generation of HT detection tools that specifically account for high-dimensional triggers ($d > 1$) and implicit malicious behaviors ($\alpha > 0$).

Summary updated

BibTeX
@inproceedings{haider2017advancing,
  author = {Syed Kamran Haider and Chenglu Jin and Marten van Dijk},
  title = {{Advancing the state-of-the-art in hardware Trojans design}},
  booktitle = {MWSCAS},
  year = {2017},
  doi = {10.1109/mwscas.2017.8053050},
}
Figure