NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Efficiently Searchable Encrypted Data Structure for Range Queries

Florian Kerschbaum, Anselme TuenoESORICS 2017 · DOI

Abstract

This paper presents an Efficiently Searchable Encrypted Data Structure (ESEDS) designed to enable fast range queries on encrypted databases while maintaining robust security. Traditional Order-Preserving Encryption (OPE) schemes, while efficient, are vulnerable to snapshot attacks that can recover up to 95% of plaintexts through frequency analysis. ESEDS addresses this by combining interactive encoding, frequency hiding, and modular rotation. The resulting system achieves logarithmic search times ($O(\log n)$) and linear space complexity ($O(n)$), with a negligible 10-millisecond latency overhead compared to unencrypted databases, while provably satisfying the IND-CPA-DS security standard.

The Challenge: Efficiency vs. Security

For years, researchers have relied on Order-Preserving Encryption (OPE) to allow databases to search encrypted data. Because OPE ensures that if $m_1 < m_2$, then $Enc(m_1) < Enc(m_2)$, a database can perform range searches using standard comparison operators without ever seeing the raw data. However, recent research has revealed a fatal flaw: OPE leaks significant structural information. If an attacker steals a snapshot of the encrypted database, they can use frequency analysis and sorting attacks to "guess" the underlying plaintexts with startling accuracy.

The challenge is to build a system that is as fast as OPE but does not leak the order or structure of the data to an observer who simply looks at the stored ciphertexts.

The ESEDS Architecture

The authors propose an Efficiently Searchable Encrypted Data Structure (ESEDS). Rather than a single encryption algorithm, ESEDS is a system that manages how encrypted values are stored and searched. It improves upon several key cryptographic concepts:

  1. Interactive Encoding: The client and server interact to determine where a new value fits into a sorted list, rather than using a static formula.
  2. Frequency Hiding: Even if the same plaintext appears multiple times, it is assigned distinct, randomized ciphertexts to thwart frequency analysis.
  3. Modular Rotation: The sorted list of ciphertexts is "rotated" by a random offset. To an attacker, the list appears as a random jumble because the starting point of the sorted sequence is hidden.
  4. Decoupled Encryption: To maintain real-time performance, new data is inserted quickly, while a background process periodically re-balances and re-rotates the structure to maintain security.
The ESEDS system architecture illustrates the interactive protocol between the client and server for encryption, search, and retrieval.

Evaluation and Comparison

The system was evaluated using both synthetic datasets (up to 1,000,000 entries) and DBLP metadata. A core contribution of this work is the formalization of a new security model, IND-CPA-DS. This model assumes an attacker has perfect background knowledge of the plaintexts but proves they still cannot link a specific ciphertext to its plaintext.

As shown in the comparison below, ESEDS is the first scheme to simultaneously achieve logarithmic search time, linear space complexity, and full IND-CPA-DS security.

Comparison of ESEDS against existing searchable encryption and order-revealing schemes.

Key Results and Insights

  • Low Latency: Search overhead is remarkably low—only about 10 milliseconds slower than a standard unencrypted search on a database with one million entries.
  • Structural Independence: By rotating the list and using randomized ciphertexts, the physical layout of the data no longer mirrors the sorted order of the plaintexts, achieving "structural independence."
  • Retrofitting Capability: The system can be retrofitted onto existing database engines like MySQL or MariaDB without requiring changes to the database core.

Limitations and Future Work

While ESEDS provides a significant leap in secure range queries, some limitations remain. The current prototype focuses on insertions and searches, leaving the formal implementation of deletions for future work. Additionally, while the structure is secure for single columns, the authors acknowledge that correlations between different encrypted columns (e.g., Age vs. Salary) remain a common challenge in encrypted database research.

Summary updated

BibTeX
@inproceedings{kerschbaum2017efficiently,
  author = {Florian Kerschbaum and Anselme Tueno},
  title = {{An Efficiently Searchable Encrypted Data Structure for Range Queries}},
  booktitle = {ESORICS},
  year = {2017},
  doi = {10.1007/978-3-030-29962-0\_17},
}
Figure