Wait a Cycle: Eroding Cryptographic Trust in Low-End Tees via Timing Side Channels
The growing interconnectivity of low-end embedded devices has spurred research into lightweight trusted execution environments (TEEs), which are designed to meet strict power, cost, and real-time constraints. A key focus has been on the development of dedicated frameworks and libraries to ensure message integrity and authenticity through strong, sometimes formally verified cryptography. However, existing security analyses commonly dismiss side channels, assuming that small microcontrollers are less susceptible to timing variations than high-end CPUs and that these variations are easily avoided by good programming practices. This paper systematically examines timing side channels in open-source low-end TEEs. We identify subtle vulnerabilities at different levels of the hardware-software stack: (1) the use of non-constant-time <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathrm{C} / \mathrm{C}++$</tex> standard library functions such as memcmp; (2) compiler-induced timing leaks for comparing primitive data values; and (3) a hardware-level timing flaw in the cryptographic core of the Sancus TEE. We experimentally validate these timing side channels and build practical exploits to break TEE security guarantees and inject forged messages. Our findings demonstrate that timing side channels pose a critical, yet often overlooked threat to low-end TEEs, underscoring the need for future security models to account for them.
Authors
- Márton Bognár (ORCID: https://orcid.org/0000-0002-8641-7549)
- Jo Van Bulck (ORCID: https://orcid.org/0000-0002-5953-9196)
- Ruben Van Dijck
Institutions
- KU Leuven (BE)
Publication Details
- Published
- 2025-06-30
- DOI
- https://doi.org/10.1109/eurospw67616.2025.00059
- Primary Topic
- Cryptographic Implementations and Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- KU Leuven
- Vlaamse regering
- HORIZON EUROPE Framework Programme