readout protection
termKept in this browser · My desk
A microcontroller setting that blocks reading the chip's internal flash memory, and often its debug port, so that firmware and keys cannot be copied out through JTAG or SWD.
STMicroelectronics' STM32F0 family has three readout protection (RDP) levels, as Obermaier and Tatschner describe them at USENIX WOOT 2017: Level 0 without restrictions, Level 1 that keeps debug active but locks flash when a debugger connects, and Level 2 that disables debug permanently and cannot be undone. They showed attacks on Level 1 by cold-boot stepping, a downgrade and a debug race. Nordic calls its equivalent APPROTECT; Espressif disables JTAG when security features are on.
Encoding. On the STM32F0 an option byte of 0xAA (with complement 0x55) means Level 0, 0xCC (with 0x33) Level 2, and any other combination Level 1, so corruption fails towards protection. Why weaker levels persist. The researchers found that companies keep Level 1 because full lockdown makes failed devices hard to repair, and some families lack Level 2. Bypasses by glitching. Espressif's advisory of 1 November 2019 (CVE-2019-17391) describes fault injection after reset corrupting eFuse read protection; its answer was a new chip revision with ROM checks, Secure Boot V2 and per-device keys, and no software fix for deployed chips. In 2020 Nordic's APPROTECT was bypassed by voltage glitching. Defence in depth. Pair readout protection with encrypted flash, per-device keys and anti-glitch hardware.
Also known as: read-out protection, readback protection, flash readout protection, approtect, proteção de leitura
Sources
- Obermaier and Tatschner, Shedding too much Light on a Microcontroller's Firmware Protection, USENIX WOOT 2017 (read 2026-11-16): STM32F0 RDP Levels 0, 1 and 2; option bytes 0xAA/0x55 and 0xCC/0x33; cold-boot stepping, downgrade and debug race; why Level 1 persists
- Espressif, Security Advisory Concerning Fault Injection and eFuse Protections (CVE-2019-17391), 1 November 2019 (read 2026-11-16): glitching after reset bypasses eFuse read protection; ESP32-D0WD-V3 ROM checks; per-device keys; no software mitigation for deployed chips
- CNX Software, 15 June 2020 (read 2026-11-16): nRF52 APPROTECT readback protection bypassed by voltage glitching; mitigations limited to physical access control and enclosure-breach response
- Espressif, ESP-IDF security overview for ESP32 (read 2026-11-16): JTAG stays disabled when any security feature is enabled; can be disabled by eFuse