Lune

Abstract

—Recent attacks have demonstrated that modern microarchitectures are fraught with microarchitectural side channels. Constant-time (CT) programming is a software development methodology where programs are carefully written to avoid these channels. In a nutshell, the idea is to only pass secret data to safe instructions, i.e., those whose execution creates operand-independent hardware resource usage. Yet, current CT programming practices have significant security and performance issues. CT code is written and compiled once, but may execute on multiple different microarchitectures. Yet, what instructions are safe vs. unsafe is fundamentally a microarchitecture-specific issue. A new microarchitectural optimization (or vulnerability) may change the set of safe instructions and break CT guarantees. In this work, we develop SYNTH CT to address the above issues. Given a specification of safe/unsafe instructions, SYNTH CT automatically synthesizes translations for all unsafe instructions in the ISA using only instructions from the safe set. The synthesized translations can be used as a part of a late-stage compiler pass to generate hardened binaries for a specific microarchitecture. This closes the security hole as the specification, and hence the safe translations, can target each microarchitecture individually. This also allows CT code to reclaim some performance, e.g., use more complex/higher-performing instructions, when they are deemed safe for a specific microarchitecture. Using the techniques we develop in SYNTH CT, we are able to synthesize translations for a majority of the x86 64 ISA. Specifically, SYNTH CT is able to generate safe translations for 75% of the ISA using only the remaining 25% of the ISA. Interestingly, the majority of the instructions that SYNTH CT was unable to generate translations for are instructions that experts believe are safe instructions on today’s x86 64 microarchitectures.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Architectural Mimicry: Innovative Instructions to Efficiently Address Control-Flow Leakage in Data-Oblivious Programs cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • Core slicing: closing the gap between leaky confidential VMs and bare-metal cloud cites Spectre Attacks: Exploiting Speculative Execution
  • RTL2MμPATH: Multi-μPATH Synthesis with Applications to Hardware Security Verification cites Spectre Attacks: Exploiting Speculative Execution
  • RTL2MμPATH: Multi-μPATH Synthesis with Applications to Hardware Security Verification cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • RTL2MμPATH: Multi-μPATH Synthesis with Applications to Hardware Security Verification cites Serberus: Protecting Cryptographic Code from Spectres at Compile-Time
  • RTL2MμPATH: Multi-μPATH Synthesis with Applications to Hardware Security Verification cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • A Systematic Evaluation of Transient Execution Attacks and Defenses cites Spectre Attacks: Exploiting Speculative Execution
  • Serberus: Protecting Cryptographic Code from Spectres at Compile-Time cites Spectre Attacks: Exploiting Speculative Execution
  • Serberus: Protecting Cryptographic Code from Spectres at Compile-Time cites A Systematic Evaluation of Transient Execution Attacks and Defenses
  • Serberus: Protecting Cryptographic Code from Spectres at Compile-Time cites ZeroTrace : Oblivious Memory Primitives from Intel SGX
  • Serberus: Protecting Cryptographic Code from Spectres at Compile-Time cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • ZeroTrace : Oblivious Memory Primitives from Intel SGX cites Oblivious Multi-Party Machine Learning on Trusted Processors
  • ZeroTrace : Oblivious Memory Primitives from Intel SGX cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Serberus: Protecting Cryptographic Code from Spectres at Compile-TimeNicholas Mosier, Hamed Nemati, John C. Mitchell, Caroline TrippelS&P 2024 · 16 citations
  2. Core slicing: closing the gap between leaky confidential VMs and bare-metal cloudZiqiao Zhou, Yizhou Shan, Weidong Cui, Xinyang Ge et al.OSDI 2023 · 12 citations
  3. RTL2MμPATH: Multi-μPATH Synthesis with Applications to Hardware Security VerificationYao Hsiao, Nikos Nikoleris, Artem Khyzha, Dominic P. Mulligan et al.MICRO 2024 · 12 citations
  4. Architectural Mimicry: Innovative Instructions to Efficiently Address Control-Flow Leakage in Data-Oblivious ProgramsHans Winderix, Marton Bognar, Job Noorman, Lesly-Ann Daniel et al.S&P 2024 · 5 citations
  5. Synthesizing axiomatizations using logic learningPaul Krogmeier, Zhengyao Lin, Adithya Murali, P. MadhusudanOOPSLA 2022 · 3 citations

Builds on20

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. Oblivious Multi-Party Machine Learning on Trusted ProcessorsOlga Ohrimenko, Felix Schuster, Cédric Fournet, Aastha Mehta et al.USENIX Security 2016 · 594 citations
  3. A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp et al.USENIX Security 2019 · 442 citations
  4. Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGXWenhao Wang, Guoxing Chen, Xiaorui Pan, Yinqian Zhang et al.CCS 2017 · 403 citations
  5. ZeroTrace : Oblivious Memory Primitives from Intel SGXSajin Sasy, Sergey Gorbunov, Christopher W. FletcherNDSS 2018 · 244 citations

Related papers

  1. Constantine: Automatic Side-Channel Resistance Using Efficient Control and Data Flow LinearizationPietro Borrello, Daniele Cono D'Elia, Leonardo Querzoni, Cristiano GiuffridaCCS 2021 · 43 citations
  2. Towards a formally verified hardware root-of-trust for data-oblivious computingLucas Deutschmann, Johannes Müller, Mohammad Rahmani Fadiheh, Dominik Stoffel et al.DAC 2022 · 11 citations
  3. Helium: Quantifying Microarchitectural Side-Channel Leakage with Probabilistic GuaranteesSamantha Archer, Mohammad Rahmani Fadiheh, Caroline TrippelISCA 2026
  4. Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-LevelLesly-Ann Daniel, Sébastien Bardin, Tamara RezkS&P 2020 · 76 citations
  5. Constant-time foundations for the new spectre eraSunjay Cauligi, Craig Disselkoen, Klaus von Gleissenthall, Dean M. Tullsen et al.PLDI 2020 · 90 citations
Dusk over the sea between two cliffs drawn in fine vertical lines