hidden context exposure

The OWASP 2026 entry, formerly system prompt leakage, warning that system prompts and other hidden context can be extracted by users or attackers.

Extracted prompts reveal any secrets or rules they hold and help attackers craft injections.

In more detail

Treat everything in the context as public: never put secrets, keys or access rules in a prompt, and enforce permissions in code rather than by instruction. Assume a determined user can read the whole system prompt.

Related terms

Taught in

References

Certification courses