For Heads-of · Practitioner

Hidden Context Exposure

Also known as: system prompt leakage · prompt leakage · LLM08

The exposure of content an AI application placed in a model's context on the assumption users could not see it: system prompts, retrieved documents, schemas, policy logic or other users' data. It is LLM08 in the OWASP Top 10 for LLM Applications 2026, which renamed and broadened the 2025 item system prompt leakage.

  • OWASP
  • LLM08
  • system prompt
  • RAG
  • data leakage

Definition

Anything in a model's context can, in principle, be repeated back to a user who asks the right way. Hidden context exposure is the failure that follows when an application treats the context as private: instructions revealing business rules, credentials embedded in a prompt, retrieved documents the user was not entitled to see.

Why OWASP broadened it

The 2025 item, system prompt leakage, covered the system prompt alone. Retrieval and agents put far more into the context than a system prompt, and the risk is the same for all of it. The rule that follows is simple: never put anything in a model's context that the user is not allowed to see, because no instruction will reliably keep it there.

Where to go next

This entry defines the term. The register entries hidden context exposure and, under the older name, system prompt leakage set out the controls, including system prompt hardening and vector store and embedding access controls.

Sources

Related Terms

Related risks and controls

← Back to Glossary