SURE-VM: Secure Over-the-Air Continuous Deployment of Tiny Wasm Virtual Machines Embedded in Rust on Microcontrollers
With the emergence of smaller runtimes, WebAssembly virtual machines (Wasm VMs) have become an option for embedded software deployed on microcontroller-based hardware. In this paper, we design SURE-VM, a secure continuous deployment (CD) framework for Wasm virtual machines hosted on an embedded Rust software platform (Ariel OS) applicable on heterogeneous microcontrollers. While prior work offered only communication channel security as guarantee for integrity and authenticity of the VM updates, SURE-VM adds on top object security and mechanisms mitigating rollback and mismatch attacks, following the SUIT standard architecture for IoT software update security. SURE-VM also adds a priviledge-based mechanism to enable varying VM access rights to different subsets of systems calls available on the device. We implemented SURE-VM and published the source code, based on which we carried out experiments on popular boards using different 32-bit microcontrollers (ARM Cortex-M, Xtensa, RISC-V). Our results show that compared to prior work, SURE-VM provides its additional security guarantees with 5% on-board RAM overhead and negligible network load overhead. All in all, SURE-VM thus provides an interesting framework advancing state of the art in this domain.