Lune

HPCA2022顶会

HyBP: Hybrid Isolation-Randomization Secure Branch Predictor

Lutan Zhao, Peinan Li, Rui Hou, Michael C. Huang, Xuehai Qian, Lixin Zhang, Dan Meng

摘要

Recently exposed vulnerabilities reveal the necessity to improve the security of branch predictors. Branch predictors record history about the execution of different processes, and such information from different processes are stored in the same structure and thus accessible to each other. This leaves the attackers with the opportunities for malicious training and malicious perception. Physical or logical isolation mechanisms such as using dedicated tables and flushing during context-switch can provide security but incur non-trivial costs in space and/or execution time. Randomization mechanisms incurs the performance cost in a different way: those with higher securities add latency to the critical path of the pipeline, while the simpler alternatives leave vulnerabilities to more sophisticated attacks.

This paper proposes HyBP, a practical hybrid protection and effective mechanism for building secure branch predictors. The design applies the physical isolation and randomization in the right component to achieve the best of both worlds. We propose to protect the smaller tables with physically isolation based on (thread, privilege) combination; and protect the large tables with randomization. Surprisingly, the physical isolation also significantly enhances the security of the last-level tables by naturally filtering out accesses, reducing the information flow to these bigger tables. As a result, key changes can happen less frequently and be performed conveniently at context switches. Moreover, we propose a latency hiding design for a strong cipher by precomputing the "code book" with a validated, cryptographically strong cipher. Overall, our design incurs a performance penalty of 0.5% compared to 5.1% of physical isolation under the default context switching interval in Linux.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Spectre Attacks: Exploiting Speculative Execution 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Indirector: High-Precision Branch Target Injection Attacks Exploiting the Indirect Branch Predictor 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Indirector: High-Precision Branch Target Injection Attacks Exploiting the Indirect Branch Predictor 引用了 Spectre Attacks: Exploiting Speculative Execution
  • OCCUPY+PROBE: Cross-Privilege Branch Target Buffer Side-Channel Attacks at Instruction Granularity 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • OCCUPY+PROBE: Cross-Privilege Branch Target Buffer Side-Channel Attacks at Instruction Granularity 引用了 Spectre Attacks: Exploiting Speculative Execution
  • OCCUPY+PROBE: Cross-Privilege Branch Target Buffer Side-Channel Attacks at Instruction Granularity 引用了 Indirector: High-Precision Branch Target Injection Attacks Exploiting the Indirect Branch Predictor
  • OCCUPY+PROBE: Cross-Privilege Branch Target Buffer Side-Channel Attacks at Instruction Granularity 引用了 BunnyHop: Exploiting the Instruction Prefetcher
  • OCCUPY+PROBE: Cross-Privilege Branch Target Buffer Side-Channel Attacks at Instruction Granularity 引用了 Exploring Branch Predictors for Constructing Transient Execution Trojans
  • Conjuring: Leaking Control Flow via Speculative Fetch Attacks 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • Conjuring: Leaking Control Flow via Speculative Fetch Attacks 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Conjuring: Leaking Control Flow via Speculative Fetch Attacks 引用了 BunnyHop: Exploiting the Instruction Prefetcher
  • ScatterCache: Thwarting Cache Attacks via Cache Set Randomization 引用了 Spectre Attacks: Exploiting Speculative Execution
  • BunnyHop: Exploiting the Instruction Prefetcher 引用了 Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch Shadowing
  • BunnyHop: Exploiting the Instruction Prefetcher 引用了 Spectre Attacks: Exploiting Speculative Execution
  • BunnyHop: Exploiting the Instruction Prefetcher 引用了 ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • BunnyHop: Exploiting the Instruction Prefetcher 引用了 Exploring Branch Predictors for Constructing Transient Execution Trojans
  • CryptoBTB: A Secure Hierarchical BTB for Diverse Instruction Footprint Workloads 引用了 Spectre Attacks: Exploiting Speculative Execution
  • CryptoBTB: A Secure Hierarchical BTB for Diverse Instruction Footprint Workloads 引用了 ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
  • CryptoBTB: A Secure Hierarchical BTB for Diverse Instruction Footprint Workloads 引用了 BunnyHop: Exploiting the Instruction Prefetcher
  • CryptoBTB: A Secure Hierarchical BTB for Diverse Instruction Footprint Workloads 引用了 Systematic Analysis of Randomization-based Protected Cache Architectures
  • Exploring Branch Predictors for Constructing Transient Execution Trojans 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Systematic Analysis of Randomization-based Protected Cache Architectures 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Systematic Analysis of Randomization-based Protected Cache Architectures 引用了 ScatterCache: Thwarting Cache Attacks via Cache Set Randomization
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Indirector: High-Precision Branch Target Injection Attacks Exploiting the Indirect Branch PredictorLuyi Li, Hosein Yavarzadeh, Dean M. TullsenUSENIX Security 2024 · 18 次引用
  2. Conjuring: Leaking Control Flow via Speculative Fetch AttacksAli Hajiabadi, Trevor E. CarlsonDAC 2024 · 5 次引用
  3. CryptoBTB: A Secure Hierarchical BTB for Diverse Instruction Footprint WorkloadsDebpratim Adak, Eric Rotenberg, Amro Awad, Huiyang ZhouMICRO 2025 · 1 次引用
  4. OCCUPY+PROBE: Cross-Privilege Branch Target Buffer Side-Channel Attacks at Instruction GranularityKaiyuan Rong, Junqi Fang, Haixia Wang, Dapeng Ju 等NDSS 2026
  5. BunnyHop: Exploiting the Instruction PrefetcherZhiyuan Zhang, Mingtian Tao, Sioli O'Connell, Chitchanok Chuengsatiansup 等USENIX Security 2023

它引用的 Paper6

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
  2. Inferring Fine-grained Control Flow Inside SGX Enclaves with Branch ShadowingSangho Lee, Ming-Wei Shih, Prasun Gera, Taesoo Kim 等USENIX Security 2017 · 536 次引用
  3. ScatterCache: Thwarting Cache Attacks via Cache Set RandomizationMario Werner, Thomas Unterluggauer, Lukas Giner, Michael Schwarz 等USENIX Security 2019 · 221 次引用
  4. Systematic Analysis of Randomization-based Protected Cache ArchitecturesAntoon Purnal, Lukas Giner, Daniel Gruss, Ingrid VerbauwhedeS&P 2021 · 93 次引用
  5. Exploring Branch Predictors for Constructing Transient Execution TrojansTao Zhang, Kenneth Koltermann, Dmitry EvtyushkinASPLOS 2020 · 32 次引用

相关 Paper

  1. A Lightweight Isolation Mechanism for Secure Branch PredictorsLutan Zhao, Peinan Li, Rui Hou, Michael C. Huang 等DAC 2021 · 29 次引用
  2. HybCache: Hybrid Side-Channel-Resilient Caches for Trusted Execution EnvironmentsGhada Dessouky, Tommaso Frassetto, Ahmad-Reza SadeghiUSENIX Security 2020
  3. Branch Privilege Injection: Compromising Spectre v2 Hardware Mitigations by Exploiting Branch Predictor Race ConditionsSandro Rüegge, Johannes Wikner, Kaveh RazaviUSENIX Security 2025
  4. Half&Half: Demystifying Intel's Directional Branch Predictors for Fast, Secure Partitioned ExecutionHosein Yavarzadeh, Mohammadkazem Taram, Shravan Narayan, Deian Stefan 等S&P 2023
  5. SCARF - A Low-Latency Block Cipher for Secure Cache-RandomizationFederico Canale, Tim Güneysu, Gregor Leander, Jan Philipp Thoma 等USENIX Security 2023
黄昏的海面,两侧是细线勾勒的悬崖