Sensitive information disclosure (OWASP LLM02:2025) is when an LLM application reveals data it should keep private: memorised training data (PII, secrets, proprietary text), information from its system prompt or context, or data belonging to another user or tenant. It happens through normal or adversarial prompting, and the leaked data leaves through the model's output. Defend by minimising and sanitising what the model can access, filtering outputs, and enforcing authorization outside the prompt.
What sensitive information disclosure is
An LLM's output can contain data that should never reach the person reading it. Three common sources: training data the model memorised (names, emails, API keys, licensed text), data placed in the model's context for the current request (system prompt, retrieved documents, another user's data in a shared session), and data the model can reach through tools. Disclosure is when any of that leaves through the output to someone not authorised to see it.
How the attack works
Attackers extract memorised data with prompts that ask the model to repeat or complete sensitive strings, or that use divergence and repetition tricks to dump training data. They read the system prompt and hidden context through system prompt extraction, and in multi-tenant or shared-memory apps they craft prompts to surface another user's data. Even without an attacker, a model can volunteer secrets from its context in a normal answer. Shown for defensive testing.
How to defend against it
Minimise what the model can access: keep secrets, other users' data, and unnecessary system-prompt content out of the context, and scrub PII and credentials from training and retrieval data. Enforce authorization outside the model, which is not an access-control boundary, so a request only ever holds data the user is allowed to see. Filter and classify outputs for sensitive patterns before returning them, and isolate per-user context and memory.
References
If the model can see it, the model can say it. Talk to a security expert about what your AI app might disclose.