Walma: Learning to See Memory Corruption in WebAssembly
Not on the map. Why?
Abstract (arXiv)
WebAssembly's (Wasm) monolithic linear memory turns a single memory-corruption bug into a bidirectional threat: a compromised module can attack its embedding host, and a malicious host can tamper with a trusted module's state. Existing defenses require custom runtimes or source changes, and none can verify runtime integrity under an adversarial host. We present Walma, a framework for WebAssembly linear memory attestation that renders snapshots of linear memory as grayscale images and classifies them with a convolutional neural network. The network reads the row-aligned structure that compiled code imposes on memory and detects corruption that byte and texture statistics miss. On structured targets this extends to tampering that no program input triggers, such as direct memory writes by a malicious host. On real-world CVE-affected applications, hiding corruption from Walma's verdict requires overwriting a large fraction of memory, hundreds of kilobytes to megabytes on our targets. A Shannon-entropy analysis of benign memory bounds the class of out-of-band edits that the learned prior can detect. Across the 53 binaries of the WABench suite, attestation costs 1.07x--1.69x at the host boundary, making continuous, state-centric memory attestation for Wasm practical.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 18 of its 78 references that are in the map. First posted on arXiv 25 Mar 2026.
Builds on
18 of 78 references.
References · 18
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 33
- 2016C-FLAT: Control-FLow ATtestation for Embedded Systems Softwarecited by 7
- 2022WaTZ: A Trusted WebAssembly Runtime Environment with Remote Attestation for TrustZonecited by 6
- 2018OAT: Attesting Operation Integrity of Embedded Devicescited by 3
- 2020Retrofitting Fine Grain Isolation in the Firefox Renderer (Extended Version)cited by 3
- 2021Twine: An Embedded Trusted Runtime for WebAssemblycited by 3
- 2024Side-Channel Analysis of OpenVINO-based Neural Network Modelscited by 3
- 2023Eunomia: Enabling User-specified Fine-Grained Search in Symbolically Executing WebAssembly Binariescited by 2
- 2024On the Lack of Robustness of Binary Function Similarity Systemscited by 2
6 more
- 2021DIALED: Data Integrity Attestation for Low-end Embedded Devicescited by 1
- 2021Fuzzm: Finding Memory Bugs through Binary-Only Instrumentation and Fuzzing of WebAssemblycited by 1
- 2022MSWasm: Soundly Enforcing Memory-Safe Execution of Unsafe Codecited by 1
- 2024One for All and All for One: GNN-based Control-Flow Attestation for Embedded Devicescited by 1
- 2024SeeWasm: An Efficient and Fully-Functional Symbolic Execution Engine for WebAssembly Binariescited by 1
- 2025The Promise and Pitfalls of WebAssembly: Perspectives from the Industrycited by 1
Built on by
Not cited yet.