[Paper Review] Keystone: A Framework for Architecting TEEs.
Keystone is an open-source framework that enables the creation of customizable trusted execution environments (TEEs) by leveraging hardware abstractions like memory isolation and a programmable layer beneath untrusted components. It reduces TCB size, supports diverse workloads on unmodified RISC-V hardware, and enables secure, portable TEE development across varied deployment models.
Trusted execution environments (TEEs) are being used in all the devices from embedded sensors to cloud servers and encompass a range of cost, power constraints, and security threat model choices. On the other hand, each of the current vendor-specific TEEs makes a fixed set of trade-offs with little room for customization. We present Keystone -- the first open-source framework for building customized TEEs. Keystone uses simple abstractions provided by the hardware such as memory isolation and a programmable layer underneath untrusted components (e.g., OS). We build reusable TEE core primitives from these abstractions while allowing platform-specific modifications and application features. We showcase how Keystone-based TEEs run on unmodified RISC-V hardware and demonstrate the strengths of our design in terms of security, TCB size, execution of a range of benchmarks, applications, kernels, and deployment models.
Motivation & Objective
- Address the lack of customization in existing vendor-specific TEEs, which enforce fixed trade-offs in security, performance, and cost.
- Enable platform-specific optimizations and application-level features in TEEs without compromising security or portability.
- Reduce the trusted computing base (TCB) by abstracting low-level hardware primitives into reusable, composable components.
- Support deployment across diverse systems—from embedded devices to cloud servers—using unmodified RISC-V hardware.
Proposed method
- Leverage low-level hardware abstractions such as memory isolation and secure memory regions to build a foundation for TEE construction.
- Introduce a programmable layer beneath untrusted components (e.g., OS) to enable fine-grained control and customization of TEE behavior.
- Design reusable TEE core primitives (e.g., secure memory management, isolation enforcement) from hardware abstractions to ensure portability and modularity.
- Allow platform-specific extensions and optimizations while preserving security guarantees through formal abstractions and access control.
- Implement and evaluate Keystone on unmodified RISC-V hardware to validate portability and performance across diverse workloads.
- Support execution of kernels, benchmarks, and applications with minimal modifications, demonstrating flexibility in deployment models.
Experimental results
Research questions
- RQ1How can a TEE framework be designed to support customization across diverse hardware platforms and threat models while maintaining strong security guarantees?
- RQ2To what extent can a minimal trusted computing base (TCB) be achieved using composable, hardware-abstracted primitives in a TEE?
- RQ3Can a single framework enable secure, portable TEE development across unmodified RISC-V systems, from embedded to cloud environments?
- RQ4How does the framework perform across a range of workloads, including kernels, benchmarks, and real-world applications, in terms of security and efficiency?
Key findings
- Keystone enables the construction of customized TEEs with significantly reduced trusted computing base (TCB) compared to monolithic vendor TEEs.
- The framework successfully runs on unmodified RISC-V hardware, demonstrating portability and compatibility across diverse deployment models.
- Keystone supports the execution of a broad range of workloads, including kernels, benchmarks, and applications, with minimal modifications.
- The use of composable, hardware-abstracted primitives allows for platform-specific optimizations while preserving security and isolation guarantees.
- The framework’s design enables secure integration with untrusted components (e.g., OS) through a programmable layer beneath them.
- Keystone’s open-source nature facilitates extensibility and community-driven hardening, enhancing long-term maintainability and trust.
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.