Skip to content

Prompt Leaking

Accidental or provoked leakage of the system prompt: the model reveals instructions that should remain hidden to the user.

What Distinguishes It from Injection

  • Prompt Injection — an "outside-in" attack: an attempt to inject foreign instructions into the model.
  • Prompt Leaking — an "inside-out" leak: hidden instructions are revealed to the outside.

What Is Dangerous About It

The system prompt may contain rules, roles, and even secrets. A leaked prompt allows circumventing restrictions and copying someone else's product.

How to Protect Yourself

  • Do not store secrets in the prompt;
  • Add a rule not to reveal the system prompt;
  • Use guardrails at the platform level.

See Also

← All Terms