Paper 2026/2465

Snapshots of TEE-Based Encrypted Databases Leak Plaintext Histograms via Dendrochronology

Zachary Espiritu, MongoDB Research, New York University
Abstract

Arborists use dendrochronology, or the study of tree "growth rings" (as in, the plant), to infer past environmental events. We identify an analogous, exploitable phenomenon in the indexes used by several encrypted databases (EDBs) based on trusted execution environments (TEEs). Such EDBs have been shown to leak the order of indexed values, but not the histogram (or frequency of each value), with respect to a weaker class of snapshot adversaries. This order-only leakage substantially reduces the impact of possible inference attacks. We show, in fact, frequency is recoverable in the snapshot model from many TEE-based EDBs, even if the TEE itself is "secure". Our insight is simple: practical storage engines impose a strict total order on indexed keys by augmenting each key with a unique tie-breaker. If the adversary learns information about the tie-breakers, they can recover the frequencies of plaintext keys. We show this enables stronger inference attacks on several TEE-based EDBs (including Microsoft SQL Server’s Always Encrypted, StealthDB, and HeDB) to demonstrate this vulnerability’s ubiquity and point to broader lessons for TEE applications designed around legacy code.

Metadata
Available format(s)
PDF
Category
Attacks and cryptanalysis
Publication info
Published elsewhere. Minor revision. ACM CCS 2026
DOI
10.1145/3830454.3846542
Keywords
encrypted databasestrusted execution environmentsfrequency leakagesnapshot attacks
Contact author(s)
zachary espiritu @ mongodb com
History
2026-10-29: revised
2026-10-13: received
See all versions
Short URL
https://ia.cr/2026/2465
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2026/2465,
      author = {Zachary Espiritu},
      title = {Snapshots of {TEE}-Based Encrypted Databases Leak Plaintext Histograms via Dendrochronology},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/2465},
      year = {2026},
      doi = {10.1145/3830454.3846542},
      url = {https://eprint.iacr.org/2026/2465}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.