FreeSBee: A Constant-Time Compilation Pipeline
Julian Ganz, David Knothe, David Oswald, Sebastian Reiter, Thorben Schneider, Simon Wegener
Key points
From the paper's conclusion- We evaluate our workflow in detail on a realistic application running on a RISC-V core using both static timing analysis and statistical methods.
Abstract
Constant-time execution is an important security property, especially for IoT devices, that prevents the leakage of sensitive information over timing side-channels. However, achieving constant-time execution is very hard when going down to the cycle level, at least on realistic devices. A lot of research is concerned with producing tools that either determine whether code is constant-time or that ensure it is compiled into a constant-time binary, with various degrees of accuracy. In this work, we present and evaluate a full workflow for hardening against timing side-channels during compilation. It starts with taint analysis to determine the code locations that depend on sensitive information. These are then the object of automated control-flow transformations inside the compiler to seal possible timing side-channels. We evaluate our workflow in detail on a realistic application running on a RISC-V core using both static timing analysis and statistical methods. Even though we do not reach cycle-accurate constant-time execution, our statistical results suggest that our hardened binary is safe against timing attacks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Decompiling for Constant-Time AnalysisProceedings of the ACM on Programming Languages · 2026
- VellSSLH: Sound Type-Guided Selective Speculative Load Hardening for LLVM IRarXiv · 2026
- RACCO : Stateful and Cooperative Control‐Flow Integrity With Data‐Flow GuardingConcurrency and Computation: Practice and Experience · 2026
- SecDMP: Provably Secure Data Memory-Dependent Prefetching (Extended Version)arXiv · 2026
- No Bit Left Behind: Using Brute-Force Lifting to Achieve Fully Static Binary RecompilationarXiv · 2026
- Towards a Memory-Safe IEEE 802.15.4 TSCH MAC Layer with Hardware-Determined Timing in Rust.Sensors (Basel, Switzerland) · 2026