PLeak: Prompt Leaking Attacks against Large Language Model Applications
Bo Hui, Haolin Yuan, Neil Gong, Philippe Burlina, and Yinzhi Cao

TL;DR
PLeak is a novel gradient-based attack framework that effectively leaks system prompts from large language model applications by optimizing adversarial queries, surpassing previous manual and adapted attack methods.
Contribution
The paper introduces PLeak, a new closed-box, gradient-based prompt leaking attack framework that incrementally optimizes queries to extract system prompts from LLM applications.
Findings
PLeak successfully leaks system prompts in real-world applications.
It outperforms manual and adapted query baselines.
The approach demonstrates significant effectiveness in both offline and live settings.
Abstract
Large Language Models (LLMs) enable a new ecosystem with many downstream applications, called LLM applications, with different natural language processing tasks. The functionality and performance of an LLM application highly depend on its system prompt, which instructs the backend LLM on what task to perform. Therefore, an LLM application developer often keeps a system prompt confidential to protect its intellectual property. As a result, a natural attack, called prompt leaking, is to steal the system prompt from an LLM application, which compromises the developer's intellectual property. Existing prompt leaking attacks primarily rely on manually crafted queries, and thus achieve limited effectiveness. In this paper, we design a novel, closed-box prompt leaking attack framework, called PLeak, to optimize an adversarial query such that when the attacker sends it to a target LLM…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Adversarial Robustness in Machine Learning · Digital and Cyber Forensics
