Skip to main content
QUICK REVIEW

[Paper Review] ObliDB: Oblivious Query Processing for Secure Databases

Saba Eskandarian, Matei Zaharia|arXiv (Cornell University)|Oct 2, 2017
Security and Verification in ComputingComputer Science74 references16 citations
TL;DR

ObliDB is the first database engine to provide efficient, oblivious query processing for general relational workloads over multiple access methods using hardware enclaves. It introduces novel oblivious physical operators that reduce performance overhead by up to 19× compared to Opaque and achieve 3–10ms latency for point queries, matching trusted systems while maintaining strong access-pattern privacy.

ABSTRACT

Hardware enclaves such as Intel SGX are a promising technology for improving the security of databases outsourced to the cloud. These enclaves provide an execution environment isolated from the hypervisor/OS, and encrypt data in RAM. However, for applications that use large amounts of memory, including most databases, enclaves do not protect against access pattern leaks, which let attackers gain a large amount of information about the data. Moreover,the naive way to address this issue, using Oblivious RAM (ORAM) primitives from the security literature, adds substantial overhead. A number of recent works explore trusted hardware enclaves as a path toward secure, access-pattern oblivious outsourcing of data storage and analysis. While these works efficiently solve specific subproblems (e.g. building secure indexes or running analytics queries that always scan entire tables), no prior work has supported oblivious query processing for general query workloads on a DBMS engine with multiple access methods. Moreover, applying these techniques individually does not guarantee that an end-to-end workload, such as a complex SQL query over multiple tables, will be oblivious. In this paper, we introduce ObliDB, an oblivious database engine design that is the first system to provide obliviousness for general database read workloads over multiple access methods. ObliDB supports a broad range of queries, including aggregation, joins, insertions, deletions and point queries. We implement ObliDB and show that, on analytics work-loads, ObliDB ranges from 1.1-19x faster than Opaque,a previous oblivious, enclave-based system designed only for analytics, and comes within 2.6x of Spark SQL. ObliDB supports point queries with 3-10ms latency, which runs over 7x faster than HIRB, a previous encryption-based oblivious index system.

Motivation & Objective

  • To address the critical security gap in hardware enclave-based databases where access patterns leak sensitive information.
  • To enable efficient, oblivious processing of general-purpose SQL workloads—including joins, aggregations, and point queries—across multiple access methods.
  • To close the performance gap between oblivious databases and untrusted systems while preserving strong privacy guarantees.
  • To design new oblivious physical operators that optimize for query selectivity and reduce reliance on naive ORAM overhead.

Proposed method

  • ObliDB employs a novel set of oblivious physical operators tailored for different query selectivity levels, minimizing access pattern leakage.
  • It integrates Path ORAM as the underlying oblivious memory primitive, enabling indistinguishable access patterns regardless of data or query.
  • The system uses a query planner that selects optimized oblivious operators based on query structure and data size.
  • It supports multiple access methods including index-based and full-scan operations, with obliviousness preserved end-to-end.
  • For point queries, ObliDB uses optimized oblivious index structures that reduce latency to 3–10ms on 1M-row tables.
  • The design avoids leaking query parameters and only exposes output size and query structure, matching Opaque’s leakage model.

Experimental results

Research questions

  • RQ1Can a general-purpose DBMS achieve efficient oblivious query processing across diverse access methods while preserving strong privacy?
  • RQ2How can oblivious physical operators be designed to outperform naïve ORAM-based translations of standard database operators?
  • RQ3To what extent can obliviousness be achieved with minimal performance overhead in real-world analytics and transactional workloads?
  • RQ4Can oblivious index structures support low-latency point queries comparable to trusted systems?
  • RQ5How does the performance of an oblivious DBMS compare to both secure analytics-only systems and untrusted, high-performance systems like Spark SQL?

Key findings

  • ObliDB achieves up to 19× speedup over Opaque, a prior enclave-based oblivious analytics system, on analytics workloads.
  • It completes point queries on a 1M-row table in 3.6–9.4ms, outperforming HIRB by over 7× and matching the latency of index-only trusted systems.
  • ObliDB runs within 2.6× of Spark SQL on analytics workloads, demonstrating strong practical performance despite strong privacy guarantees.
  • The system reduces ORAM access overhead through specialized oblivious operators that adapt to query selectivity and data size.
  • ObliDB supports a broad range of operations including joins, aggregations, insertions, deletions, and point queries, all with end-to-end obliviousness.
  • The open-source implementation is available on GitHub, enabling reproducibility and further research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.