Optimal Average-Complexity Ideal-Security Order-Preserving Encryption

Florian Kerschbaum, Axel SchröpferCCS 2014

TL;DR

This paper introduces a novel order-preserving encryption (OPE) scheme that achieves ideal security with significantly improved average-case performance for database operations, particularly insertions. It offers a practical solution for securely querying encrypted data in outsourced databases, outperforming existing ideal-secure OPE schemes in terms of efficiency.

What Problem Does This Paper Address?

Order-preserving encryption (OPE) is crucial for enabling efficient querying, especially range queries, on encrypted databases without modifying the database engine. While ideal security (IND-OCPA) is the gold standard, achieving it with efficient OPE schemes has been challenging. Previous ideal-secure schemes, like Popa et al.'s, suffer from high insertion costs due to frequent ciphertext updates. This paper aims to bridge this gap by presenting an ideal-secure OPE scheme that is both efficient and compatible with modern database architectures, specifically in-memory column-store databases and adjustable encryption schemes.

Methods

The core of this paper is a new order-preserving encryption scheme that leverages the average height of random binary search trees, inspired by Reed's work. Unlike previous approaches that might require frequent rebalancing or maintain complex server-side states, this scheme is designed to be stateful on the client-side.

Key aspects of the method include:

  • Client-Side State Management: The encryption state (essentially a local copy of the dictionary) is maintained on the client, reducing the need for constant server interaction during encryption.
  • Update Triggering: Updates to ciphertexts are triggered only when necessary, aiming to keep them infrequent. This is achieved by carefully choosing the ciphertext domain size relative to the plaintext domain.
  • Binary Search Tree Analogy: The encryption process implicitly builds a binary search tree, where the path from the root to a leaf corresponds to the binary representation of the ciphertext.
  • Ideal Security Proof: The paper provides a formal proof that the proposed scheme achieves IND-OCPA security, even with its update mechanism.
  • Compatibility with Adjustable Encryption: The scheme is designed to be the innermost layer of an "onion" of encryption, making it compatible with adjustable encryption techniques like those used in CryptDB.

Datasets

The paper uses two types of datasets for evaluation:

  • Synthetic Uniform Data: Randomly generated numbers to align with the theoretical assumption of uniform distribution.
  • Real-World Enron Email Corpus: Data extracted from the Enron email dataset, processed to generate numerical inputs. This dataset is used to evaluate the scheme's performance on non-uniform, real-world data.

No new benchmarks were introduced; instead, existing datasets were adapted for evaluation.

Key Insights and Ideas

  • Balancing Security and Efficiency: The paper demonstrates that it's possible to achieve ideal security without incurring the prohibitive update costs seen in prior work, by carefully managing the ciphertext domain and client-side state.
  • Leveraging Tree Structures: The insight that the average height of random binary search trees can inform the design of efficient OPE schemes is central. This allows for predictable update probabilities.
  • Client-Side Control is Key: Moving the state management to the client significantly improves performance, especially in networked environments, by reducing server load and communication overhead.
  • Insertion Order Leakage is Limited: While the insertion order can be partially inferred from ciphertext structure, this is deemed acceptable in the context of ideal security for encrypted databases, especially under worst-case assumptions.
  • Practicality for In-Memory Databases: The scheme's efficiency makes it particularly well-suited for modern in-memory column-store databases, where fast data access and manipulation are critical.

Key Results

  • Performance Improvement: The proposed scheme offers significant performance gains for database inserts. In LAN environments, it achieves an average improvement of 63-72% (up to 77-81% in the best case) compared to Popa et al.'s scheme. In WAN environments, this improvement is even more substantial, averaging 83-88% (up to 95% in the best case).
  • Reduced Updates: Experiments show that for reasonable expansion factors (e.g., $\lambda=3$), updates are rare, especially on real-world data, and often do not occur at all.
  • Ideal Security: The scheme is formally proven to be IND-OCPA secure, matching the highest security standard for OPE.
  • Lower Communication Complexity: The average communication complexity is O(n), which is theoretically optimal.

Limitations and Future Work

  • Insertion Order Leakage: The paper acknowledges that the insertion order can be partially inferred from the ciphertext structure. While argued to be acceptable for ideal security in this context, it's a limitation to be aware of.
  • Domain Coverage Assumption: Like all OPE schemes, this one relies on the assumption that plaintext values sparsely populate their domain. If the domain is fully populated, security degrades significantly. Auto-increment counters are explicitly mentioned as unsuitable for OPE.
  • Parameter Tuning: While experiments provide guidance, the optimal choice of the expansion factor ($\lambda$) might still require careful consideration based on specific application needs and data distributions.
  • Future Work: The paper suggests further experiments are needed to reliably recommend $\lambda$ for all real-world cases. It also highlights the potential for using the performance hit from updates as a security warning signal. The compatibility with adjustable encryption is a key area for future integration.

Summary updated

BibTeX
@inproceedings{kerschbaum2014optimal,
  author = {Florian Kerschbaum and Axel Schröpfer},
  title = {{Optimal Average-Complexity Ideal-Security Order-Preserving Encryption}},
  booktitle = {CCS},
  year = {2014},
  doi = {10.1145/2660267.2660277},
}
Figure