WaSC: Hardening WebAssembly Sandboxes via System Interface Decoupling
Open Access
- 21 March 2026
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Architecture and Code Optimization
- Vol. 23 (1) , 1-23
Abstract
WebAssembly (WASM) is emerging as an alternative to containers in serverless computing due to its lightweight memory isolation and secure language semantics. However, the WASM System Interface (WASI) does not guarantee isolation from the host kernel. Secure containers reduce exposure to the host kernel API, but they do not match WASM’s memory efficiency or startup latency. In this article, we introduce WaSC , a secure container runtime that hardens WASM system isolation by decoupling the system interface used by sandbox functions into a virtualization-based daemon. WASM functions connect to this daemon transparently; the daemon protects the system interface with machine-level isolation while preserving function-level startup times and memory footprints. Our evaluation shows that WaSC achieves a 99th-percentile startup latency of 15 ms and maintains a memory footprint of \(\sim\) 10 MB. Compared to Firecracker, a state-of-the-art secure container runtime, WaSC achieves 3× memory density on a single physical machine. We present microbenchmarks and application benchmarks that characterize WaSC ’s performance and inform performance tuning for serverless applications ported to WaSC . WaSC incurs a 3.2× slowdown for WASI calls along the virtualization-based daemon path, and SQLite speedtest1 indicates an average 80% increase in runtime.
Keywords
This publication has 24 references indexed in Scilit:
- WebAssembly and security: A reviewComputer Science Review, 2025
- WebAssembly as an Enabler for Next Generation Serverless ComputingJournal of Grid Computing, 2023
- Confine: Fine-grained system call filtering for container attack surface reductionComputers & Security, 2023
- WaVe: a verifiably secure WebAssembly sandboxing runtime2023
- Shrinking the Kernel Attack Surface Through Static and Dynamic Syscall LimitationIEEE Transactions on Services Computing, 2022
- Pushing Serverless to the Edge with WebAssembly Runtimes2022
- Docker ecosystem – Vulnerability AnalysisComputer Communications, 2018
- Cross-Tenant Side-Channel Attacks in PaaS Clouds2014
- Understanding modern device drivers2012
- Efficient software-based fault isolation1993