mlsanityData to 14 Oct 2026

LeakAgent: RL-based Red-teaming Agent for LLM Privacy Leakage

arXiv 2412.05734 ↗First posted 7 Dec 2024cs.CR cs.AI cs.LGcited by 13

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

  1. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar

Other references · 36

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  5. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
  6. 2020Extracting Training Data from Large Language Modelscited by 2,189
  7. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  8. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  9. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
  10. 2021Membership Inference Attacks From First Principlescited by 878
  11. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
  12. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
24 more
  1. 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
  2. 2024OLMo: Accelerating the Science of Language Modelscited by 613
  3. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 560
  4. 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 518
  5. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
  6. 2020Label-Only Membership Inference Attackscited by 388
  7. 2023Detecting Pretraining Data from Large Language Modelscited by 387
  8. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
  9. 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 367
  10. 2024TrustLLM: Trustworthiness in Large Language Modelscited by 285
  11. 2023Proving Test Set Contamination in Black Box Language Modelscited by 230
  12. 2024Stealing Part of a Production Language Modelcited by 159
  13. 2024AdvPrompter: Fast Adaptive Adversarial Prompting for LLMscited by 156
  14. 2022Reconstructing Training Data with Informed Adversariescited by 148
  15. 2024Jailbreaking Attack against Multimodal Large Language Modelcited by 135
  16. 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 127
  17. 2024A Survey of Attacks on Large Vision-Language Models: Resources, Advances, and Future Trendscited by 84
  18. 2023BadGPT: Exploring Security Vulnerabilities of ChatGPT via Backdoor Attacks to InstructGPTcited by 76
  19. 2024DE-COP: Detecting Copyrighted Content in Language Models Training Datacited by 74
  20. 2023Assessing Prompt Injection Risks in 200+ Custom GPTscited by 55
  21. 2024When LLM Meets DRL: Advancing Jailbreaking Efficiency via DRL-guided Searchcited by 47
  22. 2024RL-JACK: Reinforcement Learning-powered Black-box Jailbreaking Attack against LLMscited by 23
  23. 2024PROMPTFUZZ: Harnessing Fuzzing Techniques for Robust Testing of Prompt Injection in LLMscited by 17
  24. 2024TrojFM: Resource-efficient Backdoor Attacks against Very Large Foundation Modelscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 6; 2026: 7.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Privacy-R1: Privacy-Aware Multi-LLM Agent Collaboration via Reinforcement Learning
  2. 2026Information-Theoretic Privacy Control for Sequential Multi-Agent LLM Systems
  3. 2025Automating Prompt Leakage Attacks on Large Language Models Using Agentic Approach
  4. 2026AgentLeak: A Benchmark for Internal-Channel Privacy Leakage in Multi-Agent LLM Systems
  5. 2024Imprompter: Tricking LLM Agents into Improper Tool Use
  6. 2025Unveiling Privacy Risks in LLM Agent Memory
  7. 2026REDAgentBench: Executable Red Teaming and Faithful Measurement of LLM Agent Systems
  8. 2026AgentSecBench: Measuring Prompt Injection, Privacy Leakage, and Tool-Use Integrity in LLM Agents