Skip to main content
QUICK REVIEW

[Paper Review] ObliDB: Oblivious Query Processing using Hardware Enclaves

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

ObliDB is a novel database engine that achieves end-to-end oblivious query processing for general-purpose SQL workloads using Intel SGX hardware enclaves, combining trusted execution environments with optimized oblivious data structures to protect access patterns. It achieves 1.1–19x speedup over Opaque on analytics workloads and 3–10ms latency for point queries, outperforming prior systems like HIRB and approaching Spark SQL performance.

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

  • Address the critical gap in existing systems that fail to provide end-to-end obliviousness for complex, multi-access-method SQL workloads in cloud databases.
  • Mitigate access pattern leakage in hardware-enclave-based databases, which remains a major security threat despite strong isolation and memory encryption.
  • Design a system that supports general-purpose database operations—including joins, aggregations, point queries, and DML—while preserving obliviousness across all access methods.
  • Reduce the performance overhead of oblivious computation by optimizing ORAM and access pattern hiding techniques for database workloads.

Proposed method

  • Leverage Intel SGX enclaves to provide hardware-isolated execution and memory encryption, forming the trusted foundation for secure computation.
  • Integrate optimized oblivious data structures (e.g., oblivious B-trees and hash tables) to hide access patterns during index lookups and data retrieval.
  • Design a query execution engine that enforces obliviousness at every stage of query processing, including join algorithms and aggregation operators.
  • Use a hybrid approach combining hardware-based isolation with software-level obliviousness to minimize performance penalties while ensuring security.
  • Implement a query optimizer that selects access methods and execution plans that preserve obliviousness across multiple tables and indexes.
  • Apply performance optimizations such as batched oblivious memory accesses and pipelined oblivious operations to reduce ORAM-related overhead.

Experimental results

Research questions

  • RQ1Can a general-purpose database engine be built to provide end-to-end obliviousness for complex SQL workloads across multiple access methods?
  • RQ2How can the performance overhead of oblivious computation be minimized in a database setting while preserving strong security guarantees?
  • RQ3To what extent can hardware enclaves and oblivious data structures be combined to achieve both security and practical performance in real-world analytics workloads?
  • RQ4Can oblivious query processing be efficiently supported for point queries and DML operations without sacrificing performance?

Key findings

  • ObliDB achieves 1.1–19x speedup over Opaque, a prior enclave-based oblivious analytics system, on a range of analytical workloads.
  • ObliDB's performance is within 2.6x of Spark SQL on the same analytics benchmarks, demonstrating strong practical efficiency.
  • ObliDB supports point queries with 3–10ms latency, which is over 7x faster than HIRB, a prior encryption-based oblivious index system.
  • The system successfully enforces obliviousness across complex queries involving joins, aggregations, and multiple access methods, ensuring no access pattern leakage.
  • The integration of optimized oblivious data structures with hardware enclaves significantly reduces ORAM-related performance penalties compared to naive ORAM applications.
  • ObliDB demonstrates that end-to-end obliviousness is feasible in a full DBMS stack without sacrificing usability or performance for real-world workloads.

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.