Accelerating Forward and Backward Private Searchable Encryption Using Trusted Execution

Viet Vo, Shangqi Lai, Xingliang Yuan, Shi-Feng Sun, Surya Nepal, Joseph K. Liu

TL;DR

This paper introduces SGX-SE1 and SGX-SE2, two novel hardware-assisted Searchable Encryption (SE) schemes that achieve forward and strong (Type-II) backward privacy using Intel SGX. By securely caching keyword states and compressing deletion data with Bloom filters inside the enclave, these designs drastically reduce client-server communication overhead and search latency compared to prior state-of-the-art solutions.

What Problem Does This Paper Address?

Searchable Encryption (SE) allows users to outsource encrypted databases to untrusted cloud servers while retaining the ability to search through their data securely. However, dynamic SE—which supports adding and deleting documents—is vulnerable to active exploits like file-injection attacks. To counter this, modern schemes must guarantee two properties:

  1. Forward Privacy: Newly added data cannot be linked to past search queries.
  2. Backward Privacy: Deleted data cannot be accessed by future search queries.

Achieving both properties cryptographically typically demands high computational and communication costs. While recent work has turned to Trusted Execution Environments (TEEs) like Intel SGX to alleviate this bottleneck (e.g., the Bunker-B scheme), existing designs still suffer from scalability issues. They require an excessive number of expensive enclave transitions (ecalls/ocalls) during updates and experience high search latency due to frequent data re-encryption. This paper addresses these efficiency and scalability bottlenecks.

Methods

The authors propose moving the responsibility of tracking keyword states and document deletions entirely into an Intel SGX enclave, which acts as a trusted delegate for the client.

Fig. 1: High level design

They design two distinct protocols to optimize this setup:

  • SGX-SE1 (Basic Scheme): Instead of sending individual keyword-document pairs to the server during updates (which causes an I/O explosion), the client sends the entire document to the enclave in a single ecall. The enclave parses the document, updates keyword states, and caches deletion lists locally.
  • SGX-SE2 (Advanced Scheme): To overcome the strict memory constraints of SGX (the 96MB Enclave Page Cache limit), SGX-SE2 introduces a Bloom filter inside the enclave to compress the deletion states. This allows the enclave to perform rapid, $O(1)$ membership checks to filter out deleted documents during a search without needing to download and decrypt deleted files from the untrusted server.

Both schemes utilize batch data processing to ensure memory usage stays safely below the threshold that triggers performance-killing SGX page swapping.

Datasets

The authors evaluated their schemes using two datasets:

  1. Synthesis Dataset: A 3.2 GB synthetic dataset generated using a reversed Zipf’s law distribution to model keyword frequencies, containing 1,000 unique keywords, 1 million documents, and roughly 11.8 million keyword-document pairs.
  2. Enron Email Dataset: A 1.4 GB real-world dataset consisting of 29,627 unique keywords, 517,401 documents, and over 37.2 million keyword-document pairs.

Key Insights and Ideas

  • Document-Level Processing Cuts I/O: Prior hardware-assisted schemes executed enclave transitions for every single keyword-document pair. Shifting to document-level processing inside the enclave reduces the number of ecalls linearly relative to the number of documents rather than the number of pairs.
  • The Enclave as a State Cache: Caching deletion requests inside the enclave means the server learns nothing during a deletion operation itself. The deletion is only processed and filtered during the search phase, naturally satisfying Type-II backward privacy.
  • State Compression is Mandatory for TEEs: Simply caching raw data inside an SGX enclave causes severe performance degradation once the dataset exceeds the hardware's memory limits due to page swapping. Using a probabilistic data structure like a Bloom filter is an elegant way to trade a negligible false-positive rate for massive memory savings and faster search times.

Key Results

The performance of the proposed schemes was compared against Bunker-B, the previous state-of-the-art SGX-based scheme:

TABLE I: Comparison with previous SGX-supported schemes. N, D, and W denote the total number of keyword/document pairs, total number of documents, and total number of keywords, respectively. d presents the number of deleted documents. nw is the number of (current, non-deleted) documents containing w, aw is the total number of entries (including addition and deletion updates) performed on w, dw denotes the number of deletions performed on w. r is the predefined number of necessary dummy entries to be inserted in oblivious operations. vd denotes the vector of a Bloom filter to check the membership of #d documents.
  • Communication Efficiency: When inserting 1 million documents, Bunker-B required $10\times$ more ecall/ocall operations than SGX-SE1 and SGX-SE2. For deleting 25% of those documents, Bunker-B required $30\times$ more transitions.
  • Search Latency: On the synthetic dataset with 25% deletions, SGX-SE1 was 30% faster and SGX-SE2 was $2\times$ faster than Bunker-B.
  • Real-World Scalability: On the dense Enron dataset, SGX-SE2 successfully avoided enclave paging, maintaining a low query delay of 530 to 900 ms. In contrast, Bunker-B took up to 1.5 seconds due to re-encryption overhead, and SGX-SE1 took up to 2.6 seconds because it triggered memory paging.

Limitations and Future Work

While SGX-SE2 effectively mitigates memory bottlenecks using a Bloom filter, it introduces a small, configurable false-positive probability ($P_e = 10^{-4}$ in their tests), which could theoretically affect search accuracy if not managed. Additionally, the authors explicitly note that side-channel attacks against Intel SGX (such as cache-timing or page-fault attacks) are outside the scope of this work.

For future work, the authors plan to explore exit-less system calls to further eliminate the remaining overhead associated with enclave transitions and optimize enclave page cache access patterns.

Summary updated

BibTeX
@inproceedings{vo2020accelerating,
  author = {Viet Vo and Shangqi Lai and Xingliang Yuan and Shi-Feng 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