Skip to main content
QUICK REVIEW

[Paper Review] HyperEnclave: An Open and Cross-platform Trusted Execution Environment

Yuekai Jia, Shuang Liu|arXiv (Cornell University)|Dec 8, 2022
Security and Verification in ComputingComputer Science5 citations
TL;DR

HyperEnclave is an open, cross-platform trusted execution environment (TEE) that leverages virtualization extensions and TPM for hardware isolation, enabling existing Intel SGX programs to run with minimal or no code changes. It supports flexible enclave operation modes (ring-3, ring-0, or host) and achieves low overhead—only 5% on SQLite—making it suitable for production deployment in cloud and FinTech environments.

ABSTRACT

A number of trusted execution environments (TEEs) have been proposed by both academia and industry. However, most of them require specific hardware or firmware changes and are bound to specific hardware vendors (such as Intel, AMD, ARM, and IBM). In this paper, we propose HyperEnclave, an open and cross-platform process-based TEE that relies on the widely-available virtualization extension to create the isolated execution environment. In particular, HyperEnclave is designed to support the flexible enclave operation modes to fulfill the security and performance demands under various enclave workloads. We provide the enclave SDK to run existing SGX programs on HyperEnclave with little or no source code changes. We have implemented HyperEnclave on commodity AMD servers and deployed the system in a world-leading FinTech company to support real-world privacy-preserving computations. The evaluation on both micro-benchmarks and application benchmarks shows the design of HyperEnclave introduces only a small overhead.

Motivation & Objective

  • To address the lack of open, portable TEEs that support existing SGX applications without hardware or firmware changes.
  • To overcome the limitations of fixed-mode enclaves in existing TEEs, which restrict performance and functionality for I/O-intensive or memory-heavy workloads.
  • To reduce the trusted computing base (TCB) by isolating enclave management in a minimal RustMonitor, minimizing attack surface.
  • To enable secure, measured late launch via TPM to ensure integrity and remote attestation.
  • To support flexible enclave operation modes (user, kernel, or host ring) for diverse security and performance requirements.

Proposed method

  • HyperEnclave uses virtualization extensions (AMD-V) and TPM to create a process-based TEE without requiring custom hardware or firmware.
  • It introduces RustMonitor, a minimal trusted monitor written in Rust, running in VMX root mode to enforce memory isolation and manage enclave page tables.
  • The system operates in three modes: monitor (RustMonitor), normal (untrusted primary OS), and secure (enclave), with enclaves running in flexible privilege levels.
  • Memory isolation is enforced by having the trusted RustMonitor fully manage the enclave’s page table and page fault handling, eliminating OS involvement and mitigating page-table-based attacks.
  • Measured late launch ensures security: the primary OS boots first, then a kernel module launches RustMonitor and measures all boot components into TPM PCRs.
  • The enclave SDK is API-compatible with Intel SGX, enabling recompilation of existing SGX code with little or no source code changes.

Experimental results

Research questions

  • RQ1Can a process-based TEE be built on commodity hardware without requiring specific CPU or firmware modifications?
  • RQ2How can flexible enclave operation modes (user, kernel, or host ring) be securely supported to meet diverse performance and security needs?
  • RQ3What is the performance overhead of a virtualization-based TEE that supports SGX-compatible applications with minimal TCB?
  • RQ4Can a minimal, formally verifiable trusted monitor be used to achieve strong isolation while reducing the attack surface?
  • RQ5How can remote attestation and secure boot be achieved without relying on proprietary CPU extensions?

Key findings

  • HyperEnclave supports existing SGX programs with little or no source code changes due to API compatibility with the official SGX SDK.
  • The ECALL and OCALL overheads are under 9,700 and 5,260 cycles respectively on AMD servers, significantly lower than Intel SGX’s 14,432 and 12,432 cycles.
  • The performance overhead on real-world applications like SQLite is only 5%, demonstrating strong practical efficiency.
  • The system achieves secure boot and remote attestation via measured late launch, with all boot components measured into TPM PCRs to prevent rollback attacks.
  • The attack surface is minimized by delegating page table management entirely to the trusted RustMonitor, eliminating OS involvement and mitigating page-table-based side-channel attacks.
  • The implementation on commodity AMD servers shows that HyperEnclave is viable for production use, with a 7,500-line RustMonitor TCB and successful deployment in a world-leading FinTech company.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.