Effective Prompt Extraction from Language Models
Not on the map. Why?
Cited by 29 in LLM safety and security, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
The text generated by large language models is commonly controlled by prompting, where a prompt prepended to a user's query guides the model's output. The prompts used by companies to guide their models are often treated as secrets, to be hidden from the user making the query. They have even been treated as commodities to be bought and sold on marketplaces. However, anecdotal reports have shown adversarial users employing prompt extraction attacks to recover these prompts. In this paper, we present a framework for systematically measuring the effectiveness of these attacks. In experiments with 3 different sources of prompts and 11 underlying large language models, we find that simple text-based attacks can in fact reveal prompts with high probability. Our framework determines with high precision whether an extracted prompt is the actual secret prompt, rather than a model hallucination. Prompt extraction from real systems such as Claude 3 and ChatGPT further suggest that system prompts can be revealed by an adversary despite existing defenses in place.
Key facts. Cited by 83 papers in the map (data through 7 Oct 2026). Builds on 27 of its 46 references that are in the map. First posted on arXiv 13 Jul 2023.
Builds on
27 of 46 references.
References · 27
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
15 more
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2022Discovering Language Model Behaviors with Model-Written Evaluationscited by 805
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
- 2021How Many Data Points is a Prompt Worth?cited by 197
- 2022Preventing Verbatim Memorization in Language Models Gives a False Sense of Privacycited by 97
- 2020Trading Off Diversity and Quality in Natural Language Generationcited by 94
- 2023Black Box Adversarial Prompting for Foundation Modelscited by 62
- 2023INSTRUCTEVAL: Towards Holistic Evaluation of Instruction-Tuned Large Language Modelscited by 62
Built on by
Citing papers per year: 2023: 4; 2024: 26; 2025: 32; 2026: 21.
83 papers.
Sort:
By area:
- 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attackscited by 189
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2024AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathwayscited by 122
- 2023AutoDAN: Interpretable Gradient-Based Adversarial Attacks on Large Language Modelscited by 102
- 2024Machine Against the RAG: Jamming Retrieval-Augmented Generation with Blocker Documentscited by 93
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2023Jailbreaking GPT-4V via Self-Adversarial Attacks with System Promptscited by 62
- 2024Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchycited by 62
- 2024Persistent Pre-Training Poisoning of LLMscited by 46
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2024Extracting Prompts by Inverting LLM Outputscited by 40
- 2025Embodied-R: Collaborative Framework for Activating Embodied Spatial Reasoning in Foundation Models via Reinforcement Learningcited by 37
38 more
- 2024Controllable Safety Alignment: Inference-Time Adaptation to Diverse Safety Requirementscited by 35
- 2024Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defensescited by 30
- 2024Prompt Leakage effect and defense strategies for multi-turn LLM interactionscited by 23
- 2024Fantastic Copyrighted Beasts and How (Not) to Generate Themcited by 23
- 2025ASIDE: Architectural Separation of Instructions and Data in Language Modelscited by 21
- 2025MCPXKIT: The Unified Toolkit for Analyzing Model Context Protocol Securitycited by 21
- 2024A Study on Prompt Injection Attack Against LLM-Integrated Mobile Robotic Systemscited by 15
- 2024Model Inversion Attacks: A Survey of Approaches and Countermeasurescited by 11
- 2024Prompt Obfuscation for Large Language Modelscited by 10
- 2024PRSA: Prompt Stealing Attacks against Real-World Prompt Servicescited by 9
- 2024Iteratively Prompting Multimodal LLMs to Reproduce Natural and AI-Generated Imagescited by 9
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributionscited by 9
- 2024Why Are My Prompts Leaked? Unraveling Prompt Extraction Threats in Customized Large Language Modelscited by 8
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
- 2024SOS! Soft Prompt Attack Against Open-Source Large Language Modelscited by 7
- 2025Federated In-Context Learning: Iterative Refinement for Improved Answer Qualitycited by 7
- 2025Diffusion LLMs are Natural Adversaries for any LLMcited by 7
- 2024A Jailbroken GenAI Model Can Cause Substantial Harm: GenAI-powered Applications are Vulnerable to PromptWarescited by 6
- 2025When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Pluginscited by 6
- 2026Many-Tier Instruction Hierarchy in LLM Agentscited by 6
- 2025DP-Fusion: Token-Level Differentially Private Inference for Large Language Modelscited by 5
- 2025Network-Level Prompt and Trait Leakage in Local Research Agentscited by 5
- 2024Reconstruction of Differentially Private Text Sanitization via Large Language Modelscited by 4
- 2024Jailbreaking LLM-Controlled Robotscited by 4
- 2024Towards Action Hijacking of Large Language Model-based Agentcited by 4
- 2024PromptKeeper: Safeguarding System Prompts for LLMscited by 4
- 2025Chain-of-Trigger: An Agentic Backdoor that Paradoxically Enhances Agentic Robustnesscited by 4
- 2025ContextLeak: Auditing Leakage in Private In-Context Learning Methodscited by 4
- 2026Agent Skills Matter: Inferring Proprietary Skills from Execution Trajectoriescited by 4
- 2023Reverse-Engineering Decoding Strategies Given Blackbox Access to a Language Generation Systemcited by 3
- 2025Has My System Prompt Been Used? Large Language Model Prompt Membership Inferencecited by 3
- 2025Automating Prompt Leakage Attacks on Large Language Models Using Agentic Approachcited by 3
- 2025Evaluating Language Model Reasoning about Confidential Informationcited by 3
- 2025Every Language Model Has a Forgery-Resistant Signaturecited by 3
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMscited by 3
- 2026TrinityGuard: A Unified Framework for Safeguarding Multi-Agent Systemscited by 3
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screeningcited by 3
- 2024Large Language Models as Carriers of Hidden Messagescited by 2
50 most cited of 83 All 83 (JSON)
- 2026K-Bench: A Benchmark for LLM Unlearning in Agentic Deployments11 Sep 2026
- 2026Repeat-After-Me: Black-Box Adaptive Visual Prompt Injection3 Sep 2026
- 2026Extracting Forgotten Prompts from Targeted Unlearned Models3 Sep 2026
- 2026Context Inference Attacks Without Jailbreaks31 Aug 2026
- 2026ECLIPSE: Self-Evolving Stealthy Prompt Injection Attack against Long-Horizon Agentic Systems31 Aug 2026
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skills4 Aug 2026
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channels4 Aug 2026
- 2026PTP: Previous-Token Prediction based LLM Inversion for Near-Exact Prompt Reconstruction31 Jul 2026
- 2026Agent Skills Matter: Inferring Proprietary Skills from Execution Trajectories28 Jul 2026
- 2026Agent Data Injection Attacks are Realistic Threats to AI Agents6 Jul 2026
- 2026RogueMerge: Robust and Unified Attacks against LLM Model Merging2 Jun 2026
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening27 May 2026
38 more
- 2026LeakDojo: Decoding the Leakage Threats of RAG Systems7 May 2026
- 2026Many-Tier Instruction Hierarchy in LLM Agents10 Apr 2026
- 2026Hierarchical Alignment: Enforcing Hierarchical Instruction-Following in LLMs through Logical Consistency10 Apr 2026
- 2026Evaluation and Hardening of LLM System Instructions Against Extraction via Encoding Attacks1 Apr 2026
- 2026TrinityGuard: A Unified Framework for Safeguarding Multi-Agent Systems16 Mar 2026
- 2026Differentially Private Retrieval-Augmented Generation16 Feb 2026
- 2026Synapse: Federated Tool Routing via Typed Compendium Artifacts31 Jan 2026
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMs29 Jan 2026
- 2026Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learning8 Jan 2026
- 2025ContextLeak: Auditing Leakage in Private In-Context Learning Methods18 Dec 2025
- 2025Context-Aware Hierarchical Learning: A Two-Step Paradigm towards Safer LLMs3 Dec 2025
- 2025An Invariant Latent Space Perspective on Language Model Inversion24 Nov 2025
- 2025For Those Who May Find Themselves on the Red Team23 Nov 2025
- 2025PSM: Prompt Sensitivity Minimization via LLM-Guided Black-Box Optimization20 Nov 2025
- 2025Convergence dynamics of Agent-to-Agent Interactions with Misaligned objectives11 Nov 2025
- 2025When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Plugins8 Nov 2025
- 2025Diffusion LLMs are Natural Adversaries for any LLM31 Oct 2025
- 2025When Compression Becomes an Attack Surface: Black-Box Attacks on Prompt-Compressed LLM Agents27 Oct 2025
- 2025Bits Leaked per Query: Information-Theoretic Bounds on Adversarial Attacks against LLMs19 Oct 2025
- 2025On Non-interactive Evaluation of Animal Communication Translators17 Oct 2025
- 2025Every Language Model Has a Forgery-Resistant Signature15 Oct 2025
- 2025Locket: Robust Feature-Locking Technique for Language Models14 Oct 2025
- 2025Chain-of-Trigger: An Agentic Backdoor that Paradoxically Enhances Agentic Robustness9 Oct 2025
- 2025BinaryShield: Cross-Service Threat Intelligence in LLM Services using Privacy-Preserving Fingerprints6 Sep 2025
- 2025Network-Level Prompt and Trait Leakage in Local Research Agents27 Aug 2025
- 2025Evaluating Language Model Reasoning about Confidential Information27 Aug 2025
- 2025MCPXKIT: The Unified Toolkit for Analyzing Model Context Protocol Security18 Aug 2025
- 2025DP-Fusion: Token-Level Differentially Private Inference for Large Language Models6 Jul 2025
- 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Training2 Jul 2025
- 2025Securing AI Systems: A Guide to Known Attacks and Impacts29 Jun 2025
- 2025Enhancing Security in LLM Applications: A Performance Evaluation of Early Detection Systems23 Jun 2025
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributions20 Jun 2025
- 2025Federated In-Context Learning: Iterative Refinement for Improved Answer Quality9 Jun 2025
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems18 May 2025
- 2025Embodied-R: Collaborative Framework for Activating Embodied Spatial Reasoning in Foundation Models via Reinforcement Learning17 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025A Closer Look at Adversarial Suffix Learning for Jailbreaking LLMs: Augmented Adversarial Trigger Learning16 Mar 2025
- 2025ASIDE: Architectural Separation of Instructions and Data in Language Models13 Mar 2025
50 newest of 83 All 83 (JSON)
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2025MCPXKIT: The Unified Toolkit for Analyzing Model Context Protocol Securitycited by 21
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
- 2026Many-Tier Instruction Hierarchy in LLM Agentscited by 6
- 2025Network-Level Prompt and Trait Leakage in Local Research Agentscited by 5
- 2024Towards Action Hijacking of Large Language Model-based Agentcited by 4
- 2025Chain-of-Trigger: An Agentic Backdoor that Paradoxically Enhances Agentic Robustnesscited by 4
- 2025Automating Prompt Leakage Attacks on Large Language Models Using Agentic Approachcited by 3
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMscited by 3
- 2026TrinityGuard: A Unified Framework for Safeguarding Multi-Agent Systemscited by 3
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skillscited by 2
12 most cited of 20 All 20 (JSON)
- 2026K-Bench: A Benchmark for LLM Unlearning in Agentic Deployments11 Sep 2026
- 2026Context Inference Attacks Without Jailbreaks31 Aug 2026
- 2026ECLIPSE: Self-Evolving Stealthy Prompt Injection Attack against Long-Horizon Agentic Systems31 Aug 2026
- 2026Behavioral Skill Reconstruction: Reconstructing Hidden Functionality from LLM Agent Skills4 Aug 2026
- 2026Agent Data Injection Attacks are Realistic Threats to AI Agents6 Jul 2026
- 2026Many-Tier Instruction Hierarchy in LLM Agents10 Apr 2026
- 2026Evaluation and Hardening of LLM System Instructions Against Extraction via Encoding Attacks1 Apr 2026
- 2026TrinityGuard: A Unified Framework for Safeguarding Multi-Agent Systems16 Mar 2026
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMs29 Jan 2026
- 2025Convergence dynamics of Agent-to-Agent Interactions with Misaligned objectives11 Nov 2025
- 2025When Compression Becomes an Attack Surface: Black-Box Attacks on Prompt-Compressed LLM Agents27 Oct 2025
- 2025Chain-of-Trigger: An Agentic Backdoor that Paradoxically Enhances Agentic Robustness9 Oct 2025
12 newest of 20 All 20 (JSON)
- 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attackscited by 189
- 2023Jailbreaking GPT-4V via Self-Adversarial Attacks with System Promptscited by 62
- 2024Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchycited by 62
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2025ASIDE: Architectural Separation of Instructions and Data in Language Modelscited by 21
- 2024A Study on Prompt Injection Attack Against LLM-Integrated Mobile Robotic Systemscited by 15
- 2024SOS! Soft Prompt Attack Against Open-Source Large Language Modelscited by 7
- 2025Diffusion LLMs are Natural Adversaries for any LLMcited by 7
- 2024A Jailbroken GenAI Model Can Cause Substantial Harm: GenAI-powered Applications are Vulnerable to PromptWarescited by 6
- 2025When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Pluginscited by 6
- 2025DP-Fusion: Token-Level Differentially Private Inference for Large Language Modelscited by 5
- 2024Jailbreaking LLM-Controlled Robotscited by 4
12 most cited of 20 All 20 (JSON)
- 2026Repeat-After-Me: Black-Box Adaptive Visual Prompt Injection3 Sep 2026
- 2026Extracting Forgotten Prompts from Targeted Unlearned Models3 Sep 2026
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening27 May 2026
- 2025When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Plugins8 Nov 2025
- 2025Diffusion LLMs are Natural Adversaries for any LLM31 Oct 2025
- 2025Bits Leaked per Query: Information-Theoretic Bounds on Adversarial Attacks against LLMs19 Oct 2025
- 2025DP-Fusion: Token-Level Differentially Private Inference for Large Language Models6 Jul 2025
- 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Training2 Jul 2025
- 2025Enhancing Security in LLM Applications: A Performance Evaluation of Early Detection Systems23 Jun 2025
- 2025A Closer Look at Adversarial Suffix Learning for Jailbreaking LLMs: Augmented Adversarial Trigger Learning16 Mar 2025
- 2025ASIDE: Architectural Separation of Instructions and Data in Language Models13 Mar 2025
- 2025Has My System Prompt Been Used? Large Language Model Prompt Membership Inference14 Feb 2025
12 newest of 20 All 20 (JSON)
- 2025Embodied-R: Collaborative Framework for Activating Embodied Spatial Reasoning in Foundation Models via Reinforcement Learningcited by 37
- 2025Evaluating Language Model Reasoning about Confidential Informationcited by 3
- 2026Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learningcited by 1
- 2026Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learning8 Jan 2026
- 2025Evaluating Language Model Reasoning about Confidential Information27 Aug 2025
- 2025Embodied-R: Collaborative Framework for Activating Embodied Spatial Reasoning in Foundation Models via Reinforcement Learning17 Apr 2025
- 2024AI Agents Under Threat: A Survey of Key Security Challenges and Future Pathwayscited by 122
- 2024Persistent Pre-Training Poisoning of LLMscited by 46
- 2024Extracting Prompts by Inverting LLM Outputscited by 40
- 2024Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defensescited by 30
- 2024Prompt Leakage effect and defense strategies for multi-turn LLM interactionscited by 23
- 2024Fantastic Copyrighted Beasts and How (Not) to Generate Themcited by 23
- 2024Model Inversion Attacks: A Survey of Approaches and Countermeasurescited by 11
- 2024Prompt Obfuscation for Large Language Modelscited by 10
- 2024PRSA: Prompt Stealing Attacks against Real-World Prompt Servicescited by 9
- 2025Better Language Model Inversion by Compactly Representing Next-Token Distributionscited by 9
- 2024Why Are My Prompts Leaked? Unraveling Prompt Extraction Threats in Customized Large Language Modelscited by 8
- 2025Federated In-Context Learning: Iterative Refinement for Improved Answer Qualitycited by 7
12 most cited of 33 All 33 (JSON)
- 2026PTP: Previous-Token Prediction based LLM Inversion for Near-Exact Prompt Reconstruction31 Jul 2026
- 2026Agent Skills Matter: Inferring Proprietary Skills from Execution Trajectories28 Jul 2026
- 2026RogueMerge: Robust and Unified Attacks against LLM Model Merging2 Jun 2026
- 2026Hierarchical Alignment: Enforcing Hierarchical Instruction-Following in LLMs through Logical Consistency10 Apr 2026
- 2026Synapse: Federated Tool Routing via Typed Compendium Artifacts31 Jan 2026
- 2025ContextLeak: Auditing Leakage in Private In-Context Learning Methods18 Dec 2025
- 2025Context-Aware Hierarchical Learning: A Two-Step Paradigm towards Safer LLMs3 Dec 2025
- 2025An Invariant Latent Space Perspective on Language Model Inversion24 Nov 2025
- 2025For Those Who May Find Themselves on the Red Team23 Nov 2025
- 2025PSM: Prompt Sensitivity Minimization via LLM-Guided Black-Box Optimization20 Nov 2025
- 2025On Non-interactive Evaluation of Animal Communication Translators17 Oct 2025
- 2025Every Language Model Has a Forgery-Resistant Signature15 Oct 2025
12 newest of 33 All 33 (JSON)