Lune

POPL2022Top-tier venue

Isolation without taxation: near-zero-cost transitions for WebAssembly and SFI

Matthew Kolosick, Shravan Narayan, Evan Johnson, Conrad Watt, Michael LeMay, Deepak Garg, Ranjit Jhala, Deian Stefan

Abstract

Software sandboxing or software-based fault isolation (SFI) is a lightweight approach to building secure systems out of untrusted components. Mozilla, for example, uses SFI to harden the Firefox browser by sandboxing third-party libraries, and companies like Fastly and Cloudflare use SFI to safely co-locate untrusted tenants on their edge clouds. While there have been significant efforts to optimize and verify SFI enforcement, context switching in SFI systems remains largely unexplored: almost all SFI systems use heavyweight transitions that are not only error-prone but incur significant performance overhead from saving, clearing, and restoring registers when context switching. We identify a set of zero-cost conditions that characterize when sandboxed code has sufficient structured to guarantee security via lightweight zero-cost transitions (simple function calls). We modify the Lucet Wasm compiler and its runtime to use zero-cost transitions, eliminating the undue performance tax on systems that rely on Lucet for sandboxing (e.g., we speed up image and font rendering in Firefox by up to 29.7% and 10% respectively). To remove the Lucet compiler and its correct implementation of the Wasm specification from the trusted computing base, we (1) develop a static binary verifier , VeriZero, which (in seconds) checks that binaries produced by Lucet satisfy our zero-cost conditions, and (2) prove the soundness of VeriZero by developing a logical relation that captures when a compiled Wasm function is semantically well-behaved with respect to our zero-cost conditions. Finally, we show that our model is useful beyond Wasm by describing a new, purpose-built SFI system, SegmentZero32, that uses x86 segmentation and LLVM with mostly off-the-shelf passes to enforce our zero-cost conditions; our prototype performs on-par with the state-of-the-art Native Client SFI system.

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.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Iris-Wasm: Robust and Modular Verification of WebAssembly Programs cites Retrofitting Fine Grain Isolation in the Firefox Renderer
  • SoK: On the Fragility of Memory Error Exploit Mitigations cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • SECOMP: Formally Secure Compilation of Compartmentalized C Programs cites Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI
  • SECOMP: Formally Secure Compilation of Compartmentalized C Programs cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • Mohabi: Disaggregating and Sandboxing the Firefox JavaScript Engine cites Доверя'й, но проверя'й: SFI safety for native-compiled Wasm
  • Mohabi: Disaggregating and Sandboxing the Firefox JavaScript Engine cites Retrofitting Fine Grain Isolation in the Firefox Renderer
  • Mohabi: Disaggregating and Sandboxing the Firefox JavaScript Engine cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • Доверя'й, но проверя'й: SFI safety for native-compiled Wasm cites Retrofitting Fine Grain Isolation in the Firefox Renderer
  • Доверя'й, но проверя'й: SFI safety for native-compiled Wasm cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI cites Shreds: Fine-Grained Execution Units with Private Memory
  • Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI cites Доверя'й, но проверя'й: SFI safety for native-compiled Wasm
  • Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI cites Retrofitting Fine Grain Isolation in the Firefox Renderer
  • Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI cites Donky: Domain Keys - Efficient In-Process Isolation for RISC-V and x86
  • Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFI cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • Retrofitting Fine Grain Isolation in the Firefox Renderer cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • Donky: Domain Keys - Efficient In-Process Isolation for RISC-V and x86 cites Shreds: Fine-Grained Execution Units with Private Memory
  • Donky: Domain Keys - Efficient In-Process Isolation for RISC-V and x86 cites ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)
  • ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK) cites Shreds: Fine-Grained Execution Units with Private Memory
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Going beyond the Limits of SFI: Flexible and Secure Hardware-Assisted In-Process Isolation with HFIShravan Narayan, Tal Garfinkel, Mohammadkazem Taram, Joey Rudek et al.ASPLOS 2023 · 27 citations
  2. Iris-Wasm: Robust and Modular Verification of WebAssembly ProgramsXiaojia Rao, Aïna Linn Georges, Maxime Legoupil, Conrad Watt et al.PLDI 2023 · 19 citations
  3. SECOMP: Formally Secure Compilation of Compartmentalized C ProgramsJérémy Thibault, Roberto Blanco, Dongjae Lee, Sven Argo et al.CCS 2024 · 1 citation
  4. Mohabi: Disaggregating and Sandboxing the Firefox JavaScript EngineAbhishek Sharma, Anand Balaji, Zachary Yedidia, Anthony Du et al.OSDI 2026 · 1 citation
  5. SoK: On the Fragility of Memory Error Exploit MitigationsAdriaan Jacobs, Mahmoud Ammar, Stijn VolckaertUSENIX Security 2026

Builds on5

  1. ERIM: Secure, Efficient In-process Isolation with Protection Keys (MPK)Anjo Vahldiek-Oberwagner, Eslam Elnikety, Nuno O. Duarte, Michael Sammler et al.USENIX Security 2019 · 247 citations
  2. Shreds: Fine-Grained Execution Units with Private MemoryYaohui Chen, Sebassujeen Reymondjohnson, Zhichuang Sun, Long LuS&P 2016 · 116 citations
  3. Доверя'й, но проверя'й: SFI safety for native-compiled WasmEvan Johnson, David Thien, Yousef Alhessi, Shravan Narayan et al.NDSS 2021
  4. Retrofitting Fine Grain Isolation in the Firefox RendererShravan Narayan, Craig Disselkoen, Tal Garfinkel, Nathan Froyd et al.USENIX Security 2020
  5. Donky: Domain Keys - Efficient In-Process Isolation for RISC-V and x86David Schrammel, Samuel Weiser, Stefan Steinegger, Martin Schwarzl et al.USENIX Security 2020

Related papers

  1. Segue & ColorGuard: Optimizing SFI Performance and Scalability on Modern ArchitecturesShravan Narayan, Tal Garfinkel, Evan Johnson, Zachary Yedidia et al.ASPLOS 2025 · 1 citation
  2. Lightweight Fault Isolation: Practical, Efficient, and Secure Software SandboxingZachary YedidiaASPLOS 2024 · 17 citations
  3. WaVe: a verifiably secure WebAssembly sandboxing runtimeEvan Johnson, Evan Laufer, Zijie Zhao, Dan Gohman et al.S&P 2023
  4. Deterministic Client: Enforcing Determinism on Untrusted Machine CodeZachary Yedidia, Geoffrey Ramseyer, David MazièresOSDI 2025 · 1 citation
  5. Provably-Safe Multilingual Software Sandboxing using WebAssemblyJay Bosamiya, Wen Shih Lim, Bryan ParnoUSENIX Security 2022
Dusk over the sea between two cliffs drawn in fine vertical lines