21 Hardware Security: Trojans and Assurance
21.1 Start With the Situation
The device resists common physical probes, but trust also depends on what entered the design before assembly. The team must examine trigger behavior, provenance, detection limits, and supply-chain evidence without claiming certainty.
21.2 Overview
This route focuses on Trojan behavior, detection records, lifecycle controls, and supply-chain assurance.
This is part 2 of 2. Review Hardware Security: Surfaces and Side Channels when you need the first route.
21.3 Learning Objectives
By the end of this chapter, you will be able to:
- explain hardware Trojan triggers and payloads
- compare detection evidence and limits
- build an IC provenance and assurance record
21.4 Chapter Roadmap
Follow the original sections below in order. They begin at the reviewed split boundary and keep every worked example, figure, check, and supporting banner with the section that owns it.
21.4.1 Hardware Trojans and IC Provenance
A hardware Trojan is a malicious change to an integrated circuit or its design flow. It may be inserted through an untrusted intellectual-property block, a compromised design tool, or a manufacturing step that changes the physical implementation. The useful review model separates two parts: the trigger that activates the behavior and the payload that causes the harm. A trigger might be a rare digital state, a long sequence, an on-chip sensor condition, or another activation pattern. A payload might change logic, alter memory content, leak information, degrade performance, or deny service. Figure 21.1 makes that separation visible before the assurance controls are compared.
Read Figure 21.1 from the rare state, sequence, or sensor condition entering the trigger logic. The trigger activates hidden circuitry that would otherwise remain dormant, and the payload then produces the security effect: altered logic or memory, leakage, degradation, or denial. Separating activation from effect matters because tests that cover ordinary functions may observe neither. The model turns an abstract supply-chain concern into two bounded review questions: what conditions were exercised, and which harmful outputs were monitored?
Digital triggers split into two structural types worth naming precisely: a combinational trigger fires from a specific, rarely occurring combination of existing signal values, while a sequential trigger fires only after a defined sequence or count of clock cycles, such as a hidden counter reaching a threshold. The distinction matters for detection strategy as much as vocabulary: combinational triggers are the kind rare-value logic testing is built to surface, while sequential triggers may need extended-duration or state-aware testing to reach the triggering count. Either way the defensive posture is unchanged: trusted design-source evidence and detection testing scaled to the rare-condition space, not an attempt to enumerate every possible trigger value.
21.4.1.1 Worked combinational trigger: one truth-table row changes
Start with an intended two-input AND output
A hidden rare-state detector built from a NOR gate asserts only when both inputs are zero:
If an XOR payload combines that trigger with the protected signal, the modified output is
Evaluate every row rather than relying on the gate names:
| Intended | Trigger | Modified | Changed? | ||
|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | Yes |
| 0 | 1 | 0 | 0 | 0 | No |
| 1 | 0 | 0 | 0 | 0 | No |
| 1 | 1 | 1 | 0 | 1 | No |
The outputs of the AND gate and the NOR gate can never both be 1, so this particular modified function is also : it asserts at 00 as well as 11. A functional test that tries 01, 10, and the expected asserted case 11 reports success while missing the only changed row. That is why rare-node analysis and mutation-sensitive test vectors matter; ordinary high-coverage application tests may never place all trigger inputs in their rare combination at once.
The algebra above proves that one row moves. It does not show how small the inserted circuit is, or how ordinary the rest of it looks. Trace the intended path and the modified path in Figure 21.2 before moving to the sequential case.
Read the two circuit cards of Figure 21.2 in order. AND · protected is the entire intended function: two inputs, one output, three of four rows sitting at zero. The modified card leaves that gate untouched and adds two more — NOR · trigger, which asserts for the single input pair A = 0 and B = 0, and XOR · payload, which passes the protected value through unchanged for as long as the trigger stays low. The table beneath marks exactly one row CHANGED, and the closing panel spells out the awkward consequence: a suite that exercises 01, 10, and the asserted 11 row sees three matching outputs and reports success. The insertion is not hidden by cleverness; it is hidden by test coverage that never visits the rare state.
21.4.1.2 Sequential trigger and XOR payload timing
Let a synchronous -bit counter hold after clock edge :
The payload passes the protected signal unchanged while and inverts it while . If the terminal-count signal is not latched, inversion lasts only for the terminal-count cycle; if a hidden latch captures the event, it can persist until a reset condition. That distinction must appear in the hardware review because it changes both consequence and test duration.
Starting from zero and comparing the current count before increment, the first terminal state arrives after clock edges. At clock frequency ,
For at , the delay is about of uninterrupted enabled clocks. Resetting or clock-gating the block during short production tests can therefore prevent activation even when total test time looks long enough. State-aware verification must vary reset, enable, low-power, and wraparound behavior rather than simply run random vectors.
| Payload class | What changes | Observable consequence | Defensive evidence |
|---|---|---|---|
| Digital logic | Internal or output logic value | Wrong decision, privilege state, denial, or altered control | Formal equivalence, rare-state logic tests, output assertions |
| Digital memory | Stored bit, address, or access behavior | Persistent configuration change, secret exposure, rollback | Memory integrity, access-control tests, authenticated state |
| Analog timing | Path delay, clock margin, setup/hold behavior | Intermittent faults at voltage, temperature, or frequency corners | Path-delay characterization and corner testing |
| Analog power/performance | Current, leakage, gain, noise margin, or maximum frequency | Battery drain, degraded range, premature failure, side-channel change | Golden-baseline distributions, current/delay monitors, environmental sweep |
The trigger and payload tables answer different questions. Trigger coverage asks whether the hidden condition was reached. Payload observation asks whether the resulting digital or analog deviation reached a measured output. A test is incomplete if it satisfies only one side.
A counter trigger resists reasoning from gate names, because its cost is counted in clock edges rather than input values. Follow the block path and then the waveform lanes in Figure 21.3, where the wait itself becomes something you can point at.
In Figure 21.3, follow the k-bit counter into the terminal count detector and on into the XOR payload that already carries the protected signal. In the waveform lanes, T[n] stays at zero through every earlier count, so Y[n] tracks X[n] exactly and nothing in the observable behaviour looks wrong; only the highlighted column at the terminal value shows an inversion, and only for one cycle. The card holding t_trigger converts that column into wall-clock time — roughly 42.95 s of uninterrupted, enabled clocking at and 100 MHz — which is why resetting or clock-gating the block between vectors keeps a long test suite permanently short of activation. The four payload cards below separate what a payload changes from the evidence that would notice it.
For an IoT reviewer, hardware Trojan risk is a supply-chain and assurance question. The evidence should show which IP blocks, CAD tools, foundry or assembly steps, and receiving tests are trusted for the device class. Detection approaches can be destructive, such as reverse-engineering a sample, or non-destructive, such as logic testing and side-channel comparison. Design-for-security approaches try to prevent insertion or make detection easier, for example by controlling design sources, reducing unused layout space, adding monitors, and preserving a trusted baseline. Runtime monitoring then checks whether deployed devices behave outside the expected power, timing, or functional envelope. High-volume commodity sensors may need only supplier and acceptance evidence; a safety-critical or payment device may need much stronger IC-level assurance.
21.4.1.3 Detection-method decision table
Destructive reverse engineering begins by depackaging a sampled IC. The laboratory exposes the die, removes material one layer at a time—often using chemical-mechanical polishing or another controlled delayering process—images each layer with optical or scanning-electron microscopy, aligns the images, extracts devices and interconnect, and reconstructs a layout or netlist for comparison. The evidence can be physically detailed, but the inspected sample is consumed. It is also a sampling claim: clean reconstruction of one die does not prove every unit or lot is identical.
| Method | Stage | Sample destroyed? | Reference needed | What it can reveal | Principal limit |
|---|---|---|---|---|---|
| Layer-by-layer reverse engineering | Post-silicon | Yes | Trusted layout/netlist or a justified structural baseline | Added, removed, or rerouted physical structures in the sampled die | Slow, expensive, reconstruction error, and sample/lot coverage |
| Pre-silicon formal verification or simulation | Design | No silicon yet | Complete trusted specification/model | Logical divergence, unauthorized state, unreachable or rare trigger behavior in the design representation | Third-party IP and tools may make the “complete model” assumption false; foundry changes occur later |
| Post-silicon logic testing | Manufactured part | No | Expected input/output and state behavior | Payloads that activate and propagate to an observed output | Rare trigger may never be activated; internal effect may not propagate to a tested pin |
| Supply-current side channel | Manufactured part | No | Golden-device distribution under matched vectors and conditions | Extra switching or leakage that changes current even without a functional output error | Process, voltage, and temperature variation can hide a small Trojan or create false alarms |
| Path-delay side channel | Manufactured part | No | Golden timing distribution and controlled environmental corners | Added load or rerouting that changes timing margin | Only sensitized paths are observed; normal variation and aging shift delay too |
The decision is consequence-driven. Use pre-silicon checks where the design representation is available, logic tests to exercise functional effects, side-channel comparisons to look for unpropagated physical differences, and destructive analysis for high-assurance sampling or disputed evidence. Record the golden reference’s provenance and statistical spread; “matches golden” is meaningless if the reference device or model could contain the same change.
A table compares each method against its own axis, which makes every row easy to read and the overall shape of the choice easy to miss. Figure 21.4 aligns four methods on the same five criteria so the blind spots line up in a column instead of hiding in prose.
Compare the destroys? and coverage cells of Figure 21.4 first. Reverse engineering is the only method that consumes the part, and it is also the only one whose coverage reads 1 sample — a pairing that explains why it belongs to disputed evidence rather than routine assurance. Then read the trigger? column downward: post-silicon logic testing needs the payload to must fire before it can observe anything, while side-channel comparison can register a dormant change through extra switching alone. That is the complementarity worth remembering, and it is also why the reference cell matters so much for the side-channel row, since a golden distribution containing the same modification proves nothing. Every card closes with a Confidence and a Limit line so a review can state precisely what its chosen method did and did not establish.
21.4.1.4 Design for security across the lifecycle
| Lifecycle point | Mechanism | How it works | Evidence it can provide | What it cannot prove |
|---|---|---|---|---|
| Logic design | Key-controlled obfuscation or logic locking | Key gates make selected internal functions correct only after a secret activation value is supplied. | Unauthorized copies or altered designs fail functional and equivalence checks without the governed key. | It does not prove the locking network, key path, or activated implementation is Trojan-free. |
| Physical layout | Vacant-area filling | Inert filler cells or connected functional standard cells occupy otherwise unused placement space and make late insertion/routing more difficult. | Final layout density, filler placement, design-rule closure, and controlled engineering-change record. | Dense layout cannot prevent changes inside existing cells or malicious modifications earlier in the flow. |
| Test support | Embedded delay/current monitors | On-chip sensors compare selected paths or supply behavior with characterized bounds. | Per-device or per-region telemetry that can expose out-of-envelope timing or current. | Monitor placement is incomplete, thresholds face process variation, and a dormant payload may stay inside bounds. |
| Field operation | Hardware/software runtime monitoring | Firmware, a supervisor, or an external service checks functional, timing, power, attestation, and update state after deployment. | Longitudinal evidence, fleet comparison, alerts, containment, and retest after environmental or software change. | Monitoring detects observable deviation; it does not establish absence before activation. |
Walk the stages in order. Logic locking constrains function before manufacture. Layout filling reduces insertion opportunity during physical design. Embedded monitors create observability during test. Runtime monitoring carries selected evidence into deployment. The controls overlap by design: a delay monitor may catch a change that logic vectors miss, while protected field telemetry can reveal a deviation that did not appear under factory voltage and temperature. The assurance record should name which insertion point and observation gap each mechanism covers rather than counting four controls as four independent guarantees.
Naming four mechanisms is not the same as knowing which window each one closes. Read Figure 21.5 down the lifecycle rail and treat the two coloured strips inside every card, not the mechanism name above them, as the claim being made.
In Figure 21.5, the LOGIC DESIGN card shows key-controlled locking that Proves that unauthorised copies fail equivalence checks, yet Cannot prove the key path is itself clean — the control and its own attack surface arrive together. PHYSICAL LAYOUT filling buys density and engineering-change records while saying nothing about cells that were already in the design. TEST SUPPORT monitors surface out-of-envelope telemetry but not a payload dormant inside the bounds they watch. FIELD OPERATION monitoring buys fleet comparison and containment, and still cannot establish absence before the trigger fires. Reading the pairs together, rather than the mechanism names alone, is exactly what stops an assurance record from presenting four controls as four guarantees.
The trigger-payload model does not say where the change entered or where it can still be found. Trace Figure 21.6 from design inputs to deployment to assign assurance and detection evidence to each owner.
Read Figure 21.6 from IP and CAD sources through design, manufacture, test, and deployment. Compromised design inputs or tools can introduce a logical change before fabrication, while an untrusted manufacturing step can alter the physical implementation. Receiving and acceptance testing are later opportunities for logic or side-channel comparison against a trusted baseline, and runtime monitoring can reveal out-of-envelope timing, power, or functional behavior after deployment. The sequence shows why provenance is continuous evidence, not a supplier name recorded at purchase.
No single control covers every stage or rare activation condition. Use Figure 21.7 to compare prevention-oriented design assurance, pre-deployment detection, and monitoring after release without claiming that one family proves absence.
In Figure 21.7, start with detection: destructive reverse-engineering can inspect sampled physical structure, while non-destructive logic and side-channel tests compare behavior without consuming every unit. Move next to design-for-security controls that constrain trusted sources, unused logic, and opportunities for insertion. Runtime monitoring then watches deployed devices for functional, timing, or power deviations that earlier assurance missed. Together the families form layered evidence across the lifecycle, scaled to device value and consequence rather than presented as a guarantee that no Trojan exists.
21.4.2 Supply-Chain Assurance
The trust chain begins before the device powers on. Counterfeit parts, substituted components, or firmware that differs from the approved image all defeat downstream controls silently. Assurance is documentary: component provenance, a controlled bill of materials, firmware hashes compared to the signed release, and receiving acceptance tests. Supplier reputation is context, not evidence.
21.4.3 Common Pitfalls
Taken together, these checks make the section reviewable. That order prevents a control name from being treated as proof and connects the visual to the chapter's evidence-led review sequence.
21.4.4 Under-the-Hood Knowledge Check
At this depth, hardware security is about defending decisions and secrets against an attacker who can touch the device: control the interfaces, anchor the boot, protect the keys, harden the physics, and verify the supply chain, then record the residual risk that remains for the real deployment.
21.5 Summary
Taken together, these checks make the section reviewable. That order prevents a control name from being treated as proof and connects the visual to the chapter’s evidence-led review sequence.
Hardware vulnerability review must cover debug ports, the boot chain, secure storage, side channels, fault resilience, tamper exposure, hardware Trojan assurance, and supply-chain provenance, each tied to recorded production evidence and a stated residual risk.
21.6 See Also
Follow the hardware root of trust into a staged, verified boot chain.
See how update paths deliver the firmware that boot trust later verifies, and how they can weaken it.
Place hardware exposure inside the wider asset, boundary, and evidence model.
