Scalable Memory Protection in the PENGLAI Enclave
Erhu Feng, Xu Lu, Dong Du, Bicheng Yang, Xueqiang Jiang, Yubin Xia, Binyu Zang, Haibo Chen
摘要
Secure hardware enclaves have been widely used for protecting security-critical applications in the cloud. However, existing enclave designs fail to meet the requirements of scalability demanded by new scenarios like serverless computing, mainly due to the limitations in their secure memory protection mechanisms, including static allocation, restricted capacity and high-cost initialization. In this paper, we propose a software-hardware co-design to support dynamic, fine-grained, large-scale secure memory as well as fast-initialization. We first introduce two new hardware primitives: 1) Guarded Page Table (GPT), which protects page table pages to support page-level secure memory isolation; 2) Mountable Merkle Tree (MMT), which supports scalable integrity protection for secure memory. Upon these two primitives, our system can scale to thousands of concurrent enclaves with high resource utilization and eliminate the high-cost initialization of secure memory using fork-style enclave creation without weakening the security guarantees.
We have implemented a prototype of our design based on PENGLAI [24], an open-sourced enclave system for RISC-V. The experimental results show that PENGLAI can support 1,000s enclave instances running concurrently and scale up to 512GB secure memory with both encryption and integrity protection. The overhead of GPT is 5% for memoryintensive workloads (e.g., Redis) and negligible for CPUintensive workloads (e.g., RV8 and Coremarks). PENGLAI also reduces the latency of secure memory initialization by three orders of magnitude and gains 3.6x speedup for realworld applications (e.g., MapReduce).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 45 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SEVeriFast: Minimizing the root of trust for fast startup of SEV microVMs 引用了 Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- Meltdown: Reading Kernel Memory from User Space 引用了 Spectre Attacks: Exploiting Speculative Execution
- Keystone: an open framework for architecting trusted execution environments 引用了 Spectre Attacks: Exploiting Speculative Execution
- Keystone: an open framework for architecting trusted execution environments 引用了 Sanctum: Minimal Hardware Extensions for Strong Software Isolation
- ACAI: Protecting Accelerator Execution with Arm Confidential Computing Architecture 引用了 Keystone: an open framework for architecting trusted execution environments
- ACAI: Protecting Accelerator Execution with Arm Confidential Computing Architecture 引用了 Sanctum: Minimal Hardware Extensions for Strong Software Isolation
- PPMLAC: high performance chipset architecture for secure multi-party computation 引用了 Spectre Attacks: Exploiting Speculative Execution
- PPMLAC: high performance chipset architecture for secure multi-party computation 引用了 Meltdown: Reading Kernel Memory from User Space
- PPMLAC: high performance chipset architecture for secure multi-party computation 引用了 Keystone: an open framework for architecting trusted execution environments
- PPMLAC: high performance chipset architecture for secure multi-party computation 引用了 Sanctum: Minimal Hardware Extensions for Strong Software Isolation
引用它的顶会 Paper45
- Secure and Lightweight Deduplicated Storage via Shielded Deduplication-Before-EncryptionZuoru Yang, Jingwei Li, Patrick P. C. LeeUSENIX ATC 2022 · 46 次引用
- ACAI: Protecting Accelerator Execution with Arm Confidential Computing ArchitectureSupraja Sridhara, Andrin Bertschi, Benedict Schlüter, Mark Kuhne 等USENIX Security 2024 · 36 次引用
- PPMLAC: high performance chipset architecture for secure multi-party computationXing Zhou, Zhilei Xu, Cong Wang, Mingyu GaoISCA 2022 · 23 次引用
- Battering RAM: Low-Cost Interposer Attacks on Confidential Computing via Dynamic Memory AliasingJesse De Meulemeester, David F. Oswald, Ingrid Verbauwhede, Jo Van BulckS&P 2026 · 20 次引用
- SEVeriFast: Minimizing the root of trust for fast startup of SEV microVMsBenjamin Holmes, Jason Waterman, Dan WilliamsASPLOS 2024 · 14 次引用
它引用的 Paper17
- 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 次引用
- Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud ProviderMohammad Shahrad, Rodrigo Fonseca, Iñigo Goiri, Gohar Irfan Chaudhry 等USENIX ATC 2020 · 946 次引用
- Sanctum: Minimal Hardware Extensions for Strong Software IsolationVictor Costan, Ilia A. Lebedev, Srinivas DevadasUSENIX Security 2016 · 649 次引用
- Keystone: an open framework for architecting trusted execution environmentsDayeol Lee, David Kohlbrenner, Shweta Shinde, Krste Asanovic 等EuroSys 2020 · 381 次引用
相关 Paper
- SecTEE: A Software-based Approach to Secure Enclave Architecture Using TEEShijun Zhao, Qianying Zhang, Yu Qin, Wei Feng 等CCS 2019 · 95 次引用
- Efficient Distributed Secure Memory with Migratable Merkle TreeErhu Feng, Dong Du, Yubin Xia, Haibo ChenHPCA 2023 · 14 次引用
- Accelerating Extra Dimensional Page Walks for Confidential ComputingDong Du, Bicheng Yang, Yubin Xia, Haibo ChenMICRO 2023 · 7 次引用
- Confidential Serverless Made Efficient with Plug-In EnclavesMingyu Li, Yubin Xia, Haibo ChenISCA 2021 · 32 次引用
- Distributed Memory Guard: Enabling Secure Enclave Computing in NoC-based ArchitecturesGhada Dessouky, Mihailo Isakov, Michel A. Kinsy, Pouya Mahmoody 等DAC 2021 · 3 次引用
