Prompt Leaking
The system prompt behind a polished assistant is usually treated as a trade secret: the persona, the rules, the examples, sometimes the names of internal tools. Prompt leaking is the extraction of that text by the very model it was written to govern.
How it happensThe hidden prompt sits in the model's context alongside the user's message, which makes it quotable. Asking plainly works more often than it should. When it does not, the moves are indirect: request a translation or a summary of everything above, the first hundred words of the conversation, the same text in base64, or a poem whose lines each begin with one of the rules. A model trained to be helpful treats these as reasonable requests about material it can plainly see.
Why it matters- The guardrails become legible. An attacker who can read the rules can aim at them, which makes a jailbreak far cheaper to find.
- Business logic leaks: pricing rules, internal tool and API names, unreleased product details, the exact position of the safety boundary.
- Embedded data leaks: anything pasted into the prompt for convenience — customer records, keys, examples using real names — is equally quotable.
Instructing the model to keep its prompt confidential raises the effort slightly and cannot be relied on. The sound posture is to assume the prompt is public: keep no secret in it, hold credentials and private records outside the context behind tools that enforce their own permissions, and screen outputs for verbatim overlap with the prompt text.
Prompt leaking is the extraction of an application's hidden system prompt by the model that holds it, usually through requests to translate, summarise or repeat everything above. The leaked text exposes guardrails, internal tool names and business rules, which makes jailbreaks far easier to construct, and discloses any private data pasted into the prompt. Instructions to keep it confidential are weak, so secrets belong outside the context entirely.
A stage actor has a script and private stage directions the audience is never meant to see. Prompt leaking is getting the actor to read those directions out loud. Every AI assistant starts with hidden instructions from the company that built it: its personality, its rules, the things it must refuse. Because those instructions sit in front of the system as ordinary text, a visitor can often coax them out by asking it to summarise or translate everything it was told at the start. Once the rules are visible, they are much easier to work around — which is why anything genuinely secret should never be written into them.