TL;DR
Robots constantly shuttle sensitive sensor data between DMA-capable hardware (like LiDARs) and software nodes, leaving it exposed in plaintext DRAM to a compromised OS kernel or a rogue peripheral. WORLDCLAVE is a new Trusted Execution Environment (TEE) built on RISC-V WorldGuard that extends enclave boundaries directly to devices, letting a single hardware rule admit both a software node and its dedicated hardware into the same isolated memory—without the host OS ever touching the data.
What Problem Does This Paper Address?
Modern robotic systems, such as those built on the Robot Operating System 2 (ROS 2), are dataflow pipelines: a sensor's Direct Memory Access (DMA) engine writes readings into memory, a chain of software nodes (like SLAM and planning) processes them, and an actuator's DMA engine reads the resulting commands. Because this data sits in DRAM in plaintext, an attacker who compromises the host OS kernel or plugs in a rogue DMA device can read or tamper with it.
Existing TEEs don't fit this model well. Some (like Intel SGX or standard RISC-V PMP) block device DMA from protected memory entirely. Others (like Intel TDX, AMD SEV-SNP, or Arm CCA) admit devices only into an entire confidential VM, forcing every node to carry its own guest OS. What robotics needs is a lightweight way to draw one security boundary around an individual node and the specific devices it talks to.
Methods
WORLDCLAVE builds on RISC-V WorldGuard, which tags every bus transaction—from a CPU core or a DMA device—with a World ID (WID) and checks it against a WGCHECKER in front of memory.
To make WorldGuard practical for a multi-node ROS 2 pipeline, WORLDCLAVE introduces four main mechanisms:
- WID Virtualization: Hardware provides only 32 WIDs. WORLDCLAVE treats a WID as a temporary execution identity for small nodes, reclaiming and reassigning it via an LRU policy while allowing large, deadline-sensitive nodes (like SLAM) and devices to be "pinned."
- System-Wide Revocation & Cache Fixes: Reclaiming a WID is not just bookkeeping; the security monitor (SM) must flush the victim's lines from every core's caches before revoking the WID's permission, ensuring dirty data is written back safely while leaving host and device permissions intact.
- Certified Sharing & Device Admission: Nodes share memory regions with devices and other nodes via checker slots. To prevent the host from slipping in an impostor subscriber, a deployment authority signs a participation graph (certificates) that the SM verifies before admitting a node to a channel.
- Direct Switch & TDDS: Instead of routing wake-up notifications through the host OS (6 privilege transitions), the SM resumes waiting receiver enclaves directly (2 transitions). Inside each enclave, Trusted DDS (TDDS) replaces CycloneDDS beneath an unmodified ROS 2 client stack.
Datasets
Rather than standard machine learning datasets, the authors evaluate WORLDCLAVE using:
- Recorded Sensor Frames: Replayed by a DMA engine into
cartographer_ros(60 frames on QEMU; 1,000 scans on FPGA) to test end-to-end SLAM and planning. - Microbenchmarks & Synthetic Pipelines: SHA-512 digest loops (up to 500 enclaves), the BEEBS benchmark suite, and a synthetic 3-node
rclcpppipeline (filter, estimator, controller) running at 30 Hz.
Key Insights and Ideas
- The WorldGuard Spec Leaves a Critical Cache Gap: Because the
WGCHECKERsits below the caches, cache hits never reach it. The authors show that any WorldGuard TEE relies on three cache guarantees: (C1) a line is hit only under the WID that filled it, (C2) one WID's lines can be flushed before revocation, and (C3) a request the checker would deny must evict nothing. - Hardware Bugs & an Eviction Channel: Tracing these conditions through an open WorldGuard implementation (Vyond), the authors found three RTL defects—including one that silently lost data between nodes—and an eviction side channel where a denied host or rogue device request could evict an enclave's dirty cache line, leaking its state via timing. They fixed the defects and closed the channel in hardware by having the L2 cache consult the checker before evicting.
Key Results
- Security: Validated on both an FPGA (Rocket-based SoC) and QEMU, WORLDCLAVE blocks a compromised host (
/dev/memreads), unauthorized enclaves, and unregistered DMA devices. Closing the eviction channel drops host secret recovery from 99% to 48% (chance) and rogue device evictions from 256/256 lines to 0/256. - Wake-up & Communication: Direct switching wakes a waiting node 5.0× faster than Keystone on the same core (and 5.5× across cores).
- Scalability: WORLDCLAVE scales to 500 concurrent enclaves with only 5.3% boundary-crossing overhead (whereas Keystone caps out at 6 enclaves on the same hardware).
- ROS 2 Compatibility: A full SLAM (
cartographer_ros) and planning pipeline fed by a DMA device ran end-to-end with the ROS 2 client stack unchanged (requiring only 8 edits tocartographer's core library to run its thread pool inline), taking 186 ms at the median (with 11 ms of isolation overhead).
Limitations and Future Work
- Single-Threaded Subset: Enclaves run a single thread, meaning TDDS does not support multithreaded executors, ROS 2 actions, or multi-client services. It also enforces a latest-sample QoS (
TRANSIENT_LOCAL, depth 1), which excludes workloads needing every sample (like IMU integration). - Platform Constraints: Device interrupts are not yet routed to enclaves (the SM polls completions on a 10 ms timer), and the lack of a monotonic counter means replaying an entire earlier deployment remains possible.
- Hardware Scope: The evaluation uses in-order Rocket cores; out-of-order cores and transient execution attacks are left for future work.
Summary updated