Why it matters

System prompts, tool schemas and other hidden context can usually be extracted; if they hold secrets or act as the only control, extraction becomes a breach.

How to prevent it

  • Assume hidden context will be revealed, and keep credentials, keys and sensitive data out of it.
  • Enforce security rules in code and in tool authorization, not in prompt instructions.
  • Review what instructions and tool schemas disclose about internal systems.

Guides on this site

References

  1. LLM07:2025 System Prompt Leakage (OWASP, 2025 edition)
  2. OWASP Top 10 for LLM Applications 2026 (OWASP GenAI Security Project resource page)

List data from the publisher. A guide is listed as the main subject when the weakness or risk is what the guide is about, and as covering it when a dedicated section or worked example addresses it.