TL;DR
This paper introduces T-Edge, a novel system that extends Trusted Execution Environments (TEEs) to heterogeneous edge computing platforms combining ARM CPUs and FPGAs. By leveraging ARM TrustZone and a custom attestation protocol, T-Edge provides secure, verifiable execution of applications on FPGAs, addressing critical security and privacy concerns in untrusted edge environments.
What Problem Does This Paper Address?
The increasing demand for real-time data processing at the "edge" has led to the adoption of heterogeneous computing architectures, combining CPUs with accelerators like GPUs and FPGAs. While TEEs exist for CPUs (e.g., Intel SGX, ARM TrustZone), extending this trust to FPGAs is challenging. FPGAs are reconfigurable, making them susceptible to malicious bitstream loading that could compromise data or system integrity. Furthermore, securing the communication link between the CPU and FPGA, especially in untrusted cloud or edge environments, is crucial. Existing solutions often lack flexibility for third-party developers or are too complex for edge deployments. This paper aims to bridge this gap by providing a flexible, secure, and verifiable TEE for ARM/FPGA systems.
Methods
The core of T-Edge is built upon ARM/FPGA System-on-Chip (SoC) platforms, specifically leveraging ARM TrustZone's inherent hardware-enforced separation between secure and non-secure worlds. The design integrates a dedicated security controller within the ARM TrustZone to manage FPGA reconfiguration and communication.
Key methodological contributions include:
- Isolated CPU-FPGA Communication: By mapping FPGA resources to the secure world within TrustZone, the system prevents untrusted software on the CPU from accessing FPGA resources. The physical connection within the SoC is inherently secure.
- Isolated FPGA Configuration: Runtime reconfiguration of the FPGA is managed by the TrustZone-enabled secure world, ensuring that only authorized and verified changes can occur. This prevents adversaries from reconfiguring the FPGA without a system reset and re-attestation.
- Remote Attestation Protocol: A two-phase attestation protocol is proposed:
- Boot-Time: The First Stage Bootloader (FSBL) measures the initial system state (FSBL and other boot components) and generates an ephemeral key pair. This process is local and not exposed externally.
- Run-Time: An interactive challenge-response protocol is used. The device generates an attestation report containing measurements and its identity, signed with a device-specific private key. This report, along with a challenge response, is sent to the remote user for verification.
- Provisioning Service: A provisioning service is responsible for publishing device public keys, enabling remote users to verify attestation reports.
- Formal Verification: The proposed protocol is formally verified using ProVerif to ensure compliance with essential security requirements.
Datasets
Not discussed in the paper.
Key Insights and Ideas
- FPGA Reconfiguration as a Security Challenge: The inherent flexibility of FPGAs, while powerful, is also their Achilles' heel. The ability to reconfigure the FPGA fabric on-the-fly presents a significant attack vector if not properly managed.
- Leveraging SoC Integration for Security: The tight integration of ARM cores and FPGA fabric on an SoC platform simplifies secure communication by eliminating the need for external, potentially vulnerable, communication channels.
- Attestation for Third-Party Flexibility: Traditional TEE deployment often requires monolithic firmware images. T-Edge's attestation protocol allows for a more flexible approach, enabling third-party developers to deploy their applications without needing to re-sign the entire system, thus enhancing usability.
- TrustZone as a Foundation: ARM TrustZone provides a robust hardware foundation for isolating secure operations, which T-Edge builds upon to extend trust to the FPGA.
Key Results
- Performance: The attestation mechanism introduces a negligible overhead. The application achieved a throughput of approximately 28.80 MB/s without attestation and 28.97 MB/s with attestation. The boot time overhead was 41.65 ms, which is less than 2% of the total boot time.
- Security Objectives Achieved: The system successfully demonstrates:
- Fault Isolation: Malicious applications cannot access the device's private key.
- Device Authentication: Remote users can verify the identity of the device.
- Program Authentication: Remote users can measure and verify the running program.
- Secure Channel Establishment: A secure channel is established between the device and the remote user.
- Privacy: Device and program identities are protected from the manufacturer and provisioning service.
- Prototype Implementation: A working prototype was implemented on a Xilinx ZCU106 ARM/FPGA development board.
Limitations and Future Work
- Root-of-Trust Compromise: The paper acknowledges that if the root-of-trust (e.g., eFUSE) is compromised, key revocation becomes infeasible. Future work could explore more robust mechanisms for key revocation in such scenarios.
- Cold-Boot Attacks: While the system aims to protect against many attacks, cold-boot attacks on RAM are mentioned as a potential vulnerability if memory encryption is not available.
- FPGA Security Enforcement: Existing FPGA security enforcement mechanisms primarily focus on intellectual property protection, not necessarily on the security of user data or the integrity of computations performed by the FPGA. The paper's approach addresses this by integrating the FPGA into the TEE.
- Future Research: The authors suggest that the integration of FPGA and TrustZone technology sets the stage for future research in secure heterogeneous computing, particularly for edge deployments. They also note that the solution is applicable to any FPGA IP given ARM TrustZone availability.
Summary updated