SensorGuard-RV: Sensor-to-Register Data Protection for Resource-Constrained RISC-V Devices
Abstract
Embedded systems rely on sensor measurements that traverse a complex hardware-firmware stack (e.g. peripheral interfaces, communication buses, memory, and drivers) before reaching the applications that use them. At worst, an attacker with access to this path may successfully intercept, overwrite, fabricate, or replay readings. This may cause systems that act on such data, such as flight controllers and industrial processes, to behave incorrectly or unsafely. Existing defences, such as trusted execution environments and trusted I/O paths, still depend on trusted driver software and correctly configured access control, which remain fragile in practice. In response, we present SensorGuard-RV, a hardware-first approach that delivers sensor samples into processor registers without trusting intermediate software, buses, or memory. After configuration, a write-once ownership switch hands the sensor to a fixed-function controller that performs hardware-level authenticated encryption on sensor samples under a key inaccessible to software. We develop a new RISC-V instruction then instructs the CPU to decrypt the sample and writes it to a register only after verifying its tag and rejecting replays, including across resets. We implement SensorGuard-RV on the NEORV32 core with an ADXL362 SPI accelerometer on an Artix-7 FPGA. At 100 MHz, a protected sample reaches a register in 5,191 cycles (51.9 s), of which the two Ascon authenticated encryption engines account for 30. Because fixed-function acquisition removes per-byte software polling, the protected loop sustains 19,015 transactions/s, 5.3% above a software-driven SPI baseline. The added logic (3,155 LUTs and 2,215 registers; 5.0% and 1.7% of the device) is dominated by the Ascon engine and preserves the 100 MHz clock, while estimated power rises from 118 to 368 mW.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AR
Related papers
Reconfiguring System-Level Protection Through Bounded Delegation in RISC-V MCUs
Shared title terminologycs.CRLuís Cunha, José Martins, Manuel Rodríguez et al.
Towards Lightweight IoT Intrusion Detection: Feature Optimization and Explainable Machine Learning for Resource-Constrained Environment
Shared title terminologycs.CRShaker Nawasra, Munther Abualkibash
PULSAR-V: I/O-Aware Post-Update Attestation for RISC-V
Shared title terminologycs.CRNiccolò Lentini, Stefano Di Carlo, Alessandro Savino
HiPerfCC-StateReuse: Ciphertext Reuse for Fast Confidential GPU Data Movement
Shared title terminologycs.CRHaoxuan Xu, Shaoyu Wang, Minghao Lin et al.
Felid: A Flexible and Efficient Design for Transformer Fine-Tuning over Encrypted Data
Shared title terminologycs.CRLinru Zhang, Jun Jie Sim, Xiangning Wang et al.
Privacy Protection in Self-Evolving Personal Agents: Persistent Memory and Cross-Carrier Transfer
Shared title terminologycs.CRZibin Lin, Taotao Wang, Shengli Zhang