Flash timing exposes table-based AES keys on microcontrollers
Colin O'Flynn demonstrates AES key recovery from timing collisions in microcontroller flash accesses, including network and wireless application examples. The attack targets table-based software AES under repeated fixed keys with suitable known inputs or outputs and measurable timing. Hardware AES and bitsliced implementations are outside this leakage path; AES's mathematical design is not broken.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
The cleanest library example needs as few as 750 traces, but real applications have much larger acquisition costs. A stock RIOT 2026.07 wireless configuration on nRF52840 uses software AES despite available hardware and returns secured ping replies that expose a timing oracle. The CTAP2 example uses a specialized USB host and needs roughly 24.5 hours of bus capture plus twelve minutes of offline CPU/GPU search.
Other demonstrations deliberately change ROM-table, flash-wait-state or memory-alias settings. The paper expressly states that its SBSFU v2.7.0 bootloader example is not fully stock. Mitigations include enabling hardware AES, using table-free bitslicing, or validating RAM-table placement on the actual target. Vendor notifications and changes are described, but no universal fixed-version list is established.
Sources
- primary disclosureBeyond the Scope of This Paper: Practical Flash-Accelerator and Cache-Collision Timing Attacks on MicrocontrollersIACR ePrint, eprint.iacr.org
- primary disclosureFull paper: threat model, application results and disclosureIACR ePrint, eprint.iacr.org