Distributed systems and trusted execution environments: Trade-offs and challenges

Rafael Pereira Pires, Pascal Felber, Marcelo Pasin

Abstract

This research explores the application of Trusted Execution Environments (TEEs), specifically Intel SGX, to build secure and privacy-preserving distributed systems in untrusted cloud environments. By shifting sensitive operations into hardware-isolated enclaves, we demonstrate significant performance improvements over traditional cryptographic software solutions. The study covers various domains, including content-based routing, big data processing, and private web search, while highlighting the critical performance trade-offs associated with hardware memory limitations.

Introduction

The increasing reliance on cloud computing necessitates running sensitive workloads on third-party infrastructure, which traditionally requires trusting complex software stacks or using slow cryptographic methods. This paper presents a series of systems that leverage hardware isolation to protect data confidentiality and execution integrity from privileged attackers without the performance overhead of homomorphic encryption.

Methods and System Design

The core of this work utilizes Intel Software Guard Extensions (SGX) to create "enclaves"—isolated memory regions inaccessible to the OS or hypervisor.

  • SCBR (Secure Content-Based Routing): This system matches encrypted publications to subscriptions within an enclave, ensuring routing logic remains private.
  • SecureStreams & Lightweight MapReduce: These frameworks execute a Lua interpreter inside SGX, allowing for plaintext processing of data that is decrypted and re-encrypted within the hardware boundary.
  • IBBE-SGX: An access control system that uses enclaves to manage master keys, enabling the use of fast symmetric cryptography for group file sharing instead of heavy asymmetric constructs.
  • Cyclosa: A decentralized P2P network of SGX nodes that provides private web search by mixing real user queries with "real" decoys stored in enclaves, making it difficult for search engines to profile users.

Key Insights: The Memory Cliff

A primary challenge identified is the "Memory Cliff." In first-generation SGX, the Enclave Page Cache (EPC) is limited to approximately 93.5 MB. Applications exceeding this limit face up to an 18x performance degradation due to the overhead of the OS securely swapping encrypted pages. However, for workloads optimized to fit within these limits, hardware isolation consistently outperforms heavy cryptographic constructs by allowing standard algorithms to run on plaintext data.

Results and Evaluation

Evaluation using real-world datasets, such as Yahoo! Finance stock quotes and AOL Query Logs, demonstrates the efficacy of the proposed systems:

  • Processing Efficiency: SCBR achieves an order of magnitude better performance than software-only secure routing alternatives.
  • Metadata Reduction: IBBE-SGX reduces group metadata size by six orders of magnitude compared to traditional hybrid encryption.
  • Search Privacy: Cyclosa maintains a remarkably low 4% re-identification rate while delivering sub-second latency, performing 13x faster than routing searches through Tor.

Conclusion

Trusted Execution Environments offer a practical and high-performance alternative to purely cryptographic approaches for securing distributed systems. While hardware constraints like the EPC limit require careful architectural consideration, the ability to perform secure, plaintext-speed operations in the cloud represents a significant advancement for privacy-preserving technology. Future work will explore scaling these systems with SGX2 and integrating blockchain for enhanced auditing.

Summary updated

BibTeX
@inproceedings{pires2020distributed,
  author = {Rafael Pereira Pires and Pascal Felber and Marcelo Pasin},
  title = {{Distributed systems and trusted execution environments: Trade-offs and challenges}},
  booktitle = {SBRC Companion},
  year = {2020},
  doi = {10.5753/sbrc\_estendido.2020.12412},
}
Figure