Javascript must be enabled to continue!
CWAMR: REIMAGINING A CAPABILITYBASED WEBASSEMBLY RUNTIME VIA CHERI-BASED COMPARTMENTALIZATION
View through CrossRef
WebAssembly (WASM) provides a language-neutral execution format widely deployed for cloud, edge, and embedded workloads. Its linear memory model and software-level sandboxing afford portability and a baseline of spatial isolation, yet they rely on dynamic bounds checks and page-based protections that incur overhead and remain susceptible to violations under speculative and out-of-order execution. Prior efforts to secure WASM for untrusted workloads frequently embed it within Trusted Execution Environments (TEEs) such as Intel SGX, introducing attestation, enclave management complexity, and exposure to shared-cache side channels, while still lacking hardware-enforced pointer provenance and bounds. This work presents cWAMR, the first WebAssembly runtime ported to leverage CHERI’s hardware-enforced capability model, integrating fine-grained bounds, permissions, and pointer provenance directly into the execution of WASM modules. We describe the adaptations made to the WAMR runtime, including a CHERI-sealed memory allocator, capability-restricted system interface (cWASI), and secure externref handling, enabling WASM workloads to execute within CHERI compartments without reliance on enclavewide isolation boundaries. Validation on the Arm Morello CHERI platform demonstrates correct execution of AoT-compiled and interpreted WASM modules under capability enforcement, preserving memory safety, compartmentalization, and integrity guarantees throughout runtime operation. Developed under the UK Digital Security by Design (DSbD) CHERI Morello program, this work establishes a practical path for integrating hardware capability systems with portable runtime environments. It lays the groundwork for future toolchain support, performance characterization, and broader deployment of capabilitybased security for untrusted code execution.
Academy & Industry Research Collaboration
Title: CWAMR: REIMAGINING A CAPABILITYBASED WEBASSEMBLY RUNTIME VIA CHERI-BASED COMPARTMENTALIZATION
Description:
WebAssembly (WASM) provides a language-neutral execution format widely deployed for cloud, edge, and embedded workloads.
Its linear memory model and software-level sandboxing afford portability and a baseline of spatial isolation, yet they rely on dynamic bounds checks and page-based protections that incur overhead and remain susceptible to violations under speculative and out-of-order execution.
Prior efforts to secure WASM for untrusted workloads frequently embed it within Trusted Execution Environments (TEEs) such as Intel SGX, introducing attestation, enclave management complexity, and exposure to shared-cache side channels, while still lacking hardware-enforced pointer provenance and bounds.
This work presents cWAMR, the first WebAssembly runtime ported to leverage CHERI’s hardware-enforced capability model, integrating fine-grained bounds, permissions, and pointer provenance directly into the execution of WASM modules.
We describe the adaptations made to the WAMR runtime, including a CHERI-sealed memory allocator, capability-restricted system interface (cWASI), and secure externref handling, enabling WASM workloads to execute within CHERI compartments without reliance on enclavewide isolation boundaries.
Validation on the Arm Morello CHERI platform demonstrates correct execution of AoT-compiled and interpreted WASM modules under capability enforcement, preserving memory safety, compartmentalization, and integrity guarantees throughout runtime operation.
Developed under the UK Digital Security by Design (DSbD) CHERI Morello program, this work establishes a practical path for integrating hardware capability systems with portable runtime environments.
It lays the groundwork for future toolchain support, performance characterization, and broader deployment of capabilitybased security for untrusted code execution.
Related Results
An Empirical Evaluation of Static, Dynamic, and Hybrid Slicing of Webassembly Binaries
An Empirical Evaluation of Static, Dynamic, and Hybrid Slicing of Webassembly Binaries
The WebAssembly standard aims to form a portable compilation target, enabling the cross-platform distribution of programs written in a variety of languages. This paper introduces a...
WebAssembly (Wasm) for Legal Professionals: Exploring Current Parameters in License Compliance
WebAssembly (Wasm) for Legal Professionals: Exploring Current Parameters in License Compliance
WebAssembly is a technology currently gaining traction. However, documentation for WebAssembly on the Internet primarily targets developers and focuses on how to use it, or develop...
CWAMR: Reimagining A Capability based Webassembly Runtime Via Cheri-Based Compartmentalization
CWAMR: Reimagining A Capability based Webassembly Runtime Via Cheri-Based Compartmentalization
WebAssembly (WASM) provides a language-neutral execution format widely deployed for cloud, edge, and embedded workloads. Its linear memory model and software-level sandboxing affor...
Ada runtime environment working group—a framework for describing Ada runtime environment
Ada runtime environment working group—a framework for describing Ada runtime environment
The concept of a runtime environment to support program execution has always been associated with application software - it has only been with programming languages like Ada that t...
Runtime Verification on Robotics Systems
Runtime Verification on Robotics Systems
Runtime verification is a technique for generating monitors from formal specification of expected behaviors for the underlying system. It can be applied to automatically evaluate s...
Exploiting task-based programming models for resilience
Exploiting task-based programming models for resilience
Hardware errors become more common as silicon technologies shrink and become more vulnerable, especially in memory cells, which are the most exposed to errors. Permanent and interm...
Compartmentalization of Pectinase within Cellulose Hydrogel: An Efficient Technique to Enhance the Catalytic Properties of Pectinase for Industrial Applications
Compartmentalization of Pectinase within Cellulose Hydrogel: An Efficient Technique to Enhance the Catalytic Properties of Pectinase for Industrial Applications
Pectinase catalyze the breakdown of pectin polymer and widely has been used in different industrial preparations such as fruit juice preparation, liquification and scarification of...
Reviews Film
Reviews Film
Abstract
The Age of Shadows (2016) South Korea Director Jee-woon Kim Runtime 140 minutes
Backpack Full of Cash (2016) USA Director Sarah Mondale Runti...

