Preservation of Speculative Constant-Time by Compilation
Compilers often weaken or even discard software-based countermeasures commonly used to protect programs against side-channel attacks; worse, they may also introduce vulnerabilities that attackers can exploit. The solution to this problem is to develop compilers that preserve such countermeasures. Prior work establishes that (a mildly modified version of) the CompCert and Jasmin formally verified compilers preserve constant-time, an information flow policy that ensures that programs are protected against timing side-channel attacks. However, nothing is known about preservation of speculative constant-time, a strengthening of the constant-time policy that ensures that programs are protected against Spectre-v1 attacks. We first show that preservation of speculative constant-time fails in practice by providing examples of secure programs whose compilation is not speculative constant-time using GCC (GCC -O0 and GCC -O1) and Jasmin. Then, we define a proof-of-concept compiler that distills s
Preservation of Speculative Constant-Time by Compilation Paper 2024/1203 Preservation of Speculative Constant-Time by Compilation Santiago Arranz Olmos , Max Planck Institute for Security and Privacy Gilles Barthe , Max Planck Institute for Security and Privacy , IMDEA Software Lionel Blatter , Max Planck Institute for Security and Privacy Benjamin Grégoire , Research Centre Inria Sophia Antipolis Vincent Laporte , Centre Inria de l'Université de Lorraine Abstract Compilers often weaken or even discard software-based countermeasures commonly used to protect programs against side-channel attack
Explore this link on the map →related reading
- Speculation in JavaScriptCore | WebKitwebkit.org
- Assessing Claude Mythos Preview’s cybersecurity capabilities \ Anthropicred.anthropic.com
- What even is compiler correctness?williamjbowman.com
- 論文閱讀:Dude, is my code constant time? - HackMDhackmd.io
- NYSRGnotes.ekzhang.com
- Themes from Real World Crypto 2022 - The Trail of Bits Blogblog.trailofbits.com
- How Compiler Explorer Works in 2025 — Matt Godbolt’s blogxania.org
- Compilers - What Every Programmer Should Know About Compiler Optimizations | Microsoft Learnlearn.microsoft.com
- A shallow dive into formal verificationvitalik.eth.limo
- Google's Fully Homomorphic Encryption Compiler — A Primer || Math ∩ Programmingjeremykun.com
- Mitigating Memory-Safety Vulnerabilities | Computer Securitytextbook.cs161.org
- Side-channel attack - Wikipediaen.wikipedia.org