Lune

ASPLOS2025Top-tier venue

RTL Verification for Secure Speculation Using Contract Shadow Logic

Qinhan Tan, Yuheng Yang, Thomas Bourgeat, Sharad Malik, Mengjia Yan

Abstract

Modern out-of-order processors face speculative execution attacks. Despite various proposed software and hardware mitigations to prevent such attacks, new attacks keep arising from unknown vulnerabilities. Thus, a formal and rigorous evaluation of the ability of hardware designs to deal with speculative execution attacks is urgently desired.

This paper proposes a formal verification technique called Contract Shadow Logic that can considerably improve RTL verification scalability while being applicable to different defense mechanisms. In this technique, we leverage computer architecture design insights to improve verification performance for checking security properties formulated as software-hardware contracts for secure speculation. Our verification scheme is accessible to computer architects and requires minimal formal-method expertise.

We evaluate our technique on multiple RTL designs, including three out-of-order processors. The experimental results demonstrate that our technique exhibits a significant advantage in finding attacks on insecure designs and deriving complete proofs on secure designs, when compared to the baseline and two state-of-the-art verification schemes, LEAVE and UPEC.

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

  • DejaVuzz: Disclosing Transient Execution Bugs with Dynamic Swappable Memory and Differential Information Flow Tracking Assisted Processor Fuzzing cites Spectre Attacks: Exploiting Speculative Execution
  • DejaVuzz: Disclosing Transient Execution Bugs with Dynamic Swappable Memory and Differential Information Flow Tracking Assisted Processor Fuzzing cites RIDL: Rogue In-Flight Data Load
  • DejaVuzz: Disclosing Transient Execution Bugs with Dynamic Swappable Memory and Differential Information Flow Tracking Assisted Processor Fuzzing cites Meltdown: Reading Kernel Memory from User Space
  • DejaVuzz: Disclosing Transient Execution Bugs with Dynamic Swappable Memory and Differential Information Flow Tracking Assisted Processor Fuzzing cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Compass: Navigating the Design Space of Taint Schemes for RTL Security Verification cites Spectre Attacks: Exploiting Speculative Execution
  • Compass: Navigating the Design Space of Taint Schemes for RTL Security Verification cites Meltdown: Reading Kernel Memory from User Space
  • Compass: Navigating the Design Space of Taint Schemes for RTL Security Verification cites H-Houdini: Scalable Invariant Learning
  • Synthesis of Sound and Precise Leakage Contracts for Open-Source RISC-V Processors cites Spectre Attacks: Exploiting Speculative Execution
  • Synthesis of Sound and Precise Leakage Contracts for Open-Source RISC-V Processors cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Synthesis of Sound and Precise Leakage Contracts for Open-Source RISC-V Processors cites RIDL: Rogue In-Flight Data Load
  • Synthesis of Sound and Precise Leakage Contracts for Open-Source RISC-V Processors cites H-Houdini: Scalable Invariant Learning
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling cites Spectre Attacks: Exploiting Speculative Execution
  • 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
  • RIDL: Rogue In-Flight Data Load cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Meltdown: Reading Kernel Memory from User Space cites Spectre Attacks: Exploiting Speculative Execution
  • Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution cites Spectre Attacks: Exploiting Speculative Execution
  • H-Houdini: Scalable Invariant Learning cites Spectre Attacks: Exploiting Speculative Execution
  • H-Houdini: Scalable Invariant Learning cites Meltdown: Reading Kernel Memory from User Space
  • A Deductive System for Contract Satisfaction Proofs cites Spectre Attacks: Exploiting Speculative Execution
  • A Deductive System for Contract Satisfaction Proofs cites Synthesis of Sound and Precise Leakage Contracts for Open-Source RISC-V Processors
  • A Deductive System for Contract Satisfaction Proofs cites ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • A Deductive System for Contract Satisfaction Proofs cites RIDL: Rogue In-Flight Data Load
  • A Deductive System for Contract Satisfaction Proofs cites Meltdown: Reading Kernel Memory from User Space
  • A Deductive System for Contract Satisfaction Proofs cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. H-Houdini: Scalable Invariant LearningSushant Dinesh, Yongye Zhu, Christopher W. FletcherASPLOS 2025 · 7 citations
  2. DejaVuzz: Disclosing Transient Execution Bugs with Dynamic Swappable Memory and Differential Information Flow Tracking Assisted Processor FuzzingJinyan Xu, Yangye Zhou, Xingzhi Zhang, Yinshuai Li et al.ASPLOS 2025 · 4 citations
  3. Compass: Navigating the Design Space of Taint Schemes for RTL Security VerificationYuheng Yang, Qinhan Tan, Thomas Bourgeat, Sharad Malik et al.ASPLOS 2026 · 1 citation
  4. Synthesis of Sound and Precise Leakage Contracts for Open-Source RISC-V ProcessorsZilong Wang, Gideon Mohr, Klaus von Gleissenthall, Jan Reineke et al.CCS 2025
  5. A Deductive System for Contract Satisfaction ProofsArthur Correnson, Haoyi Zeng, Jana HofmannPLDI 2026

Builds on38

  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. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck et al.CCS 2019 · 464 citations
  5. RIDL: Rogue In-Flight Data LoadStephan van Schaik, Alyssa Milburn, Sebastian Österlund, Pietro Frigo et al.S&P 2019 · 408 citations

Related papers

  1. SpecVerilog: Adapting Information Flow Control for Secure SpeculationDrew Zagieboylo, Charles Sherk, Andrew C. Myers, G. Edward SuhCCS 2023 · 2 citations
  2. ProSpeCT: Provably Secure Speculation for the Constant-Time PolicyLesly-Ann Daniel, Marton Bognar, Job Noorman, Sébastien Bardin et al.USENIX Security 2023
  3. SoK: Practical Foundations for Software Spectre DefensesSunjay Cauligi, Craig Disselkoen, Daniel Moghimi, Gilles Barthe et al.S&P 2022 · 59 citations
  4. A Formal Approach for Detecting Vulnerabilities to Transient Execution Attacks in Out-of-Order ProcessorsMohammad Rahmani Fadiheh, Johannes Müller, Raik Brinkmann, Subhasish Mitra et al.DAC 2020 · 38 citations
  5. Detecting Speculative Execution Vulnerabilities on Weak Memory ModelsNicholas Coughlin, Kait Lam, Graeme Smith, Kirsten WinterFM 2024 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines