Formally Verified Memory Protection for a Commodity Multiprocessor Hypervisor
Shih-Wei Li, Xupeng Li, Ronghui Gu, Jason Nieh, John Zhuang Hui
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 23 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Islaris: verification of machine code against authoritative ISA semantics 引用了 Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
- Islaris: verification of machine code against authoritative ISA semantics 引用了 A Secure and Formally Verified Linux KVM Hypervisor
- Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware 引用了 A Secure and Formally Verified Linux KVM Hypervisor
- BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems 引用了 HACL: A Verified Modern Cryptographic Library
- BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems 引用了 Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
- BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems 引用了 A Secure and Formally Verified Linux KVM Hypervisor
- BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems 引用了 Design and Verification of the Arm Confidential Compute Architecture
- Design and Verification of the Arm Confidential Compute Architecture 引用了 BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating Systems
- A Secure and Formally Verified Linux KVM Hypervisor 引用了 HACL: A Verified Modern Cryptographic Library
- A Secure and Formally Verified Linux KVM Hypervisor 引用了 Optimizing Nested Virtualization Performance Using Direct Virtual Hardware
- Design and Verification of the Arm Confidential Compute Architecture 引用了 HACL: A Verified Modern Cryptographic Library
- Design and Verification of the Arm Confidential Compute Architecture 引用了 Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory Hardware
- Design and Verification of the Arm Confidential Compute Architecture 引用了 A Secure and Formally Verified Linux KVM Hypervisor
引用它的顶会 Paper23
- Design and Verification of the Arm Confidential Compute ArchitectureXupeng Li, Xuheng Li, Christoffer Dall, Ronghui Gu 等OSDI 2022 · 60 次引用
- BlackBox: A Container Security Monitor for Protecting Containers on Untrusted Operating SystemsAlexander Van't Hof, Jason NiehOSDI 2022 · 44 次引用
- TwinVisor: Hardware-isolated Confidential Virtual Machines for ARMDingji Li, Zeyu Mi, Yubin Xia, Binyu Zang 等SOSP 2021 · 39 次引用
- Islaris: verification of machine code against authoritative ISA semanticsMichael Sammler, Angus Hammond, Rodolphe Lepigre, Brian Campbell 等PLDI 2022 · 28 次引用
- Formal Verification of a Multiprocessor Hypervisor on Arm Relaxed Memory HardwareRunzhou Tao, Jianan Yao, Xupeng Li, Shih-Wei Li 等SOSP 2021 · 24 次引用
它引用的 Paper4
- HACL*: A Verified Modern Cryptographic LibraryJean Karim Zinzindohoué, Karthikeyan Bhargavan, Jonathan Protzenko, Benjamin BeurdoucheCCS 2017 · 258 次引用
- A Secure and Formally Verified Linux KVM HypervisorShih-Wei Li, Xupeng Li, Ronghui Gu, Jason Nieh 等S&P 2021 · 72 次引用
- Shielding Software From Privileged Side-Channel AttacksXiaowan Dong, Zhuojia Shen, John Criswell, Alan L. Cox 等USENIX Security 2018 · 45 次引用
- Optimizing Nested Virtualization Performance Using Direct Virtual HardwareJin Tack Lim, Jason NiehASPLOS 2020 · 34 次引用
相关 Paper
- Spoq: Scaling Machine-Checkable Systems Verification in CoqXupeng Li, Xuheng Li, Wei Qiang, Ronghui Gu 等OSDI 2023 · 10 次引用
- Protecting Cloud Virtual Machines from Hypervisor and Host Operating System ExploitsShih-Wei Li, John S. Koh, Jason NiehUSENIX Security 2019 · 49 次引用
- VeriSMo: A Verified Security Module for Confidential VMsZiqiao Zhou, Anjali, Weiteng Chen, Sishuai Gong 等OSDI 2024 · 27 次引用
- Sharing is leaking: blocking transient-execution attacks with core-gapped confidential VMsCharly Castes, Andrew BaumannASPLOS 2024 · 2 次引用
- Veil: A Protected Services Framework for Confidential Virtual MachinesAdil Ahmad, Botong Ou, Congyu Liu, Xiaokuan Zhang 等ASPLOS 2023 · 12 次引用
