Abstract
WebAssembly (Wasm) has recently gained attention in embedded systems due to its lightweight runtime support and broad compatibility with various languages and platforms. However, Wasm’s linear memory model lacks internal protection mechanisms, making it vulnerable to a wide range of memory safety violations. To address this, prior work has proposed techniques for protecting memory within the linear memory space. While effective to some extent, these approaches either suffer from limited detection coverage or are unsuitable for resource-constrained embedded systems. In this paper, we present WARD, a redzone-based memory protection technique tailored for Wasm in tiny embedded systems. At its core, WARD employs a randomized linear-to-physical address translation mechanism, which enables effective detection of memory violations without requiring specific hardware extensions. Our evaluation shows that WARD provides improved memory detection coverage over prior techniques, with reasonable performance of 24.2% on benchmark and 13.03% on real-world applications, and memory overhead suitable for embedded systems.
Funding Information
  • National Research Foundation of Korea
  • Korean government (RS-2023-00217689)
  • Institute of Information and Communications Technology Planning and Evaluation (IITP)-Information Technology Research Center
  • Korean government (IITP-2025-RS-2023-00259967)