Lune

S&P2021顶会

CrossTalk: Speculative Data Leaks Across Cores Are Real

Hany Ragab, Alyssa Milburn, Kaveh Razavi, Herbert Bos, Cristiano Giuffrida

摘要

Recent transient execution attacks have demonstrated that attackers may leak sensitive information across security boundaries on a shared CPU core. Up until now, it seemed possible to prevent this by isolating potential victims and attackers on separate cores. In this paper, we show that the situation is more serious, as transient execution attacks can leak data across different cores on many modern Intel CPUs. We do so by investigating the behavior of x86 instructions, and in particular, we focus on complex microcoded instructions which perform offcore requests. Combined with transient execution vulnerabilities such as Micro-architectural Data Sampling (MDS), these operations can reveal internal CPU state. Using performance counters, we build a profiler, CROSSTALK, to examine the number and nature of such operations for many x86 instructions, and find that some instructions read data from a staging buffer which is shared between all CPU cores. To demonstrate the security impact of this behavior, we present the first cross-core attack using transient execution, showing that even the seemingly-innocuous CPUID instruction can be used by attackers to sample the entire staging buffer containing sensitive data -most importantly, output from the hardware random number generator (RNG)across cores. We show that this can be exploited in practice to attack SGX enclaves running on a completely different core, where an attacker can control leakage using practical performance degradation attacks, and demonstrate that we can successfully determine enclave private keys. Since existing mitigations which rely on spatial or temporal partitioning are largely ineffective to prevent our proposed attack, we also discuss potential new mitigation techniques.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • CacheWarp: Software-based Fault Injection using Selective State Reset 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks 引用了 Meltdown: Reading Kernel Memory from User Space
  • Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 Spectre Attacks: Exploiting Speculative Execution
  • ZombieLoad: Cross-Privilege-Boundary Data Sampling 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
  • SoK: SGX.Fail: How Stuff Gets eXposed 引用了 Spectre Attacks: Exploiting Speculative Execution
  • SoK: SGX.Fail: How Stuff Gets eXposed 引用了 Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution Attacks
  • SoK: SGX.Fail: How Stuff Gets eXposed 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • SoK: SGX.Fail: How Stuff Gets eXposed 引用了 Meltdown: Reading Kernel Memory from User Space
  • SoK: SGX.Fail: How Stuff Gets eXposed 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
  • A Systematic Evaluation of Transient Execution Attacks and Defenses 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Osiris: Automated Discovery of Microarchitectural Side Channels 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Osiris: Automated Discovery of Microarchitectural Side Channels 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • Osiris: Automated Discovery of Microarchitectural Side Channels 引用了 Meltdown: Reading Kernel Memory from User Space
  • Osiris: Automated Discovery of Microarchitectural Side Channels 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
  • Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution 引用了 Spectre Attacks: Exploiting Speculative Execution
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability 引用了 Spectre Attacks: Exploiting Speculative Execution
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability 引用了 ZombieLoad: Cross-Privilege-Boundary Data Sampling
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability 引用了 Meltdown: Reading Kernel Memory from User Space
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability 引用了 A Systematic Evaluation of Transient Execution Attacks and Defenses
  • DOLMA: Securing Speculation with the Principle of Transient Non-Observability 引用了 Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper65

  1. DOLMA: Securing Speculation with the Principle of Transient Non-ObservabilityKevin Loughlin, Ian Neal, Jiacheng Ma, Elisa Tsai 等USENIX Security 2021 · 94 次引用
  2. Rage Against the Machine Clear: A Systematic Analysis of Machine Clears and Their Implications for Transient Execution AttacksHany Ragab, Enrico Barberis, Herbert Bos, Cristiano GiuffridaUSENIX Security 2021 · 76 次引用
  3. Osiris: Automated Discovery of Microarchitectural Side ChannelsDaniel Weber, Ahmad Ibrahim, Hamed Nemati, Michael Schwarz 等USENIX Security 2021 · 75 次引用
  4. SoK: SGX.Fail: How Stuff Gets eXposedStephan van Schaik, Alexander Seto, Thomas Yurek, Adam Batori 等S&P 2024 · 52 次引用
  5. CacheWarp: Software-based Fault Injection using Selective State ResetRuiyi Zhang, Lukas Gerlach, Daniel Weber, Lorenz Hetterich 等USENIX Security 2024 · 36 次引用

它引用的 Paper18

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
  2. Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
  3. Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin 等USENIX Security 2018 · 1,175 次引用
  4. ZombieLoad: Cross-Privilege-Boundary Data SamplingMichael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck 等CCS 2019 · 464 次引用
  5. A Systematic Evaluation of Transient Execution Attacks and DefensesClaudio Canella, Jo Van Bulck, Michael Schwarz, Moritz Lipp 等USENIX Security 2019 · 442 次引用

相关 Paper

  1. CacheOut: Leaking Data on Intel CPUs via Cache EvictionsStephan van Schaik, Marina Minkin, Andrew Kwong, Daniel Genkin 等S&P 2021 · 158 次引用
  2. ÆPIC Leak: Architecturally Leaking Uninitialized Data from the MicroarchitecturePietro Borrello, Andreas Kogler, Martin Schwarzl, Moritz Lipp 等USENIX Security 2022
  3. PREFETCHX: Cross-Core Cache-Agnostic Prefetcher-based Side-Channel AttacksYun Chen, Ali Hajiabadi, Lingfeng Pei, Trevor E. CarlsonHPCA 2024 · 15 次引用
  4. Adversarial Prefetch: New Cross-Core Cache Side Channel AttacksYanan Guo, Andrew Zigerelli, Youtao Zhang, Jun YangS&P 2022 · 43 次引用
  5. Downfall: Exploiting Speculative Data GatheringDaniel MoghimiUSENIX Security 2023
黄昏的海面,两侧是细线勾勒的悬崖