Wallet: Confidential Serverless Computing

Patrick Sabanic (Technical University of Munich), Masanori Misono (Technical University of Munich), Teofil Bodea (Technical University of Munich), Julian Pritzi (Technical University of Munich), Michael Hackl (Technical University of Munich), Dimitrios Stavrakakis (Technical University of Munich), Pramod Bhatotia (Technical University of Munich)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Scalable Storage Systems

Overview

Serverless computing has established itself as a dominant cloud paradigm, accounting for over 50% of workloads across major cloud operators due to its simplified developer model and automated infrastructure scaling. However, the execution model—where functions run in distinct virtual machines (VMs) managed by untrusted cloud providers—poses severe security challenges. Malicious cloud administrators or vulnerabilities in hypervisors that enable cross-tenant attacks can compromise sensitive user data processed within these functions. While confidential virtual machines (CVMs) offer a robust hardware-backed defense by encrypting entire VM memories via CPU extensions, standard CVM architectures are fundamentally misaligned with the operational realities of serverless computing. They impose massive Trusted Computing Bases (TCB), prohibitive boot times, rigid function consolidation limits, and high inter-function communication overheads.

Watch on YouTube · Slides

Visual summary for Wallet: Confidential Serverless Computing by Patrick Sabanic, Masanori Misono, Teofil Bodea, Julian Pritzi, Michael Hackl, Dimitrios Stavrakakis, Pramod Bhatotia
Visual summary for Wallet: Confidential Serverless Computing by Patrick Sabanic, Masanori Misono, Teofil Bodea, Julian Pritzi, Michael Hackl, Dimitrios Stavrakakis, Pramod Bhatotia

Key moments

  1. 0:00 Introduction and motivation for confidential serverless computing
  2. 1:53 Limitations of standard confidential virtual machines for serverless
  3. 5:30 Key idea: Nested virtualization and CVM partitioning
  4. 7:34 Wallet architecture with trusted processes, zygotes, and trustlets
  5. 11:24 Implementation details using Coconut SVSM and Gramine
  6. 13:48 Experimental setup and benchmarking variants
  7. 14:48 Evaluation results on end-to-end performance and communication latency
  8. 16:21 Conclusion and open source availability

Wallet: Confidential Serverless Computing

Speakers: Patrick Sabanic, Masanori Misono, Teofil Bodea, Julian Pritzi, Michael Hackl, Dimitrios Stavrakakis, Pramod Bhatotia (Technical University of Munich)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=BvkTCG025tI

Overview

Serverless computing has established itself as a dominant cloud paradigm, accounting for over 50% of workloads across major cloud operators due to its simplified developer model and automated infrastructure scaling. However, the execution model—where functions run in distinct virtual machines (VMs) managed by untrusted cloud providers—poses severe security challenges. Malicious cloud administrators or vulnerabilities in hypervisors that enable cross-tenant attacks can compromise sensitive user data processed within these functions. While confidential virtual machines (CVMs) offer a robust hardware-backed defense by encrypting entire VM memories via CPU extensions, standard CVM architectures are fundamentally misaligned with the operational realities of serverless computing. They impose massive Trusted Computing Bases (TCB), prohibitive boot times, rigid function consolidation limits, and high inter-function communication overheads.

This talk presents Wallet, a novel system designed to bring confidential computing to serverless infrastructures without sacrificing performance or density. Developed by researchers at the Technical University of Munich, Wallet re-architects CVM internals by leveraging hardware-enforced nested virtualization and privilege separation. By partitioning a single CVM into distinct privilege levels, Wallet isolates the guest operating system, eliminates redundant runtime layers, and introduces lightweight execution units called trustlets.

The work matters because it bridges the long-standing gap between strong hardware-enforced security guarantees and the extreme performance demands of serverless architectures. By slashing TCB sizes, reducing boot latencies to near-zero, enabling dense function consolidation, and optimizing inter-function data flows via shared memory, Wallet demonstrates that confidential serverless computing is practical at scale.

Background

▶ Watch: Introduction and motivation for confidential serverless computing (0:00)

The systems and machine learning communities have increasingly relied on serverless platforms for executing event-driven code, microservices, and short-lived tasks. In a standard cloud deployment, each serverless function runs within its own virtual machine. Although cloud operators manage the underlying infrastructure, this setup exposes users to two major attack vectors: curious or malicious administrators with physical or hypervisor-level access to the host, and co-tenant virtual machines capable of exploiting hypervisor vulnerabilities to breach memory isolation.

To combat these threats, modern cloud environments leverage confidential computing primitives, specifically CVMs backed by hardware features such as AMD Secure Encrypted Virtualization (AMD SEV). A CVM encrypts its entire memory using unique keys managed directly by the CPU hardware, ensuring that the host hypervisor and administrators cannot inspect the guest's internal state. Furthermore, CVMs provide remote attestation mechanisms, allowing users to mathematically verify that only trusted code is running inside the cloud instance.

Despite these security benefits, deploying standard serverless runtimes inside conventional CVMs introduces severe systems bottlenecks:

  1. Inflated TCB Size: A standard CVM running a full Linux stack encompasses roughly 5 million lines of code, vastly expanding the security attack surface.
  2. High Boot Latencies: Conventional CVM boot sequences take upwards of 8 seconds—an unacceptable penalty for short-running serverless functions that must scale on demand.
  3. Poor Consolidation Limits: Hardware constraints limit the number of unique encryption keys available per physical node, capping the number of CVMs that can run simultaneously. Furthermore, full CVM memory encryption prevents traditional memory deduplication techniques.
  4. Exorbitant Communication Costs: Serverless applications frequently chain multiple functions together. In standard CVMs, Direct Memory Access (DMA) is restricted, requiring data to traverse the network stack and pass through multiple intermediate bounce buffers on both sender and receiver sides, incurring heavy copy overheads.

Key Findings

▶ Watch: Key idea: Nested virtualization and CVM partitioning (5:30)

Wallet addresses these systems challenges by fundamentally redesigning how serverless functions execute inside confidential environments. The main findings and performance achievements of the Wallet architecture include:

  • TCB Reduction: By minimizing the trusted computing base to a lean monitor and removing the guest OS from the trusted path, Wallet achieves a 4.3× reduction in TCB size compared to a full Linux stack CVM.
  • Boot Latency Optimization: Through the use of a lightweight library OS (LibOS) and copy-on-write spawning, Wallet achieves nearly negligible cold-start latencies for lukewarm function instantiations.
  • Function Consolidation & Memory Efficiency: Wallet delivers a 78% improvement in memory consumption and up to an astonishing 900× better function consolidation within a single CVM by utilizing page table isolation and memory sharing.
  • Chaining Performance: For complex multi-function pipelines, Wallet eliminates network stack traversal for co-located functions, achieving up to 27× better performance in inter-function communication compared to baseline CVM setups.

Technical Deep Dive

▶ Watch: Implementation details using Coconut SVSM and Gramine (11:24)

At the core of Wallet's design is the exploitation of nested virtualization and hardware-enforced Virtual Machine Privilege Levels (VMPLs). Current CVM hardware features allow a single CVM to be partitioned into multiple compartments with distinct privilege levels and fine-grained permissions enforced directly by the CPU.

Privilege Re-architecting

Wallet flips the traditional CVM hierarchy. In a standard setup, the guest OS operates at the highest software privilege level, meaning any compromise of the OS compromises everything within the VM. Wallet places a minimal trusted monitor (extending the Coconut SVSM monitor for AMD SEV) at the highest privilege level. The guest OS is demoted to the lowest privilege level, stripping it of any ability to tamper with the trusted monitor, runtimes, or user functions.

Trusted Processes: Zygotes and Trustlets

To manage execution units efficiently, Wallet introduces two types of trusted processes:

  • Zygotes: Template images that bundle a minimal LibOS (specifically Gramine, configured with a static file system) and a basic runtime (such as a bundled CPython runtime for executing Python serverless functions). Zygotes are initialized and held in a static, read-only state.
  • Trustlets: The actual function execution units. Trustlets are spawned dynamically from zygotes using a fork-like copy-on-write (CoW) mechanism managed by the trusted monitor.

Memory Isolation and Deduplication

Because the trusted monitor acts as the sole entity capable of modifying page tables for spawned functions, it enforces strict page table isolation among trustlets. Memory pages belonging to the shared zygote runtime are mapped as read-only across all trustlets, eliminating redundant memory allocations and enabling dense packing of functions within a single CVM hardware encryption boundary.

Local Inter-Function Communication

To accelerate function chaining, Wallet exploits the dense co-location of trustlets within a single CVM. Instead of routing data through a traditional networking stack (which requires secure bounce buffers and multiple memory copies), the trusted monitor creates and manages shared memory data objects. The sender function is granted write access, while the receiver function has read access. Data is written directly to the shared buffer, allowing the consumer to process results instantly without additional memory copies.

Experimental Setup & Results

▶ Watch: Experimental setup and benchmarking variants (13:48)

The Wallet prototype was evaluated on an AMD server hardware platform equipped with 1 TB of host memory, running host and guest kernels patched to support VMPL features. The authors benchmarked Wallet against three baseline environments: standard container execution, standard non-confidential virtual machines, and a traditional CVM baseline.

End-to-End Latency

Using a broad suite of serverless benchmarks, Wallet demonstrated substantial end-to-end latency improvements. Across varied function workloads, Wallet achieved average latency reductions ranging from 85% to 93% compared to the CVM baseline, depending on whether the execution evaluated cold starts from scratch or lukewarm starts utilizing pre-initialized zygates.

Function Chaining Performance

When evaluating function chains with fixed message sizes, traditional CVMs exhibited compounding latency penalties as the chain length increased due to repeated traversal of the guest-to-host network stack. In contrast, Wallet maintained flat, highly efficient latencies regardless of chain length, yielding up to 30× speedups on extended function pipelines.

Copy-on-Write Page Sharing Effectiveness

An analysis of memory page allocation between trustlets and zygotes revealed that the vast majority of memory pages—encompassing the Python runtime and standard library dependencies—are successfully shared read-only. Only a minor fraction of pages remain unique to individual trustlets (representing specific function inputs, outputs, and mutable state), validating the efficacy of Wallet's template-based memory consolidation strategy.

Practical Implications

▶ Watch: Conclusion and open source availability (16:21)

For infrastructure teams and cloud deployers, Wallet proves that security and high-density serverless execution are not mutually exclusive. By removing the performance penalties traditionally associated with confidential computing, Wallet enables cloud providers to offer zero-trust serverless environments where even compromised hypervisors or malicious root administrators cannot access user payloads.

For model builders and application developers, Wallet requires zero modifications to function code. Because it packages functions within standard runtimes (such as CPython via Gramine manifest configurations), existing serverless functions can be deployed directly into Wallet-secured CVMs. However, practitioners must account for hardware dependencies: Wallet relies heavily on advanced architectural features like AMD SEV with VMPL support, restricting deployment to modern CPU hardware. Furthermore, while memory density is drastically improved, tuning zygote templates requires careful dependency management to maximize read-only page sharing.

Key Takeaways

  • Security Without Compromise: Wallet brings hardware-backed confidential computing to serverless architectures, shielding workloads from malicious cloud operators and cross-tenant hypervisor attacks.
  • Drastic TCB Reduction: By demoting the guest OS to a lower privilege level and relying on a minimal trusted monitor, Wallet achieves a 4.3× reduction in TCB size.
  • Unprecedented Consolidation: Through page table isolation and read-only zygote sharing, Wallet reduces memory consumption by 78% and increases function consolidation density within a CVM by up to 900×.
  • Accelerated Chaining: Co-located trustlets leverage managed shared memory data objects to bypass network stacks, achieving up to 27× to 30× faster inter-function communication.
  • Practical & Open Source: Built on top of Coconut SVSM and Gramine LibOS, Wallet requires no changes to user function code and is fully open-sourced for community adoption.

About the Speaker(s)

The work was presented on behalf of the systems research group at the Technical University of Munich (TUM). The core research team includes Patrick Sabanic, Masanori Misono, Teofil Bodea, Julian Pritzi, Michael Hackl, Dimitrios Stavrakakis, and Pramod Bhatotia, reflecting collaborative systems engineering focused on secure cloud computing infrastructure and hardware-software co-design.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)