Skip to content

Oblivious RAM

Preserve logical memory reads and writes while making observed physical access traces indistinguishable for equally long request sequences.

Version
v1 · 2026-10-03 · History
Domain-specific #
13478
Aliases
ORAM, Oblivious random-access memory, Oblivious memory simulation

Core Idea

An oblivious RAM (ORAM) lets a computation read and write logical memory while hiding which locations it selected from someone who watches physical storage accesses. It places a protocol between logical requests and observable memory. The protocol has to return the right data and make the physical address traces of any two equally long request sequences indistinguishable under its stated security model.[1][2]

Encrypting stored blocks is not enough by itself: even when block contents are secret, repeatedly visiting a visible address can reveal a pattern. ORAM addresses that pattern channel. Its formal guarantee does not automatically hide request count, timing, data contents or every other side channel; the observer and compared sequences must be specified.[2]

How would you explain it like I'm…

The Secret Toy-Box Shuffle

Imagine you keep your toys in locked boxes in a room, and a nosy person can watch which boxes you open, even though they can't see inside. If you always open the same box, they learn something. Oblivious RAM is a clever trick of opening and shuffling boxes so the watcher can't tell which toy you really wanted, but you still always get the right toy.

Hiding Which Locker You Open

Computers keep information in memory, sort of like numbered lockers. Even if the information is scrambled with a secret code, someone watching which lockers get opened can still learn things — for example, that the same locker gets opened again and again. Oblivious RAM is a way of reading and writing memory that hides which locker you actually wanted. It does this by opening and shuffling extra lockers so the pattern looks the same no matter what you asked for. It must still give back the right information, and it doesn't hide everything — the watcher can still count how many requests there were.

Access-Pattern-Hiding Memory

Oblivious RAM (ORAM) lets a program read and write memory while hiding which logical locations it's asking for from someone who can see the physical storage accesses. Encryption hides what's stored but not the access pattern — which locations are visited and in what order — and that pattern can leak information. In ORAM, a mediator turns each logical request into physical reads and writes that both return the correct results and produce an address trace that can't distinguish between request sequences of the same length. Both requirements matter: wrong answers don't count, and correct answers that reveal addresses aren't oblivious. ORAM doesn't hide everything — the number of requests is still visible, and some models don't cover timing. A naive scheme touches every location each time; efficient schemes like Path ORAM remap blocks randomly and keep secret local state.

 

An oblivious RAM is a mechanism for carrying out logical memory reads and writes while concealing which logical locations are requested from an observer of the physical storage accesses. A client or protected processor issues a logical block request; a mediator translates it into physical reads and writes that must jointly preserve correct read/write semantics and yield an observer-visible address trace indistinguishable across eligible logical request sequences of the same length under the stated security model. It addresses the access-pattern channel left open by encryption, which hides block contents but not the sequence of visited locations, repeated visits, or relocations. In the original machine formulation, the comparison condition is equal original running time; in the Path ORAM formulation, it is equal-length request sequences. Neither guarantees total secrecy: the length is revealed, and the Path ORAM model explicitly excludes request timing and frequency. Constructions range from the trivial scan of every location per operation, which is oblivious but costly, to efficient schemes using remapping and hidden client state, such as Path ORAM, where the server sees full tree paths while blocks are reassigned to fresh random leaves; such details belong to particular constructions, not to the definition.

Scope of Application

In remote storage, a trusted client can use Path ORAM so an untrusted server sees tree-path accesses rather than a direct series of requested block addresses. In secure hardware, ZeroTrace uses oblivious memory primitives with Intel SGX to reduce leakage from memory access behavior outside the protected computation. Both preserve a logical block interface while mediating what the outside observer sees.[2][3]

Clarity

ORAM separates logical addresses—the blocks the program wants—from physical addresses—the locations an observer sees. A correct encrypted database with visibly direct lookups is not an ORAM. A protocol that always makes the same accesses but returns wrong values is not one either. The property is the conjunction of correct memory behavior and hidden access choice.[1][2]

Manages Complexity

Many designs can serve the same purpose. Scanning every location on every request can hide the chosen address but is costly. Path ORAM uses remapping and path transfers to reduce cost under particular storage assumptions. Evaluating a design therefore involves separate questions about trace privacy, correctness, bandwidth, client state and what the actual observer can measure.[1][2]

Abstract Reasoning

Take two possible logical request sequences of the same length and ask whether their observable physical traces can be told apart. Then ask whether each execution returns and updates the right values. If either test fails, the claimed ORAM guarantee fails. Even if both pass, inspect whether timing or other observations lie outside the proof's stated scope.[1][2]

Knowledge Transfer

The same ORAM relation applies to remote servers, secure processors and other memory settings when logical reads/writes, an external trace observer and the same correctness and indistinguishability tests are present. A broader idea of making observables insensitive to hidden choices can be useful elsewhere, but the name ORAM should not be exported to non-memory examples merely by analogy.[2][3]

Neighborhood in Abstraction Space

Oblivious RAM sits in a moderately populated region (54th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Program Execution & Runtime Concepts (34 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14

References

[1] Oded Goldreich and Rafail Ostrovsky, “Software Protection and Simulation on Oblivious RAMs”, Journal of the ACM 43, no. 3 (1996): 431–473, especially §1.2 and Definition 2.3.2.1. registry ↩a ↩b ↩c ↩d

[2] Emil Stefanov et al., “Path ORAM: An Extremely Simple Oblivious RAM Protocol”, arXiv:1202.5150v3 (2014), especially §§1–3 and Definition 1. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g

[3] Sajin Sasy, Sergey Gorbunov and Christopher W. Fletcher, “ZeroTrace: Oblivious Memory Primitives from Intel SGX”, NDSS (2018), abstract, §I-B and §III-C. registry ↩a ↩b