Course contentsShow
← Security
Lesson 2774 of 3,05252. Embedded and IoT SecurityFree lesson

Fault Injection Attacks

Techniques like voltage glitching and clock manipulation to induce computational errors and bypass security checks.

Fault Injection Attacks

What you'll learn: How attackers deliberately corrupt hardware execution by manipulating voltage or clock signals to bypass security checks and extract secrets.

The Attack Strategy

While side-channel attacks observe physical characteristics to leak secrets, fault injection attacks actively manipulate the physical environment to make hardware misbehave. Think of it like jamming a radio signal: instead of just listening, you're introducing noise to disrupt the intended operation.

Attackers trigger computational errors at precise moments—during cryptographic operations, authentication checks, or signature verification—to make secure code produce exploitable results.

Core Techniques

Voltage Glitching

Temporarily dropping or spiking the power supply voltage causes the processor to misinterpret instructions or skip operations entirely. A power dip during an if (password_correct) check might cause the CPU to skip the comparison, treating any input as valid.

Clock Manipulation

Increasing the clock frequency beyond design specs or injecting irregular clock pulses causes timing violations. Transistors don't fully settle before the next operation, producing corrupted data. A cryptographic key byte might flip from 0xA7 to 0xA5, or a loop counter might skip values.

Attack Objectives

  • Bypass authentication: Skip password checks or signature validation
  • Extract keys: Force algorithms to reveal secret material through predictable errors
  • Privilege escalation: Corrupt security flags or permission bits
  • Defeat secure boot: Make verification routines return "success" without checking

Real-World Impact

Fault injection has compromised smart cards, payment terminals, and firmware update mechanisms. Unlike side channels, these attacks require precise timing (microseconds) and physical access to the target's power or clock lines.

Key Takeaway: Fault injection attacks exploit the physical vulnerability of processors to environmental manipulation, causing security-critical code to fail open or leak secrets—defenses include voltage sensors, clock monitors, and redundant security checks.