Avoiding Instruction-Centric Microarchitectural Timing Channels Via Binary-Code Transformations
Open Access
- 27 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 120-136
Abstract
With the end of Moore's Law-based scaling, novel microarchitectural optimizations are being patented, researched, and implemented at an increasing rate. Previous research has examined recently published patents and papers and demonstrated ways these upcoming optimizations present new security risks via novel side channels. As these side channels are introduced by microarchitectural optimization, they are not generically solvable in source code. In this paper, we build program analysis and transformation tools for automatically mitigating the security risks introduced by future instruction-centric microarchitectural optimizations. We focus on two classes of optimizations that are not yet deployed: silent stores and computation simplification. Silent stores are known to leak secret data being written to memory by dropping in-flight stores that will have no effect. Computation simplification is known to leak operands to arithmetic instructions by shortcutting trivial computations at execution time. This presents problems that classical constant-time techniques cannot handle: register spills, address calculations, and the micro-ops of complex instructions are all potentially leaky. To address these problems, we design, implement, and evaluate a process and tool, cio, for detecting and mitigating these types of side channels in cryptographic code. cio is a backstop, providing verified mitigation for novel microarchitectural side-channels when more specialized and efficient hardware or software tools, such as microcode patches, are not yet available.Keywords
Funding Information
- National Science Foundation (2140004, 2154183)
This publication has 41 references indexed in Scilit:
- Opening Pandora’s Box: A Systematic Study of New Ways Microarchitecture Can Leak Private Data2021
- Spectre Attacks: Exploiting Speculative Execution2019
- BAP: A Binary Analysis Platform2011
- Z3: An Efficient SMT Solver2008
- Energy and Performance Trade-offs between Instruction Reuse and Trivial Computations for Embedded Applications2007
- Trace Partitioning in Abstract Interpretation Based Static Analyzers2005
- LLVM: A compilation framework for lifelong program analysis & transformation2004
- Analyzing Memory Accesses in x86 Executables2004
- Exploiting trivial and redundant computation2002
- Silent stores for free2002