Skip to main content
QUICK REVIEW

[Paper Review] Enabling Strong Database Integrity using Trusted Execution Environments

Kai Mast, Lequn Chen|arXiv (Cornell University)|Jan 5, 2018
Distributed systems and fault toleranceComputer Science47 references5 citations
TL;DR

CreDB is a trusted database system that leverages Trusted Execution Environments (TEEs) like Intel SGX to provide blockchain-like data integrity without replication or proof-of-work. It enables tamper-proof transaction witnesses, policy-enforced data objects, timeline inspection, and protected function evaluation, achieving high performance (hundreds of transactions per second) as a drop-in replacement for NoSQL databases like MongoDB.

ABSTRACT

Many applications require the immutable and consistent sharing of data across organizational boundaries. Because conventional datastores cannot provide this functionality, blockchains have been proposed as one possible solution. Yet public blockchains are energy inefficient, hard to scale and suffer from limited throughput and high latencies, while permissioned blockchains depend on specially designated nodes, potentially leak meta-information, and also suffer from scale and performance bottlenecks. This paper presents CreDB, a datastore that provides blockchain-like guarantees of integrity using trusted execution environments. CreDB employs four novel mechanisms to support a new class of applications. First, it creates a permanent record of every transaction, known as a witness, that clients can then use not only to audit the database but to prove to third parties that desired actions took place. Second, it associates with every object an inseparable and inviolable policy, which not only performs access control but enables the datastore to implement state machines whose behavior is amenable to analysis. Third, timeline inspection allows authorized parties to inspect and reason about the history of changes made to the data. Finally, CreDB provides a protected function evaluation mechanism that allows integrity-protected computation over private data. The paper describes these mechanisms, and the applications they collectively enable, in detail. We have fully implemented a prototype of CreDB on Intel SGX. Evaluation shows that CreDB can serve as a drop-in replacement for other NoSQL stores, such as MongoDB while providing stronger integrity guarantees.

Motivation & Objective

  • To address the limitations of public and permissioned blockchains, such as high energy use, poor scalability, and performance bottlenecks, by enabling strong data integrity without replication.
  • To provide a secure, scalable, and efficient alternative to blockchains for applications requiring immutable, verifiable, and confidential data storage across distrusting parties.
  • To enable verifiable data integrity and privacy through TEE-backed mechanisms such as tamper-proof witnesses, policy enforcement, and protected function evaluation.
  • To support applications requiring third-party verifiability of data operations and system behavior, including smart contracts and auditability, without relying on trust in the database operator.

Proposed method

  • CreDB uses Intel SGX-based TEEs to isolate database nodes, ensuring that only authorized code can access or modify data, thus enforcing strong integrity.
  • It issues cryptographically secure, verifiable witnesses for every transaction, which serve as tamper-proof certificates of data state and transaction ordering.
  • Each data object is associated with an inseparable, symbolic policy expressed in a Turing-complete language, enforced by the TEE to govern access and behavior.
  • Timeline inspection allows authorized parties to audit and reason about historical data changes, enabling verifiable auditing and compliance.
  • Protected function evaluation enables remote, integrity-protected computation on private data, with results cryptographically bound to the input and verifiable via witnesses.
  • The system supports both standalone 'blockchain of one' operation and federated deployment across multiple TEE-backed nodes, enabling horizontal scaling.

Experimental results

Research questions

  • RQ1Can a TEE-based datastore provide blockchain-level data integrity guarantees without the performance and scalability limitations of traditional blockchains?
  • RQ2How can verifiable, auditable, and tamper-proof data operations be achieved in a system where clients do not fully trust the database operator?
  • RQ3What mechanisms enable secure, policy-enforced, and analyzable data operations in a distributed environment with untrusted nodes?
  • RQ4Can protected function evaluation over private data be implemented efficiently and securely using TEEs, with verifiable outcomes?
  • RQ5How does the performance of a TEE-based datastore compare to existing permissioned and permissionless blockchains in real-world workloads?

Key findings

  • CreDB achieves high performance, handling hundreds of complex transactions per second on a single node, outperforming state-of-the-art permissioned and permissionless blockchains.
  • The system functions as a 'blockchain of one' by using TEEs to enforce integrity without replication or consensus overhead.
  • Witnesses are cryptographically secure, independently verifiable, and can be used by third parties to prove data states, transactions, or policy compliance.
  • Semantic security policies are enforced via TEEs and can be symbolically analyzed, enabling third-party verification of expected behavior.
  • Protected function evaluation allows remote computation on private data with verifiable results, preserving confidentiality while ensuring correctness.
  • The prototype implementation on Intel SGX demonstrates that CreDB can serve as a drop-in replacement for NoSQL databases like MongoDB while providing stronger integrity guarantees.

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.