Introduction
Most existing encrypted databases (EDBs), such as CryptDB, rely on Property-Preserving Encryption (PPE). Schemes like Order-Preserving Encryption (OPE) or Deterministic Encryption (DET) allow servers to perform operations directly on ciphertexts but are fundamentally "leaky," revealing data order or frequency. Recent research has shown that attackers with a database snapshot can exploit this metadata to reconstruct sensitive information. Arx addresses this vulnerability by using only semantically secure encryption, ensuring that data at rest reveals nothing but its size and layout.
System Architecture
Arx is implemented as a proxy-based system that sits between an application and an unmodified NoSQL database, specifically MongoDB. The architecture divides responsibilities between a Client Proxy and a Server Proxy to maintain confidentiality while enabling query execution.
The Client Proxy handles query planning and rewriting, while the Server Proxy assists in traversing encrypted indices without gaining access to the underlying plaintext.
Methods: Enabling Secure Search
Arx's core innovation lies in enabling search and range queries without relying on leaky encryption. It introduces two primary indices:
ArxRange: Range Queries via Chained Garbled Circuits
Traditionally, searching an encrypted tree requires multiple round-trips between the client and server. Arx introduces chained garbled circuits to allow the server to traverse a search tree non-interactively. Each node in the tree contains a garbled circuit that, when evaluated, provides the "keys" needed to unlock the circuit at the next node in the path.
To prevent the server from learning the insertion order through the tree's structure, Arx uses history-independent treaps. This ensures the tree's physical and logical shape depends only on the data it contains, plugging a subtle metadata leak.
ArxEq: Equality Queries
To avoid deterministic encryption, ArxEq embeds a counter into repeated values, ensuring that identical values result in distinct ciphertexts. To perform a search, the client provides a "covering set" of tokens derived from a tree-based construction, allowing the server to find all instances of a value efficiently.
Automated Planner
Because Arx indices have different constraints than standard B-trees, the system includes an automated planner. It takes standard index specifications and query patterns and automatically maps them to the appropriate Arx-style indices.
Evaluation and Key Results
The authors evaluated Arx using microbenchmarks (YCSB) and real-world application traces, including ShareLaTeX and medical health data (Chino).
- Performance Overhead: In an end-to-end evaluation of ShareLaTeX, Arx added only an 11% overhead to throughput. For the YCSB benchmark, the overhead ranged between 3% and 9%.
- Functionality: Arx supports nearly all queries used in the evaluated real-world apps, including 30 out of 31 queries in the TPC-C benchmark.
- Security: Arx successfully prevents all known inference attacks by ensuring semantic security for all data at rest. While online attackers watching queries learn specific data points ("pay-as-you-go" leakage), the entire database distribution remains protected.
Conclusion and Future Work
Arx demonstrates that strong data confidentiality can be achieved with modest performance costs. By replacing leaky PPE with novel cryptographic constructions like chained garbled circuits, it provides a practical path for securing sensitive cloud databases. Future work includes extending support to ACID transactions, complex join operations, and protecting against active attackers who might modify data.
Summary updated