1 of 18

Breaking Trust in Secure Boot Using Voltage Glitching on Commodity MCUs���By – Nabhonil Bhattacharjee

Seasides Conference Goa 2026

1

2/20/2026

2 of 18

Hardware Glitching Attack on ATmega328P

Power-line fault injection represents a practical, low-cost attack vector capable of disrupting instruction execution in embedded microcontrollers. This proof-of-concept demonstrates controlled voltage manipulation to induce transient computational faults in the ATmega328P architecture.

2

3 of 18

3

4 of 18

RESEARCH GOALS

Experimental Objectives

Physical Setup

Construct a minimal, reproducible glitching apparatus using readily available components and standard laboratory equipment.

Instruction Disruption

Demonstrate measurable alteration of program control flow through precisely-timed voltage transients during execution.

Behavioral Anomalies

Document observable firmware behavior that violates programmed logic, confirming successful fault injection.

Security Analysis

Contextualize findings within embedded security frameworks to inform countermeasure development and secure design practices.

4

5 of 18

5

6 of 18

6

7 of 18

7

8 of 18

8

9 of 18

PROGRAMMING PHASE

Firmware Upload via In-Circuit Serial Programming

ArduinoISP Sketch

Convert Arduino Nano into temporary SPI programmer by uploading stock ISP firmware from Arduino IDE.

SPI Wiring

Connect MOSI (D11), MISO (D12), SCK (D13), and RESET pins between programmer and target ATmega328P.

Bootloader Burn

Initialize fuse bits and flash Arduino bootloader to enable subsequent firmware updates via serial interface.

Test Firmware Upload

Program vulnerable test code through ISP connection before reconfiguring Nano as glitch generator.

9

10 of 18

10

11 of 18

ATTACK MECHANISM

Power-Line Glitching Implementation

MOSFET Switching

IRL540N N-channel device inserted between 5V rail and target VCC. Gate driven by Arduino digital pin.

Pulse Generation

Arduino outputs rapid LOW pulses (5–50 µs) at irregular intervals to gate pin, briefly cutting power to target MCU.

Voltage Transients

MOSFET turn-off creates brief supply voltage drops. MCU logic experiences timing uncertainty during critical operations.

Instruction Disruption

If glitch coincides with compare/branch execution, CPU may skip instruction or corrupt register state, bypassing counter reset.

The MOSFET acts as a controllable bottleneck, allowing precise manipulation of power delivery without risking damage to the Arduino's GPIO pins, which have limited current capacity (~40 mA per pin).

11

12 of 18

13 of 18

14 of 18

15 of 18

Experimental Results and Attack Success

Observed Outcome

After approximately 60 minutes of continuous glitch injection with randomized pulse timing and duration parameters, the LCD displayed the target emoticon ';)' character—a sentinel value programmed to appear only when counter exceeds the theoretical maximum of 10.

This unambiguous behavioral anomaly confirms successful instruction-level fault injection. The glitch disrupted program flow at the conditional boundary, allowing the counter variable to enter a state explicitly prohibited by the firmware logic.

Success rate was approximately 1 in ~600 glitch attempts, highlighting the probabilistic nature of fault injection and the importance of timing precision in practical attacks.

15

16 of 18

Security Implications and Countermeasures

Authentication Bypass

Glitching can skip password verification checks, PIN comparison routines, or cryptographic signature validation, granting unauthorized access to protected systems.

Secure Boot Subversion

Faults injected during bootloader execution may allow unsigned firmware to run, defeating code integrity protections fundamental to trusted computing.

Cryptographic Key Extraction

Differential fault analysis techniques can exploit computation errors in AES, RSA, or ECC algorithms to leak secret key material through repeated controlled faults.

Defensive Strategies

Hardware: glitch detectors, voltage monitors, clock integrity checks. Software: redundant operations, control flow integrity verification, randomized execution timing.

"Even simple, unprotected microcontrollers demonstrate fundamental vulnerability to fault injection. As embedded devices proliferate in security-critical applications—automotive, medical, IoT—understanding and mitigating these attack vectors becomes essential for trustworthy system design."

16

17 of 18

17

Thank you…

18 of 18

18