LeakAgent: RL-based Red-teaming Agent for LLM Privacy Leakage
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Recent studies have discovered that large language models (LLM) may be ``fooled'' to output private information, including training data, system prompts, and personally identifiable information, under carefully crafted adversarial prompts. Existing red-teaming approaches for privacy leakage either rely on manual efforts or focus solely on system prompt extraction, making them ineffective for severe risks of training data leakage. We propose LeakAgent, a novel black-box red-teaming framework for LLM privacy leakage. Our framework trains an open-source LLM through reinforcement learning as the attack agent to generate adversarial prompts for both training data extraction and system prompt extraction. To achieve this, we propose a novel reward function to provide effective and fine-grained rewards and design novel mechanisms to balance exploration and exploitation during learning and enhance the diversity of adversarial prompts. Through extensive evaluations, we first show that LeakAgent significantly outperforms existing rule-based approaches in training data extraction and automated methods in system prompt leakage. We also demonstrate the effectiveness of LeakAgent in extracting system prompts from real-world applications in OpenAI's GPT Store. We further demonstrate LeakAgent's effectiveness in evading the existing guardrail defense and its helpfulness in enabling better safety alignment. Finally, we validate our customized designs through a detailed ablation study. We release our code here https://github.com/rucnyz/LeakAgent.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 37 of its 55 references that are in the map. First posted on arXiv 7 Dec 2024.
Builds on
37 of 55 references.
Closest ancestors · 1
Same direction, newest first
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
Other references · 36
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
- 2021Membership Inference Attacks From First Principlescited by 878
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
24 more
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
- 2024OLMo: Accelerating the Science of Language Modelscited by 613
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 560
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
- 2020Label-Only Membership Inference Attackscited by 388
- 2023Detecting Pretraining Data from Large Language Modelscited by 387
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 367
- 2024TrustLLM: Trustworthiness in Large Language Modelscited by 285
- 2023Proving Test Set Contamination in Black Box Language Modelscited by 230
- 2024Stealing Part of a Production Language Modelcited by 159
- 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMscited by 156
- 2022Reconstructing Training Data with Informed Adversariescited by 148
- 2024Jailbreaking Attack against Multimodal Large Language Modelcited by 135
- 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 127
- 2024A Survey of Attacks on Large Vision-Language Models: Resources, Advances, and Future Trendscited by 84
- 2023BadGPT: Exploring Security Vulnerabilities of ChatGPT via Backdoor Attacks to InstructGPTcited by 76
- 2024DE-COP: Detecting Copyrighted Content in Language Models Training Datacited by 74
- 2023Assessing Prompt Injection Risks in 200+ Custom GPTscited by 55
- 2024When LLM Meets DRL: Advancing Jailbreaking Efficiency via DRL-guided Searchcited by 47
- 2024RL-JACK: Reinforcement Learning-powered Black-box Jailbreaking Attack against LLMscited by 23
- 2024PROMPTFUZZ: Harnessing Fuzzing Techniques for Robust Testing of Prompt Injection in LLMscited by 17
- 2024TrojFM: Resource-efficient Backdoor Attacks against Very Large Foundation Modelscited by 5
Built on by
Citing papers per year: 2025: 6; 2026: 7.
13 papers.
Sort:
By area:
- 2025Open Challenges in Multi-Agent Security: Towards Secure Systems of Interacting AI Agentscited by 71
- 2025Agentic Web: Weaving the Next Web with AI Agentscited by 45
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
- 2026PrivAct: Internalizing Contextual Privacy Preservation via Multi-Agent Preference Trainingcited by 7
- 2025Chain-of-Trigger: An Agentic Backdoor that Paradoxically Enhances Agentic Robustnesscited by 4
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMscited by 4
- 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?cited by 3
- 2025Autonomy Reshapes How Personalization Affects Privacy Concerns and Trust in LLM Agentscited by 1
- 2025AudAgent: Automated Auditing of Privacy Policy Compliance in AI Agentscited by 1
- 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Servicescited by 1
- 2026From Secure Agentic AI to Secure Agentic Web: Challenges, Threats, and Future Directionscited by 1
- 2026Risk-Adjusted Harm Scoring for Automated Red Teaming for LLMs in Financial Servicescited by 1
- 2026Confuse the Model, Control the Flow: Understanding and Mitigating Privacy Leakage from LLM Agents with Information Flow Control12 Sep 2026
- 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?27 Mar 2026
- 2026Risk-Adjusted Harm Scoring for Automated Red Teaming for LLMs in Financial Services11 Mar 2026
- 2026From Secure Agentic AI to Secure Agentic Web: Challenges, Threats, and Future Directions2 Mar 2026
- 2026OptiLeak: Efficient Prompt Reconstruction via Reinforcement Learning in Multi-tenant LLM Services24 Feb 2026
- 2026PrivAct: Internalizing Contextual Privacy Preservation via Multi-Agent Preference Training14 Feb 2026
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMs29 Jan 2026
- 2025AudAgent: Automated Auditing of Privacy Policy Compliance in AI Agents3 Nov 2025
- 2025Chain-of-Trigger: An Agentic Backdoor that Paradoxically Enhances Agentic Robustness9 Oct 2025
- 2025Autonomy Reshapes How Personalization Affects Privacy Concerns and Trust in LLM Agents6 Oct 2025
- 2025Agentic Web: Weaving the Next Web with AI Agents28 Jul 2025
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems18 May 2025
- 2025Agentic Web: Weaving the Next Web with AI Agentscited by 45
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
- 2026PrivAct: Internalizing Contextual Privacy Preservation via Multi-Agent Preference Trainingcited by 7
- 2025Chain-of-Trigger: An Agentic Backdoor that Paradoxically Enhances Agentic Robustnesscited by 4
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMscited by 4
- 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?cited by 3
- 2025AudAgent: Automated Auditing of Privacy Policy Compliance in AI Agentscited by 1
- 2026From Secure Agentic AI to Secure Agentic Web: Challenges, Threats, and Future Directionscited by 1
- 2026Confuse the Model, Control the Flow: Understanding and Mitigating Privacy Leakage from LLM Agents with Information Flow Controlcited by 0
- 2026Confuse the Model, Control the Flow: Understanding and Mitigating Privacy Leakage from LLM Agents with Information Flow Control12 Sep 2026
- 2026Clawed and Dangerous: Can We Trust Open Agentic Systems?27 Mar 2026
- 2026From Secure Agentic AI to Secure Agentic Web: Challenges, Threats, and Future Directions2 Mar 2026
- 2026PrivAct: Internalizing Contextual Privacy Preservation via Multi-Agent Preference Training14 Feb 2026
- 2026Just Ask: Curious Code Agents Reveal System Prompts in Frontier LLMs29 Jan 2026
- 2025AudAgent: Automated Auditing of Privacy Policy Compliance in AI Agents3 Nov 2025
- 2025Chain-of-Trigger: An Agentic Backdoor that Paradoxically Enhances Agentic Robustness9 Oct 2025
- 2025Agentic Web: Weaving the Next Web with AI Agents28 Jul 2025
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems18 May 2025
Similar, not cited
Close in wording, no citation either way
- 2025Privacy-R1: Privacy-Aware Multi-LLM Agent Collaboration via Reinforcement Learning
- 2026Information-Theoretic Privacy Control for Sequential Multi-Agent LLM Systems
- 2025Automating Prompt Leakage Attacks on Large Language Models Using Agentic Approach
- 2026AgentLeak: A Benchmark for Internal-Channel Privacy Leakage in Multi-Agent LLM Systems
- 2024Imprompter: Tricking LLM Agents into Improper Tool Use
- 2025Unveiling Privacy Risks in LLM Agent Memory
- 2026REDAgentBench: Executable Red Teaming and Faithful Measurement of LLM Agent Systems
- 2026AgentSecBench: Measuring Prompt Injection, Privacy Leakage, and Tool-Use Integrity in LLM Agents