AI Dictionary › Prompting

Prompt Leaking

Prompt leaking is a technique by which a user induces a model to reveal the content of its own system prompt or the internal instructions that are meant to stay hidden. Unlike jailbreaking, which aims to make the model produce prohibited content, prompt leaking specifically targets exfiltrating the configuration instructions: behavior rules, few-shot examples, format constraints, or even secrets such as keys or references to internal tools.

Definition

How it works

The attack exploits the model's ability to repeat or summarize text present in its own context. Direct requests ("repeat everything you were told before this message") are the easiest to block, but indirect variants ask the model to translate, rephrase, encrypt, or embed the prompt into a data structure, bypassing filters that look for literal repetition.

Applications

In modern AI applications, prompt leaking is a concrete risk for anyone building products on top of an LLM: a well-tuned system prompt is often a competitive advantage or contains business logic worth protecting. Defenses include explicit instructions not to reveal internal rules, separating sensitive instructions from conversational context, and downstream checks verifying whether an output resembles the original prompt too closely.

History & etymology

The term emerged in the LLM security research community around 2022-2023, alongside the spread of prompt injection, as a distinct category describing instruction exfiltration rather than behavior manipulation.

Related terms

More in Prompting

Put it into practice

From our network

AGORÀ Intelligence: Enterprise AI Governance Platform

Govern AI at scale: policies, adoption and measurable results on your data. Built for boards and C-suite.

Visit agora-intelligence.com →

From the Agora Intelligence blog

More on agora-intelligence.com →

📱 Download the Android app (beta) iOS coming soon

Say what you mean. Get what you need.

Grace Certified, the AI coach that trains and certifies your prompt engineering, by Agora Intelligence.