Lune

USENIX Security2024Top-tier venue

Bending microarchitectural weird machines towards practicality

Ping-Lun Wang, Riccardo Paccagnella, Riad S. Wahby, Fraser Brown

Abstract

A large body of work has demonstrated attacks that rely on the difference between CPUs' nominal instruction set architectures and their actual (microarchitectural) implementations. Most of these attacks, like Spectre, bypass the CPU's dataprotection boundaries. A recent line of work considers a different primitive, called a microarchitectural weird machine (µWM), that can execute computations almost entirely using microarchitectural side effects. While µWMs would seem to be an extremely powerful tool, e.g., for obfuscating malware, thus far they have seen very limited application. This is because prior µWMs must be hand-crafted by experts, and even then have trouble reliably executing complex computations. In this work, we show that µWMs are a practical, nearterm threat. First, we design a new µWM architecture, Flexo, that improves performance by 1-2 orders of magnitude and reduces circuit size by 75-87%, dramatically improving the applicability of µWMs to complex computation. Second, we build the first compiler from a high-level language to µWMs, letting experts craft automatic optimizations and non-experts construct state-of-the-art obfuscated computations. Finally, we demonstrate the practicality of our approach by extending the popular UPX packer to encrypt its payload and use a µWM for decryption, frustrating malware analysis.

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.

4 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

  • RISCy Cache Coherence: Timer-Free Architectural Cache Attacks via Instruction/Data Cache Incoherence cites Spectre Attacks: Exploiting Speculative Execution
  • RISCy Cache Coherence: Timer-Free Architectural Cache Attacks via Instruction/Data Cache Incoherence cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • RISCy Cache Coherence: Timer-Free Architectural Cache Attacks via Instruction/Data Cache Incoherence cites Meltdown: Reading Kernel Memory from User Space
  • Transient Architectural Execution: From Weird Gates to Weird Programs cites Spectre Attacks: Exploiting Speculative Execution
  • Transient Architectural Execution: From Weird Gates to Weird Programs cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • Transient Architectural Execution: From Weird Gates to Weird Programs cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Transient Architectural Execution: From Weird Gates to Weird Programs cites Meltdown: Reading Kernel Memory from User Space
  • Transient Architectural Execution: From Weird Gates to Weird Programs cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Transient Architectural Execution: From Weird Gates to Weird Programs cites Slice+Slice Baby: Generating Last-Level Cache Eviction Sets in the Blink of an Eye
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling cites Spectre Attacks: Exploiting Speculative Execution
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
  • SSBench: Automated Characterization of Memory Dependence Predictors on Modern CPUs cites Spectre Attacks: Exploiting Speculative Execution
  • SSBench: Automated Characterization of Memory Dependence Predictors on Modern CPUs cites Meltdown: Reading Kernel Memory from User Space
  • Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution cites Spectre Attacks: Exploiting Speculative Execution
  • Slice+Slice Baby: Generating Last-Level Cache Eviction Sets in the Blink of an Eye cites Spectre Attacks: Exploiting Speculative Execution
  • Slice+Slice Baby: Generating Last-Level Cache Eviction Sets in the Blink of an Eye cites Meltdown: Reading Kernel Memory from User Space
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. RISCy Cache Coherence: Timer-Free Architectural Cache Attacks via Instruction/Data Cache IncoherenceFabian Thomas, Michael SchwarzS&P 2026 · 1 citation
  2. SSBench: Automated Characterization of Memory Dependence Predictors on Modern CPUsChang Liu, Yu Jin, Yuchen Fan, Tianrui Xiao et al.ISCA 2026 · 1 citation
  3. Transient Architectural Execution: From Weird Gates to Weird ProgramsPing-Lun Wang, Fraser Brown, Riccardo Paccagnella, Eyal Ronen et al.S&P 2026
  4. Slice+Slice Baby: Generating Last-Level Cache Eviction Sets in the Blink of an EyeBradley Morgan, Gal Horowitz, Sioli O'Connell, Stephan van Schaik et al.S&P 2025

Builds on54

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
  3. Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin et al.USENIX Security 2018 · 1,175 citations
  4. DRAMA: Exploiting DRAM Addressing for Cross-CPU AttacksPeter Pessl, Daniel Gruss, Clémentine Maurice, Michael Schwarz et al.USENIX Security 2016 · 500 citations
  5. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck et al.CCS 2019 · 464 citations

Related papers

  1. Computing with time: microarchitectural weird machinesDmitry Evtyushkin, Thomas Benjamin, Jesse Elwell, Jeffrey A. Eitel et al.ASPLOS 2021 · 14 citations
  2. ExSpectre: Hiding Malware in Speculative ExecutionJack Wampler, Ian Martiny, Eric WustrowNDSS 2019 · 38 citations
  3. Speculation at Fault: Modeling and Testing Microarchitectural Leakage of CPU ExceptionsJana Hofmann, Emanuele Vannacci, Cédric Fournet, Boris Köpf et al.USENIX Security 2023
  4. Opening Pandora's Box: A Systematic Study of New Ways Microarchitecture Can Leak Private DataJose Rodrigo Sanchez Vicarte, Pradyumna Shome, Nandeeka Nayak, Caroline Trippel et al.ISCA 2021 · 29 citations
  5. Exploring Branch Predictors for Constructing Transient Execution TrojansTao Zhang, Kenneth Koltermann, Dmitry EvtyushkinASPLOS 2020 · 32 citations
Dusk over the sea between two cliffs drawn in fine vertical lines