Accelerating Forward and Backward Private Searchable Encryption Using Trusted Execution

Viet Vo, Shangqi Lai, Xingliang Yuan, Shifeng Sun, Surya Nepal, Joseph K. Liu

Abstract

Searchable Encryption (SE) is a critical technology for maintaining data privacy in cloud environments, yet providing security against dynamic updates—specifically forward and backward privacy—often incurs significant performance penalties. This paper introduces SGX-SE1 and SGX-SE2, two novel schemes that leverage Intel SGX to delegate security logic to a trusted enclave. By managing keyword states and filtering deletions within the enclave, these schemes achieve up to a 2x speedup in search latency and a 10x reduction in communication overhead compared to prior state-of-the-art methods like Bunker-B.

The Challenge of Dynamic Searchable Encryption

While SE allows users to search encrypted data on a cloud server, Dynamic SE (which supports adding or deleting files) is vulnerable to leakage. Without proper protections, a server can link new additions to previous queries (violating forward privacy) or continue to search through logically deleted data (violating backward privacy). These vulnerabilities can lead to "file-injection attacks," where an adversary guesses file contents based on search patterns.

Existing software-only or SGX-assisted solutions often struggle with high I/O overhead or require frequent, expensive re-encryption of the database to maintain privacy. This makes them impractical for large-scale, real-world applications.

Proposed Architecture: SGX-SE1 and SGX-SE2

The authors propose moving the "client-side" logic into a trusted hardware environment—an Intel SGX enclave—located directly on the server. This enclave acts as a secure, trusted delegate for the user.

Figure 1: System architecture showing the interaction between the Client, the SGX-enabled Server, and the internal Enclave State Manager.
  • SGX-SE1: The enclave caches keyword states and a list of deleted document IDs. During a search, the enclave retrieves deleted IDs from the server, decrypts them to identify relevant keywords, and filters the results. This removes the need for the client to remain online for complex filtering operations.
  • SGX-SE2 (The Optimized Version): To address the 96MB memory limitation of standard SGX enclaves, SGX-SE2 utilizes a Bloom Filter. Instead of a raw list of IDs, the enclave maintains a compact, probabilistic map of deletions. This allows for $O(1)$ time deletion checks without constant fetching from untrusted memory, effectively bypassing the "SGX memory wall."

Performance and Scalability

The proposed schemes were evaluated against the Enron email dataset and a 3.2 GB synthetic dataset. The theoretical complexity comparison highlights the efficiency gains of the SGX-SE designs.

Figure 3: Comparison of communication and computation complexity across different SGX-based searchable encryption schemes.

Key results include:

  • Search Speed: SGX-SE2 is 2x faster than the baseline Bunker-B when querying keywords in a database where 25% of documents have been deleted.
  • I/O Efficiency: The schemes require 10x fewer enclave interactions (ecalls/ocalls) for insertions and 30x fewer for deletions compared to Bunker-B.
  • Scalability: While SGX-SE1's performance can degrade due to memory paging during large deletions, SGX-SE2 maintains stable query delays even with millions of keyword-document pairs, thanks to the Bloom Filter's small memory footprint (e.g., 34MB for 11.8 million pairs).

Conclusion

By treating the SGX enclave as a trusted delegate, SGX-SE1 and SGX-SE2 eliminate the need for costly re-encryption and frequent client-server roundtrips. SGX-SE2, in particular, demonstrates that clever use of probabilistic data structures like Bloom Filters can overcome hardware memory constraints, providing a scalable and highly secure solution for private cloud databases. Future work may explore "exit-less" system calls to further minimize enclave transition overhead.

Summary updated

BibTeX
@inproceedings{vo2020accelerating,
  author = {Viet Vo and Shangqi Lai and Xingliang Yuan and Shifeng Sun and Surya Nepal and Joseph K. Liu},
  title = {{Accelerating Forward and Backward Private Searchable Encryption Using Trusted Execution}},
  booktitle = {ACNS},
  year = {2020},
  doi = {10.1007/978-3-030-57878-7\_5},
}
Figure