Lune

ISCA2023Top-tier venue

All Your PC Are Belong to Us: Exploiting Non-control-Transfer Instruction BTB Updates for Dynamic PC Extraction

Jiyong Yu, Trent Jaeger, Christopher Wardlaw Fletcher

Abstract

Leaking a program's instruction address (PC) pattern, completely and precisely, has long been a sought-after capability for microarchitectural side-channel attackers. Case in point, such a primitive would be sufficient to construct powerful control-flow leakage attacks (inferring program secrets impacting control flow) that defeat existing control-flow leakage mitigations, or even reverse-engineer private binaries through PC-trace granular fingerprinting. However, current side-channel attack techniques only capture PCs at a coarse granularity or for only specific instruction types.

In this paper, we propose the first micro-architectural sidechannel attack that is capable of directly observing the exact PCs of arbitrary victim dynamic instructions-i.e., even the PCs of noncontrol-transfer instructions and even if the program code is private. Our attack exploits several previously overlooked characteristics in modern Intel Branch Target Buffers (BTBs). The core observation is perhaps counter-intuitive: despite being a structure related to control-flow prediction, the BTB incurs observable state changes after the execution of potentially any instruction, not just controltransfer instructions.

Through reverse-engineering and analyzing said BTB vulnerabilities, we design and implement an attack framework named NightVision. We demonstrate how NightVision is capable of efficiently and accurately identifying a subset, or the entirety, of a victim program's dynamic PC trace (depending on the attacker's capabilities). We show how NightVision enables a new controlflow attack that bypasses prior defenses. Additionally, we show that when combined with code fingerprinting techniques, NightVision enables reverse-engineering of private programs.

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.

7 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

  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels cites Spectre Attacks: Exploiting Speculative Execution
  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels cites Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution
  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels cites Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
  • MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side Channels cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • Spectre Attacks: Exploiting Speculative Execution cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Controlled Preemption: Amplifying Side-Channel Attacks from Userspace cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Controlled Preemption: Amplifying Side-Channel Attacks from Userspace cites Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
  • μCFI: Formal Verification of Microarchitectural Control-flow Integrity cites Spectre Attacks: Exploiting Speculative Execution
  • Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • Libra: Architectural Support For Principled, Secure And Efficient Balanced Execution On High-End Processors cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Libra: Architectural Support For Principled, Secure And Efficient Balanced Execution On High-End Processors cites Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved Execution
  • Libra: Architectural Support For Principled, Secure And Efficient Balanced Execution On High-End Processors cites Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks
  • Libra: Architectural Support For Principled, Secure And Efficient Balanced Execution On High-End Processors cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • CryptoBTB: A Secure Hierarchical BTB for Diverse Instruction Footprint Workloads cites Spectre Attacks: Exploiting Speculative Execution
  • Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB Attacks cites Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX
  • Leaky Cauldron on the Dark Land: Understanding Memory Side-Channel Hazards in SGX cites Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. MDPeek: Breaking Balanced Branches in SGX with Memory Disambiguation Unit Side ChannelsChang Liu, Shuaihu Feng, Yuan Li, Dongsheng Wang et al.ASPLOS 2025 · 7 citations
  2. Controlled Preemption: Amplifying Side-Channel Attacks from UserspaceYongye Zhu, Boru Chen, Zirui Neil Zhao, Christopher W. FletcherASPLOS 2025 · 5 citations
  3. Libra: Architectural Support For Principled, Secure And Efficient Balanced Execution On High-End ProcessorsHans Winderix, Marton Bognar, Lesly-Ann Daniel, Frank PiessensCCS 2024 · 4 citations
  4. μCFI: Formal Verification of Microarchitectural Control-flow IntegrityKatharina Ceesay-Seitz, Flavien Solt, Kaveh RazaviCCS 2024 · 3 citations
  5. CryptoBTB: A Secure Hierarchical BTB for Diverse Instruction Footprint WorkloadsDebpratim Adak, Eric Rotenberg, Amro Awad, Huiyang ZhouMICRO 2025 · 1 citation

Builds on22

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
  2. Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch ShadowingSangho Lee, Ming-Wei Shih, Prasun Gera, Taesoo Kim et al.USENIX Security 2017 · 536 citations
  3. 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
  4. Translation Leak-aside Buffer: Defeating Cache Side-channel Protections with TLB AttacksBen Gras, Kaveh Razavi, Herbert Bos, Cristiano GiuffridaUSENIX Security 2018 · 357 citations
  5. Telling Your Secrets without Page Faults: Stealthy Page Table-Based Attacks on Enclaved ExecutionJo Van Bulck, Nico Weichbrodt, Rüdiger Kapitza, Frank Piessens et al.USENIX Security 2017 · 316 citations

Related papers

  1. OCCUPY+PROBE: Cross-Privilege Branch Target Buffer Side-Channel Attacks at Instruction GranularityKaiyuan Rong, Junqi Fang, Haixia Wang, Dapeng Ju et al.NDSS 2026
  2. Indirector: High-Precision Branch Target Injection Attacks Exploiting the Indirect Branch PredictorLuyi Li, Hosein Yavarzadeh, Dean M. TullsenUSENIX Security 2024 · 18 citations
  3. ExfilState: Automated Discovery of Timer-Free Cache Side Channels on ARM CPUsFabian Thomas, Michael Torres, Daniel Moghimi, Michael SchwarzCCS 2025
  4. iEnFlow: Endogenous Control-Flow Attacks via Conditional Branch Prediction on Apple SiliconKaiyuan Rong, Jiajie Chen, Junqi Fang, Peng Qu et al.CCS 2026
  5. TLB;DR: Enhancing TLB-based Attacks with TLB Desynchronized Reverse EngineeringAndrei Tatar, Daniël Trujillo, Cristiano Giuffrida, Herbert BosUSENIX Security 2022
Dusk over the sea between two cliffs drawn in fine vertical lines