Self-Expiring Data Capsule using Trusted Execution Environment

Hung Dang, Ee-Chien ChangarXiv 2019

Introduction

In the modern digital landscape, data owners frequently lose control over their sensitive information the moment it is shared. Whether it involves personal communications on social media or proprietary medical records shared for research, users currently rely on centralized third-party providers to enforce privacy policies. However, these centralized "disappearing data" features are often untrustworthy; if a provider is compromised, the data may persist indefinitely. Conversely, existing decentralized solutions often fail to prevent authorized recipients from persisting or leaking data once they have gained access.

This paper introduces TEEKAP, a decentralized framework designed to create "self-expiring data capsules." These capsules ensure that sensitive data becomes autonomously and permanently inaccessible once a user-defined condition—such as a time limit or a specific access count—is met. TEEKAP achieves this by combining Trusted Execution Environments (TEEs), threshold secret sharing, and state machine replication.

System Architecture

TEEKAP involves four primary entities: the Data Owner, the Access Control (AC) Committee, the Encrypted Storage Server, and the Access Requester. The architecture is designed to eliminate single points of failure while maintaining high performance.

An overview of the TEEKAP architecture, showing the interaction between the Data Owner, Encrypted Storage, Access Requester, and the Access Control Committee.

As illustrated in the figure above, the workflow begins with the Data Owner. The owner encrypts their data $D$ with a key $k$ to produce a ciphertext $C$, which is stored on a standard untrusted server. The key $k$ is then split into $n$ shares using Shamir’s Secret Sharing and distributed among the AC Committee members along with an access policy $\mathcal{P}$. When a requester seeks access, they submit a request $r$ to the committee. If the policy conditions are met, the committee members provide their shares to the requester’s secure enclave for key reconstruction.

Technical Foundations

The robustness of TEEKAP relies on the integration of three core technologies:

  1. Trusted Execution Environments (TEEs): Utilizing Intel SGX, TEEKAP ensures that access control logic and data-processing functions run within secure enclaves. This prevents the host operating system or any unauthorized party from inspecting the plaintext data or the encryption keys.
  2. Threshold Secret Sharing: By distributing key shares among an Access Control Committee (UAComm), the system ensures that no single node can grant access or leak the key. A requester must collect at least $t$ shares to reconstruct the key $k$.
  3. State Machine Replication (Consensus): The committee employs the Raft consensus protocol to maintain a tamper-resistant log of access requests. Uniquely, by running Raft inside SGX enclaves, the system can treat Byzantine (malicious) nodes as simple crash failures, significantly reducing the complexity and overhead typically associated with decentralized consensus.

Key Insights and Rigidity

A central innovation of TEEKAP is the concept of Code as Identity. Access is not granted to a user identity in the traditional sense, but to a specific, attested piece of code. Because this code executes within a TEE, the data owner has a mathematical guarantee that the processing function will not save a copy of the plaintext or leak the key.

Furthermore, the system ensures Consensus-Driven Expiry. Expiration is tied to the replicated state of the committee. For instance, if a policy dictates expiration after ten accesses, the committee must reach a consensus on the tenth request before agreeing to discard their respective key shares. Once these shares are deleted, the data is cryptographically "shredded" and cannot be recovered by any party.

Experimental Evaluation

The authors evaluated TEEKAP using both a local cluster of 35 servers and a geo-distributed deployment on Google Cloud Platform (GCP) across four regions (Oregon, Los Angeles, South Carolina, and North Virginia).

  • Latency: In geo-distributed tests, the system processed access requests in 200ms to 600ms, depending on committee size ($n=5$ to $n=33$). This sub-second latency makes the framework practical for real-time applications.
  • Throughput: On the local cluster, TEEKAP handled up to 400 requests per second for smaller committees. While throughput decreases as the committee size grows due to consensus overhead, it remains sufficient for most privacy-sensitive use cases.
  • Scalability: The results demonstrate that TEEKAP scales effectively across geographical boundaries, proving its viability as a global access control layer.

Limitations and Future Work

While TEEKAP provides a significant advancement in data sovereignty, it faces certain challenges. The system's security is fundamentally tied to the integrity of Intel SGX, which has historically been vulnerable to side-channel attacks. Additionally, the current implementation lacks a "refund" mechanism for access counts if a requester's function crashes after receiving the key but before completing its task. Future research will focus on dynamic committee management to allow nodes to join or leave the network without compromising the security of existing capsules.

Summary updated

BibTeX
@misc{dang2019self,
  author = {Hung Dang and Ee-Chien Chang},
  title = {{Self-Expiring Data Capsule using Trusted Execution Environment}},
  year = {2019},
  eprint = {1911.09305},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.09305},
}
Figure