Bao'An Shenzhen China

Voltage Glitch Attack Chip | Fault Injection Explained

Published · About 8 min read · PCB-Copy

On this page
  1. What Is a Voltage Glitch Attack on a Chip?
  2. How Does a Voltage Glitch Attack Chip Method Actually Work?
  3. Which Chip Families Are Vulnerable to a Voltage Glitch Attack?
  4. Equipment Used for a Voltage Glitch Attack on a Chip
  5. What Can Go Wrong — Failure Modes and Limits
  6. Is Voltage Glitching Legal?
  7. Voltage Glitching vs. Other Fault Injection Methods
  8. Practical Example: Glitching an ARM Cortex-M0 Target
  9. Frequently Asked Questions About Voltage Glitch Attack Chip Techniques

What Is a Voltage Glitch Attack on a Chip?

A voltage glitch attack chip technique is a hardware fault-injection method where a brief, controlled dip in the supply voltage causes a microcontroller’s CPU to misexecute an instruction — typically the security check that guards flash readout. The glitch lasts between 5 ns and 200 ns, drops VCC by 0.4 V to 1.8 V below nominal, and must land within a window as narrow as one clock cycle. When it works, the processor skips the branch that enforces read protection, and firmware can be extracted through the standard debug interface.

This method is one of several fault-injection approaches — alongside electromagnetic pulse injection and laser fault injection — but voltage glitching remains the most accessible and widely used because the equipment cost is relatively low and the technique is non-destructive when executed correctly.

How Does a Voltage Glitch Attack Chip Method Actually Work?

voltage glitch attack chip: ChipWhisperer glitch platform connected to a target microcontroller for voltage fault injection

Every secured MCU follows the same basic boot sequence: power-on reset → check fuse/option bytes → if protection is set, disable debug access. The voltage glitch targets the exact clock cycle where the CPU evaluates that protection flag. By momentarily starving the core of voltage, the comparison instruction produces a wrong result, and the “protection enabled” branch is never taken.

Step-by-Step Attack Flow

  1. Target profiling. The engineer maps the MCU’s power-on reset timing using an oscilloscope (≥ 1 GHz bandwidth). The goal is to find the time offset from the rising edge of VCC to the security-check instruction — typically 2 µs to 50 ms after reset, depending on the boot ROM length.
  2. Glitch parameter selection. Two variables matter most: delay (time from trigger to glitch) and width (glitch duration). Both are swept in a grid search, often across tens of thousands of iterations.
  3. Glitch injection. A MOSFET crowbar circuit or dedicated glitcher (ChipWhisperer, custom FPGA boards) pulls VCC low for the programmed width at the programmed delay.
  4. Result check. After each glitch attempt the debug port is probed. If the device responds with an unlocked state, firmware is read out. If not, the chip is power-cycled and the next parameter set is tried.
  5. Verification. The extracted binary is checksummed against known program size and compared to a second successful read to rule out bit errors caused by the glitch itself.

Critical Timing Parameters

Parameter Typical Range Resolution Needed
Glitch delay (from trigger) 2 µs – 50 ms ≤ 10 ns steps
Glitch width 5 ns – 200 ns ≤ 2.5 ns steps
Voltage drop (below nominal) 0.4 V – 1.8 V 50 mV increments
Repeat attempts per parameter set 3 – 10 —
Total search space (typical) 5,000 – 500,000 iterations —

Our engineers typically run automated sweeps overnight. A well-characterized target can yield results in under an hour; an unfamiliar die revision may require 48+ hours of parameter exploration.

Which Chip Families Are Vulnerable to a Voltage Glitch Attack?

Not every MCU responds to voltage glitch attack chip methods equally. Success depends on the silicon design — specifically whether the chip has on-die voltage regulation, glitch detectors, or redundant security checks. Below is a realistic breakdown based on our lab experience.

MCU Family / Type Glitch Susceptibility Notes
STM32F0 / F1 / F4 (early revisions) Moderate–High Older silicon revisions lack robust brown-out detection; newer revisions add glitch filters
NXP Kinetis MKE02, MK60 Moderate Some parts respond to combined reset + VCC glitch; MKE02 recovery details and MK60 recovery details cover specifics
Microchip PIC12 / PIC16 High (older OTP/flash) Minimal on-chip countermeasures on legacy nodes; see our PIC12 unlock service
Nuvoton NUC131 Moderate Responds to carefully timed VCC drops during ISP handshake
Infineon XC866 Low–Moderate On-die voltage regulator dampens external glitches; alternative semi-invasive methods sometimes needed
Renesas R5F Variable by sub-family Some R5F parts use dual-rail supply; glitching the I/O rail alone is insufficient
Cypress CY8C (PSoC) Low Hardware security module with active tamper detection; glitching alone rarely succeeds

Chips with dedicated security co-processors (e.g., Infineon OPTIGA, Microchip ATECC608) are generally immune to simple voltage glitching. For these targets, other approaches — or a determination that readout is not feasible — are the honest answer.

Equipment Used for a Voltage Glitch Attack on a Chip

Glitch Generation Hardware

  • ChipWhisperer (Husky / Pro): Open-source platform with sub-nanosecond timing resolution. Our lab uses the Pro variant with custom target boards.
  • Custom FPGA glitcher: Xilinx Artix-7 or Lattice iCE40 driving a high-speed MOSFET. Gives full control over pulse shape and multi-glitch sequences.
  • Crowbar MOSFET circuit: A simple NMOS (e.g., BSS138 for low-power targets, IRF3205 for higher-current rails) switched by a pulse generator. Cost-effective but less repeatable than FPGA-based setups.

Support Instruments

  • Oscilloscope: ≥ 1 GHz, ≥ 5 GS/s — essential for verifying glitch shape and timing on the actual VCC pin.
  • Current probe: monitors supply current to detect when the CPU enters different boot phases.
  • Level shifter / target adapter: matches glitcher output to the target’s voltage domain (1.8 V, 3.3 V, or 5 V).

What Can Go Wrong — Failure Modes and Limits

Voltage glitching is not a guaranteed technique. Transparency about failure modes matters more than marketing claims.

  • Glitch too deep / too wide: The MCU enters brown-out reset instead of skipping an instruction. No data is read; the chip simply reboots. This is the most common benign failure.
  • Glitch lands on wrong instruction: The CPU corrupts a register unrelated to security, causing a hard fault or watchdog reset. Again, non-destructive but wastes time.
  • Flash corruption (rare): If the glitch occurs during an internal flash operation — e.g., if the boot ROM copies calibration data — a few bytes of flash can be corrupted. Risk is under 0.1 % per our logs across ~4,000 attempts, but it is non-zero.
  • On-die countermeasures trigger: Some newer chips permanently lock (brick) when they detect repeated glitch attempts. STM32L4+ and STM32H7 with RDP Level 2 are examples — once tripped, no recovery is possible.
  • Decapsulation required: If the external VCC is heavily filtered on-die, the glitch never reaches the core. Semi-invasive access (chemical decap + direct probing of the die VDD pad) may be needed, raising cost and turnaround.

We always run a free feasibility assessment before committing to a voltage glitch attack chip campaign. If the part is unlikely to respond, we say so upfront.

Is Voltage Glitching Legal?

Oscilloscope capture showing a voltage glitch pulse on a chip supply rail

Voltage glitch attacks exist in a legal gray area that depends entirely on authorization. Recovering firmware from a chip you designed and own — for legacy maintenance, second-source production, or disaster recovery — is legitimate in most jurisdictions. Extracting proprietary code from a competitor’s product is not. Our policy requires proof of ownership or written authorization before any work begins, and we decline jobs that lack it. For a deeper discussion, read our page on whether IC unlock is legal.

Voltage Glitching vs. Other Fault Injection Methods

Method Equipment Cost Precision Invasiveness Best For
Voltage glitching $500 – $5,000 ~10 ns Non-invasive MCUs with external VCC access
EM fault injection $3,000 – $20,000 ~1 ns (localized) Non-invasive to semi-invasive Chips with on-die voltage regulators
Laser fault injection $50,000+ Sub-ns, single-transistor Semi-invasive (decap required) High-security targets, smartcards
Clock glitching $200 – $2,000 ~1 clock cycle Non-invasive Parts with external clock input

Voltage glitching hits the sweet spot of cost, speed, and non-destructiveness for the majority of commercial MCUs. When it fails, EM injection is usually the next step our lab evaluates.

Practical Example: Glitching an ARM Cortex-M0 Target

On a recent authorized recovery project, our team needed to extract 64 KB of firmware from a Cortex-M0-based controller whose SWD port was locked via a read-protection option byte. Here is how the voltage glitch attack on the chip played out:

  1. Oscilloscope measurement showed the security-check window at approximately 1.2 ms after the reset pin went high.
  2. We set the glitcher to sweep delay from 1.10 ms to 1.35 ms in 50 ns steps, with glitch widths from 20 ns to 80 ns in 5 ns steps — roughly 25,000 total combinations.
  3. After ~8,400 iterations (about 3.5 hours), the SWD port responded with an unlocked device ID.
  4. Full flash was read in 1.8 seconds. A second successful glitch 200 iterations later produced an identical binary (SHA-256 match), confirming data integrity.

Total turnaround for this chip: under one working day from sample receipt to delivered .bin file.

Frequently Asked Questions About Voltage Glitch Attack Chip Techniques

Does a voltage glitch attack damage the chip?

In the vast majority of cases, no. The glitch is brief enough that it causes a logic error without exceeding the absolute maximum ratings of the silicon. Across thousands of attempts in our lab, permanent damage from voltage glitching alone has occurred in fewer than 0.05 % of cases — and only on parts where the glitch amplitude was set excessively high during early parameter exploration.

How long does a voltage glitch attack chip campaign take?

For well-characterized MCU families, results often come within 1–4 hours of automated sweeping. Unknown or heavily protected parts may require 2–5 working days of parameter tuning and possibly switching to alternative injection methods. We provide a time estimate after the initial feasibility check.

Can voltage glitching bypass RDP Level 2 on STM32?

No. RDP Level 2 on STM32 parts is a permanent, irreversible lock enforced by blown OTP fuses. A voltage glitch attack chip method targets software-evaluated flags, not hardware fuses. Once Level 2 is set, no known non-invasive technique can recover the firmware.

Do I need to send the physical chip for a voltage glitch attack?

Yes. Voltage glitching requires direct electrical access to the target’s VCC and reset pins. Remote or software-only approaches do not apply. We accept samples worldwide under NDA with tracked shipping both ways. Learn more about our authorization and trust policies.

If you have a locked microcontroller and need authorized firmware recovery, start with a no-cost feasibility review. Our engineers will assess whether a voltage glitch attack — or an alternative technique — is the right path for your specific chip.

Check feasibility for your project

Send the chip marking or board details and tell us what you need to recover. Add clear photos if available.

Request a feasibility review
TURN THE GUIDE INTO A PROJECT QUESTION

What do you need to recover?

Send the full marking or board photos, sample condition and required outcome. Ask for an NDA before sharing confidential files. Scope and sample handling are confirmed individually.

The article title is carried into the contact form. Add your own details and review the enquiry before sending.

WhatsApp Send board details