[Paper Review] Building Your Own Trusted Execution Environments Using FPGA
BYOTee is a framework that enables users to build customizable, multiple, and equally secure Trusted Execution Environments (TEEs) on commodity FPGA devices by creating on-demand enclaves with configurable hardware and software Trusted Computing Bases (TCBs). It provides pre- and post-execution remote attestation for hardware and software integrity, achieving strong security and performance on low-end Zynq-7000 FPGA systems with four SSA workloads and 12 benchmarks.
In recent years, we have witnessed unprecedented growth in using hardware-assisted Trusted Execution Environments (TEE) or enclaves to protect sensitive code and data on commodity devices thanks to new hardware security features, such as Intel SGX and Arm TrustZone. Even though the proprietary TEEs bring many benefits, they have been criticized for lack of transparency, vulnerabilities, and various restrictions. For example, existing TEEs only provide a static and fixed hardware Trusted Computing Base (TCB), which cannot be customized for different applications. Existing TEEs time-share a processor core with the Rich Execution Environment (REE), making execution less efficient and vulnerable to cache side-channel attacks. Moreover, TrustZone lacks hardware support for multiple TEEs, remote attestation, and memory encryption. In this paper, we present BYOTee (Build Your Own Trusted Execution Environments), which is an easy-to-use infrastructure for building multiple equally secure enclaves by utilizing commodity Field Programmable Gate Arrays (FPGA) devices. BYOTee creates enclaves with customized hardware TCBs, which include softcore CPUs, block RAMs, and peripheral connections, in FPGA on demand. Additionally, BYOTee provides mechanisms to attest the integrity of the customized enclaves' hardware and software stacks, including bitstream, firmware, and the Security-Sensitive Applications (SSA) along with their inputs and outputs to remote verifiers. We implement a BYOTee system for the Xilinx System-on-Chip (SoC) FPGA. The evaluations on the low-end Zynq-7000 system for four SSAs and 12 benchmark applications demonstrate the usage, security, effectiveness, and performance of the BYOTee framework.
Motivation & Objective
- Address the limitations of proprietary TEEs like Intel SGX and Arm TrustZone, including lack of transparency, fixed TCBs, shared CPU cores, and vulnerability to side-channel and cold-boot attacks.
- Overcome the constraints of existing TEEs that enforce a monolithic software TCB and rely on untrusted, complex operating systems or firmware.
- Enable users to build multiple, isolated, and cryptographically verifiable TEEs with custom hardware components (e.g., softcore CPUs, peripherals) on commodity FPGAs.
- Provide strong remote attestation for both hardware (bitstream, firmware) and software (SSA, inputs/outputs) stacks to ensure runtime integrity.
- Design a lightweight, composable, and extensible framework that allows developers to tailor TEEs to specific application needs without compromising security.
Proposed method
- Utilizes commodity System-on-Chip (SoC) FPGAs (e.g., Xilinx Zynq-7000) to instantiate multiple isolated enclaves with user-defined hardware components including softcore CPUs, block RAMs, and peripheral interfaces.
- Employs a BYOTee Firmware layer to manage enclave lifecycle, provide system libraries, and enable secure communication between enclaves and the Rich Execution Environment (REE).
- Introduces a trust bootstrap mechanism that binds the FPGA bitstream, firmware, and SSA to a unique cryptographic root of trust using hardware-protected keys.
- Supports two attestation modes: pre-execution (verifying the integrity of the enclave’s hardware and software stack before execution) and post-execution (verifying the correctness of inputs, outputs, and execution state).
- Leverages FPGA’s reconfigurability to allow on-demand creation and destruction of enclaves with customized TCBs, avoiding reliance on fixed, monolithic TEEs.
- Uses hardware-protected measurement accumulation (e.g., via secure registers or cryptographic digests) to enable remote verification of enclave integrity by untrusted verifiers.

Experimental results
Research questions
- RQ1Can a fully user-configurable TEE be built on commodity FPGAs that supports multiple isolated enclaves with distinct hardware and software TCBs?
- RQ2Can remote attestation be effectively extended to cover not only the bitstream and firmware but also the inputs, outputs, and execution behavior of Security-Sensitive Applications (SSAs)?
- RQ3Does the proposed framework achieve acceptable performance and resource efficiency on low-end FPGAs while maintaining strong security guarantees?
- RQ4How does the performance of BYOTee compare to existing TEEs like SGX and TrustZone in terms of execution overhead and side-channel resistance?
- RQ5Can the framework mitigate common TEE vulnerabilities such as cache side-channel attacks and cold-boot attacks through architectural isolation and memory encryption?
Key findings
- BYOTee successfully implements multiple, isolated, and cryptographically verifiable TEEs on a low-end Xilinx Zynq-7000 FPGA, demonstrating feasibility on commodity hardware.
- The framework achieves remote attestation for both hardware (bitstream, firmware) and software (SSA inputs/outputs), enabling trust establishment with remote verifiers.
- Evaluation on four SSAs and 12 benchmark applications shows that BYOTee maintains strong security properties, including resistance to cache side-channel attacks due to hardware isolation.
- The system demonstrates low performance overhead compared to native execution, with context switch costs significantly reduced due to dedicated hardware isolation per enclave.
- BYOTee eliminates the need for a monolithic REE OS or trusted OS kernel, reducing the software TCB and attack surface compared to SGX and OP-TEE.
- The framework supports memory encryption and protects against cold-boot attacks by isolating sensitive data in FPGA-internal memory and using secure bitstream loading.

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.