Prompt Leakage effect and defense strategies for multi-turn LLM interactions
Not on the map. Why?
Abstract (arXiv)
Prompt leakage poses a compelling security and privacy threat in LLM applications. Leakage of system prompts may compromise intellectual property, and act as adversarial reconnaissance for an attacker. A systematic evaluation of prompt leakage threats and mitigation strategies is lacking, especially for multi-turn LLM interactions. In this paper, we systematically investigate LLM vulnerabilities against prompt leakage for 10 closed- and open-source LLMs, across four domains. We design a unique threat model which leverages the LLM sycophancy effect and elevates the average attack success rate (ASR) from 17.7% to 86.2% in a multi-turn setting. Our standardized setup further allows dissecting leakage of specific prompt contents such as task instructions and knowledge documents. We measure the mitigation effect of 7 black-box defense strategies, along with finetuning an open-source model to defend against leakage attempts. We present different combination of defenses against our threat model, including a cost analysis. Our study highlights key takeaways for building secure LLM applications and provides directions for research in multi-turn LLM interactions
Key facts. Cited by 23 papers in the map (data through 13 Oct 2026). Builds on 20 of its 61 references that are in the map. First posted on arXiv 24 Apr 2024.
Builds on
20 of 61 references.
References · 20
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,979
- 2020Extracting Training Data from Large Language Modelscited by 2,181
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,908
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,417
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,281
- 2023Towards Understanding Sycophancy in Language Modelscited by 1,018
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 817
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 647
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 600
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agentscited by 520
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritizationcited by 169
- 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)cited by 159
8 more
- 2019BillSum: A Corpus for Automatic Summarization of US Legislationcited by 117
- 2022Preventing Verbatim Memorization in Language Models Gives a False Sense of Privacycited by 99
- 2024Coercing LLMs to do and reveal (almost) anythingcited by 88
- 2023Effective Prompt Extraction from Language Modelscited by 85
- 2024A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systemscited by 77
- 2024Follow My Instruction and Spill the Beans: Scalable Data Extraction from Retrieval-Augmented Generation Systemscited by 76
- 2023Are You Sure? Challenging LLMs Leads to Performance Drops in The FlipFlop Experimentcited by 74
- 2023The Art of Defending: A Systematic Evaluation and Analysis of LLM Defense Strategies on Safety and Over-Defensivenesscited by 67
Built on by
Citing papers per year: 2024: 6; 2025: 9; 2026: 8.
23 papers.
Sort:
By area:
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 114
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasurescited by 94
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 64
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2024AI Safety in Generative AI Large Language Models: A Surveycited by 33
- 2024Have the VLMs Lost Confidence? A Study of Sycophancy in VLMscited by 15
- 2025Multi-lingual Multi-turn Automated Red Teaming for LLMscited by 12
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerationscited by 8
- 2024Jailbreaking LLM-Controlled Robotscited by 5
- 2024SHARP: Unlocking Interactive Hallucination via Stance Transfer in Role-Playing LLMscited by 5
- 2025Red-Teaming Coding Agents from a Tool-Invocation Perspective: An Empirical Security Assessmentcited by 5
11 more
- 2025Sycophancy Claims about Language Models: The Missing Human-in-the-Loopcited by 4
- 2026ForesightSafety Bench: A Frontier Risk Evaluation and Governance Framework towards Safe AIcited by 3
- 2026AgenTEE: Confidential LLM Agent Execution on Edge Devicescited by 3
- 2026Mitigating Over-Personalization in LLMs via Structured Memorycited by 3
- 2025QueryIPI: Query-agnostic Indirect Prompt Injection on Coding Agentscited by 2
- 2026PRISM: Generation-Time Detection and Mitigation of Secret Leakage in Multi-Agent LLM Pipelinescited by 2
- 2026Privacy Guard & Token Parsimony by Prompt and Context Handling and LLM Routingcited by 1
- 2025Provably Secure Retrieval-Augmented Generationcited by 0
- 2026In-Context Learning for Wound Classification with Small Multimodal Language Modelscited by 0
- 2026The Latent Diagnostic Taxonomy: A Framework for Constructing Classifiers and Diagnosing Their Decisions, Applied to Prompt Injection Detectioncited by 0
- 2026Daydreaming: Stealing Hidden Agent Skills through Black-Box Task Interactioncited by 0
- 2026Daydreaming: Stealing Hidden Agent Skills through Black-Box Task Interaction27 Aug 2026
- 2026The Latent Diagnostic Taxonomy: A Framework for Constructing Classifiers and Diagnosing Their Decisions, Applied to Prompt Injection Detection26 Aug 2026
- 2026Mitigating Over-Personalization in LLMs via Structured Memory8 Aug 2026
- 2026In-Context Learning for Wound Classification with Small Multimodal Language Models21 Jul 2026
- 2026PRISM: Generation-Time Detection and Mitigation of Secret Leakage in Multi-Agent LLM Pipelines11 May 2026
- 2026AgenTEE: Confidential LLM Agent Execution on Edge Devices20 Apr 2026
- 2026Privacy Guard & Token Parsimony by Prompt and Context Handling and LLM Routing30 Mar 2026
- 2026ForesightSafety Bench: A Frontier Risk Evaluation and Governance Framework towards Safe AI15 Feb 2026
- 2025Sycophancy Claims about Language Models: The Missing Human-in-the-Loop29 Nov 2025
- 2025QueryIPI: Query-agnostic Indirect Prompt Injection on Coding Agents27 Oct 2025
- 2025Red-Teaming Coding Agents from a Tool-Invocation Perspective: An Empirical Security Assessment6 Sep 2025
- 2025Provably Secure Retrieval-Augmented Generation1 Aug 2025
11 more
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Multi-lingual Multi-turn Automated Red Teaming for LLMs4 Apr 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasures12 Mar 2025
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safety2 Feb 2025
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents14 Nov 2024
- 2024SHARP: Unlocking Interactive Hallucination via Stance Transfer in Role-Playing LLMs12 Nov 2024
- 2024Jailbreaking LLM-Controlled Robots17 Oct 2024
- 2024Have the VLMs Lost Confidence? A Study of Sycophancy in VLMs15 Oct 2024
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerations9 Oct 2024
- 2024AI Safety in Generative AI Large Language Models: A Survey6 Jul 2024
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasurescited by 94
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agentscited by 63
- 2025Red-Teaming Coding Agents from a Tool-Invocation Perspective: An Empirical Security Assessmentcited by 5
- 2026AgenTEE: Confidential LLM Agent Execution on Edge Devicescited by 3
- 2025QueryIPI: Query-agnostic Indirect Prompt Injection on Coding Agentscited by 2
- 2026PRISM: Generation-Time Detection and Mitigation of Secret Leakage in Multi-Agent LLM Pipelinescited by 2
- 2026PRISM: Generation-Time Detection and Mitigation of Secret Leakage in Multi-Agent LLM Pipelines11 May 2026
- 2026AgenTEE: Confidential LLM Agent Execution on Edge Devices20 Apr 2026
- 2025QueryIPI: Query-agnostic Indirect Prompt Injection on Coding Agents27 Oct 2025
- 2025Red-Teaming Coding Agents from a Tool-Invocation Perspective: An Empirical Security Assessment6 Sep 2025
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems31 Mar 2025
- 2025A Survey on Trustworthy LLM Agents: Threats and Countermeasures12 Mar 2025
- 2024Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents14 Nov 2024
- 2025Multi-lingual Multi-turn Automated Red Teaming for LLMscited by 12
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerationscited by 8
- 2024Jailbreaking LLM-Controlled Robotscited by 5
- 2026The Latent Diagnostic Taxonomy: A Framework for Constructing Classifiers and Diagnosing Their Decisions, Applied to Prompt Injection Detectioncited by 0
- 2026The Latent Diagnostic Taxonomy: A Framework for Constructing Classifiers and Diagnosing Their Decisions, Applied to Prompt Injection Detection26 Aug 2026
- 2025Multi-lingual Multi-turn Automated Red Teaming for LLMs4 Apr 2025
- 2024Jailbreaking LLM-Controlled Robots17 Oct 2024
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerations9 Oct 2024
- 2025Provably Secure Retrieval-Augmented Generationcited by 0
- 2025Provably Secure Retrieval-Augmented Generation1 Aug 2025
- 2024AI Safety in Generative AI Large Language Models: A Surveycited by 33
- 2024Have the VLMs Lost Confidence? A Study of Sycophancy in VLMscited by 15
- 2024SHARP: Unlocking Interactive Hallucination via Stance Transfer in Role-Playing LLMscited by 5
- 2025Sycophancy Claims about Language Models: The Missing Human-in-the-Loopcited by 4
- 2026ForesightSafety Bench: A Frontier Risk Evaluation and Governance Framework towards Safe AIcited by 3
- 2026Mitigating Over-Personalization in LLMs via Structured Memorycited by 3
- 2026Privacy Guard & Token Parsimony by Prompt and Context Handling and LLM Routingcited by 1
- 2026Daydreaming: Stealing Hidden Agent Skills through Black-Box Task Interactioncited by 0
- 2026Daydreaming: Stealing Hidden Agent Skills through Black-Box Task Interaction27 Aug 2026
- 2026Mitigating Over-Personalization in LLMs via Structured Memory8 Aug 2026
- 2026Privacy Guard & Token Parsimony by Prompt and Context Handling and LLM Routing30 Mar 2026
- 2026ForesightSafety Bench: A Frontier Risk Evaluation and Governance Framework towards Safe AI15 Feb 2026
- 2025Sycophancy Claims about Language Models: The Missing Human-in-the-Loop29 Nov 2025
- 2024SHARP: Unlocking Interactive Hallucination via Stance Transfer in Role-Playing LLMs12 Nov 2024
- 2024Have the VLMs Lost Confidence? A Study of Sycophancy in VLMs15 Oct 2024
- 2024AI Safety in Generative AI Large Language Models: A Survey6 Jul 2024