[Paper Review] An Efficient Oblivious Database for the Public Cloud
ObliDB is a novel oblivious database engine that enables secure, access-pattern-oblivious query processing for general-purpose SQL workloads in the public cloud using Intel SGX enclaves. It achieves this by integrating oblivious data structures and access methods across multiple storage engines, reducing performance overhead to within 2.6x of Spark SQL on analytics workloads and delivering point queries in 3–10ms—over 7x faster than prior encryption-based systems.
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 limitation of hardware enclaves in protecting against access pattern leaks during database operations.
- To design a system that ensures end-to-end obliviousness for general-purpose SQL workloads, including joins, aggregations, and point queries.
- To reduce the performance overhead of oblivious database operations compared to prior ORAM-based or enclave-only approaches.
- To support multiple access methods (e.g., indexes, scans) while maintaining obliviousness across all query execution paths.
- To achieve low-latency point queries and high throughput on analytical workloads, matching or approaching the performance of untrusted systems like Spark SQL.
Proposed method
- Designing a multi-layered oblivious storage abstraction that integrates oblivious data structures (e.g., oblivious B-trees and hash tables) into a DBMS engine.
- Using hardware enclaves to isolate computation and encrypt in-memory data, while applying ORAM-inspired techniques to mask access patterns across all data structures.
- Orchestrating query execution through an oblivious query planner that ensures all access sequences—regardless of input or query type—appear statistically indistinguishable.
- Implementing oblivious index structures that support efficient point lookups with 3–10ms latency, significantly faster than prior encryption-based oblivious indexes.
- Optimizing for analytical workloads by supporting full-table scans, aggregations, and equi-joins in an oblivious manner using batched and pipelined oblivious operations.
- Integrating the system into a full DBMS engine stack to ensure end-to-end obliviousness, even across complex multi-table queries and transactional operations.
Experimental results
Research questions
- RQ1Can a DBMS engine be designed to provide end-to-end obliviousness for general SQL workloads, including joins, aggregations, and point queries, under hardware enclaves?
- RQ2How can the performance overhead of oblivious database operations be minimized while maintaining strong security guarantees against access pattern leakage?
- RQ3To what extent can oblivious data structures be integrated into a full-fledged DBMS engine to support multiple access methods without sacrificing efficiency?
- RQ4How does the performance of an oblivious, enclave-based DBMS compare to both prior oblivious systems and untrusted analytics engines like Spark SQL?
- RQ5Can oblivious indexing schemes achieve low-latency point queries (e.g., <10ms) while preserving security under real-world workloads?
Key findings
- ObliDB achieves 1.1–19x better performance than Opaque, a prior enclave-based oblivious system designed only for analytics workloads.
- On analytics workloads, ObliDB runs within 2.6x of Spark SQL, demonstrating high efficiency despite strong obliviousness guarantees.
- 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 maintains obliviousness across complex, multi-table SQL queries, including joins and aggregations, without exposing access patterns.
- By combining hardware enclaves with optimized oblivious data structures, ObliDB reduces the performance gap between secure and untrusted database systems.
- The integration of multiple access methods (e.g., indexes, scans) into a single oblivious execution engine enables general-purpose database functionality with strong security.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.