Iris-Wasm: Robust and Modular Verification of WebAssembly Programs
Open Access
- 6 June 2023
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 7 (PLDI) , 1096-1120
Abstract
WebAssembly makes it possible to run C/C++ applications on the web with near-native performance. A WebAssembly program is expressed as a collection of higher-order ML-like modules, which are composed together through a system of explicit imports and exports using a host language, enabling a form of higher- order modular programming. We present Iris-Wasm, a mechanized higher-order separation logic building on a specification of Wasm 1.0 mechanized in Coq and the Iris framework. Using Iris-Wasm, we are able to specify and verify individual modules separately, and then compose them modularly in a simple host language featuring the core operations of the WebAssembly JavaScript Interface. Building on Iris-Wasm, we develop a logical relation that enforces robust safety: unknown, adversarial code can only affect other modules through the functions that they explicitly export. Together, the program logic and the logical relation allow us to formally verify functional correctness of WebAssembly programs, even when they invoke and are invoked by unknown code, thereby demonstrating that WebAssembly enforces strong isolation between modules.Keywords
Funding Information
- Villum Investigator grant (25804)
- EPSRC fellowship (EP/R034567/1)
This publication has 22 references indexed in Scilit:
- Robust and compositional verification of object capability patternsProceedings of the ACM on Programming Languages, 2017
- Interactive proofs in higher-order concurrent separation logic2017
- CHERI: A Hybrid Capability-System Architecture for Scalable Software Compartmentalization2015
- Deep Specifications and Certified Abstraction Layers | Proceedings of the 42nd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages2015
- Iris2015
- Coq2013
- RockSalt2012
- Certified assembly programming with embedded code pointersACM SIGPLAN Notices, 2006
- Verification of safety properties for concurrent assembly code2004
- Building Certified Libraries for PCC: Dynamic Storage AllocationLecture Notes in Computer Science, 2003