System Prompt Leakage: definition and example
System prompt leakage is the exposure of the hidden instructions that steer a model, which can reveal rules, roles and any secrets placed in them. OWASP lists it among its top risks for LLM applications. The lasting fix is to keep secrets and authorization out of the prompt, since filtering cannot guarantee the text stays hidden.
Facts read on .
Example
OWASP says a system prompt should not be considered a secret, nor used as a security control.
Sources
- OWASP LLM07:2025 System Prompt Leakage (genai.owasp.org), read