As mobile and embedded devices increasingly handle sensitive data for tasks like facial recognition and autonomous driving, the security of their Graphics Processing Units (GPUs) has become a critical concern. Unlike discrete desktop GPUs with dedicated memory, Arm-based GPUs typically share physical RAM with the CPU. This unified memory architecture makes them vulnerable: a compromised mobile operating system can easily inspect or modify GPU memory.
Existing Trusted Execution Environments (TEEs) often require significant hardware changes or the inclusion of massive, complex GPU drivers within the "Secure World," which expands the attack surface. This paper introduces STRONGBOX, the first lightweight TEE designed specifically for Arm GPUs that provides robust isolation with a minimal Trusted Computing Base (TCB) and low performance overhead.
System Architecture and Design
STRONGBOX leverages existing hardware features like Arm TrustZone and Secure Virtualization to create a secure, isolated environment for GPU computations without requiring hardware modifications. The architecture is divided into three primary pillars:
- GPU Guard: Operating within the Secure Monitor (EL3), this component intercepts communication between the untrusted Host OS and the GPU hardware. It utilizes Stage-2 translation to "lock" the GPU's Memory-Mapped I/O (MMIO) registers during secure task execution, preventing OS interference.
- Task Protector: This module manages shared memory by dynamically partitioning RAM into "Trusted" and "Normal" regions. It ensures that while a secure task is active, the untrusted OS and other peripherals (such as DMA controllers) are physically blocked from the relevant memory ranges.
- TCB Reduction via Secure Virtualization: By utilizing the Armv8.4 Secure Virtualization extension, STRONGBOX can run at a higher privilege level (S-EL2) than the Secure OS (S-EL1). This design choice ensures that even if the Secure OS itself is compromised, the GPU's confidential data remains protected.
Operational Workflow
The STRONGBOX workflow minimizes the TCB by keeping complex driver logic in the untrusted Host OS, moving only security-critical checks—such as memory mapping and task submission—into the TEE. This "thin driver" approach results in a TCB of approximately 1,871 lines of code, which is significantly smaller than traditional solutions.
When a GPU task is prepared, the system triggers a Secure Monitor Call (smc). The GPU Guard then performs MMIO protection and environment checks, while the Task Protector handles memory protection. Once the environment is secure, the task is submitted to the GPU for computing. Upon completion or interruption, the system restores the memory and MMIO states before returning control to the Host OS.
Evaluation and Results
The researchers evaluated STRONGBOX using the Rodinia Benchmark Suite for GPU performance and Nbench for system-wide CPU impact.
- Performance Overhead: Secure GPU tasks experienced a relatively low overhead, ranging from 4.70% to 15.26%. This trade-off is considered negligible for the high level of security provided in mobile contexts.
- System Impact: Background execution of secure GPU tasks resulted in an average CPU slowdown of only 1.91%.
- Security Analysis: The system effectively mitigates "Iago attacks"—where a malicious OS provides invalid memory addresses—and prevents unauthorized memory access from both the OS and external hardware peripherals.
Limitations and Future Directions
While STRONGBOX provides a powerful solution for mobile Arm ecosystems, it is not designed for cloud or server environments where GPUs use PCIe and dedicated memory. Additionally, due to current Arm GPU hardware limitations, STRONGBOX enforces exclusive access, meaning only one secure task can run at a time. Future enhancements may leverage newer Armv8.4+ features to further harden the system against compromised Secure World software.
Summary updated