PLeak: A prompt leakage attack against large language model applicationsPLeak: Prompt Leaking Attacks against Large Language Model Applications
The researchers propose PLeak, a black-box prompt leakage attack framework that automatically optimizes adversarial queries so that the target LLM application leaks its own system prompt in its responses. The method models finding adversarial queries as an optimization problem, approximately solves it with a gradient-based method, and progressively optimizes the system prompt from the first few tokens to the full length. The authors evaluate it in an offline setting and on real LLM applications on Poe; results show that PLeak outperforms baselines with manually constructed queries and also outperforms optimized query baselines modified from existing jailbreak attacks. The authors state that they have reported the issue to Poe. The implementation code is open-sourced on GitHub.