Ahmed Benlafqih

All projects

Breaking a Tegra X1: an RP2040 glitch modchip on a Switch Lite

Personal project · 2025

Voltage fault injection to defeat secure boot on a Nintendo Switch Lite (Tegra X1), using an RP2040 modchip — and why the silicon lets it happen.

In short

What it is
Installed an RP2040 glitch modchip on a Nintendo Switch Lite so the Tegra X1 boot ROM skips its signature check and runs unsigned code.
Why
To learn hardware fault injection hands-on: the one attack class that still breaks a modern secure-boot chain when the cryptography itself is sound.
My role
Personal project. Full install: schematic tracing for a custom 3.3 V tap, microsoldering to the SoC glitch points, and bring-up.
Domains and tech
IoT and embedded, Offensive security. RP2040 (PicoFly), voltage glitching, eMMC bus timing, Tegra X1 secure boot, Hekate, L4T.
Status
Personal project: Done on my own device, for learning. The write-up uses only publicly documented research; no payloads or offsets.. Working — the modchip glitches the boot and loads the payload. Booting Ubuntu to run the device as a home server is in progress.
Period
2025

Context and problem

A Nintendo Switch Lite runs on NVIDIA’s Tegra X1 “Mariko”. Its boot ROM — the first code the chip runs, burned into the silicon and impossible to change — is the hardware root of trust: it loads the first bootloader from the eMMC storage and verifies its signature before running it. If the signature doesn’t match, the chip refuses to run the code.

The earlier Switch had a software bug in this process (Fusée Gelée, CVE-2018-6242, a buffer overflow in the boot ROM’s USB recovery mode). On the Lite’s Mariko silicon that bug is closed. So the only way left to run your own code is a hardware fault-injection attack: physically disturbing the chip at the exact moment it checks the signature, so the check is skipped.

Personal project on my own device. Based on publicly documented research (the Fusée Gelée disclosure and the open hardware-glitching modchip community). No payloads, offsets or code are given.

The install

Close-up of the Switch Lite mainboard: an RP2040 modchip under kapton tape at top-left, wired to two glitch points labelled SP1 and SP2 on the Tegra SoC, with a red wire carrying 3.3 V.
The RP2040 modchip (top-left, under kapton tape) wired to the glitch points SP1 and SP2 on the Tegra SoC. The red wire carries 3.3 V from a point I traced from the schematics.Photo, my install

The chip is a PicoFly — an RP2040-based glitch modchip. It connects to three things on the board: the eMMC clock and data lines (to read the boot timing), the glitch points on the SoC core voltage (to inject the fault), and a 3.3 V supply.

The PicoFly RP2040 modchip and its flex cables laid out on a mat beside a ruler, about three centimetres across.
The kit before fitting: the PicoFly OLED Lite V2 (RP2040) with its glitch flex, data/clock flex, 3.3 V flex and a replacement USB-C port — roughly 3 cm across.Photo, my parts

How the glitch works

  1. At power-on, the Tegra boot ROM loads the first bootloader from eMMC and verifies its signature before executing it.
  2. The modchip watches the eMMC clock and data lines, so it knows the exact instant the boot ROM reaches that check.
  3. At that instant, the RP2040 — using its PIO (programmable I/O) state machines for cycle-accurate timing — drives a transistor that drops the SoC core voltage for a few nanoseconds. That is the glitch, injected at the SP1/SP2 points.
  4. The brief under-voltage makes the processor miscompute one instruction: the comparison that decides “is the signature valid?”. The check is effectively skipped, and the boot ROM goes on to run unsigned code — a bootloader (Hekate) loaded from the SD card.
  5. The exact timing window is tiny, so the attack is probabilistic: the chip retries, nudging the timing and pulse width, until the glitch lands.
The gold Switch Lite powered on, showing a winged-raspberry logo and the words No SD Card.
It worked: the modchip glitched the boot and took control. The winged-raspberry logo and 'No SD Card' mean the chip's firmware is running and waiting for the SD payload.Photo, first boot after install

Why it works — and why it’s a Tegra X1 weakness

You don’t break the cryptography; you skip the check. The boot ROM is mask ROM — it can’t be patched — and it performs secure-boot verification with no fault-injection countermeasures: no voltage- or clock-glitch detectors, no redundant verification, no control-flow integrity on that path. A hardware root of trust is only as strong as its weakest physical link, and here a single well-timed voltage droop defeats the entire chain of trust.

That is the lesson that carries straight into IoT and embedded security: strong signatures protect nothing if the silicon never checks that the check itself actually ran. Fault injection is a standard concern for secure boot, secure elements and payment hardware, and this is a clean, hands-on example of it.

My contribution: a cleaner 3.3 V tap

The modchip needs a 3.3 V supply. The point most installs use sits directly on a capacitor pad. I traced an alternative 3.3 V point from the board schematics and tapped that instead (the red wire). Soldering onto a capacitor terminal is mechanically fragile — it is easy to lift the pad or the capacitor, and the joint takes all the strain of the wire — whereas a dedicated rail point gives a sturdier joint and doesn’t disturb a decoupling capacitor on the board.

I also protected the work for reliability: the modchip is wrapped in heat-resistant insulation tape so it stays isolated under rework temperatures, and the mod points are covered with UV-curable solder mask to harden and protect the joints.

What’s next

The Tegra X1 is the same SoC family as NVIDIA’s Jetson and Shield, so the L4T (Linux for Tegra) stack runs on it. With unsigned-code boot in place, the next step is booting Ubuntu on the device and using it as a low-power ARM home server, potentially to self-host some of my own tools. That part is in progress — I’ll update this page as it moves.

Scope and limits

This was done on my own device, to learn hardware fault injection. It is not a finding about anyone’s system, and the write-up deliberately leaves out payloads, offsets and exact solder coordinates — it describes the mechanism and the lesson, not a recipe.