Sensitive information disclosure usually comes from the model memorizing data during training and reproducing it later. Retrieval-augmented generation leaks are different because the data is intentionally available to the model, but access controls or retrieval boundaries are misconfigured. In practice, the first is a model-layer exposure, while the second is an authorization and data-access failure.
Why the Two Leak Paths Are Not the Same
Sensitive information disclosure in large language models and retrieval-augmented generation leaks are often grouped together, but they fail for different reasons. The first is usually a model behaviour problem: the system reproduces information that was absorbed during training or fine-tuning. The second is a data-access problem: the system is allowed to retrieve the content, but the retrieval boundary, authorisation logic, or tenant separation is wrong. That distinction matters because the fix is not the same in each case.
For model disclosure, the key question is whether the model should ever have been able to emit the data at all. For retrieval leaks, the key question is whether the model was permitted to see that data in the first place. NIST’s NIST AI Risk Management Framework is useful here because it separates model risk from system and governance risk rather than treating every AI exposure as one class of issue. In practice, many teams first notice the difference only after they have already mixed training data controls with retrieval governance and lost sight of which boundary failed.
That distinction is not academic. If a team treats a retrieval boundary failure like memorisation, it may tune prompts while leaving access control untouched. If it treats memorisation like a permissions issue, it may chase document ACLs while the model still exposes sensitive traces from training.
How the Failure Mechanism Changes the Investigation
In sensitive information disclosure, the model is the source of the exposure. The data may have entered training corpora, fine-tuning sets, evaluation data, or conversation logs used to improve the system. The leakage pattern is usually indirect: a prompt, sampling condition, or adversarial query elicits content that should not be recoverable. The practical concern is not just whether the content is secret, but whether the system has internalised it in a way that can be re-surfaced unpredictably.
In retrieval-augmented generation leaks, the model is acting on data it is allowed to fetch from an external source, index, or knowledge store. The failure mechanism is not memorisation but weak retrieval governance. Common causes include broken tenant isolation, overly broad search scope, missing document-level filters, stale index permissions, or a connector that ignores the source system’s access policy. The data is not necessarily hidden from the retrieval layer, so the model’s output may be technically correct while still being improperly disclosed.
- Model disclosure usually demands training data review, memorisation testing, and dataset hygiene.
- RAG leakage usually demands access-control testing, retrieval boundary checks, and connector validation.
- Model disclosures are often harder to localise because the source can be diffuse across corpora.
- RAG leaks are often easier to reproduce because the failure sits in a specific permission or index path.
If the system can only leak what it was permitted to retrieve, the investigation should focus on authorisation and indexing. If it can leak content it should never have learned, the investigation shifts to training provenance and model behaviour. OWASP’s OWASP Top 10 for Agentic Applications 2026 is useful where retrieval is coupled to agentic tool use, because tool access can turn a retrieval mistake into a broader data movement problem. This guidance breaks down when teams assume retrieval controls alone can prevent model memorisation leaks.
Where the Boundary Gets Blurry
Tighter retrieval controls often increase operational overhead, requiring organisations to balance data isolation against search usefulness and answer quality.
There are edge cases where the two leak types overlap. A retrieval system may feed sensitive text into the model, and the model may then echo it back in a way that feels like memorisation. In that case, the root problem is still usually the retrieval layer, because the model only exposed what it was given. The harder case is when a system is both trained on sensitive material and allowed to retrieve it later, which can make a single disclosure look like two separate failures.
Guidance vs consensus: there is broad agreement that training-time memorisation and retrieval-time authorisation failures are different classes of problem. There is less consensus on how much residual exposure is acceptable when organisations intentionally place confidential material into retrieval stores for productivity or search. In that scenario, the real control question is not whether disclosure is possible, but whether the access boundaries, logging, and review process are strong enough to justify the workflow.
The cleanest way to distinguish the two is to ask whether the same sensitive output would still appear if retrieval were disabled. If yes, the issue is likely model disclosure. If no, the issue is likely retrieval governance. That distinction becomes especially important when the same assistant can both recall training content and browse internal sources.
Risk and Threat Considerations
These two leak paths create different security exposures. Model disclosure is mainly a confidentiality and model-integrity risk, because sensitive content can emerge from a system that appears to be operating normally. Retrieval-augmented generation leaks are more often an access-control and trust-boundary failure, because the system can disclose data across users, projects, or tenants when retrieval rules are too loose.
Failure mechanism: Model disclosure typically materialises through memorisation, overfitting to rare strings, or prompt-driven extraction of training residues. RAG leakage typically materialises when connectors, indexes, or retrieval filters ignore source permissions, returning content beyond the user’s authorised scope.
Impact: Model disclosure can expose secrets, personal data, or proprietary content that was never meant to be recoverable from the model. RAG leakage can expose live internal documents, customer records, or tenant-specific content, often with clearer blast radius because the breach maps to a concrete access boundary.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and MITRE ATLAS address the attack and risk surface, while NIST AI RMF, NIST AI 600-1, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | GOVERN — Govern | Distinguishes model risk from system governance for generative AI. |
| Recommendation — Separate model-memory issues from retrieval governance and assign controls accordingly. | ||
| NIST AI 600-1 | MAP — Measure, Analyze, and Manage | Addresses generative AI risk management across model and system layers. |
| Recommendation — Map leak paths to the affected layer and manage the specific failure mode directly. | ||
| NIST CSF 2.0 | PR.AC — Access Control Management | RAG leaks are fundamentally access-boundary and authorization failures. |
| Recommendation — Enforce retrieval authorization and document scoping before the model can access content. | ||
| CIS Controls v8 | 6 — Access Control Management | Supports limiting and reviewing who can reach sensitive data and retrieval paths. |
| Recommendation — Restrict retrieval sources and validate permissions on every connector and index. | ||
| OWASP Agentic AI Top 10 | A2 — Tool and Agent Access Control | Agentic retrieval can expand a leak into unintended tool-mediated data access. |
| Recommendation — Constrain tool and retrieval access so agents cannot cross data boundaries. | ||
Practitioner Guidance
What to prioritise: Separate the testing strategy before you start remediation. If the issue is model disclosure, focus on training provenance, memorisation testing, and data minimisation. If the issue is RAG leakage, focus on retrieval permissions, index filtering, and connector behaviour.
Decision rule: Treat the problem as a model issue only when the output can be reproduced without any live retrieval path. Treat it as a data-access issue when the leak depends on search, indexing, or document scope.
What to verify: Confirm which layer actually exposed the data, whether the exposure is repeatable, and whether the same prompt still leaks after retrieval is disabled. That evidence determines whether you are fixing a learning problem or an authorisation problem.
Practitioner takeaway: The most common mistake is to apply one control family to both problems; the right response depends on whether the model remembered the data or was wrongly allowed to fetch it.
Related resources from NHI Mgmt Group
- How should security teams implement access control in retrieval augmented generation apps that handle sensitive user data?
- What is the difference between retrieval augmented generation and provenance validation in an AI workflow?
- What is the difference between in-context learning and retrieval augmented generation in agentic AI?
- What is the difference between data protection in LLMs and data protection in agentic AI?