Skip to main content
QUICK REVIEW

[Paper Review] StealthDB: a Scalable Encrypted Database with Full SQL Query Support

Alexey Gribov, Dhinakaran Vinayagamurthy|arXiv (Cornell University)|Nov 7, 2017
Security and Verification in ComputingComputer Science46 references8 citations
TL;DR

StealthDB is a scalable, full-SQL encrypted database system built on Intel SGX that supports transactional workloads with minimal performance overhead. It achieves strong security guarantees by isolating sensitive operations in hardware-protected enclaves, reducing throughput by only 30% on TPC-C benchmarks while maintaining end-to-end confidentiality and integrity.

ABSTRACT

Encrypted database systems provide a great method for protecting sensitive data in untrusted infrastructures. These systems are built using either special-purpose cryptographic algorithms that support operations over encrypted data, or by leveraging trusted computing co-processors. Strong cryptographic algorithms (e.g., public-key encryptions, garbled circuits) usually result in high performance overheads, while weaker algorithms (e.g., order-preserving encryption) result in large leakage profiles. On the other hand, some encrypted database systems (e.g., Cipherbase, TrustedDB) leverage non-standard trusted computing devices, and are designed to work around the architectural limitations of the specific devices used. In this work we build StealthDB - an encrypted database system from Intel SGX. Our system can run on any newer generation Intel CPU. StealthDB has a very small trusted computing base, scales to large transactional workloads, requires minor DBMS changes, and provides a relatively strong security guarantees at steady state and during query execution. Our prototype on top of Postgres supports the full TPC-C benchmark with a 30% decrease in the average throughput over an unmodified version of Postgres operating on a 2GB unencrypted dataset.

Motivation & Objective

  • To design a secure, scalable encrypted database system that supports full SQL functionality in untrusted cloud environments.
  • To minimize performance overhead while maintaining strong security guarantees against both passive and active adversaries.
  • To reduce the trusted computing base (TCB) and avoid reliance on non-standard or proprietary trusted hardware.
  • To enable integration with existing DBMSs like PostgreSQL with minimal modifications.
  • To support large-scale transactional workloads such as TPC-C under hardware-enforced encryption.

Proposed method

  • Leverages Intel Software Guard Extensions (SGX) to create isolated, encrypted memory enclaves that protect data and code from untrusted OS and cloud operators.
  • Architects the database system by partitioning trusted and untrusted components, running only sensitive operations (e.g., query processing, index access) inside the enclave.
  • Uses Merkle trees to ensure data integrity and detect tampering in the enclave's memory, adding logarithmic overhead per access.
  • Supports full SQL query execution by implementing query processing, index lookups, and transaction management within the enclave, while minimizing side-channel leakage.
  • Optimizes performance by batching operations and reducing context switches between enclave and non-enclave modes.
  • Integrates with PostgreSQL with minimal changes, enabling transparent encryption-in-use for existing applications.

Experimental results

Research questions

  • RQ1Can a full-SQL encrypted database be efficiently and securely built on commodity Intel CPUs using SGX, without requiring large or non-standard trusted hardware?
  • RQ2How can performance overhead be minimized while maintaining strong security guarantees for transactional workloads?
  • RQ3What is the trade-off between security, functionality, and performance when building an encrypted database on SGX with limited enclave memory?
  • RQ4Can the system scale to large datasets and complex workloads like TPC-C while preserving end-to-end confidentiality and integrity?
  • RQ5How can the system reduce the trusted computing base and avoid reliance on untrusted components like FPGA shells or custom hardware?

Key findings

  • StealthDB achieves a 30% decrease in average throughput compared to unmodified PostgreSQL on a 2GB unencrypted dataset, while supporting the full TPC-C benchmark.
  • The system maintains strong security guarantees at steady state and during query execution, protecting data from cloud operators, co-tenants, and active adversaries.
  • The trusted computing base is minimized by relying solely on Intel SGX, avoiding reliance on untrusted FPGA shells or custom hardware.
  • The system requires only minor modifications to the underlying DBMS, enabling integration with mature systems like PostgreSQL.
  • Performance overhead is kept low through careful enclave design, minimizing context switches and leveraging efficient data structures like Merkle trees for integrity.
  • The prototype demonstrates that full-SQL support and scalability are achievable on standard Intel CPUs using SGX, even with the 90MB enclave memory limit.

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.