Skip to main content
QUICK REVIEW

[Paper Review] The Pyramid Scheme: Oblivious RAM for Trusted Processors

Manuel Costa, Lawrence Esswood|arXiv (Cornell University)|Dec 21, 2017
Security and Verification in ComputingComputer Science23 references8 citations
TL;DR

This paper introduces Pyramid ORAM, a novel hierarchical oblivious RAM scheme optimized for Intel SGX trusted processors. It uses a new Zigzag hash table and probabilistic routing to minimize constant overhead and online bandwidth, achieving 8x lower latency than Circuit ORAM for 99% of accesses while using only CPU registers as private memory.

ABSTRACT

Modern processors, e.g., Intel SGX, allow applications to isolate secret code and data in encrypted memory regions called enclaves. While encryption effectively hides the contents of memory, the sequence of address references issued by the secret code leaks information. This is a serious problem because these leaks can easily break the confidentiality guarantees of enclaves. In this paper, we explore Oblivious RAM (ORAM) designs that prevent these information leaks under the constraints of modern SGX processors. Most ORAMs are a poor fit for these processors because they have high constant overhead factors or require large private memories, which are not available in these processors. We address these limitations with a new hierarchical ORAM construction, the Pyramid ORAM, that is optimized towards online bandwidth cost and small blocks. It uses a new hashing scheme that circumvents the complexity of previous hierarchical schemes. We present an efficient x64-optimized implementation of Pyramid ORAM that uses only the processor's registers as private memory. We compare Pyramid ORAM with Circuit ORAM, a state-of-the-art tree-based ORAM scheme that also uses constant private memory. Pyramid ORAM has better online asymptotical complexity than Circuit ORAM. Our implementation of Pyramid ORAM and Circuit ORAM validates this: as all hierarchical schemes, Pyramid ORAM has high variance of access latencies; although latency can be high for some accesses, for typical configurations Pyramid ORAM provides access latencies that are 8X better than Circuit ORAM for 99% of accesses. Although the best known hierarchical ORAM has better asymptotical complexity, Pyramid ORAM has significantly lower constant overhead factors, making it the preferred choice in practice.

Motivation & Objective

  • Address the problem of memory access pattern leakage in Intel SGX enclaves, which compromises confidentiality despite encryption.
  • Design an ORAM scheme suitable for modern trusted processors with limited private memory and high constant overhead constraints.
  • Optimize for low online bandwidth and low constant factors in practical deployment on x64 processors.
  • Enable efficient, oblivious memory access using only CPU registers as private memory, avoiding large on-chip stash requirements.
  • Demonstrate that hierarchical ORAM can outperform tree-based schemes in practice despite higher worst-case latency by leveraging predictable rebuild scheduling.

Proposed method

  • Propose a new hierarchical ORAM construction, Pyramid ORAM, using a novel Zigzag hash table (ZHT) as the core data structure.
  • Design a probabilistic routing network that enables oblivious construction of ZHTs in O(n log n) time without hidden constants.
  • Use multilevel adaptive hashing with a threshold-based reinsertion strategy to manage overflow elements efficiently.
  • Implement the scheme using only CPU registers as private memory, eliminating reliance on large on-chip storage.
  • Optimize the implementation for x64 Skylake processors using low-level instruction-level optimizations.
  • Compare Pyramid ORAM against Circuit ORAM, a state-of-the-art tree-based ORAM, in terms of online and amortized access costs.

Experimental results

Research questions

  • RQ1Can a hierarchical ORAM design achieve better online asymptotic complexity than tree-based ORAM while maintaining low constant overhead in trusted processors?
  • RQ2How can oblivious data structures be efficiently constructed with minimal private memory and low constant factors on modern x64 processors?
  • RQ3To what extent can predictable rebuild phases in hierarchical ORAM reduce latency variance and improve practical performance compared to uniform-cost tree-based schemes?
  • RQ4Can a novel hashing scheme like Zigzag hash table eliminate the need for expensive oblivious sorting in hierarchical ORAM?
  • RQ5What is the practical performance trade-off between Pyramid ORAM and Circuit ORAM in real-world workloads on Intel SGX?

Key findings

  • Pyramid ORAM achieves better online asymptotic complexity than Circuit ORAM, with lower bandwidth cost per access.
  • For typical configurations, Pyramid ORAM reduces access latency by at least 8x compared to Circuit ORAM for 99% of accesses.
  • The implementation uses only CPU registers as private memory, avoiding the need for large on-chip stash or external memory.
  • Despite higher worst-case latency, Pyramid ORAM's predictable rebuild schedule allows for proactive optimization, reducing high-latency access frequency.
  • Pyramid ORAM outperforms the best-known hierarchical ORAM in practice due to significantly lower constant overhead factors.
  • This work presents the first experimental evaluation of a hierarchical ORAM on Intel SGX, validating its practical superiority over tree-based alternatives in real-world benchmarks.

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.