Lune

USENIX Security2026Top-tier venue

Plaintext Recovery Against Post-Filtering Access Control

Zachary Espiritu, David Cash

Abstract

Fine-grained access control (FGAC) mechanisms such as row-level security (RLS) and document-level security (DLS) are widely deployed in databases to restrict access to data stored in physical indexing structures shared by multiple users (e.g., in multi-tenant databases, or in the implementation of least-privilege within an organization). FGAC implementations often use post-filtering where untrusted queries run over all data and private results are redacted afterwards. Prior work shows this approach can lead to side-channels that enable attackers to test if a chosen value exists in unseen data. While damaging, prior attacks do not enable the efficient recovery of rich, high-entropy data like full records or text documents. We show these side-channels are more damaging than previously thought. Using rich query interfaces (e.g., range, prefix, and conjunctive predicates), we amplify existence leakage into reconstruction attacks. We do this in two settings: PostgreSQL (RLS timing). We exploit a timing side-channel and expressive SQL queries (e.g., ranges, conjunctions) to enumerate unknown attribute values and, in turn, full records via binary search over large domains. Elasticsearch/OpenSearch (DLS scoring). We exploit scoring and prefix-expansion side-channels to recover indexed terms from documents. In some cases, we can extract n-grams in the corpus to recover approximate text. Our results show that FGAC side-channels must be evaluated in the presence of rich predicates, which can turn membership tests into scalable reconstruction of high-entropy records.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Database Reconstruction from Noisy Volumes: A Cache Side-Channel Attack on SQLite cites Generic Attacks on Secure Outsourced Databases
  • Database Reconstruction from Noisy Volumes: A Cache Side-Channel Attack on SQLite cites Improved Reconstruction Attacks on Encrypted Data Using Range Query Leakage
  • Improved Reconstruction Attacks on Encrypted Data Using Range Query Leakage cites Generic Attacks on Secure Outsourced Databases
  • Full Database Reconstruction in Two Dimensions cites Generic Attacks on Secure Outsourced Databases
  • Full Database Reconstruction in Two Dimensions cites Improved Reconstruction Attacks on Encrypted Data Using Range Query Leakage
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on17

  1. Generic Attacks on Secure Outsourced DatabasesGeorgios Kellaris, George Kollios, Kobbi Nissim, Adam O'NeillCCS 2016 · 327 citations
  2. Verifying Constant-Time ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, François Dupressoir et al.USENIX Security 2016 · 274 citations
  3. Improved Reconstruction Attacks on Encrypted Data Using Range Query LeakageMarie-Sarah Lacharité, Brice Minaud, Kenneth G. PatersonS&P 2018 · 183 citations
  4. Full Database Reconstruction in Two DimensionsFrancesca Falzon, Evangelia Anna Markatou, Akshima, David Cash et al.CCS 2020 · 27 citations
  5. Database Reconstruction from Noisy Volumes: A Cache Side-Channel Attack on SQLiteAria Shahverdi, Mahammad Shirinov, Dana Dachman-SoledUSENIX Security 2021 · 20 citations

Related papers

  1. RLS Side Channels: Investigating Leakage of Row-Level Security Protected Data Through Query Execution TimeChen Dar, Moshik Hershcovitch, Adam MorrisonSIGMOD 2023 · 6 citations
  2. Forward and Backward Private Conjunctive Searchable Symmetric EncryptionSikhar Patranabis, Debdeep MukhopadhyayNDSS 2021
  3. Reconstructing with Less: Leakage Abuse Attacks in Two DimensionsEvangelia Anna Markatou, Francesca Falzon, Roberto Tamassia, William SchorCCS 2021 · 22 citations
  4. Side-Channel Attacks on Shared Search IndexesLiang Wang, Paul Grubbs, Jiahui Lu, Vincent Bindschaedler et al.S&P 2017 · 9 citations
  5. Leakage-Abuse Attacks Against Structured Encryption for SQLAlexander Hoover, Ruth Ng, Daren Khu, Yao'an Li et al.USENIX Security 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines