Work

Towards Robust Secure Compilation in Presence of Speculative Execution

Year: 2026
Type: conference-paper
Abstract: Time-based side-channel attacks have been known since 1996. Many such attacks use the differences in execution time between program executions caused e.g. by cache hits/misses or non-constant-time instructions. To counter them, programmers use constant time programming, a set of empirical rules that are supposed to avoid a secret leaking via execution time variations. However, until the discovery of the Spectre attack, the verifications were based on the instruction set architecture (ISA) specification that does not take into account speculative execution. Speculation widely varies between actual ISA implementations. Creating a precise model is mostly impractical for verification. In our current work, we incorporate speculative semantics into the compiler CompCert. An additional pass has been added that inserts speculation barriers in order to counter information leakage from transient executions. We have succeeded to prove the preservation of constant time for a simple and overly aggressive strategy, which inserts such barriers after each branch instruction. In this paper, we briefly describe the challenges that remain to be addressed.
Source: HAL
Language: English
Open Access status: green
OpenAlex ID: W7155656782
FWCI:
Cites:
Cited by:
Related to: 10