What is AI sensitive information disclosure?
AI sensitive information disclosure is the risk of an AI system revealing personal, commercial or confidential information to unauthorised users, whether recalled from training data, taken from retrieved documents or leaked from the system prompt.
It differs from system prompt leakage in scope: prompt leakage is hidden instructions coming out, while disclosure is the wider risk that includes personal and commercial data. It differs from a training data extraction attack in intent: extraction is deliberate, while disclosure can also happen by accident or through permission errors.
- Topic
- AI security
- Also known as
- Sensitive information disclosure, sensitive data leakage
How AI sensitive information disclosure works
- A model can reproduce records memorised during training or fine-tuning in response to certain queries (memorisation).
- In RAG, if documents beyond the user's rights are retrieved, their content enters the answer; permission-aware retrieval helps prevent this.
- Keys or business rules placed in the system prompt can come out through prompt injection.
- Logs, monitoring data and tool calls can carry sensitive data too and are leakage paths.
In more detail
Cross-user leakage through the KV cache and semantic cache
On-premise inference engines increasingly use prefix/KV-cache sharing and semantic response caches to reduce latency and GPU load. If cache keys do not strictly encode user identity, tenant ID and document access-control lists, one user's query can retrieve cached tokens or answers generated from another user's confidential context.
Deduplication, canary tests and differential privacy against fine-tuning memorisation
Simply stripping obvious PII with regex is insufficient for fine-tuning sets because repeated boilerplate, rare sequences and indirect identifiers can still be memorised by weights or LoRA adapters. Preventing weight-level disclosure requires training-data deduplication, canary-string insertion tests to measure memorisation and Differential Privacy (DP-SGD) when training on sensitive records.
Leakage through tool output, citations and reasoning traces
Beyond final chat answers, sensitive data frequently leaks through intermediate agentic artefacts: raw SQL query results inside tool-call traces, RAG source-snippet citations shown in the UI or visible model reasoning (chain-of-thought) blocks that quote restricted context before filtering runs. Output controls must inspect both final text and structured tool/citation payloads.
Rule and NER-based output DLP and log handling
Effective AI DLP combines deterministic pattern matching (regex/checksums for national IDs, IBANs, API keys) with NER classifiers to redact sensitive entities before storage or display. Equally important is separating pseudonymised operational telemetry from raw audit logs, applying short TTLs and strict break-glass access to any troubleshooting logs that capture prompts.
Commonly confused terms
| Term | How it differs |
|---|---|
| System prompt leakage | System prompt leakage (OWASP LLM07) refers specifically to exposing hidden developer instructions, guardrails or routing logic embedded in the system prompt, whereas sensitive information disclosure (OWASP LLM02) is the broader category covering personal data, trade secrets, credentials and proprietary documents leaked from training sets, RAG stores, logs or prompts. |
| Training data extraction attack | Training data extraction is an active, deliberate attack (such as Carlini et al.'s prompting attacks) designed to recover memorised examples from model weights, whereas sensitive information disclosure also encompasses accidental leakage caused by missing RAG access controls, cache collisions or overly verbose logs. |
| AI data poisoning | Data poisoning alters training or RAG corpora to corrupt model behaviour or plant backdoors (integrity threat), whereas sensitive information disclosure exposes confidential data to unauthorised parties (confidentiality threat). |
Why AI sensitive information disclosure matters for on-premises AI
In-house AI promises that data stays inside, yet internal disclosure, an unauthorised employee seeing another department's data, is still possible. Controls are layered: removing needless personal data from fine-tuning sets, permission-aware retrieval, prompt PII masking, output checks and AI data loss prevention. Access to logs is restricted and retention is defined.
A hospital replaces patient identifiers with pseudonyms in prompts to its clinical decision support assistant; the assistant retrieves records only for patients the clinician is authorised to see.
Common questions
How can an AI system disclose sensitive information?
By recalling training data, retrieving documents beyond the user's rights, revealing secrets in the system prompt or through logs and tool calls.
Does an in-house model prevent sensitive information disclosure?
It stops data going to external services, but internal risks such as unauthorised staff seeing data remain. Permission and output checks are still needed.
Related terms
- Prompt PII masking
- AI data loss prevention
- AI privacy
- AI memorisation
- Training data extraction attack
- Permission-aware retrieval
- System prompt leakage
Sources
- OWASP Top 10 for LLM Applications 2025, LLM02: Sensitive Information Disclosure
- Carlini et al., Extracting Training Data from Large Language Models, 2020
In the glossary: Glossary, R to Z