Confidential Serverless Made Efficient with Plug-In Enclaves
Mingyu Li, Yubin Xia, Haibo Chen
Abstract
Serverless computing has become a fact of life on modern clouds. A serverless function may process sensitive data from clients. Protecting such a function against untrusted clouds using hardware enclave is attractive for user privacy. In this work, we run existing serverless applications in SGX enclave, and observe that the performance degradation can be as high as 5.6× to even 422.6×. Our investigation identifies these slowdowns are related to architectural features, mainly from page-wise enclave initialization. Leveraging insights from our overhead analysis, we revisit SGX hardware design and make minimal modification to its enclave model. We extend SGX with a new primitive—region-wise plugin enclaves that can be mapped into existing enclaves to reuse attested common states amongst functions. By remapping plugin enclaves, an enclave allows in-situ processing to avoid expensive data movement in a function chain. Experiments show that our design reduces the enclave function latency by 94.74-99.57%, and boosts the autoscaling throughput by 19-179×.
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.
13 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Cerberus: A Formal Approach to Secure and Efficient Enclave Memory Sharing cites Spectre Attacks: Exploiting Speculative Execution
- Cerberus: A Formal Approach to Secure and Efficient Enclave Memory Sharing cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
- SEVeriFast: Minimizing the root of trust for fast startup of SEV microVMs cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
- SEVeriFast: Minimizing the root of trust for fast startup of SEV microVMs cites Faasm: Lightweight Isolation for Efficient Stateful Serverless Computing
- SEVeriFast: Minimizing the root of trust for fast startup of SEV microVMs cites Scalable Memory Protection in the PENGLAI Enclave
- HyperTEE: A Decoupled TEE Architecture with Secure Enclave Management cites Cerberus: A Formal Approach to Secure and Efficient Enclave Memory Sharing
- HyperTEE: A Decoupled TEE Architecture with Secure Enclave Management cites Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution
- HyperTEE: A Decoupled TEE Architecture with Secure Enclave Management cites Scalable Memory Protection in the PENGLAI Enclave
- The HitchHiker's Guide to High-Assurance System Observability Protection with Efficient Permission Switches cites Scalable Memory Protection in the PENGLAI Enclave
- Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution cites Spectre Attacks: Exploiting Speculative Execution
- Scalable Memory Protection in the PENGLAI Enclave cites Spectre Attacks: Exploiting Speculative Execution
- Scalable Memory Protection in the PENGLAI Enclave cites Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Provider
Cited by top-tier papers13
- Scalable Memory Protection in the PENGLAI EnclaveErhu Feng, Xu Lu, Dong Du, Bicheng Yang et al.OSDI 2021 · 126 citations
- SEVeriFast: Minimizing the root of trust for fast startup of SEV microVMsBenjamin Holmes, Jason Waterman, Dan WilliamsASPLOS 2024 · 14 citations
- Cerberus: A Formal Approach to Secure and Efficient Enclave Memory SharingDayeol Lee, Kevin Cheang, Alexander Thomas, Catherine Lu et al.CCS 2022 · 11 citations
- HyperTEE: A Decoupled TEE Architecture with Secure Enclave ManagementYunkai Bai, Peinan Li, Yubiao Huang, Michael C. Huang et al.MICRO 2024 · 5 citations
- The HitchHiker's Guide to High-Assurance System Observability Protection with Efficient Permission SwitchesChuqi Zhang, Jun Zeng, Yiming Zhang, Adil Ahmad et al.CCS 2024 · 4 citations
Builds on15
- Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin et al.S&P 2019 · 2,435 citations
- Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order ExecutionJo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin et al.USENIX Security 2018 · 1,175 citations
- Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud ProviderMohammad Shahrad, Rodrigo Fonseca, Iñigo Goiri, Gohar Irfan Chaudhry et al.USENIX ATC 2020 · 946 citations
- T-SGX: Eradicating Controlled-Channel Attacks Against Enclave ProgramsMing-Wei Shih, Sangho Lee, Taesoo Kim, Marcus PeinadoNDSS 2017 · 431 citations
- Faasm: Lightweight Isolation for Efficient Stateful Serverless ComputingSimon Shillaker, Peter R. PietzuchUSENIX ATC 2020 · 382 citations
Related papers
- WorksetEnclave: Towards Optimizing Cold Starts in Confidential Serverless with Workset-Based Enclave RestoreXiaolong Yan, Qihang Zhou, Zisen Wan, Feifan Qian et al.ASPLOS 2026
- EnTurbo: Accelerate Confidential Serverless Computing via Parallelizing Enclave Startup ProcedureYifan Zhu, Peinan Li, Yunkai Bai, Yubiao Huang et al.DAC 2024 · 2 citations
- Reusable Enclaves for Confidential Serverless ComputingShixuan Zhao, Pinshen Xu, Guoxing Chen, Mengya Zhang et al.USENIX Security 2023
- SeSeMI: Secure Serverless Model Inference on Sensitive DataGuoyu Hu, Yuncheng Wu, Gang Chen, Tien Tuan Anh Dinh et al.ICDE 2025 · 1 citation
- StreamBox: A Lightweight GPU SandBox for Serverless Inference WorkflowHao Wu, Yue Yu, Junxiao Deng, Shadi Ibrahim et al.USENIX ATC 2024 · 21 citations
