Towards Enhancing Web Application Security Using Trusted Execution

Cornelius Namiluko, Andrew J. Paverd, Tulio de Souza

TL;DR

This paper proposes a framework to boost web application security by integrating Trusted Execution Environments (TEEs)—specifically ARM TrustZone—into the webinos cross-device platform. By offloading sensitive cryptographic operations to hardware-isolated "secure worlds," the authors demonstrate that private keys can be protected from a compromised operating system with significantly better performance than traditional hardware security modules.

Introduction

Modern web applications are no longer confined to browsers; they run across smartphones, smart TVs, and IoT devices, accessing sensitive resources like GPS, NFC, and personal contacts. The webinos platform was designed to facilitate this cross-device ecosystem, using a Personal Zone Proxy (PZP) to manage communication and security across a user's devices.

Standard webinos architecture showing cross-device communication between a smartphone and a TV.

However, a significant security gap remains: the integrity of these systems rests on the safety of private cryptographic keys. Currently, these keys are managed by the device's primary Operating System (OS). If the OS is compromised by malware, the keys—and thus the user's data—are exposed. While hardware solutions like Trusted Platform Modules (TPMs) exist, they are often slow and difficult for high-level web platforms to access.

Proposed Architecture: Integrating TEEs

The authors aim to bridge the gap between high-level web APIs and low-level hardware security features by utilizing ARM TrustZone. Their novel approach involves splitting the system into two hardware-isolated domains:

  1. Feature-rich Domain (Normal World): Runs the standard OS, the webinos platform, and a modified version of OpenSSL. A custom OpenSSL TEE Engine acts as a proxy, delegating cryptographic tasks rather than performing them locally.
  2. Secure Domain (Secure World): Powered by TrustZone, this domain contains a minimal secure kernel and a trusted webinos application for key management.
The proposed TEE-enhanced architecture, detailing the hardware-isolated domain split and secure key management workflow.

Secure Workflow

When a web application needs to sign a request or establish a TLS connection, it calls the standard webinos API. This request trickles down to the OpenSSL TEE Engine, which communicates via a TEE Client Driver to the Secure World. Crucially, the private key never leaves the Secure World. The hardware performs the operation internally and simply returns the result (e.g., a digital signature) to the Normal World.

Key Insights and Results

  • Abstraction via OpenSSL Engines: By writing a custom engine, the authors made TEE integration transparent to the higher-level platform. Web developers do not need to learn complex TEE-specific APIs to benefit from hardware security.
  • Performance Parity: TEEs like TrustZone run on the main CPU in a time-sliced manner, making them vastly faster than external security chips.
  • Quantitative Speedup: Preliminary tests showed that an RSA signature operation in this TEE-enhanced architecture takes approximately 10 milliseconds. In contrast, previous research using a separate TPM reported latencies of roughly 1000 milliseconds. This 100x speedup makes hardware-backed security viable for real-time web communication.

Conclusion and Future Work

The authors successfully demonstrated the feasibility of proxying cryptographic functions through a TEE with only minor modifications to the existing webinos codebase. While current results were obtained using the OpenVirtualization emulation framework (QEMU), future work will focus on validating these gains on physical ARM hardware and implementing secure persistent storage for keys using the GlobalPlatform TEE standards.

Summary updated

BibTeX
@inproceedings{namiluko2013towards,
  author = {Cornelius Namiluko and Andrew J. Paverd and Tulio de Souza},
  title = {{Towards Enhancing Web Application Security Using Trusted Execution}},
  booktitle = {WASH},
  year = {2013},
}
Figure