Effectively extracting prompts from language modelsEffective Prompt Extraction from Language Models
The paper proposes a framework for systematically measuring the effectiveness of prompt extraction attacks, and tests it on 3 types of prompt sources and 11 large language models, finding that simple text-based attacks can recover prompts with high probability. The framework can determine with high accuracy whether an extracted prompt is the real secret prompt or a model hallucination. The authors also performed prompt extraction on real systems such as Claude 3 and ChatGPT, and the results show that even with existing defenses, system prompts may still be obtained by adversaries. In the introduction, the authors mention that prompts used by enterprises to guide models are often treated as secrets or even tradable commodities, and that previously only scattered reports mentioned adversarial users carrying out such extraction attacks.