# SensorGuard-RV: Sensor-to-Register Data Protection for Resource-Constrained RISC-V Devices

DevFeed: [SensorGuard-RV: Sensor-to-Register Data Protection for Resource-Constrained RISC-V Devices](<https://devfeed.tech/articles/sensorguard-rv-sensor-to-register-data-protection-for-resource-constrained-risc-v-devices-119931.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.08380>)

Author: Hamid Noori, Carlton Shepherd

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Embedded Systems](<https://devfeed.tech/topics/embedded-systems.md>), [RISC-V](<https://devfeed.tech/topics/riscv.md>), [fpga](<https://devfeed.tech/topics/fpga.md>), [trust](<https://devfeed.tech/topics/trust.md>)

Tags: [accelerometer](<https://devfeed.tech/tags/accelerometer.md>), [access-control](<https://devfeed.tech/tags/access-control.md>), [acquisition](<https://devfeed.tech/tags/acquisition.md>), [core](<https://devfeed.tech/tags/core.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cs-ar](<https://devfeed.tech/tags/cs-ar.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cycles](<https://devfeed.tech/tags/cycles.md>), [data-protection](<https://devfeed.tech/tags/data-protection.md>), [decrypt](<https://devfeed.tech/tags/decrypt.md>), [driver](<https://devfeed.tech/tags/driver.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [embedded-systems](<https://devfeed.tech/tags/embedded-systems.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [engine](<https://devfeed.tech/tags/engine.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [flight](<https://devfeed.tech/tags/flight.md>), [fpga](<https://devfeed.tech/tags/fpga.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [risc-v](<https://devfeed.tech/tags/risc-v.md>), [sensor](<https://devfeed.tech/tags/sensor.md>)

## AI overview

SensorGuard-RV protects sensor readings from interception, alteration, fabrication, and replay along the path to an application. After setup, a write-once ownership switch assigns the sensor to a fixed-function controller, which encrypts samples with a software-inaccessible key. A new RISC-V instruction verifies and decrypts samples into a CPU register, rejecting invalid tags and replays, including across resets. The prototype uses a NEORV32 core, an ADXL362 SPI accelerometer, and an Artix-7 FPGA. At 100 MHz, a protected sample reaches a register in 5,191 cycles (51.9 μs); the two Ascon engines account for 30 cycles. The protected loop achieves 19,015 transactions/s, 5.3% above the software-driven SPI baseline, as fixed-function acquisition avoids per-byte software polling. Added logic is 3,155 LUTs and 2,215 registers (5.0% and 1.7% of the device); clock speed remains 100 MHz, while estimated power rises from 118 to 368 mW.

## Source excerpt

arXiv:2611.08380v1 Announce Type: new 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 $\mu$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.