Unlike a prompt injection that directs an agent to email secrets, snapRAG probes a retrieval-augmented question-answering system repeatedly and uses observed answers to infer the material held in its retrieval corpus. The attack exploits a service that reveals content in small, individually plausible answers even while it does not offer a general export…
Inspect the ClaimsCase · DiggingBeagle record
snapRAG extracted indexed knowledge from retrieval assistants under a controlled query budget
A retrieval-oriented extraction method reconstructed a large share of a synthetic or benchmark RAG corpus from model responses, illustrating that answer-level permissions may expose source collection content over repeated queries.
Public disclosure: Nov 9, 2026
Retrieval-augmented AI services where user queries are allowed to draw from a repository whose entire contents should not be disclosed through the user's effective authorization.
Assessment profile
Assessment method- Setting
- evaluation
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- not applicable
- AI role
- AGAINST AI
Basis and provenance
Desk assessment of cited firsthand report and scope limits; quantitative denominators describe only the reporter's stated sample. No independent live exploitation or universal impact is inferred.
Assessed Nov 11, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-R236-SNAPRAG-CORPUS-EXTRACTION-STUDY-01 · CLM-R236-SNAPRAG-CORPUS-EXTRACTION-STUDY-02 · snapRAG: extraction of retrieval-augmented generation knowledge bases
At a glance
A system can enforce per-answer retrieval yet still leak most of a corpus in aggregate if the caller is allowed to issue unbounded overlapping queries. Authority over an individual answer is not authority to export the collection.
Read the implicationsThe reported maximum applies to benchmark conditions and cannot be extrapolated to all RAG products, document security models or query quotas. No real-world victim or actual customer dataset theft was demonstrated.
Limits and uncertaintyFull account
Unlike a prompt injection that directs an agent to email secrets, snapRAG probes a retrieval-augmented question-answering system repeatedly and uses observed answers to infer the material held in its retrieval corpus. The attack exploits a service that reveals content in small, individually plausible answers even while it does not offer a general export API. Researchers iterate candidate questions and aggregate overlaps to recover larger segments of the hidden indexed collection.
The research reports extraction up to 96.9% under its strongest controlled setup and particular query and scoring configuration, not a measured breach of an identified production enterprise tenant. Success depends on corpus characteristics, retrieval policy, exposed citation/excerpt behavior and the permitted budget. The paper does not imply that an arbitrary LLM possesses every indexed document in its weights.
Retrieval-augmented AI services where user queries are allowed to draw from a repository whose entire contents should not be disclosed through the user's effective authorization.
The reported maximum applies to benchmark conditions and cannot be extrapolated to all RAG products, document security models or query quotas. No real-world victim or actual customer dataset theft was demonstrated.
The paper describes a black-box corpus-extraction attacker who can issue many ordinary-looking queries to a retrieval assistant, but does not have direct access to its indexed documents. snapRAG turns previously returned chunks into new candidate queries, mutating token choices and calibrating the similarity threshold to visit less explored parts of the index. Its extraction frontier therefore exploits aggregate disclosure over time rather than one obviously forbidden retrieval request.
Across tested benchmark RAG targets, the authors report up to 96.9% chunk recovery in a chosen configuration, a 6.77-fold query reduction to reach half the corpus against selected baselines, and extraction between 50.7% and 96.3% on their defended targets. These are controlled, denominator-dependent retrieval measurements, not a demonstrated theft of a real company's private files. Controls need to address both caller-level document ACLs and repeated-query extraction patterns; a generic prompt telling the model not to reveal the index cannot enforce corpus authorization.
Mechanism and trust boundary
- 01
Query a retrieval service repeatedly
The adversary has query access, not raw source-database access.
Boundary: question API / protected RAG index
- 02
Assemble excerpts across responses
Distinct queries induce retrieval of overlapping portions of indexed documents.
Boundary: RAG output / aggregation process
- 03
Infer substantial hidden corpus
The collected snippets reconstruct material beyond what any single question exposed.
Boundary: per-query authorization / collection-level confidentiality
Claims & evidence
CLM-ENR237-SNAPRAG-DEFENSE-RANGEThe snapRAG paper reports extraction rates between 50.7% and 96.3% across five defended benchmark targets and a maximum of 96.9% under a selected ordinary evaluation setup.supported
Basis: reported finding
- supportssnapRAG: extraction of retrieval-augmented generation knowledge basesprimary disclosure
Abstract: active defenses, five targets, and 96.9% maximum reported recovery
CLM-R236-SNAPRAG-CORPUS-EXTRACTION-STUDY-01The snapRAG paper evaluates iterative reconstruction of hidden retrieval corpus content through allowed answer queries.supported
Basis: reported finding
- supportssnapRAG: extraction of retrieval-augmented generation knowledge basesprimary disclosure
arXiv:2611.12241: Methodology
CLM-R236-SNAPRAG-CORPUS-EXTRACTION-STUDY-02The paper reports up to 96.9% extraction in controlled conditions; it does not report a confirmed production customer compromise.supported
Basis: reported finding
- supportssnapRAG: extraction of retrieval-augmented generation knowledge basesprimary disclosure
arXiv:2611.12241: Results and experimental setting
Implications
A system can enforce per-answer retrieval yet still leak most of a corpus in aggregate if the caller is allowed to issue unbounded overlapping queries. Authority over an individual answer is not authority to export the collection.
Controls and mitigations
- Bind retrieval results to the exact requesting principal's document ACLs before model context assembly.
- Limit bulk extraction patterns at the retrieval layer, accounting for repeated semantically overlapping queries and aggregate output.
- Audit source-chunk disclosure and citations as observable egress, not merely whether a model refuses an obvious download request.
- Monitor repeated near-duplicate and frontier-search query patterns with corpus-aware budgets, but enforce document permission at each retrieval and avoid returning unnecessary raw source chunks.
Unknowns and contradictions
- The reported maximum applies to benchmark conditions and cannot be extrapolated to all RAG products, document security models or query quotas. No real-world victim or actual customer dataset theft was demonstrated.
Sources and citation
Material revision history
- Nov 11, 2026 · Published version · first publication · revision 238