OasisDB: An Oblivious and Scalable System for Relational Data

Haseeb Ahmed, Nachiket Rao, Abdelkarim Kati, Florian Kerschbaum, Sujaya Maiyya

TL;DR

OasisDB is a new system that lets you store and query your relational data in the cloud securely, protecting against attacks that infer information from access patterns and query volumes. It achieves this by building on existing oblivious key-value stores and introducing a novel multi-tier architecture that scales efficiently and supports multiple users simultaneously.

What Problem Does This Paper Address?

When organizations move their data to the cloud, they gain scalability and cost benefits, but they also face privacy risks. Even if the data itself is encrypted, attackers can analyze how and how often data is accessed (access patterns and query volumes) to infer sensitive information. Existing systems that try to solve this problem either offer limited query capabilities (like simple keyword searches) or sacrifice scalability and multi-user support. This leaves a gap for a system that can handle complex relational queries, scale to meet demand, and protect against sophisticated privacy attacks.

Methods

OasisDB tackles this challenge with a multi-layered approach:

  • Leveraging Oblivious KV-Stores: Instead of building a new storage engine from scratch, OasisDB uses existing oblivious key-value (KV) stores (like PathORAM and Waffle) as its foundation. This allows it to benefit from their security guarantees and scalability features.
  • Data Representation: Relational data (tables, rows, columns) is converted into key-value pairs. Indexes are also transformed into key-value pairs to enable efficient, oblivious querying.
  • Multi-Tier Architecture: OasisDB splits its functionality into three layers:
  • Resolver: Handles incoming SQL queries, translates them into KV requests, and performs post-processing.
  • Batcher: Groups multiple requests from Resolvers into batches to ensure uniform workload distribution across Executors. This is crucial for hiding access patterns and query volumes.
  • Executor: Interacts with the underlying oblivious KV-store to fetch or update data.
  • Scalability and Security: Each layer can be scaled independently. The Batcher's fixed-size batching mechanism is key to preventing volume pattern attacks by obscuring the exact size of individual query results.

Datasets

  • Epinions: A real-world customer review dataset used for evaluating performance and scalability.
  • Big Data Benchmark: Used for comparing OasisDB with other oblivious RDBMSs.
  • Arabidopsis Information Resource (TAIR): Used for evaluating keyword-based leakage-abuse attacks.
  • MIMIC-PC: A medical dataset used for evaluating range-based leakage-abuse attacks.
  • Salaries: A human resources dataset used for evaluating range-based leakage-abuse attacks.

Key Insights and Ideas

  • The Power of Batching: The Batcher layer's ability to group requests into fixed-size batches is critical. It not only helps hide query volumes but also ensures uniform access patterns across different parts of the data, even under skewed workloads.
  • Executor is the Bottleneck (for Obliviousness): The Executor layer, which directly interacts with the oblivious KV-store, has the biggest impact on performance. This is because it performs the most computationally intensive oblivious operations.
  • Trade-offs in KV-Stores: The choice of underlying oblivious KV-store significantly impacts OasisDB's performance. PathORAM, with its stronger threat model, incurs higher overhead than Waffle.
  • Fake Requests are Necessary: Adding "fake" KV requests when batches aren't full is essential for maintaining security. While it adds some overhead, it prevents attackers from inferring information from incomplete batches.

Key Results

  • Scalability: OasisDB scales linearly with the number of machines, meaning adding more machines proportionally increases throughput.
  • Performance vs. Plaintext: When using a plaintext KV-store, OasisDB introduces negligible overhead compared to a plaintext database like CockroachDB.
  • Performance vs. Oblivious Competitors: OasisDB significantly outperforms ObliDB and Obliviator (oblivious RDBMSs using hardware enclaves) in throughput, achieving 5.7x and 7.7x higher throughput, respectively, when using Waffle. This is attributed to OasisDB's multi-user support and batching.
  • Security Against Volume Attacks: OasisDB effectively defends against sophisticated volume pattern leakage-abuse attacks, achieving near-random guessing error rates for attackers.
  • Query Optimization: Using Bloom filters for range and join queries significantly improves throughput (e.g., 3.3x for range queries).

Limitations and Future Work

  • Limited Update Support: OasisDB currently only supports restricted updates (single column, filtered by primary key) and does not handle complex transactional updates.
  • No Fault Tolerance: The current design assumes proxy machines do not fail.
  • Future Work: The authors plan to extend OasisDB to support OLTP workloads with serializability guarantees and to expand the range of supported query types, including nearest neighbor searches.

Summary updated

BibTeX
@article{ahmed2025oasisdb,
  author = {Haseeb Ahmed and Nachiket Rao and Abdelkarim Kati and Florian Kerschbaum and Sujaya Maiyya},
  title = {{OasisDB: An Oblivious and Scalable System for Relational Data}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2025},
}

Loading related content...

Figure