












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Hardware Trojans I
Hardware Trojans
What is a hardware Trojan?
A deliberate and malicious change to an IC that adds or removes functionality or
reduces reliability
rate
operating in mission mode
Adversary makes purposeful discovery highly improbable & physical inspection
is very expensive
Trojan circuits are a big concern for US military
IC Trust Program initiated to investigate solutions to the problem defined by a
Defense Science Board Task Force report:
http://www.acq.osd.mil/dsb/reports/2005-02-HPMS_Report_Final.pdf
Hardware Trojans I
Hardware Trojan Example
Missile control system
Assume a chip receives encrypted commands from an RF channel and stores the
value in a register for subsequent decryption
Adversary transmits "code" that causes activation - missile detonates before reaching
its target
32-bit register 0 31
Wire in original
design
Inserted gate
To
Trojan gates and wires
Trojan
detonator
activation
wire
Decryption Engine
Hardware Trojans I
IC Trust
Consider the vulnerabilities in a typical
ASIC design flow
Steps 1-4 and 7-9 are particularly susceptible to malicious insertions and deliberate
process modification because these steps include significant
third party
content.
Tools
Std. Cells
Models
Design
Specifications
Fab Interface
Mask
Fab
Wafer Probe
Dice & Package
Package Test
Deplay & Monitor
ASIC design flow given in the DARPA TRUST BAA
Trusted Either Untrusted
Hardware Trojans I
IC Trust
ASIC designs may use dozens of EDA tools, whose verification of TRUST is formi-
dable Insertions during the fabrication process (steps 7-9) would produce dice with differ-
ing properties
Without testing each die, the assumption of trust based on the test results of
sampled dice may be misleading
Process modifications can cause
premature aging
are particularly difficult to detect
After deployment (step 13), the IC is largely defenseless against physical tamper and
side channel attacks In general, in order to develop a strategy to ensure IC trust, it will be necessary to
make assumptions about which steps are ’trusted’ and which are ’untrusted’ The Trojan insertion point, e.g., Soft-IP, GDS, package, etc., will determine what
detection strategies are possible, and what assumptions are necessary
Hardware Trojans I
Trojan Scenarios: Soft-IP Trojans
Adversary can compromise
soft-IP
by inserting extra, hidden functionality into the
netlist Implications• No golden model is available• Every IC has the TrojanDetection strategies include•
Formal verification methods
Prove that the functionality of the IP is equivalent to some higher-level, more
abstract ’trusted’ specification Unfortunately, formal verification is a difficult problem (NP-complete) and can
only be applied to small circuits There has been some recent work in this area that offers more attractive solu-
tions
Hardware Trojans I
Trojan Scenarios: Hard- and Soft-IP Trojans
Monitoring the IC using a ’trusted companion IC’
Trusted companion IC has access to the internal state of the untrusted IC
through extra pins/scan chain Trusted companion IC is ’programmed’ such that it knows the
legal state space
of the untrusted IC, and sets off an alarm and/or shuts down the IC if violated (This technique can be used for a second class of GDS-based Trojans)
High security applications would likely use only IP developed in-house or from
trusted sources
Following the advice from a old adage "Doctor, doctor it hurts when I do this!" -
Hard-IP (GDS) Trojans
The insertion point here is the layout (GDS)We mentioned earlier that several modifications are possible, e.g., those
designed to 1) disable/destroy, 2) to leak information and 3) decrease reliability
Hardware Trojans I
Trojan Scenarios: Hard-IP Trojans
Therefore, I argue that Trojans designed to change functionality, e.g., destroy/disable/
enable remote control, etc., are likely to be larger, 10’s to 100’s of gates to preventdiscovery Unfortunately, the same is not true for
information leakage
Trojans
Since they do not, at least in an obvious way, change functionality, they can be
very small and remain secure against detection Information leakage Trojans can ’leak’ information in ways that are not easily
detected
valid receiver
rate, than the valid receiver is expecting
Lot’s of strategies have been proposed -- all of them difficult to detect unless
you test at a high level, e.g., the protocol level
Hardware Trojans I
Trojan Scenarios: Hard-IP Trojans
Unlike manufacturing defects, you only need to detect ONE Trojan to yield success!For example, if a layout-based Trojan is inserted in EVERY copy of a manufactured
IC, then alternative test strategies that use MUCH larger test sets can be used Unfortunately, layout-based Trojans can be inserted in only a subset of the ICs
(unlike soft-IP Trojans which are, by definition, in every copy) This makes it more difficult to develop a testing method to detect them - why?Whether the Trojan is
selectively inserted
or inserted into every copy depends on the
application
I argue that functionally disruptive Trojans, like the missile Trojan, are likely to
be inserted into every copy of an IC -- why? I also argue that information leakage Trojans do not need to be inserted into
every copy of the IC to be useful -- why?
Hardware Trojans I
Layout-Oriented Trojan Detection Strategies
Three basic approaches:•
IC Deprocessing and Application of Failure Analysis Methods
The most straightforward approach is to ’deprocess’ the chip, i.e., remove one
layer at a time and compare the wires and transistors with the original layout The comparison can be implemented using image processing methods that com-
pare micro-photographs of IC geometries with layout images Failure analysis (FA) methods traditionally used for identifying the root cause of
failure in IC can also be applied to extract geometries
Advantages: IC Deprocessing and Application of Failure Analysis Methods
Potentially highly sensitive to the presence of Trojans
Drawbacks: IC Deprocessing and Application of Failure Analysis Methods
Destructive, may miss selectively-inserted Trojans, cost, effectiveness in nano
Hardware Trojans I
Layout-Oriented Trojan Detection Strategies
Three basic approaches:•
Functional activation
through logic testing
Develop an automatic test pattern generation (ATPG) strategy that generates
logic vectors (patterns) to activate the Trojan Given the connectivity characteristics of the Trojan to the original circuit are
UNknown, ATPG must be based on a heuristic The heuristic chosen by most researchers is that the adversary is likely to con-
nect the Trojan to wires in the original design that are the
most difficult
to con-
trol and observe The rational for this is simple: the adversary wants to make
accidental discov-
ery
, i.e., through manufacturing test, of the Trojan extremely unlikely
Therefore, many of the proposed
functional activation
strategies are based on
deriving tests for nodes that are
random-pattern resistant
Hardware Trojans I
Layout-Oriented Trojan Detection Strategies
Three basic approaches:•
Drawbacks: Functional activation
through logic testing
Only applicable to small, functional Trojans (least likely) -- information leakage
Trojans may
not
change the functional behavior of the IC
The adversary may guess that the ATPG strategy may be directed at
hard-to-
detect
nodes and can connect some Trojan inputs to
easy-to-detect
nodes
Generating test patterns may be extremely time consuming or impossible for
some
hard-to-detect
nodes (impossible to activate)
As the number of inputs to the Trojan increases, the difficulty of generating Tro-
jan activation patterns increases dramatically
This is true because ATPG must generate patterns that check
all combina-
tions
of
hard-to-detect
nodes (not just one node at a time as is true in man-
ufacturing test for detects)
Hardware Trojans I
Layout-Oriented Trojan Detection Strategies
Three basic approaches:•
Parametric Anomaly Detection Strategies
A parametric anomaly is a change in the analog characteristics of the IC, e.g., in
its power consumption, delay characteristics, temperature profile, EM radiationcharacteristics, etc. As we indicated earlier with the Trojan missile example, adding a Trojan, i.e., a
set of gates, to the layout of an IC changes the analog characteristics of the IC These changes include:
Therefore, Trojan detection methods can be developed that measure an IC’s ana-
log characteristics (
signature
) and compares it against a ’golden device’
Hardware Trojans I
Layout-Oriented Trojan Detection Strategies
Three basic approaches:•
Advantages: Parametric Anomaly Detection Strategies
Can potentially detect ALL types of Trojans, including functional, information
leakage and reliability Trojans Can be extremely sensitive to small anomalies if the appropriate
calibration
methods are applied to reduce or eliminate test environment and process varia-tions
Drawbacks: Parametric Anomaly Detection Strategies
Automatic test equipment (ATE) instrumentation may need to be customized to
make analog measurements, e.g., transient current and path delay Data collection may be time consuming and storage intensive, e.g., multiple
strobes of the capture cycle to measure
actual
path delays
Hardware Trojans I
Layout-Oriented Trojan Detection Strategies
Three basic approaches:•
Drawbacks: Parametric Anomaly Detection Strategies
Developing an adequate
golden device
model(s) may be difficult
Models need to include environmental variations and process variations if
chip data is not
calibrated
Number of
false alarms
may be large if process variations are not accounted for
Validation through deprocessing make false alarms very costly