WaSC: Hardening WebAssembly Sandboxes via System Interface Decoupling
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.
Authors
- Zhixiang Wei
- Tianlei Xiong
- Xingzi Yu
- Zhengwei Qi
- Hao Wang
- Yufan Jiang
- Chen Chen
- Bo Peng
- Yun Wang
- Wei Tang
Institutions
- Stevens Institute of Technology (US)
- Shanghai Jiao Tong University (CN)
- Antea Group (France) (FR)
Publication Details
- Journal
- ACM Transactions on Architecture and Code Optimization
- Published
- 2026-02-23
- DOI
- https://doi.org/10.1145/3795882
- Primary Topic
- Security and Verification in Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00