readout protection

term

securityhacking

Kept 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

← Back to R Back to the glossary