[Paper Review] CURE: A Security Architecture with CUstomizable and Resilient Enclaves
Cure is a novel hardware-assisted security architecture for modern high-performance systems that introduces customizable and resilient enclaves—sub-space, user-space, and self-contained enclaves—offering fine-grained isolation across privilege levels, exclusive resource assignment (CPUs, cache, peripherals), and practical cache side-channel protection. It achieves a geometric mean performance overhead of 15.33% on RISC-V benchmarks with minimal hardware changes.
Security architectures providing Trusted Execution Environments (TEEs) have been an appealing research subject for a wide range of computer systems, from low-end embedded devices to powerful cloud servers. The goal of these architectures is to protect sensitive services in isolated execution contexts, called enclaves. Unfortunately, existing TEE solutions suffer from significant design shortcomings. First, they follow a one-size-fits-all approach offering only a single enclave type, however, different services need flexible enclaves that can adjust to their demands. Second, they cannot efficiently support emerging applications (e.g., Machine Learning as a Service), which require secure channels to peripherals (e.g., accelerators), or the computational power of multiple cores. Third, their protection against cache side-channel attacks is either an afterthought or impractical, i.e., no fine-grained mapping between cache resources and individual enclaves is provided. In this work, we propose CURE, the first security architecture, which tackles these design challenges by providing different types of enclaves: (i) sub-space enclaves provide vertical isolation at all execution privilege levels, (ii) user-space enclaves provide isolated execution to unprivileged applications, and (iii) self-contained enclaves allow isolated execution environments that span multiple privilege levels. Moreover, CURE enables the exclusive assignment of system resources, e.g., peripherals, CPU cores, or cache resources to single enclaves. CURE requires minimal hardware changes while significantly improving the state of the art of hardware-assisted security architectures. We implemented CURE on a RISC-V-based SoC and thoroughly evaluated our prototype in terms of hardware and performance overhead. CURE imposes a geometric mean performance overhead of 15.33% on standard benchmarks.
Motivation & Objective
- Address the limitations of existing TEEs that use a one-size-fits-all enclave model, which fails to meet diverse service requirements.
- Enable secure, exclusive access to system resources such as CPU cores, cache ways, and peripherals for individual enclaves.
- Provide practical and efficient protection against cache side-channel and controlled side-channel attacks without relying on OS-wide changes.
- Support diverse workloads—including MLaaS and sensor-attached services—by allowing enclaves to span multiple privilege levels and cores.
- Design a flexible, architecture-agnostic TEE that supports unmodified applications and strong isolation across different security contexts.
Proposed method
- Introduce three distinct enclave types: sub-space enclaves for vertical isolation at all privilege levels, user-space enclaves for unprivileged applications, and self-contained enclaves that span multiple privilege levels and CPU cores.
- Implement hardware-enforced resource assignment via new system bus and cache control mechanisms, enabling exclusive allocation of cache ways, CPU cores, and peripherals to individual enclaves.
- Use dynamic cache partitioning to assign cache ways to enclaves with configurable boundaries, enabling fine-grained, runtime-adaptable isolation against cache side-channel attacks.
- Integrate secure I/O binding by allowing direct, exclusive assignment of peripherals (e.g., accelerators) to specific enclaves, eliminating reliance on untrusted OS or hypervisor mediation.
- Leverage existing RISC-V extensions and minimal hardware modifications to support enclave creation, memory encryption, and privilege-level isolation without requiring new processor microarchitectures.
- Design protection mechanisms that are lightweight and practical, avoiding costly data-oblivious algorithms or OS-level modifications.
Experimental results
Research questions
- RQ1How can a TEE architecture support multiple, customizable enclave types that adapt to diverse application workloads and security requirements?
- RQ2What mechanisms enable fine-grained, exclusive assignment of system resources (e.g., cache, CPU cores, peripherals) to individual enclaves without significant performance or hardware cost?
- RQ3Can practical and efficient cache side-channel protection be achieved without relying on OS-wide changes or impractical page coloring schemes?
- RQ4How can secure I/O binding to enclaves be achieved in a way that prevents interference from untrusted hypervisors or OS components?
- RQ5To what extent can a TEE architecture be implemented on open-source RISC-V with minimal hardware modifications while maintaining strong security guarantees?
Key findings
- Cure introduces the first TEE architecture to support three distinct enclave types—sub-space, user-space, and self-contained enclaves—enabling flexible isolation across privilege levels and execution contexts.
- The architecture enables exclusive assignment of CPU cores, cache ways, and peripherals to individual enclaves, ensuring strong isolation and preventing resource-based side-channel leakage.
- Cure’s dynamic cache partitioning allows fine-grained, runtime-configurable mapping of cache ways to enclaves, providing practical and efficient protection against cache side-channel attacks.
- The prototype implementation on a RISC-V-based SoC incurs a geometric mean performance overhead of 15.33% across standard benchmarks, demonstrating low runtime cost.
- Cure’s design avoids reliance on costly data-oblivious algorithms or OS-level modifications, offering a more scalable and practical solution than prior work.
- Unlike existing TEEs such as SGX, SEV, or TrustZone, Cure supports secure peripheral binding and multi-enclave isolation natively, without requiring external hardware or workarounds.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.