SlideShare a Scribd company logo
+
Oblivious RAM
ORAM
A Brief Overview
Dibyendu Nath, UC Santa Barbara
+
Outline
 What’s ORAM ?
 Motivation
 History
 More on ORAM
 Goldreich’s ORAM
 Ostrovsky’s ORAM
 Recent Developments
 Conclusion
+
What is ORAM ?
 Oblivious Random Access Machine [ORAM]
 A machine is oblivious if the sequence in which it accesses memory locations is
equivalent for any two inputs with the same running time.
 E.g. For a client-server model with outsourced data storage in server, the server
cannot gain info about actual memory access pattern from client requests
 Main Idea:
Memory Access Pattern is hidden from adversary.
Caveat: Assume data content is not leaked as it is protected by traditional
cryptographic methods (encryption)
ServerClient
read(i)
write(i, d)
.
.
.
+
Outline
 What’s ORAM ?
 Motivation
 History
 More on ORAM
 Goldreich’s ORAM
 Ostrovsky’s ORAM
 Recent Developments
 Conclusion
+ Motivation
 Rise of Cloud Computing
 Success of Pay-as-you-Go model
for Public Clouds
 Affordability, Elasticity,
SLA Guarantees
 Lots of “Big” Data
 Solution: Outsourced Data Storage
 Accessible from many devices (desktop,
laptop, phone, car, ...).
 Greater reliability.
 May be cheaper (economy of scale).
 Security Concerns behind
outsourcing data to Public Clouds
+
Motivation
 Possible Solutions
 Duh! Use encryption
 Use “trusted” public cloud services
 Com’on, Google is “not evil”
 Use private cloud infrastructure
 Eg. Walmart uses OpenStack
 Is there a way to hide how we access our data but still use
public cloud infrastructure ?
 Answer: ORAM
+
Motivation: Example Attack
CloudApp
read(i)
write(i, d)
.
.
.
Genuine Client Request
Simulated Client Request
from “trusted” Cloud
provider
Cloud Storage
with Encrypted
Content
+
Motivation: Goal
 “Untrusted” means:
 It may not implement Write/Read properly
 It will try to learn about data
Goal: Securely Outsourcing Data - Store,
access, and update data on an untrusted
server.
M[0]=d1
M[1]=d2
M[2]=d3
…
…
M[n]=dn
read(i)
write(i, d)
.
.
.
Client
Remote Server
[Islam et al, ‘12]
+
Motivation: Solution
 An ORAM emulator is an intermediate layer
that protects any client (i.e. program).
 ORAM will issue operations that deviate from
actual client requests.
 Correctness:
 If server is honest then input/ output behavior is same for client.
 Security:
 Server cannot distinguish between two clients with same running time.
+
Outline
 What’s ORAM ?
 Motivation
 History
 More on ORAM
 Goldreich’s ORAM
 Ostrovsky’s ORAM
 Recent Developments
 Conclusion
+
History of ORAM
 Pippenger and Fischer showed “oblivious Turing
machines” could simulate general Turing machines
 Goldreich introduced analogous notion of ORAMs in ’87
and gave first interesting construction
 Ostrovsky gave a more efficient construction in ’90
 ... 20 years pass, time sharing systems become “clouds”
...
 Then a flurry of papers improving efficiency: ~10 since
2010
+
Outline
 What’s ORAM ?
 Motivation
 History
 More on ORAM
 Goldreich’s ORAM
 Ostrovsky’s ORAM
 Recent Developments
 Conclusion
+
ORAM Assumptions
 Assumption #1: Server does not see data.
 Store an encryption key on emulator and re-encrypt on every
read/write.
 Assumption #2: Server does not see op (read vs write).
 Every op is replaced with both a read and a write.
 Assumption #3: Server is honest-but-curious.
 Store a MAC key on emulator and sign (address, time, data) on
each operation.
 Not malicious
+
ORAM Security after Simplification
 What’s left to protect is the “access pattern” of the program.
 Definition: The access pattern generated by a sequence (i1,
..., in) with the ORAM emulator is the random variable (j1, ... ,
jT) sampled while running with an honest server.
 Definition: An ORAM emulator is secure if for every pair of
sequences of the same length, their access patterns are
indistinguishable.
+
Trivial ORAMs
 Example #1: Store everything in ORAM simulator cache
and simulate with no calls to server.
 Client storage = N.
 Example #2: Store memory on server, but scan entire
memory on every operation.
 Amortized and worst-case communication overhead = N.
 Example #3: Assume client accesses each memory slot
at most once, and then permute addresses using a PRP.
 Essentially optimal, but assumption does not hold in practice.
+
ORAM Lower Bounds
 Theorem (GO’90):
Any ORAM emulator must perform Ω(t log t) operations to
simulate t operations.
 Proved via a combinatorial argument.
 Theorem (BM’10):
Any ORAM emulator must either perform Ω(t log t log log
t) operations to simulate t operations or use storage Ω(N2-
o(1)) (on the server).
+
ORAM Efficiency Goals
 In order to be interesting, an ORAM must
simultaneously provide
 o(N) client storage
 o(N) amortized overhead
 Handling of repeated access to addresses.
 Desirable features for an “optimal ORAM”:
 O(log N) worst-case overhead
 O(1) client storage between operations
 O(1) client memory usage during operations
 “Stateless client”: Allows several clients who share a short key
to obliviously access data w/o communicating amongst
themselves between queries. Requires op counters.
+
Basic Tools: Shuffling
 This means we move data at address i to address π(i).
 Proof idea:
Use an oblivious sorting algorithm.
For each comparison in the sort, read both positions and rewrite
them, either swapping the data or not (depending on if π(i) >
π(j)).
Key Idea: Use sorting networks like Batcher or AKS, where
memory accesses are independent of input
Claim: Given any permutation π on {1 , ... , N}, we can permute the
data according to π with a sequence of ops that does not depend on
the data or π.
+
Oblivious Sort: Sorting Network
 Sorts Fixed number of values using a Fixed Sequence of
Comparisons.
 Perfect for Oblivious Shuffling
 Can be represented as networks of wires and comparator
modules
 Values (of any ordered type) flow across the wires. E
 Each comparator connect two wires
Batcher Sorting Network for n = 4
Time Complexity = O(N log2 N)
+
Batcher Sorting Network
Algorithm
N = 8
+
Outline
 What’s ORAM ?
 Motivation
 History
 More on ORAM
 Goldreich’s ORAM
 Ostrovsky’s ORAM
 Recent Developments
 Conclusion
+
Goldreich’s “Square Root” ORAM
 Scan Cache from the Server
 If data is not in server cache, read it from main
memory
 If data is in server cache, read next dummy slot
 Write data into server cache
 Reshuffle with new K and flush cache after
every C reads.
Initialization: Pick PRP key K. Use it to obliviously shuffle
N data slots together with C “dummy” slots. Empty cache.
N data
slots
C dummy
slots
C cache
slots
Server Storage: N + 2C slots [General Case]
Client Storage: O(1)
+
Goldreich’s ORAM : Efficiency
Taking C=N1/2
Batcher sort ⇒ extra log N factor in costs
Security: Relatively easy to prove.
Server sees an oblivious sort and then C unique, random looking
read/writes before reinitializing.
+
Can we do Better ?
+
Outline
 What’s ORAM ?
 Motivation
 History
 More on ORAM
 Goldreich’s ORAM
 Ostrovsky’s ORAM
 Recent Developments
 Conclusion
+
Ostrovsky’s “Hierarchical” ORAM
[Ostrovsky ’96]
 Aim: Minimize Amortized cost of Random Shuffling in
“Square Root” Approach
 Store data (including dummies) in Random-Hash Table,
rather than Randomly Sorted Array and recurse carefully
Main Idea:
 Use Hierarchy of Buffers (hash tables) of different sizes
 Shuffle buffers with frequency inversely proportional to their
sizes
Much more complicated technique for hiding repeated access to
same slots.
+ Ostrovsky’s “Hierarchical” ORAM
Design
Server Storage
• log N “levels” for N items
• Level i contains 2i buckets
• Each buckets contains log N slots
• Each slot contains a ciphertext
encrypting data or dummy.
level
2
3
4
1
K
2
K3
K4
K
1
• Data starts on lowest level into buckets,
overflow happens
Client Storage
PRP key Ki for each level
• When accessed, data gets moved to level 1 with
negligible prob.
• Eventually, data gets shuffled to lower levels
• Invariant: ≤ 2i data slots used in level i
• (i.e. ≤ 1 per bucket on average)
= data
PRP
Keys
+
Ostrovsky’s ORAM: Read/Write
Read/Write(addr) *
 Scan both top buckets for data
 At each lower level, scan exactly one bucket
 Until found, scan bucket at F(Ki, addr) on that level
 After found, scan a random bucket on that level
 Write data into bucket F(K1, addr) on level 1
 Perform a “shuffling procedure” to maintain invariant
* Server is blind to ops i.e. every op is replaced with both a read
and a write (which might or might not modify the data).
+
Ostrovsky’s ORAM in Action
level
2
3
4
1
K
2
K3
K4
K
1
= data
PRF
Keys
Read/Write(blue address):
1. Scan both buckets at level 1
2. Scan bucket F(K2, addr) = 4 in level 2
3. Scan F(K3, addr) = 3 in level 3 (finding data)
4. Scan a random bucket in level
5. Move found data to level 1
+
Shuffling Procedure
 We “merge levels” so that each level has ≤ 1 slot per
bucket on average
 After T operations:
 Let D={ max x : 2x divides T }
 For i = 1 to D
 Pick new PRP key for level i+1
 Shuffle data in levels i and i+1 together into level i+1 using new
key
 Level i is shuffled after every 2i ops.
+
Shuffling: Oblivious Hashing
 12-step Shuffling process with multiple calls to 2 primitives for
merging level i and i+1 into i
 Primitives Used:
 Scanning: Reading all words in memory array and possibly
modifying them
 Oblivious in the sense, order of access is predetermined and
same content may be written back
 7 Calls
 Oblivious Sorting:
Sorting memory array by sorting keys using Sorting Network such that
sequence of memory accesses are fixed and independent of input.
 4 Calls
Example of Sorting Networks: Batchers, AKS
+
Ostrovsky’s ORAM in Action
level
2
3
4
1
K
2
K3
K4
K
1
= data
PRF
Keys
1. Read a Slot
+
Ostrovsky’s ORAM in Action
level
2
3
4
1
K
2
K3
K4
K
1
= data
PRF
Keys
1. Read a Slot
2. Read another Slot
 Level 1 shuffled after 2^1 = 2 operations [stops here]
+
Ostrovsky’s ORAM in Action
level
2
3
4
1
K
2
K3
K4
K
1
= data
PRF
Keys
1. Read a Slot
2. Read another Slot
 Level 1 shuffled after 2^2 = 2 operations
3. 2 more Reads
 Level 1 shuffled after 2^2 = 4 operations
 Level 2 shuffled after 2^2 = 4 operations [stops here]
+
Ostrovsky’s ORAM: Security
 Security proof is more delicate than the first one.
 Key observation: This scheme never uses the value F(Ki,
addr) on the same (key, address) twice.
 Why? Suppose client touches for the same address twice.
 After the first read, data is promoted to level 1.
 During the next read:
 If it is still on level 1, then we don’t evaluate F at all.
 If it is has been moved, a new key must have been chosen for
that level since last read due to shuffling.
 Using key observation, all reads look like random bucket scans.
+
Ostrovsky’s ORAM: Efficiency
+
Outline
 What’s ORAM ?
 Motivation
 History
 More on ORAM
 Goldreich’s ORAM
 Ostrovsky’s ORAM
 Recent Developments
 Conclusion
+
Recent Developments
 Cuckoo Hashing ORAMs
 Replace bucket-lists with more efficient hash table
 Path ORAM Protocol
 Binary Tree based ORAM Framework with client stash
 Each block is mapped to a uniformly random leaf
bucket in the tree,
 Unstashed blocks are always placed in some bucket
along the path to the mapped leaf.
+
Outline
 What’s ORAM ?
 Motivation
 History
 More on ORAM
 Goldreich’s ORAM
 Ostrovsky’s ORAM
 Recent Developments
 Conclusion
+
Conclusion
Main Takeaway
 Use sorting networks with PRP keys to simulate oblivious
shuffling after a certain number of memory accesses
 Rinse and repeat
Improvement
 Use Hierarchy of Hash table Buffers of different sizes
 Shuffle buffers with frequency inversely proportional to their sizes
+
References
 Goldreich, Oded, and Rafail Ostrovsky. "Software protection
and simulation on oblivious RAMs." Journal of the ACM (JACM)
43.3 (1996): 431-473.
 Islam, Mohammad Saiful, Mehmet Kuzu, and Murat
Kantarcioglu. "Access Pattern disclosure on Searchable
Encryption: Ramification, Attack and Mitigation." NDSS. Vol.
20. 2012.
 http://cseweb.ucsd.edu/~cdcash/oram-slides.pdf
+
Thanks :)
Any Q?

More Related Content

What's hot

Koreanizer : Statistical Machine Translation based Ro-Ko Transliterator
Koreanizer : Statistical Machine Translation based Ro-Ko TransliteratorKoreanizer : Statistical Machine Translation based Ro-Ko Transliterator
Koreanizer : Statistical Machine Translation based Ro-Ko Transliterator
HONGJOO LEE
 
CAD: Floorplanning
CAD: Floorplanning CAD: Floorplanning
CAD: Floorplanning
Team-VLSI-ITMU
 
Timing analysis
Timing analysisTiming analysis
Timing analysis
khldun said
 
Oets parallel bubble sort
Oets parallel bubble sortOets parallel bubble sort
Oets parallel bubble sort
Cristian Chilipirea
 
RSA鍵生成脆弱性ROCAの紹介
RSA鍵生成脆弱性ROCAの紹介RSA鍵生成脆弱性ROCAの紹介
RSA鍵生成脆弱性ROCAの紹介
MITSUNARI Shigeo
 
Vlsi physical design automation on partitioning
Vlsi physical design automation on partitioningVlsi physical design automation on partitioning
Vlsi physical design automation on partitioning
Sushil Kundu
 
9 big o-notation
9 big o-notation9 big o-notation
9 big o-notationirdginfo
 
暗認本読書会6
暗認本読書会6暗認本読書会6
暗認本読書会6
MITSUNARI Shigeo
 
Fuzzing - A Tale of Two Cultures
Fuzzing - A Tale of Two CulturesFuzzing - A Tale of Two Cultures
Fuzzing - A Tale of Two Cultures
CISPA Helmholtz Center for Information Security
 
NLP techniques for log analysis
NLP techniques for log analysisNLP techniques for log analysis
NLP techniques for log analysis
Jacob Perkins
 
Verilog Tasks and functions
Verilog Tasks and functionsVerilog Tasks and functions
Verilog Tasks and functions
Vinchipsytm Vlsitraining
 
minimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routingminimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routingChandrajit Pal
 
Trends in Mixed Signal Validation
Trends in Mixed Signal ValidationTrends in Mixed Signal Validation
Trends in Mixed Signal ValidationDVClub
 
SOC Verification using SystemVerilog
SOC Verification using SystemVerilog SOC Verification using SystemVerilog
SOC Verification using SystemVerilog
Ramdas Mozhikunnath
 
Code Formula 予選B 解説
Code Formula 予選B 解説Code Formula 予選B 解説
Code Formula 予選B 解説
AtCoder Inc.
 
GUI for DRV fix in ICC2
GUI for DRV fix in ICC2GUI for DRV fix in ICC2
GUI for DRV fix in ICC2
Prashanth Chokkarapu
 
Basics of Functional Verification - Arrow Devices
Basics of Functional Verification - Arrow DevicesBasics of Functional Verification - Arrow Devices
Basics of Functional Verification - Arrow Devices
Arrow Devices
 
Artificial Intelligence - A modern approach 3ed
Artificial Intelligence - A modern approach 3edArtificial Intelligence - A modern approach 3ed
Artificial Intelligence - A modern approach 3ed
RohanMistry15
 
CPU Verification
CPU VerificationCPU Verification
CPU Verification
Ramdas Mozhikunnath
 

What's hot (20)

Koreanizer : Statistical Machine Translation based Ro-Ko Transliterator
Koreanizer : Statistical Machine Translation based Ro-Ko TransliteratorKoreanizer : Statistical Machine Translation based Ro-Ko Transliterator
Koreanizer : Statistical Machine Translation based Ro-Ko Transliterator
 
CAD: Floorplanning
CAD: Floorplanning CAD: Floorplanning
CAD: Floorplanning
 
Timing analysis
Timing analysisTiming analysis
Timing analysis
 
Oets parallel bubble sort
Oets parallel bubble sortOets parallel bubble sort
Oets parallel bubble sort
 
RSA鍵生成脆弱性ROCAの紹介
RSA鍵生成脆弱性ROCAの紹介RSA鍵生成脆弱性ROCAの紹介
RSA鍵生成脆弱性ROCAの紹介
 
Vlsi physical design automation on partitioning
Vlsi physical design automation on partitioningVlsi physical design automation on partitioning
Vlsi physical design automation on partitioning
 
Ngrams smoothing
Ngrams smoothingNgrams smoothing
Ngrams smoothing
 
9 big o-notation
9 big o-notation9 big o-notation
9 big o-notation
 
暗認本読書会6
暗認本読書会6暗認本読書会6
暗認本読書会6
 
Fuzzing - A Tale of Two Cultures
Fuzzing - A Tale of Two CulturesFuzzing - A Tale of Two Cultures
Fuzzing - A Tale of Two Cultures
 
NLP techniques for log analysis
NLP techniques for log analysisNLP techniques for log analysis
NLP techniques for log analysis
 
Verilog Tasks and functions
Verilog Tasks and functionsVerilog Tasks and functions
Verilog Tasks and functions
 
minimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routingminimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routing
 
Trends in Mixed Signal Validation
Trends in Mixed Signal ValidationTrends in Mixed Signal Validation
Trends in Mixed Signal Validation
 
SOC Verification using SystemVerilog
SOC Verification using SystemVerilog SOC Verification using SystemVerilog
SOC Verification using SystemVerilog
 
Code Formula 予選B 解説
Code Formula 予選B 解説Code Formula 予選B 解説
Code Formula 予選B 解説
 
GUI for DRV fix in ICC2
GUI for DRV fix in ICC2GUI for DRV fix in ICC2
GUI for DRV fix in ICC2
 
Basics of Functional Verification - Arrow Devices
Basics of Functional Verification - Arrow DevicesBasics of Functional Verification - Arrow Devices
Basics of Functional Verification - Arrow Devices
 
Artificial Intelligence - A modern approach 3ed
Artificial Intelligence - A modern approach 3edArtificial Intelligence - A modern approach 3ed
Artificial Intelligence - A modern approach 3ed
 
CPU Verification
CPU VerificationCPU Verification
CPU Verification
 

Viewers also liked

Path oram
Path oramPath oram
Path oram
Freeman Zhang
 
From Big Linked Data to Linked Big Data - DBpedia as a framework for data int...
From Big Linked Data to Linked Big Data - DBpedia as a framework for data int...From Big Linked Data to Linked Big Data - DBpedia as a framework for data int...
From Big Linked Data to Linked Big Data - DBpedia as a framework for data int...
giuseppe_futia
 
Oram And Secure Computation
Oram And Secure ComputationOram And Secure Computation
Oram And Secure Computation
Chong-Kuan Chen
 
Analyzing Bitcoin Security
Analyzing Bitcoin SecurityAnalyzing Bitcoin Security
Analyzing Bitcoin Security
Philippe Camacho, Ph.D.
 
Scaling up Linked Data
Scaling up Linked DataScaling up Linked Data
Scaling up Linked Data
Marin Dimitrov
 
Bitspend Introduction
Bitspend IntroductionBitspend Introduction
Bitspend Introductionbitcoin
 
Bitcoin
BitcoinBitcoin
Pareto Principle Explained
Pareto Principle ExplainedPareto Principle Explained
Pareto Principle Explained
Ed Simpson
 
Introduction Bitcoin
Introduction BitcoinIntroduction Bitcoin
Introduction Bitcoin
Chitpong Wuttanan
 
Bitcoin (Global Digital Currency)
Bitcoin (Global Digital Currency) Bitcoin (Global Digital Currency)
Bitcoin (Global Digital Currency)
Paramkusa K
 
Cissp d5-cryptography v2012-mini coursev2
Cissp d5-cryptography v2012-mini coursev2Cissp d5-cryptography v2012-mini coursev2
Cissp d5-cryptography v2012-mini coursev2
infosecedu
 
What is Bitcoin? - A guide for beginners
What is Bitcoin? - A guide for beginnersWhat is Bitcoin? - A guide for beginners
What is Bitcoin? - A guide for beginners
Jonathan Waller
 
Bitcoin - the Basics
Bitcoin - the BasicsBitcoin - the Basics
Bitcoin - the Basics
Vesa Linja-aho
 
Introduction to bitcoin
Introduction to bitcoinIntroduction to bitcoin
Introduction to bitcoinWolf McNally
 
Bitcoin: The Internet of Money
Bitcoin: The Internet of MoneyBitcoin: The Internet of Money
Bitcoin: The Internet of Money
winklevosscap
 

Viewers also liked (15)

Path oram
Path oramPath oram
Path oram
 
From Big Linked Data to Linked Big Data - DBpedia as a framework for data int...
From Big Linked Data to Linked Big Data - DBpedia as a framework for data int...From Big Linked Data to Linked Big Data - DBpedia as a framework for data int...
From Big Linked Data to Linked Big Data - DBpedia as a framework for data int...
 
Oram And Secure Computation
Oram And Secure ComputationOram And Secure Computation
Oram And Secure Computation
 
Analyzing Bitcoin Security
Analyzing Bitcoin SecurityAnalyzing Bitcoin Security
Analyzing Bitcoin Security
 
Scaling up Linked Data
Scaling up Linked DataScaling up Linked Data
Scaling up Linked Data
 
Bitspend Introduction
Bitspend IntroductionBitspend Introduction
Bitspend Introduction
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Pareto Principle Explained
Pareto Principle ExplainedPareto Principle Explained
Pareto Principle Explained
 
Introduction Bitcoin
Introduction BitcoinIntroduction Bitcoin
Introduction Bitcoin
 
Bitcoin (Global Digital Currency)
Bitcoin (Global Digital Currency) Bitcoin (Global Digital Currency)
Bitcoin (Global Digital Currency)
 
Cissp d5-cryptography v2012-mini coursev2
Cissp d5-cryptography v2012-mini coursev2Cissp d5-cryptography v2012-mini coursev2
Cissp d5-cryptography v2012-mini coursev2
 
What is Bitcoin? - A guide for beginners
What is Bitcoin? - A guide for beginnersWhat is Bitcoin? - A guide for beginners
What is Bitcoin? - A guide for beginners
 
Bitcoin - the Basics
Bitcoin - the BasicsBitcoin - the Basics
Bitcoin - the Basics
 
Introduction to bitcoin
Introduction to bitcoinIntroduction to bitcoin
Introduction to bitcoin
 
Bitcoin: The Internet of Money
Bitcoin: The Internet of MoneyBitcoin: The Internet of Money
Bitcoin: The Internet of Money
 

Similar to ORAM: A Brief Overview

Apache Solr as a compressed, scalable, and high performance time series database
Apache Solr as a compressed, scalable, and high performance time series databaseApache Solr as a compressed, scalable, and high performance time series database
Apache Solr as a compressed, scalable, and high performance time series database
Florian Lautenschlager
 
HUG_Ireland_Apache_Arrow_Tomer_Shiran
HUG_Ireland_Apache_Arrow_Tomer_Shiran HUG_Ireland_Apache_Arrow_Tomer_Shiran
HUG_Ireland_Apache_Arrow_Tomer_Shiran
John Mulhall
 
Practical Malware Analysis Ch13
Practical Malware Analysis Ch13Practical Malware Analysis Ch13
Practical Malware Analysis Ch13
Sam Bowne
 
DSJ_Unit I & II.pdf
DSJ_Unit I & II.pdfDSJ_Unit I & II.pdf
DSJ_Unit I & II.pdf
Arumugam90
 
CNIT 126: 13: Data Encoding
CNIT 126: 13: Data EncodingCNIT 126: 13: Data Encoding
CNIT 126: 13: Data Encoding
Sam Bowne
 
Spark Summit EU talk by Qifan Pu
Spark Summit EU talk by Qifan PuSpark Summit EU talk by Qifan Pu
Spark Summit EU talk by Qifan Pu
Spark Summit
 
osdi23_slides_lo_v2.pdf
osdi23_slides_lo_v2.pdfosdi23_slides_lo_v2.pdf
osdi23_slides_lo_v2.pdf
gmdvmk
 
CNIT 126 13: Data Encoding
CNIT 126 13: Data EncodingCNIT 126 13: Data Encoding
CNIT 126 13: Data Encoding
Sam Bowne
 
Data structure and algorithm using java
Data structure and algorithm using javaData structure and algorithm using java
Data structure and algorithm using java
Narayan Sau
 
CS2: A Searchable Cryptographic Cloud Storage System
CS2: A Searchable Cryptographic Cloud Storage SystemCS2: A Searchable Cryptographic Cloud Storage System
CS2: A Searchable Cryptographic Cloud Storage System
ShurenBi1
 
OBSCURE: Information Theoretic Oblivious and Verifiable Aggregation Queries
OBSCURE: Information Theoretic Oblivious and Verifiable Aggregation QueriesOBSCURE: Information Theoretic Oblivious and Verifiable Aggregation Queries
OBSCURE: Information Theoretic Oblivious and Verifiable Aggregation Queries
Shantanu Sharma
 
Porting a Streaming Pipeline from Scala to Rust
Porting a Streaming Pipeline from Scala to RustPorting a Streaming Pipeline from Scala to Rust
Porting a Streaming Pipeline from Scala to Rust
Evan Chan
 
Next-generation sequencing data format and visualization with ngs.plot 2015
Next-generation sequencing data format and visualization with ngs.plot 2015Next-generation sequencing data format and visualization with ngs.plot 2015
Next-generation sequencing data format and visualization with ngs.plot 2015
Li Shen
 
Rass presentation
Rass presentationRass presentation
Rass presentation
Shalini Guha
 
Hs java open_party
Hs java open_partyHs java open_party
Hs java open_party
Open Party
 
Unit v memory & programmable logic devices
Unit v   memory & programmable logic devicesUnit v   memory & programmable logic devices
Unit v memory & programmable logic devices
KanmaniRajamanickam
 
OSDC 2016 - Chronix - A fast and efficient time series storage based on Apach...
OSDC 2016 - Chronix - A fast and efficient time series storage based on Apach...OSDC 2016 - Chronix - A fast and efficient time series storage based on Apach...
OSDC 2016 - Chronix - A fast and efficient time series storage based on Apach...
NETWAYS
 
A Fast and Efficient Time Series Storage Based on Apache Solr
A Fast and Efficient Time Series Storage Based on Apache SolrA Fast and Efficient Time Series Storage Based on Apache Solr
A Fast and Efficient Time Series Storage Based on Apache Solr
QAware GmbH
 
Chronix: A fast and efficient time series storage based on Apache Solr
Chronix: A fast and efficient time series storage based on Apache SolrChronix: A fast and efficient time series storage based on Apache Solr
Chronix: A fast and efficient time series storage based on Apache Solr
Florian Lautenschlager
 
Rust & Apache Arrow @ RMS
Rust & Apache Arrow @ RMSRust & Apache Arrow @ RMS
Rust & Apache Arrow @ RMS
Andy Grove
 

Similar to ORAM: A Brief Overview (20)

Apache Solr as a compressed, scalable, and high performance time series database
Apache Solr as a compressed, scalable, and high performance time series databaseApache Solr as a compressed, scalable, and high performance time series database
Apache Solr as a compressed, scalable, and high performance time series database
 
HUG_Ireland_Apache_Arrow_Tomer_Shiran
HUG_Ireland_Apache_Arrow_Tomer_Shiran HUG_Ireland_Apache_Arrow_Tomer_Shiran
HUG_Ireland_Apache_Arrow_Tomer_Shiran
 
Practical Malware Analysis Ch13
Practical Malware Analysis Ch13Practical Malware Analysis Ch13
Practical Malware Analysis Ch13
 
DSJ_Unit I & II.pdf
DSJ_Unit I & II.pdfDSJ_Unit I & II.pdf
DSJ_Unit I & II.pdf
 
CNIT 126: 13: Data Encoding
CNIT 126: 13: Data EncodingCNIT 126: 13: Data Encoding
CNIT 126: 13: Data Encoding
 
Spark Summit EU talk by Qifan Pu
Spark Summit EU talk by Qifan PuSpark Summit EU talk by Qifan Pu
Spark Summit EU talk by Qifan Pu
 
osdi23_slides_lo_v2.pdf
osdi23_slides_lo_v2.pdfosdi23_slides_lo_v2.pdf
osdi23_slides_lo_v2.pdf
 
CNIT 126 13: Data Encoding
CNIT 126 13: Data EncodingCNIT 126 13: Data Encoding
CNIT 126 13: Data Encoding
 
Data structure and algorithm using java
Data structure and algorithm using javaData structure and algorithm using java
Data structure and algorithm using java
 
CS2: A Searchable Cryptographic Cloud Storage System
CS2: A Searchable Cryptographic Cloud Storage SystemCS2: A Searchable Cryptographic Cloud Storage System
CS2: A Searchable Cryptographic Cloud Storage System
 
OBSCURE: Information Theoretic Oblivious and Verifiable Aggregation Queries
OBSCURE: Information Theoretic Oblivious and Verifiable Aggregation QueriesOBSCURE: Information Theoretic Oblivious and Verifiable Aggregation Queries
OBSCURE: Information Theoretic Oblivious and Verifiable Aggregation Queries
 
Porting a Streaming Pipeline from Scala to Rust
Porting a Streaming Pipeline from Scala to RustPorting a Streaming Pipeline from Scala to Rust
Porting a Streaming Pipeline from Scala to Rust
 
Next-generation sequencing data format and visualization with ngs.plot 2015
Next-generation sequencing data format and visualization with ngs.plot 2015Next-generation sequencing data format and visualization with ngs.plot 2015
Next-generation sequencing data format and visualization with ngs.plot 2015
 
Rass presentation
Rass presentationRass presentation
Rass presentation
 
Hs java open_party
Hs java open_partyHs java open_party
Hs java open_party
 
Unit v memory & programmable logic devices
Unit v   memory & programmable logic devicesUnit v   memory & programmable logic devices
Unit v memory & programmable logic devices
 
OSDC 2016 - Chronix - A fast and efficient time series storage based on Apach...
OSDC 2016 - Chronix - A fast and efficient time series storage based on Apach...OSDC 2016 - Chronix - A fast and efficient time series storage based on Apach...
OSDC 2016 - Chronix - A fast and efficient time series storage based on Apach...
 
A Fast and Efficient Time Series Storage Based on Apache Solr
A Fast and Efficient Time Series Storage Based on Apache SolrA Fast and Efficient Time Series Storage Based on Apache Solr
A Fast and Efficient Time Series Storage Based on Apache Solr
 
Chronix: A fast and efficient time series storage based on Apache Solr
Chronix: A fast and efficient time series storage based on Apache SolrChronix: A fast and efficient time series storage based on Apache Solr
Chronix: A fast and efficient time series storage based on Apache Solr
 
Rust & Apache Arrow @ RMS
Rust & Apache Arrow @ RMSRust & Apache Arrow @ RMS
Rust & Apache Arrow @ RMS
 

Recently uploaded

GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
kalichargn70th171
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 

Recently uploaded (20)

GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 

ORAM: A Brief Overview

  • 1. + Oblivious RAM ORAM A Brief Overview Dibyendu Nath, UC Santa Barbara
  • 2. + Outline  What’s ORAM ?  Motivation  History  More on ORAM  Goldreich’s ORAM  Ostrovsky’s ORAM  Recent Developments  Conclusion
  • 3. + What is ORAM ?  Oblivious Random Access Machine [ORAM]  A machine is oblivious if the sequence in which it accesses memory locations is equivalent for any two inputs with the same running time.  E.g. For a client-server model with outsourced data storage in server, the server cannot gain info about actual memory access pattern from client requests  Main Idea: Memory Access Pattern is hidden from adversary. Caveat: Assume data content is not leaked as it is protected by traditional cryptographic methods (encryption) ServerClient read(i) write(i, d) . . .
  • 4. + Outline  What’s ORAM ?  Motivation  History  More on ORAM  Goldreich’s ORAM  Ostrovsky’s ORAM  Recent Developments  Conclusion
  • 5. + Motivation  Rise of Cloud Computing  Success of Pay-as-you-Go model for Public Clouds  Affordability, Elasticity, SLA Guarantees  Lots of “Big” Data  Solution: Outsourced Data Storage  Accessible from many devices (desktop, laptop, phone, car, ...).  Greater reliability.  May be cheaper (economy of scale).  Security Concerns behind outsourcing data to Public Clouds
  • 6. + Motivation  Possible Solutions  Duh! Use encryption  Use “trusted” public cloud services  Com’on, Google is “not evil”  Use private cloud infrastructure  Eg. Walmart uses OpenStack  Is there a way to hide how we access our data but still use public cloud infrastructure ?  Answer: ORAM
  • 7. + Motivation: Example Attack CloudApp read(i) write(i, d) . . . Genuine Client Request Simulated Client Request from “trusted” Cloud provider Cloud Storage with Encrypted Content
  • 8. + Motivation: Goal  “Untrusted” means:  It may not implement Write/Read properly  It will try to learn about data Goal: Securely Outsourcing Data - Store, access, and update data on an untrusted server. M[0]=d1 M[1]=d2 M[2]=d3 … … M[n]=dn read(i) write(i, d) . . . Client Remote Server [Islam et al, ‘12]
  • 9. + Motivation: Solution  An ORAM emulator is an intermediate layer that protects any client (i.e. program).  ORAM will issue operations that deviate from actual client requests.  Correctness:  If server is honest then input/ output behavior is same for client.  Security:  Server cannot distinguish between two clients with same running time.
  • 10. + Outline  What’s ORAM ?  Motivation  History  More on ORAM  Goldreich’s ORAM  Ostrovsky’s ORAM  Recent Developments  Conclusion
  • 11. + History of ORAM  Pippenger and Fischer showed “oblivious Turing machines” could simulate general Turing machines  Goldreich introduced analogous notion of ORAMs in ’87 and gave first interesting construction  Ostrovsky gave a more efficient construction in ’90  ... 20 years pass, time sharing systems become “clouds” ...  Then a flurry of papers improving efficiency: ~10 since 2010
  • 12. + Outline  What’s ORAM ?  Motivation  History  More on ORAM  Goldreich’s ORAM  Ostrovsky’s ORAM  Recent Developments  Conclusion
  • 13. + ORAM Assumptions  Assumption #1: Server does not see data.  Store an encryption key on emulator and re-encrypt on every read/write.  Assumption #2: Server does not see op (read vs write).  Every op is replaced with both a read and a write.  Assumption #3: Server is honest-but-curious.  Store a MAC key on emulator and sign (address, time, data) on each operation.  Not malicious
  • 14. + ORAM Security after Simplification  What’s left to protect is the “access pattern” of the program.  Definition: The access pattern generated by a sequence (i1, ..., in) with the ORAM emulator is the random variable (j1, ... , jT) sampled while running with an honest server.  Definition: An ORAM emulator is secure if for every pair of sequences of the same length, their access patterns are indistinguishable.
  • 15. + Trivial ORAMs  Example #1: Store everything in ORAM simulator cache and simulate with no calls to server.  Client storage = N.  Example #2: Store memory on server, but scan entire memory on every operation.  Amortized and worst-case communication overhead = N.  Example #3: Assume client accesses each memory slot at most once, and then permute addresses using a PRP.  Essentially optimal, but assumption does not hold in practice.
  • 16. + ORAM Lower Bounds  Theorem (GO’90): Any ORAM emulator must perform Ω(t log t) operations to simulate t operations.  Proved via a combinatorial argument.  Theorem (BM’10): Any ORAM emulator must either perform Ω(t log t log log t) operations to simulate t operations or use storage Ω(N2- o(1)) (on the server).
  • 17. + ORAM Efficiency Goals  In order to be interesting, an ORAM must simultaneously provide  o(N) client storage  o(N) amortized overhead  Handling of repeated access to addresses.  Desirable features for an “optimal ORAM”:  O(log N) worst-case overhead  O(1) client storage between operations  O(1) client memory usage during operations  “Stateless client”: Allows several clients who share a short key to obliviously access data w/o communicating amongst themselves between queries. Requires op counters.
  • 18. + Basic Tools: Shuffling  This means we move data at address i to address π(i).  Proof idea: Use an oblivious sorting algorithm. For each comparison in the sort, read both positions and rewrite them, either swapping the data or not (depending on if π(i) > π(j)). Key Idea: Use sorting networks like Batcher or AKS, where memory accesses are independent of input Claim: Given any permutation π on {1 , ... , N}, we can permute the data according to π with a sequence of ops that does not depend on the data or π.
  • 19. + Oblivious Sort: Sorting Network  Sorts Fixed number of values using a Fixed Sequence of Comparisons.  Perfect for Oblivious Shuffling  Can be represented as networks of wires and comparator modules  Values (of any ordered type) flow across the wires. E  Each comparator connect two wires Batcher Sorting Network for n = 4 Time Complexity = O(N log2 N)
  • 21. + Outline  What’s ORAM ?  Motivation  History  More on ORAM  Goldreich’s ORAM  Ostrovsky’s ORAM  Recent Developments  Conclusion
  • 22. + Goldreich’s “Square Root” ORAM  Scan Cache from the Server  If data is not in server cache, read it from main memory  If data is in server cache, read next dummy slot  Write data into server cache  Reshuffle with new K and flush cache after every C reads. Initialization: Pick PRP key K. Use it to obliviously shuffle N data slots together with C “dummy” slots. Empty cache. N data slots C dummy slots C cache slots Server Storage: N + 2C slots [General Case] Client Storage: O(1)
  • 23. + Goldreich’s ORAM : Efficiency Taking C=N1/2 Batcher sort ⇒ extra log N factor in costs Security: Relatively easy to prove. Server sees an oblivious sort and then C unique, random looking read/writes before reinitializing.
  • 24. + Can we do Better ?
  • 25. + Outline  What’s ORAM ?  Motivation  History  More on ORAM  Goldreich’s ORAM  Ostrovsky’s ORAM  Recent Developments  Conclusion
  • 26. + Ostrovsky’s “Hierarchical” ORAM [Ostrovsky ’96]  Aim: Minimize Amortized cost of Random Shuffling in “Square Root” Approach  Store data (including dummies) in Random-Hash Table, rather than Randomly Sorted Array and recurse carefully Main Idea:  Use Hierarchy of Buffers (hash tables) of different sizes  Shuffle buffers with frequency inversely proportional to their sizes Much more complicated technique for hiding repeated access to same slots.
  • 27. + Ostrovsky’s “Hierarchical” ORAM Design Server Storage • log N “levels” for N items • Level i contains 2i buckets • Each buckets contains log N slots • Each slot contains a ciphertext encrypting data or dummy. level 2 3 4 1 K 2 K3 K4 K 1 • Data starts on lowest level into buckets, overflow happens Client Storage PRP key Ki for each level • When accessed, data gets moved to level 1 with negligible prob. • Eventually, data gets shuffled to lower levels • Invariant: ≤ 2i data slots used in level i • (i.e. ≤ 1 per bucket on average) = data PRP Keys
  • 28. + Ostrovsky’s ORAM: Read/Write Read/Write(addr) *  Scan both top buckets for data  At each lower level, scan exactly one bucket  Until found, scan bucket at F(Ki, addr) on that level  After found, scan a random bucket on that level  Write data into bucket F(K1, addr) on level 1  Perform a “shuffling procedure” to maintain invariant * Server is blind to ops i.e. every op is replaced with both a read and a write (which might or might not modify the data).
  • 29. + Ostrovsky’s ORAM in Action level 2 3 4 1 K 2 K3 K4 K 1 = data PRF Keys Read/Write(blue address): 1. Scan both buckets at level 1 2. Scan bucket F(K2, addr) = 4 in level 2 3. Scan F(K3, addr) = 3 in level 3 (finding data) 4. Scan a random bucket in level 5. Move found data to level 1
  • 30. + Shuffling Procedure  We “merge levels” so that each level has ≤ 1 slot per bucket on average  After T operations:  Let D={ max x : 2x divides T }  For i = 1 to D  Pick new PRP key for level i+1  Shuffle data in levels i and i+1 together into level i+1 using new key  Level i is shuffled after every 2i ops.
  • 31. + Shuffling: Oblivious Hashing  12-step Shuffling process with multiple calls to 2 primitives for merging level i and i+1 into i  Primitives Used:  Scanning: Reading all words in memory array and possibly modifying them  Oblivious in the sense, order of access is predetermined and same content may be written back  7 Calls  Oblivious Sorting: Sorting memory array by sorting keys using Sorting Network such that sequence of memory accesses are fixed and independent of input.  4 Calls Example of Sorting Networks: Batchers, AKS
  • 32. + Ostrovsky’s ORAM in Action level 2 3 4 1 K 2 K3 K4 K 1 = data PRF Keys 1. Read a Slot
  • 33. + Ostrovsky’s ORAM in Action level 2 3 4 1 K 2 K3 K4 K 1 = data PRF Keys 1. Read a Slot 2. Read another Slot  Level 1 shuffled after 2^1 = 2 operations [stops here]
  • 34. + Ostrovsky’s ORAM in Action level 2 3 4 1 K 2 K3 K4 K 1 = data PRF Keys 1. Read a Slot 2. Read another Slot  Level 1 shuffled after 2^2 = 2 operations 3. 2 more Reads  Level 1 shuffled after 2^2 = 4 operations  Level 2 shuffled after 2^2 = 4 operations [stops here]
  • 35. + Ostrovsky’s ORAM: Security  Security proof is more delicate than the first one.  Key observation: This scheme never uses the value F(Ki, addr) on the same (key, address) twice.  Why? Suppose client touches for the same address twice.  After the first read, data is promoted to level 1.  During the next read:  If it is still on level 1, then we don’t evaluate F at all.  If it is has been moved, a new key must have been chosen for that level since last read due to shuffling.  Using key observation, all reads look like random bucket scans.
  • 37. + Outline  What’s ORAM ?  Motivation  History  More on ORAM  Goldreich’s ORAM  Ostrovsky’s ORAM  Recent Developments  Conclusion
  • 38. + Recent Developments  Cuckoo Hashing ORAMs  Replace bucket-lists with more efficient hash table  Path ORAM Protocol  Binary Tree based ORAM Framework with client stash  Each block is mapped to a uniformly random leaf bucket in the tree,  Unstashed blocks are always placed in some bucket along the path to the mapped leaf.
  • 39. + Outline  What’s ORAM ?  Motivation  History  More on ORAM  Goldreich’s ORAM  Ostrovsky’s ORAM  Recent Developments  Conclusion
  • 40. + Conclusion Main Takeaway  Use sorting networks with PRP keys to simulate oblivious shuffling after a certain number of memory accesses  Rinse and repeat Improvement  Use Hierarchy of Hash table Buffers of different sizes  Shuffle buffers with frequency inversely proportional to their sizes
  • 41. + References  Goldreich, Oded, and Rafail Ostrovsky. "Software protection and simulation on oblivious RAMs." Journal of the ACM (JACM) 43.3 (1996): 431-473.  Islam, Mohammad Saiful, Mehmet Kuzu, and Murat Kantarcioglu. "Access Pattern disclosure on Searchable Encryption: Ramification, Attack and Mitigation." NDSS. Vol. 20. 2012.  http://cseweb.ucsd.edu/~cdcash/oram-slides.pdf

Editor's Notes

  1. Assuming data is randomly put into buckets, overflow happens with negligible prob.