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.
- 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.
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