Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

System prompt leakage

In plain words

When a bot reveals instructions or information that its application kept hidden from the user.

The fuller definition

Disclosure of system instructions or other hidden context supplied to a model.

How it fits together
  1. Context

    Hidden material is supplied

  2. Disclosure

    The response reveals it

  3. Control

    Keep secrets outside model context

A simplified relationship, not a screenshot or a complete design.

A concrete example

A response reveals an internal instruction or a sensitive value included in the prompt.

The distinction that matters

Instructions should not contain secrets or serve as access controls. The consequences depend on what is disclosed.

Related terms

Where it is taught

Test an AI workflow on work you can assess

Source and further reading

OWASP GenAI · LLM07:2025 System Prompt Leakage

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC