ZombieLoad: Cross-Privilege-Boundary Data Sampling

Michael Schwarz, Moritz Lipp, Daniel Moghimi, Jo Van Bulck, Julian Stecklina, Thomas Prescher, Daniel Gruss

TL;DR

Researchers have discovered a new microarchitectural attack called ZombieLoad that can leak sensitive data across privilege boundaries and even between CPU cores. This attack exploits a previously unknown vulnerability in the processor's fill buffer logic, allowing attackers to sample data that is being loaded by other processes or even the operating system kernel.

What Problem Does This Paper Address?

Modern CPUs employ complex out-of-order execution and speculative execution techniques to boost performance. While these techniques are generally safe, they can leave behind subtle "side effects" in the processor's internal state. Previous attacks like Meltdown and Spectre have demonstrated how to exploit these side effects to leak sensitive information. However, these attacks often had limitations, such as requiring specific conditions or only leaking data from certain memory locations. This paper addresses the challenge of finding new ways to exploit these microarchitectural side effects to leak data more broadly and effectively, particularly from previously unexplored processor components.

Methods

The core of the ZombieLoad attack lies in exploiting a vulnerability in the processor's fill buffer logic. When a load instruction encounters a fault or needs to be re-issued, it can transiently access stale data from the fill buffer. This stale data might belong to a previous memory operation from the same or a sibling logical CPU core.

The authors developed two main variants to trigger these "zombie loads":

  • Variant 1 (Kernel Mapping): This variant uses a specific setup where a user-accessible virtual address maps to a kernel-space physical page. By triggering a microcode assist (similar to Meltdown), the attacker can force a load from the kernel address, which then transiently accesses stale data from the fill buffer.
  • Variant 2 (Microcode-Assisted Page-Table Walk): This variant leverages the fact that certain page-table operations (like updating access or dirty bits) can trigger a microcode assist. By manipulating page table entries and triggering a fault, the attacker can induce a zombie load.

To make the leaked data useful, the authors combine these zombie loads with traditional side-channel techniques like Flush+Reload to exfiltrate the sampled data. They also introduce a "Domino attack" for more robust data recovery, especially when dealing with noisy leaks.

Datasets

Not discussed in the paper. The authors focus on exploiting hardware vulnerabilities and do not rely on specific datasets for training or evaluation.

Key Insights and Ideas

  • The Fill Buffer is a New Attack Surface: The paper reveals that the processor's fill buffer, a component previously thought to be less vulnerable, can be a source of sensitive data leakage.
  • Data Sampling, Not Address-Targeted: Unlike Meltdown, ZombieLoad doesn't allow attackers to select specific memory addresses to read from. Instead, it samples whatever data is currently in the fill buffer, making it a "data sampling" attack. This is a significant shift in attack methodology.
  • Hyperthreading is a Major Enabler: The attack is particularly potent when hyperthreading is enabled, as it allows leakage between sibling logical cores on the same physical CPU.
  • Broad Applicability: ZombieLoad is effective across various privilege levels (user-space, kernel, hypervisor, SGX enclaves) and even across virtual machines.
  • Breaking SGX Security: The attack can be used to extract sensitive data from Intel SGX enclaves, undermining their security guarantees.
  • Mitigation is Difficult: Traditional countermeasures are not fully effective, and disabling hyperthreading is presented as the only foolproof solution.

Key Results

  • High Data Leakage Rates: The attack can achieve data transmission rates of several kilobytes per second, making it practical for real-world scenarios.
  • Successful Attacks Demonstrated:
    • AES-NI Key Leakage: The authors successfully extracted a full 128-bit AES key from an application using hardware-accelerated AES-NI, which is designed to be resistant to timing and cache attacks.
  • SGX Sealing Key Extraction: A 128-bit SGX sealing key, crucial for Intel's remote attestation, was recovered.
  • Cross-VM Covert Channel: A fast and reliable covert channel was established between virtual machines.
  • Browsing-Behavior Monitoring: The attack could fingerprint web browser content and recover URLs by monitoring loaded data.
  • Performance: The attack's performance varies depending on the variant and mitigation techniques used, with rates ranging from kilobits to kilobytes per second.

Limitations and Future Work

  • No Direct Address Control: The primary limitation is the inability to directly target specific memory addresses for leakage. Attackers must rely on sampling whatever data is present in the fill buffer.
  • Hypothetical Root Cause: While the authors demonstrate the attack's effectiveness, the exact microarchitectural root cause is hypothesized, as detailed documentation of the fill buffer is scarce. Future work could further investigate and verify this hypothesis.
  • Mitigation Challenges: The paper highlights that disabling hyperthreading is the only complete mitigation. Future work could explore more granular hardware or software mitigations that don't incur such a significant performance penalty.
  • Further Investigation of Leakage Sources: The paper suggests that the fill buffer might not be the only source of leakage, hinting at potential for further research into other microarchitectural components.
  • Broader CPU Support: While tested on Intel CPUs, future work could investigate if similar vulnerabilities exist in other processor architectures.

Summary updated

BibTeX
@inproceedings{schwarz2019zombieload,
  author = {Michael Schwarz and Moritz Lipp and Daniel Moghimi and Jo Van Bulck and Julian Stecklina and Thomas Prescher and Daniel Gruss},
  title = {{ZombieLoad: Cross-Privilege-Boundary Data Sampling}},
  booktitle = {CCS},
  year = {2019},
  doi = {10.1145/3319535.3354252},
}
Figure