# Prompt Leaking

> Prompt leaking is an attack that tricks a model into revealing its hidden system prompt or other confidential instructions.

- Identifier: PTL-0089
- Category: Security & Adversarial Prompting
- Canonical URL: https://protologue.com/t/prompt-leaking/

## Description

System prompts should be treated as potentially discoverable, so they should not contain secrets such as API keys.

## Broader terms

- [Prompt Injection](https://protologue.com/t/prompt-injection/)

## Related terms

- [System Prompt](https://protologue.com/t/system-prompt/)

## Sources

- Perez & Ribeiro (2022). Ignore Previous Prompt: Attack Techniques For Language Models. https://arxiv.org/abs/2211.09527

## Cite this entry

Protologue. (2026). Prompt Leaking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.0.0, PTL-0089). https://protologue.com/t/prompt-leaking/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
