arXiv:2608.26367cs.CRAug 2026

Manuscript Offprint

arXiv:2608.26367

PRISM: Lightweight Enclave Isolation with Prismatic Capabilities

Merve Gülmez, Adam Caulfield, Hakan Englund, N. Asokan, Thomas Nyman

Abstract

Trusted execution environments (TEEs) protect sensitive code and data from external interference, but lack inherent memory safety. CHERI can enforce spatial memory safety at the object level. Attempts to establish a TEE using CHERI primitives suffer from (1) expensive capability revocation operations, (2) need to rely on the host operating system (OS) to support provenance tracking and physical memory protection, (3) expensive domain transitions, and (4) lack of support for remote attestation.

We introduce prismatic capabilities and present PRISM, a TEE architecture for CHERI leveraging prismatic capabilities to create userspace enclaves while addressing these challenges. PRISM binds enclave ‘hues’ (identifiers) in prismatic capabilities to physical memory access controls, enables O(1) ownership establishment without memory sweeps, and supports efficient domain transitions that atomically activate and deactivate prismatic capabilities. Additionally, PRISM enables remote attestation of its enclaves. We demonstrate that execution of userspace enclaves in PRISM incurs only moderate overhead ( ≤15%\leq 15\%), a significant improvement over the same workloads under Intel SGX.

1 Introduction

Hardware-isolated trusted execution environments (TEEs) have become a cornerstone of confidential computing, enabling applications to protect sensitive code and data even when the host operating system (OS) is compromised or malicious. TEEs provide an isolated computing environment within which code and data are inaccessible to the host system, except when authorized and through well-defined interfaces. The use of TEEs in industry [1, 2, 3, 4] and academia [5, 6, 7] is ubiquitous across a broad range of systems. TEEs protect their code and data from direct manipulation. However, the Achilles' heel of TEEs is the threat surface exposed by the software within; security lapses in real-world TEEs are predominantly caused by vulnerabilities in the trusted software, such as memory-safety issues [8, 9, 10]. The memory safety of TEE code is typically not enforced by the architecture itself. It can be achieved though memory-safe languages, e.g., Rust, but TEE OSs or their trusted runtime typically rely on low-level C (or C++) components repurposed from mainstream toolchains. The threat surface is exacerbated by bloated trusted computing bases (TCBs); the software threat surface of a confidential virtual machine (CVM) is hardly any smaller than that of its non-confidential counterpart, unless explicitly minimized as part of system hardening.

Capability Hardware Enhanced RISC Instructions (CHERI) [11] guarantees spatial memory safety, extending conventional instruction set architectures (ISAs) with hardware capabilities that embed object types, bounds, permissions, and validity tags into pointers themselves. CHERI naturally enforces spatial memory safety at the object level and enables fine-grained compartmentalization through capability sealing and controlled invocation ( §2.1§2.1).

While CHERI’s per-pointer access control and sealed invocation are relevant to userspace TEEs, also known as enclaves, CHERI was not built to enforce exclusive access of capabilities belonging to a TEE. CHERI-TrEE proposes a CHERI-based TEE design [12]; however, it requires a linear memory sweep to prove exclusive ownership, and further operates directly on physical memory without virtual-address support—precluding deployment on systems with an OS-managed MMU. Capstone [13] avoids sweeps by introducing linear capabilities with revocation trees, but imposes tree-traversal overhead and requires a bespoke compiler toolchain. CHERI, by design, avoids such indirection: once a capability is derived, no historical lookup table tracks where it propagates. This makes ensuring exclusive access in CHERI fundamentally difficult—there is no efficient way to revoke all capabilities overlapping a given region short of scanning all memory and registers. Virtual-to-physical address translation further exacerbates this problem: capabilities operate on virtual addresses, yet enclave isolation must protect physical memory.

This paper and contributions. We propose prismatic capabilities for the CHERI architecture to enable lightweight enclave execution in userspace, secure from even an untrusted operating system. A prismatic capability is a new capability type for enclaves which receive a hue (provenance identifier for an enclave instance), and where data additionally receives a color 1^{1}(provenance identifier for dynamic allocations). Hues are bound to an assigned physical memory region and simultaneously gate memory accesses to provide exclusive access, control invocation, and serve as an attestation identity. Hue assignment and life-cycle are managed exclusively by a machine-mode (M-mode) TCB, ensuring that no software below machine mode—including the OS kernel—can assign and retire enclave hues. Hardware call gates enable safe, zero-trap context switches into and out of a running enclave. Finally, a hardware-hue-addressed table enforces ac-

Both authors contributed equally to this research.

① 1-bit Validity tag

2 Permissions3 Object type4 Bounds
5 Baseline architecture address

Figure 1: CHERI capability layout from Watson et al. [15]

cess control at the physical layer, ensuring that even a malicious OS that controls virtual address translation cannot reach enclave memory. In summary, our contributions are:

  • The design of prismatic capabilities ( §\S 4): a CHERI extension with capability-based physical memory isolation, hardware call gates for trap-free enclave transitions, and minimal M-mode TCB (Hue Management Monitor) for life cycle management and remote attestation.

  • PRISM: a realization of prismatic capabilities on the CHERI-RISC-V QEMU full-system emulator and in an field-programmable gate array (FPGA) softcore based on the CHERI-Toooba [14] processor ( §\S 5.1).

  • Software support for PRISM through a CheriBSD kernel driver ( §\S 5.3) and userspace enclave software development kit (SDK) that supports source-compatibility 2^{2} with Software Guard Extension (SGX) enclaves ( §\S 5.4).

  • Demonstrating the efficacy of PRISM through three case studies using real-world SGX enclaves ( §\S 6.1.2) recompiled to PRISM with moderate run-time overhead ( ≈\approx 6 – -15%).

  • Proof of security for PRISM's attestation protocol through formal modeling and symbolic protocol verification ( §\S 6.3).

We will make the full source code and register-transfer level (RTL)-implementation of PRISM available for artifact evaluation and plan to open-source all the artifacts on acceptance.

References (64)