LLM02 Sensitive Information Disclosure is the OWASP Top 10 for LLM Applications risk in which a model or application exposes confidential data, such as personal data, credentials or proprietary content, in its outputs. Sources include training data, prompts and retrieved documents. Defenders sanitise data, enforce user-level access on retrieval, filter outputs and keep secrets out of prompts.
How LLM02 Sensitive Information Disclosure Happens
LLM02 is the failure mode where an LLM application reveals information it should not, usually because the model is given data it should never see, or because retrieval and response generation are not tightly constrained. The exposure can come from training data, prompts, conversation history, connected documents, or tool outputs.
The core issue is not just that the model “knows” something, but that it can surface that knowledge to the wrong user, in the wrong context, or in a more complete form than intended. That makes the boundary between input, context, and output a security boundary, not a formatting detail.
Why Sensitive Information Disclosure Is Dangerous
This risk matters because LLMs often work across large, mixed data sets and return natural-language answers that can unintentionally combine fragments into a readable disclosure. A small leak can reveal personal data, API keys, internal procedures, contracts, source code, or business-sensitive context.
In retrieval-heavy systems, the danger increases when permissions are enforced too late, or not at all, because the model may faithfully summarise content that the end user should never have been able to retrieve. For a practical control view of that pattern, see Permission-Aware RAG Guide.
Common Leakage Paths in LLM Systems
Disclosure usually comes from a few repeatable paths. The model may memorise sensitive text from training or fine-tuning data, echo hidden instructions from prompts, repeat confidential chunks from retrieved documents, or expose metadata and logs through connected assistants and observability tools.
Another common path is over-sharing through generated output, where the assistant produces more of the source material than the request justified. That is why output filtering, redaction, and least-data retrieval matter together rather than as isolated safeguards.
For a deeper walkthrough of the specific OWASP LLM02 pattern, use OWASP LLM Top 10 LLM02 Sensitive Information Disclosure Guide.
Controls That Reduce Disclosure Risk
Effective defence starts before the prompt reaches the model. Organisations should minimise the sensitive material available to the model, remove secrets from prompts, apply user-level access at retrieval time, and filter or redact outputs before they are shown or stored.
That control stack also extends to adjacent systems. AI gateways, retrieval layers, and logging platforms need to avoid becoming secondary leak channels, especially when prompts, traces, and responses are retained for debugging or analysis. See Securing the LLM observability platform itself for the logging and retention side of that problem.
Where the disclosure path is through generated content or downloads, the right mental model is exfiltration, not just “bad answer quality”. The AML.T0136 Exfiltration via AI User Interface guide is useful for that perspective.
Operational Signals and Validation Checks
Teams should validate disclosure risk with tests that ask whether the system can be induced to reveal hidden prompts, other users’ data, sensitive document fragments, or secrets embedded in context. The same review should cover prompt logs, retrieval traces, export features, and any place where the application caches or republishes model output.
When organisations allow collaboration data, tickets, or chat history into the LLM workflow, the exposure often starts outside the model itself. A useful companion reference is Secrets in chat and tickets, because leaked credentials and sensitive snippets frequently arrive from those channels first.
If the system depends on external data sources or agent-style connectors, the disclosure boundary must be reviewed as part of the whole application, not just the model endpoint.
Risk and Threat Considerations
LLM02 creates direct confidentiality exposure because the model can return information that was never meant for the requesting user, especially when prompts, retrieved documents, chat history, or logs contain sensitive material. In practice, the danger is amplified by scale: one permissive retrieval path or one overly generous output path can leak data across many users and sessions.
Failure mechanism: The model is given more sensitive context than the user is authorised to see, or it is not constrained well enough to suppress that context in its output.
Impact: The organisation can expose personal data, credentials, proprietary information, internal instructions, or regulated content, with follow-on risks including account compromise, privacy incidents, and loss of trust.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP ASVS, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP ASVS | V14 — Data Protection | LLM02 is fundamentally about preventing sensitive data exposure in application output. |
| Recommendation — Apply V14 to minimise exposure of sensitive data in prompts, retrieval and responses. | ||
| NIST SP 800-53 Rev 5 | AC-3 — Access Enforcement | User-level access at retrieval is central to preventing unauthorized disclosure. |
| IA-5 — Authenticator Management | Secrets and credentials must be kept out of prompts and handled securely. | |
| AU-3 — Content of Audit Records | Logs and traces can themselves leak prompts, responses and sensitive context. | |
| Recommendation — Enforce AC-3 so retrieved context matches the requesting user's authorizations. Use IA-5 to manage and rotate credentials that could otherwise be exposed through LLM workflows. Limit audit content so logs do not become a disclosure path for sensitive LLM data. | ||
| CIS Controls v8 | CIS-13 — Data Protection | Sensitive information disclosure is a data-protection and data-handling control problem. |
| Recommendation — Implement CIS-13 to classify, restrict and protect sensitive data flowing through LLM systems. | ||
Practitioner Guidance
Why practitioners should care: Treat LLM02 as a data-governance problem as much as a model-safety problem. If the application can retrieve, cache, log, or regenerate sensitive material, then the disclosure surface exists even when the prompt looks harmless.
Practitioner takeaway: The safest pattern is to reduce what the model can see, constrain what it can retrieve, and make output filtering the last line of defence rather than the only one.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org