arXiv Science⌕ Search

arXiv subjects

Bastien Buil

Publications and source records attributed to Bastien Buil.

3 recordsLinked to original sources

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.

cs.CR↗

TinyContainer: Container Runtime Middleware Enabling Multi-tenant Microcontrollers with Built-in Security

Software containerization technologies for resource-limited devices enable multi-tenant microcontrollers, which allow running multiple applications with different permission levels. However, current solutions lack run time configuration over various settings on container scheduling and container permissions to host resources. This limits the applicability of constrained containerization in dynamic and heterogeneous environments. This paper introduces TinyContainer, a lightweight software container management middleware designed for multi-tenant microcontrollers. TinyContainer provides per-container configurable scheduling and fine-grained access control to host resources through a metadata-driven approach, supporting multiple runtimes via a runtime abstraction layer. We analyze the performance of TinyContainer with a small WebAssembly runtime, CS4WAMR, and RIOT OS, a common RTOS. We report on experiments using popular IoT boards based on various Cortex-M microcontrollers. We show the endpoint system brought by TinyContainer allowing to regulate access of containers to host resources and provide host services to containers with an overhead of up to 4 ms per call. In particular, we showcase a TinyML use case, whereby containers retain data and model weights, while model inference is delegated to native host RTOS services.

cs.OS↗

treVM: Tiny Rust Embedded Virtual Machines with WASM on Variable Resource-Constrained Hardware

Software stacks embedded on microcontroller-based hardware typically provide rudimentary APIs programmed in C/C++, basic connectivity and, sometimes, a firmware update mechanism. Such coarse mechanisms contrast with widely used APIs and more advanced networked interaction expected from software stacks deployed on less resource-constrained hardware (microprocessor-based). In this paper, we aim to bridge this gap by designing treVM, a generic scheme to host high-level WebAssembly code capsules, bolted on a general-purpose Rust embedded software platform, able to run on a large variety of 32-bit microcontrollers. Not only can treVM capsules host highly customizable business logic, but capsules can also be securely updated on demand over the network, on devices already deployed in the field. We implement treVM in Rust, on top of Ariel OS, a general-purpose RTOS, and we publish the code as open source. Based on our implementation, we validate the feasibility of treVM on commonly available boards, and we report on extensive benchmarks we performed on heterogeneous hardware including Arm Cortex-M, RISC-V, and Xtensa microcontroller architectures. As such, treVM provides a promising new framework to secure continuous deployment of embedded software on low-power networked devices.

cs.OS↗