← Back to section · Security Risk & Assessment
Fault Injection: Stealing Secrets in the Moment a Chip Miscalculates
Use a voltage glitch, clock jitter or a laser pulse to make a chip take one wrong step, then infer the key from the faulty result — fault injection is among the most realistic physical threats to secure chips and IoT devices. This article covers attack categories and defensive principles only.
Making the Chip “Miscalculate Once”
Most cryptographic attacks operate at the level of mathematics and protocols. Fault injection goes straight for the hardware: at a critical moment in the device’s operation, the attacker applies a physical disturbance — momentarily dropping or raising the supply voltage, injecting clock glitches, or illuminating a specific area of the chip with a laser or electromagnetic pulse — so that an instruction is skipped, a register bit flips, or an operation returns a wrong result. The device does not crash; it simply quietly miscalculates at one step, and that one error can be fatal.
The technique was first systematised in smartcard evaluation and is now a routine item in the security testing of secure elements, automotive controllers and IoT devices. As open tooling and cheap equipment keep lowering the bar, defenders can no longer assume that an attacker “cannot touch the chip”.
Differential Fault Analysis: One Error Is Enough
The classic way to exploit fault injection is differential fault analysis (DFA). The principle is not complicated: for the same input, a correct output and a faulty output form a sample pair, and their difference shrinks the possible range of the internal state dramatically. Faults injected into the final rounds of a block cipher have long been shown, in the research literature, to allow full key recovery from a handful of correct/faulty ciphertext pairs. Faults injected into signing operations are just as dangerous: one erroneous signature can directly leak algebraic relations involving the private key.
More direct than key theft is skipping the check. Many security decisions ultimately converge on a single comparison or conditional branch: does the PIN match, is the signature valid, did the firmware image pass verification, is the debug interface locked. If a fault flips exactly that decision, the attacker gains not a key but the door itself. Secure boot and payment authorisation flows are therefore focal points of fault-injection evaluation.
It should be recognised soberly that successful fault injection usually requires many attempts and precise timing alignment, and that laboratory conditions differ from mass-produced devices. But defensive design must assume an attacker with physical access and time to retry — precisely the assumption that secure-chip certification evaluations adopt. Moreover, the industrialisation of attack is changing the arithmetic: as disturbance equipment and automated scanning tools spread, “requires a laboratory” is no longer a reliable comfort; bulk-recovered second-hand devices, stolen terminals and brief contact within the supply chain can all become attack windows.
Countermeasures: Hard to Trigger, Hard to Exploit, Easy to Detect
The first layer makes disturbance hard to effect. On-chip sensors for voltage, clock, temperature and light can detect abnormal environments and trigger a reset or erasure; power filtering and clock conditioning reduce the penetration of external glitches; critical decisions use redundant encodings such as dual-rail representations, so that a single bit flip cannot turn “no” into “yes”.
The second layer makes errors produce nothing usable. The core techniques are redundant computation with result self-checking — compute twice and compare, or verify the result before releasing the output — and, going further, infective computation: any intermediate error is diffused through subsequent operations into completely random output, so the faulty samples an attacker obtains carry no exploitable algebraic structure. The habit in signing flows of “verify the signature before outputting it” is a concrete instance of this layer.
The third layer is randomisation and attempt limiting. Random delays, shuffled operation order and masking make it hard for an attacker to aim a disturbance at the critical moment; attempt limits and fault counters defeat the “retry until success” strategy. Finally, the system layer should assume any single protection can be breached: key tiering, least privilege and remote revocability determine the loss ceiling when one device falls.
How Do You Know It Worked: Evaluation and Certification
Fault-injection defence cannot rest on self-declaration. The industry’s common practice is to send devices to independent laboratories, which systematically scan disturbance parameters (voltage amplitude, glitch timing, laser position) under controlled conditions, measure success rates and assign resistance grades; certification schemes in areas such as payment cards and secure elements (including high-assurance Common Criteria evaluations) include such items. For buyers, actionable checks include: does the chip have a public fault-injection certification record; are critical decisions in the firmware implemented with dual-channel redundancy; can the vendor provide a summary of a third-party evaluation report. Turning “fault-injection resistant” from a marketing phrase into an acceptance criterion is the most practical progress available here.
A Note for the Post-Quantum Migration
Post-quantum implementations are equally exposed to fault injection, and new fragile surfaces have appeared: if rejection sampling in lattice-based signatures is disturbed by a fault, it may leak distribution information related to the secret; if the state counter of a hash-based signature is skipped forward, one-time keys may be reused; if a comparison step in decapsulation is bypassed, the failure-handling logic is circumvented. When selecting implementations for migration, whether an implementation has undergone fault-injection evaluation, and whether a hardened version with countermeasures is available, belongs on the same comparison table as the algorithm parameters.
Summary
Fault injection pulls cryptographic security from mathematics back into the physical world: a single controllable error can feed differential analysis to recover a key, or skip a security check outright. There is no silver bullet in defence — sensors and redundant encodings make faults hard to trigger; redundant computation and infective designs make errors unexploitable; randomisation and attempt limits make retries uneconomical; and system-level loss control caps the damage. For any device an attacker can hold in their hands — cards, controllers, terminals — this evaluation should never be absent.
References
- Boneh, DeMillo, Lipton: On the Importance of Checking Cryptographic Protocols for Faults (EUROCRYPT 1997, public paper).
- Biham, Shamir: Differential Fault Analysis of Secret Key Cryptosystems (CRYPTO 1997, public paper).
- Public methodology documents on fault injection in Common Criteria and EMVCo secure-chip evaluations.
Tags: fault injectiondifferential fault analysissecure chipsphysical security