Fault Injection Attacks Explained: Breaking Chips With Physics

Sophisticated cryptography falls to crude physics: a precisely timed voltage dip can skip a security check, a laser pulse can flip a key bit, an electromagnetic burst can corrupt an instruction. Fault injection attacks weaponize physics against logic, bypassing protections mathematics proves sound. This article explains how chips get broken by glitches and how they fight back.

Glitching 101: Breaking Assumptions With Physics

Digital logic assumes stable voltage, clean clocks, and timely signals; fault injection violates those assumptions at critical moments. A voltage droop slows gates until setup times fail, latching wrong values; a shortened clock cycle truncates computation mid-flight; a laser pulse injects charge flipping bits directly. Each technique corrupts precisely targeted operations while leaving surrounding logic intact.

Precision separates attacks from crashes: glitch parameters like timing, duration, and amplitude sweep methodically until security checks skip or keys leak. Automation explores parameter spaces across thousands of attempts, with success detectors recognizing bypassed verifications or faulty outputs. Attackers need one exploitable fault; defenders must prevent them all. Asymmetry favors physics over logic.

Voltage and Clock Glitching

Voltage glitching momentarily starves chips through crowbar circuits shorting supplies or programmable regulators dipping rails: instruction fetches corrupt, branch decisions flip, and loop counters skip. Cheap equipment suffices, with hobbyist rigs built from FPGAs and MOSFETs defeating real products. Short dips target single instructions; shaped profiles defeat brownout detectors.

Clock glitching inserts extra edges or truncates periods, violating timing on chosen cycles. Overclocking bursts compute wrong results deterministically; inserted glitches skip individual instructions. Phase-locked loops resist moderate abuse but pass fast transients; asynchronous designs complicate timing prediction. Both techniques need only board-level access, threatening every device attackers physically hold. Trust anchors under attack appear in our secure boot guide.

Electromagnetic Fault Injection

EMFI fires intense magnetic pulses through tiny coils positioned over chips, inducing eddy currents that flip bits without physical contact or decapsulation. Spatial precision reaches sub-millimeter scales, targeting AES rounds or CPU pipelines selectively; temporal precision hits chosen clock cycles. Plastic packages barely attenuate pulses, leaving most devices exposed.

Injection probes range from hand-wound coils to precision stages scanning chips systematically, building fault maps correlating positions with effects. Shielding, package choice, and layout countermeasures raise attack costs; detection circuits sense anomalous EM environments. Contactless fault injection scales attacks to sealed devices, defeating assumptions that packaging protects logic.

Lasers and Optical Fault Injection

Decapsulated chips face focused laser pulses injecting photocurrents into chosen transistors: front-side attacks through windows or thinned passivation, back-side attacks through polished silicon transparent to infrared. Spot sizes reach single gates; timing locks to clock edges or triggered events. Lasers flip bits, set latches, and rewrite SRAM surgically.

Equipment costs span hobbyist laser pointers modified for pulsing through six-figure failure-analysis stations with galvanometer scanning. Countermeasures include light sensors triggering alarms, redundant logic voting out corrupted copies, and layout techniques minimizing sensitive areas. Optical probing combines faults with observation, reading signals through electro-optical effects. Transparency cuts both ways: defenders inspect with photons, attackers inject with them.

What Attackers Target

Secure boot verification tops target lists: skipping signature checks boots attacker firmware with full privileges, defeating entire chains of trust. PIN verification routines fall to skipped comparisons; retry counters reset through corrupted decrements. One skipped branch can collapse layered defenses, making fault resistance existential for boot code.

Cryptographic implementations leak keys through differential fault analysis: comparing correct and faulty ciphertexts reveals key bytes mathematically, with a handful of well-placed faults sufficing for AES. Redundant rounds and infective computation propagate faults into useless outputs rather than informative ones. Attack context parallels techniques in our hardware security guide. Faults turn math against itself.

Defenses: Redundancy, Sensors, and Design

Redundant execution detects corruption: dual-rail logic computes twice and compares, lockstep cores vote on results, and software double-checks critical decisions with diversified code. Temporal redundancy re-executes operations; information redundancy adds error-detecting codes. Overhead ranges from modest duplication to tripled costs for critical paths.

On-chip monitors sense hostile environments: voltage detectors flag droops, clock monitors catch glitches, temperature and light sensors detect physical attacks, as covered in our monitor guide. Responses escalate from retries through resets to zeroization. Secure coding practices minimize single points of failure, spreading checks across time and code. Defense in depth assumes some faults land.

Software countermeasures complement hardware: redundant condition checks with inverted logic catch skipped branches, loop counters verified after completion detect iteration skipping, and random delays desynchronize timed glitches. Compilers can automate duplication of critical operations. Layered software defenses raise attack costs even on unhardened silicon.

Fault Injection in Certification Labs

Security certifications demand demonstrated fault resistance: evaluators attempt glitching, EMFI, and laser attacks against submitted chips, rating assurance by attacker resources defeated. Common Criteria vulnerability assessment scales from basic to high attack potential; EMVCo and FIPS add domain-specific fault testing. Passing requires surviving experts with professional equipment and months of effort.

Pre-certification testing integrates into development: design teams glitch prototypes early, hardening failures before formal evaluation. Fault simulators model effects pre-silicon; laser scanning validates post-silicon. Certification costs reward getting resistance right during design rather than patching after evaluation failures. Labs break chips professionally so criminals cannot break them casually.

Physics Always Gets a Vote

Fault injection reduces security to physics: voltage dips skip instructions, clock glitches corrupt timing, electromagnetic pulses flip bits contactlessly, lasers rewrite chosen gates, all targeting boot checks and crypto implementations defenders must harden through redundancy, sensors, and careful design. Mathematics proves algorithms; physics tests implementations. Chips operate in the real world, where voltage droops and photons intrude. Assume hostile physics.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *