Lune

USENIX Security2021Top-tier venue

Formally Verified Memory Protection for a Commodity Multiprocessor Hypervisor

Shih-Wei Li, Xupeng Li, Ronghui Gu, Jason Nieh, John Zhuang Hui

Abstract

Hypervisors are widely deployed by cloud computing providers to support virtual machines, but their growing complexity poses a security risk, as large codebases contain many vulnerabilities. We present SeKVM, a layered Linux KVM hypervisor architecture that has been formally verified on multiprocessor hardware. Using layers, we isolate KVM's trusted computing base into a small core such that only the core needs to be verified to ensure KVM's security guarantees. Using layers, we model hardware features at different levels of abstraction tailored to each layer of software. Lower hypervisor layers that configure and control hardware are verified using a novel machine model that includes multiprocessor memory management hardware such as multi-level shared page tables, tagged TLBs, and a coherent cache hierarchy with cache bypass support. Higher hypervisor layers that build on the lower layers are then verified using a more abstract and simplified model, taking advantage of layer encapsulation to reduce proof burden. Furthermore, layers provide modularity to reduce verification effort across multiple implementation versions. We have retrofitted and verified multiple versions of KVM on Arm multiprocessor hardware, proving the correctness of the implementations and that they contain no vulnerabilities that can affect KVM's security guarantees. Our work is the first machine-checked proof for a commodity hypervisor using multiprocessor memory management hardware. SeKVM requires only modest KVM modifications and incurs only modest performance overhead versus unmodified KVM on real application workloads.

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.

23 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

  • Islaris: verification of machine code against authoritative ISA semantics cites Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
  • Islaris: verification of machine code against authoritative ISA semantics cites A Secure and Formally Verified Linux KVM Hypervisor
  • Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware cites A Secure and Formally Verified Linux KVM Hypervisor
  • BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems cites HACL: A Verified Modern Cryptographic Library
  • BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems cites Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
  • BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems cites A Secure and Formally Verified Linux KVM Hypervisor
  • BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems cites Design and Verification of the Arm Confidential Compute Architecture
  • Design and Verification of the Arm Confidential Compute Architecture cites BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems
  • A Secure and Formally Verified Linux KVM Hypervisor cites HACL: A Verified Modern Cryptographic Library
  • A Secure and Formally Verified Linux KVM Hypervisor cites Optimizing Nested Virtualization Performance Using Direct Virtual Hardware
  • Design and Verification of the Arm Confidential Compute Architecture cites HACL: A Verified Modern Cryptographic Library
  • Design and Verification of the Arm Confidential Compute Architecture cites Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
  • Design and Verification of the Arm Confidential Compute Architecture cites A Secure and Formally Verified Linux KVM Hypervisor
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers23

  1. Design and Verification of the Arm Confidential Compute ArchitectureXupeng Li, Xuheng Li, Christoffer Dall, Ronghui Gu et al.OSDI 2022 · 60 citations
  2. BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating SystemsAlexander Van't Hof, Jason NiehOSDI 2022 · 44 citations
  3. TwinVisor: Hardware-isolated Confidential Virtual Machines for ARMDingji Li, Zeyu Mi, Yubin Xia, Binyu Zang et al.SOSP 2021 · 39 citations
  4. Islaris: verification of machine code against authoritative ISA semanticsMichael Sammler, Angus Hammond, Rodolphe Lepigre, Brian Campbell et al.PLDI 2022 · 28 citations
  5. Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory HardwareRunzhou Tao, Jianan Yao, Xupeng Li, Shih-Wei Li et al.SOSP 2021 · 24 citations

Builds on4

  1. HACL*: A Verified Modern Cryptographic LibraryJean Karim Zinzindohoué, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin BeurdoucheCCS 2017 · 258 citations
  2. A Secure and Formally Verified Linux KVM HypervisorShih-Wei Li, Xupeng Li, Ronghui Gu, Jason Nieh et al.S&P 2021 · 72 citations
  3. Shielding Software From Privileged Side-Channel AttacksXiaowan Dong, Zhuojia Shen, John Criswell, Alan L. Cox et al.USENIX Security 2018 · 45 citations
  4. Optimizing Nested Virtualization Performance Using Direct Virtual HardwareJin Tack Lim, Jason NiehASPLOS 2020 · 34 citations

Related papers

  1. Spoq: Scaling Machine-Checkable Systems Verification in CoqXupeng Li, Xuheng Li, Wei Qiang, Ronghui Gu et al.OSDI 2023 · 10 citations
  2. Protecting Cloud Virtual Machines from Hypervisor and Host Operating System ExploitsShih-Wei Li, John S. Koh, Jason NiehUSENIX Security 2019 · 49 citations
  3. VeriSMo: A Verified Security Module for Confidential VMsZiqiao Zhou, Anjali, Weiteng Chen, Sishuai Gong et al.OSDI 2024 · 27 citations
  4. Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMsCharly Castes, Andrew BaumannASPLOS 2024 · 2 citations
  5. Veil: A Protected Services Framework for Confidential Virtual MachinesAdil Ahmad, Botong Ou, Congyu Liu, Xiaokuan Zhang et al.ASPLOS 2023 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines