Rich predicates enable reconstruction of full records via timing and scoring side-channels
Post-filtering FGAC can be exploited to recover high-entropy records and text using expressive queries
Security & privacy arXiv 12 Aug 2026 Attack Prototype evidence
Published as “Plaintext Recovery Against Post-Filtering Access Control”
Why it matters
Operators of multi-tenant databases that rely on post-filtering FGAC must reconsider exposing rich query features, as they enable efficient extraction of high-entropy private data.
Summary
The paper shows that post-filtering fine-grained access control (FGAC) can be broken to recover full hidden rows in PostgreSQL and approximate text in Elasticsearch/OpenSearch by exploiting timing and scoring side-channels amplified through rich queries. Using binary search over range predicates and conjunctions, the authors recover exact attribute values and assemble full records; using prefix-expansion and n-gram scoring, they recover indexed terms and reconstruct document fragments. Experiments on a small Enron email subset achieve 100% accuracy for n-gram detection, but the attacks assume static, single-shard indexes and do not evaluate live systems.
What they found 2
- Full record reconstruction is possible in PostgreSQL via timing side-channels and binary search over range predicates.
“Our attacks apply to common SQL data types, work with standard indexing configurations, and require no auxiliary knowledge about the data distribution other than the schema. This improves prior work by demonstrating the side-channel can be efficiently exploited for full record recovery.”
- Exact n-gram extraction achieves perfect accuracy in Elasticsearch/OpenSearch.
“We achieve 100% accuracy, which confirms our scoring oracles consistently distinguish indexed and non-indexed n-grams.”
Caveats 5
- The evaluation assumes a static, single-shard index and a corpus that does not change during the attack, which may not hold on live systems.
- The authors state they do not explore practical exploitation on live deployments, noting that document frequencies can drift and affect oracle decisions.
- We do not explore the practical exploitation of this side-channel on live systems.
- Our experiments assume corpus document frequencies are stable for the duration of the attack, but concurrent writes can change DF and flip oracle decisions.
- The reconstruction evaluation uses a single-shard index and a static corpus, representing best-case conditions.
What’s new here 3
- Demonstrates full record reconstruction in PostgreSQL by combining timing side-channels with range and conjunctive predicates, beyond prior existence tests.
- Introduces prefix-expansion and n-gram scoring side-channels in Elasticsearch/OpenSearch to recover arbitrary keywords and approximate document text.
- Shows how rich query interfaces amplify FGAC leakage, turning simple membership oracles into scalable high-entropy data extraction.