Donky: Domain Keys - Efficient In-Process Isolation for RISC-V and x86
David Schrammel, Samuel Weiser, Stefan Steinegger, Martin Schwarzl, Michael Schwarz, Stefan Mangard, Daniel Gruss
摘要
Efficient and secure in-process isolation is in great demand, as evidenced in the shift towards JavaScript and the recent revival of memory protection keys. Yet, state-of-the-art systems do not offer strong security or struggle with frequent domain crossings and oftentimes intrusive kernel modifications. We propose Donky, an efficient hardware-software codesign for strong in-process isolation based on dynamic memory protection domains. The two components of our design are a secure software framework and a non-intrusive hardware extension. We facilitate domain switches entirely in userspace, thus minimizing switching overhead as well as kernel complexity. We show the versatility of Donky in three realistic use cases, secure V8 sandboxing, software vaults, and untrusted third-party libraries. We provide an open-source implementation on a RISC-V Ariane CPU and an Intel-MPK-based emulation mode for x86. We evaluate the security and performance of our implementation for RISC-V synthesized on an FPGA. We also evaluate the performance on x86 and show why our new design is more secure than Intel MPK. Donky does not impede the runtime of in-domain computation. Cross-domain switches are 16-116x faster than regular process context switches. Fully protecting the mbedTLS cryptographic operations has a 4 % overhead.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 30 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Kard: lightweight data race detection with per-thread memory protection 引用了 ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
- DynPTA: Combining Static and Dynamic Analysis for Practical Selective Data Protection 引用了 Spectre Attacks: Exploiting Speculative Execution
- DynPTA: Combining Static and Dynamic Analysis for Practical Selective Data Protection 引用了 Meltdown: Reading Kernel Memory from User Space
- DynPTA: Combining Static and Dynamic Analysis for Practical Selective Data Protection 引用了 ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
- FlexOS: towards flexible OS isolation 引用了 Spectre Attacks: Exploiting Speculative Execution
- FlexOS: towards flexible OS isolation 引用了 Meltdown: Reading Kernel Memory from User Space
- FlexOS: towards flexible OS isolation 引用了 ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
- You shall not (by)pass!: practical, secure, and fast PKU-based sandboxing 引用了 Spectre Attacks: Exploiting Speculative Execution
- You shall not (by)pass!: practical, secure, and fast PKU-based sandboxing 引用了 FlexOS: towards flexible OS isolation
- You shall not (by)pass!: practical, secure, and fast PKU-based sandboxing 引用了 Meltdown: Reading Kernel Memory from User Space
- Plundervolt: Software-based Fault Injection Attacks against Intel SGX 引用了 Spectre Attacks: Exploiting Speculative Execution
- Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
- Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI 引用了 You shall not (by)pass!: practical, secure, and fast PKU-based sandboxing
- Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI 引用了 ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
引用它的顶会 Paper30
- DynPTA: Combining Static and Dynamic Analysis for Practical Selective Data ProtectionTapti Palit, Jarin Firose Moon, Fabian Monrose, Michalis PolychronakisS&P 2021 · 48 次引用
- FlexOS: towards flexible OS isolationHugo Lefeuvre, Vlad-Andrei Badoiu, Alexander Jung, Stefan Lucian Teodorescu 等ASPLOS 2022 · 36 次引用
- You shall not (by)pass!: practical, secure, and fast PKU-based sandboxingAlexios Voulimeneas, Jonas Vinck, Ruben Mechelinck, Stijn VolckaertEuroSys 2022 · 33 次引用
- Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFIShravan Narayan, Tal Garfinkel, Mohammadkazem Taram, Joey Rudek 等ASPLOS 2023 · 27 次引用
- Kard: lightweight data race detection with per-thread memory protectionAdil Ahmad, Sangho Lee, Pedro Fonseca, Byoungyoung LeeASPLOS 2021 · 17 次引用
它引用的 Paper16
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
- Meltdown: Reading Kernel Memory from User SpaceMoritz Lipp, Michael Schwarz, Daniel Gruss, Thomas Prescher 等USENIX Security 2018 · 1,456 次引用
- Sanctum: Minimal Hardware Extensions for Strong Software IsolationVictor Costan, Ilia A. Lebedev, Srinivas DevadasUSENIX Security 2016 · 649 次引用
- Plundervolt: Software-based Fault Injection Attacks against Intel SGXKit Murdock, David F. Oswald, Flavio D. Garcia, Jo Van Bulck 等S&P 2020 · 369 次引用
- ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)Anjo Vahldiek-Oberwagner, Eslam Elnikety, Nuno O. Duarte, Michael Sammler 等USENIX Security 2019 · 247 次引用
相关 Paper
- VDom: Fast and Unlimited Virtual Domains on Multiple ArchitecturesZiqi Yuan, Siyu Hong, Rui Chang, Yajin Zhou 等ASPLOS 2023 · 19 次引用
- LatticeBox: A Hardware-Software Co-Designed Framework for Scalable and Low-Latency CompartmentalizationZhanpeng Liu, Chenyang Li, Wende Tan, Yuan Li 等NDSS 2026 · 1 次引用
- Efficient Linkage-Based Compartmentalization on CHERIDapeng Gao, John Baldwin, Jessica Clarke, Nicholas C. Connolly 等CCS 2026
- SpecMPK: Efficient In-Process Isolation with Speculative and Secure Permission Update InstructionDebpratim Adak, Huiyang Zhou, Eric Rotenberg, Amro AwadHPCA 2025 · 3 次引用
- EPK: Scalable and Efficient Memory Protection KeysJinyu Gu, Hao Li, Wentai Li, Yubin Xia 等USENIX ATC 2022
