Docsity

Hardware Trojans: Understanding the Threat and Strategies for Detection - Prof. James Plus, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
HOST Hardware Trojans I ECE 495/595
ECE UNM 1 (9/1/09)
Hardware Trojans
What is a hardware Trojan?
A deliberate and malicious change to an IC that adds or removes functionality or
reduces reliability
• The modifications may be designed to leak sensitive information, personal or corpo-
rate
• The modifications may be designed to cause a system to fail at a critical time while
operating in mission mode
• The modification may be designed to reduce the reliability of the IC
What makes this a challenging problem?
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
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14

Partial preview of the text

Download Hardware Trojans: Understanding the Threat and Strategies for Detection - Prof. James Plus and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

HOST

Hardware Trojans I

ECE 495/

ECE UNM

Hardware Trojans

What is a hardware Trojan?

A deliberate and malicious change to an IC that adds or removes functionality or

reduces reliability

  • The modifications may be designed to leak sensitive information, personal or corpo-

rate

  • The modifications may be designed to cause a system to fail at a critical time while

operating in mission mode

  • The modification may be designed to reduce the reliability of the ICWhat makes this a challenging problem?

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

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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

A

B

detonator

activation

wire

Decryption Engine

Missile Chip

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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.

IP

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

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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!" -

  • Doctor replies, ’well then, don’t do that!"

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

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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

  • By broadcasting data as EM radiation• By inserting data into a communication channel, that appears as error bits to a

valid receiver

  • By inserting data into a communication channel at a higher frequency, e.g., baud

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

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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?

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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

  • Scanning Optical/Electron Microscopy (SOM/SEM)• Pico-Second Imaging Circuit Analysis (PICA) and Voltage Contrast Imaging• Light-Induced/Charge-Induced Voltage Alternation (LIVA/CIVA)

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

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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)

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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:

  • Increasing the leakage characteristics of the IC• Increasing the dynamic power consumption of the IC• Increasing the delay of paths that have nodes connected to the Trojan gate inputs• Temperature profile changes in the IC, etc.

Therefore, Trojan detection methods can be developed that measure an IC’s ana-

log characteristics (

signature

) and compares it against a ’golden device’

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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

HOST

Hardware Trojans I

ECE 495/

ECE UNM

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