Lune

ASPLOS2022Top-tier venue

Revizor: testing black-box CPUs against speculation contracts

Oleksii Oleksenko, Christof Fetzer, Boris Köpf, Mark Silberstein

Abstract

Speculative vulnerabilities such as Spectre and Meltdown expose speculative execution state that can be exploited to leak information across security domains via side-channels. Such vulnerabilities often stay undetected for a long time as we lack the tools for systematic testing of CPUs to find them.

In this paper, we propose an approach to automatically detect microarchitectural information leakage in commercial black-box CPUs. We build on speculation contracts, which we employ to specify the permitted side effects of program execution on the CPU's microarchitectural state. We propose a Model-based Relational Testing (MRT) technique to empirically assess the CPU compliance with these specifications.

We implement MRT in a testing framework called Revizor, and showcase its effectiveness on real Intel x86 CPUs. Revizor automatically detects violations of a rich set of contracts, or indicates their absence. A highlight of our findings is that Revizor managed to automatically surface Spectre, MDS, and LVI, as well as several previously unknown variants.

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.

29 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

  • RTL Verification for Secure Speculation Using Contract Shadow Logic cites Spectre Attacks: Exploiting Speculative Execution
  • RTL Verification for Secure Speculation Using Contract Shadow Logic cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • RTL Verification for Secure Speculation Using Contract Shadow Logic cites Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts
  • RTL Verification for Secure Speculation Using Contract Shadow Logic cites RIDL: Rogue In-Flight Data Load
  • RTL Verification for Secure Speculation Using Contract Shadow Logic cites Meltdown: Reading Kernel Memory from User Space
  • RTL Verification for Secure Speculation Using Contract Shadow Logic cites Serberus: Protecting Cryptographic Code from Spectres at Compile-Time
  • RTL Verification for Secure Speculation Using Contract Shadow Logic cites Pensieve: Microarchitectural Modeling for Security Evaluation
  • RTL Verification for Secure Speculation Using Contract Shadow Logic cites Fallout: Leaking Data on Meltdown-resistant CPUs
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling cites Spectre Attacks: Exploiting Speculative Execution
  • Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts cites Spectre Attacks: Exploiting Speculative Execution
  • Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts cites RIDL: Rogue In-Flight Data Load
  • Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts cites Meltdown: Reading Kernel Memory from User Space
  • RIDL: Rogue In-Flight Data Load cites Spectre Attacks: Exploiting Speculative Execution
  • RIDL: Rogue In-Flight Data Load cites Meltdown: Reading Kernel Memory from User Space
  • Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
  • WhisperFuzz: White-Box Fuzzing for Detecting and Locating Timing Vulnerabilities in Processors cites Spectre Attacks: Exploiting Speculative Execution
  • WhisperFuzz: White-Box Fuzzing for Detecting and Locating Timing Vulnerabilities in Processors cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • WhisperFuzz: White-Box Fuzzing for Detecting and Locating Timing Vulnerabilities in Processors cites Specification and Verification of Side-channel Security for Open-source Processors via Leakage Contracts
  • WhisperFuzz: White-Box Fuzzing for Detecting and Locating Timing Vulnerabilities in Processors cites RIDL: Rogue In-Flight Data Load
  • 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 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Serberus: Protecting Cryptographic Code from Spectres at Compile-Time cites RIDL: Rogue In-Flight Data Load
  • Serberus: Protecting Cryptographic Code from Spectres at Compile-Time cites Fallout: Leaking Data on Meltdown-resistant CPUs
  • Pensieve: Microarchitectural Modeling for Security Evaluation cites Spectre Attacks: Exploiting Speculative Execution
  • Pensieve: Microarchitectural Modeling for Security Evaluation cites Meltdown: Reading Kernel Memory from User Space
  • Fallout: Leaking Data on Meltdown-resistant CPUs cites Spectre Attacks: Exploiting Speculative Execution
  • Fallout: Leaking Data on Meltdown-resistant CPUs cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Fallout: Leaking Data on Meltdown-resistant CPUs cites RIDL: Rogue In-Flight Data Load
  • Fallout: Leaking Data on Meltdown-resistant CPUs cites Meltdown: Reading Kernel Memory from User Space
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers29

  1. WhisperFuzz: White-Box Fuzzing for Detecting and Locating Timing Vulnerabilities in ProcessorsPallavi Borkar, Chen Chen, Mohamadreza Rostami, Nikhilesh Singh et al.USENIX Security 2024 · 31 citations
  2. Pensieve: Microarchitectural Modeling for Security EvaluationYuheng Yang, Thomas Bourgeat, Stella Lau, Mengjia YanISCA 2023 · 23 citations
  3. Specification and Verification of Side-channel Security for Open-source Processors via Leakage ContractsZilong Wang, Gideon Mohr, Klaus von Gleissenthall, Jan Reineke et al.CCS 2023 · 20 citations
  4. Serberus: Protecting Cryptographic Code from Spectres at Compile-TimeNicholas Mosier, Hamed Nemati, John C. Mitchell, Caroline TrippelS&P 2024 · 16 citations
  5. RTL Verification for Secure Speculation Using Contract Shadow LogicQinhan Tan, Yuheng Yang, Thomas Bourgeat, Sharad Malik et al.ASPLOS 2025 · 12 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. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher et al.USENIX Security 2018 · 1,456 citations
  3. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck et al.CCS 2019 · 464 citations
  4. RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo et al.S&P 2019 · 408 citations
  5. Fallout: Leaking Data on Meltdown-resistant CPUsClaudio Canella, Daniel Genkin, Lukas Giner, Daniel Gruss et al.CCS 2019 · 289 citations

Related papers

  1. 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
  2. Enter, Exit, Page Fault, Leak ‡{ }^{\ddagger}: Testing Isolation Boundaries for Microarchitectural LeaksOleksii Oleksenko, Flavien Solt, Cédric Fournet, Jana Hofmann et al.S&P 2026 · 4 citations
  3. Hide and Seek with Spectres: Efficient discovery of speculative information leaks with random testingOleksii Oleksenko, Marco Guarnieri, Boris Köpf, Mark SilbersteinS&P 2023
  4. Phantom Trails: Practical Pre-Silicon Discovery of Transient Data LeaksAlvise de Faveri Tron, Raphael Isemann, Hany Ragab, Cristiano Giuffrida et al.USENIX Security 2025
  5. Trevex: A Black-Box Detection Framework for Data-Flow Transient Execution VulnerabilitiesDaniel Weber, Fabian Thomas, Leon Trampert, Ruiyi Zhang et al.S&P 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines