mlsanityData to 7 Oct 2026

Automating Prompt Leakage Attacks on Large Language Models Using Agentic Approach

arXiv 2502.12630 ↗First posted 18 Feb 2025cs.CR cs.AIcited by 3

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

This paper presents a novel approach to evaluating the security of large language models (LLMs) against prompt leakage-the exposure of system-level prompts or proprietary configurations. We define prompt leakage as a critical threat to secure LLM deployment and introduce a framework for testing the robustness of LLMs using agentic teams. Leveraging AG2 (formerly AutoGen), we implement a multi-agent system where cooperative agents are tasked with probing and exploiting the target LLM to elicit its prompt. Guided by traditional definitions of security in cryptography, we further define a prompt leakage-safe system as one in which an attacker cannot distinguish between two agents: one initialized with an original prompt and the other with a prompt stripped of all sensitive information. In a safe system, the agents' outputs will be indistinguishable to the attacker, ensuring that sensitive information remains secure. This cryptographically inspired framework provides a rigorous standard for evaluating and designing secure LLMs. This work establishes a systematic methodology for adversarial testing of prompt leakage, bridging the gap between automated threat modeling and practical LLM security. You can find the implementation of our prompt leakage probing on GitHub.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 33 of its 41 references that are in the map. First posted on arXiv 18 Feb 2025.

Builds on

33 of 41 references.

References · 33

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
  3. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  4. 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
  5. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  6. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,326
  7. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
  8. 2022Red Teaming Language Models with Language Modelscited by 983
  9. 2023ChatDev: Communicative Agents for Software Developmentcited by 893
  10. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  11. 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 702
  12. 2023Capabilities of GPT-4 on Medical Challenge Problemscited by 630
21 more
  1. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
  2. 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
  3. 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 520
  4. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
  5. 2023Multi-Agent Collaboration: Harnessing the Power of Intelligent LLM Agentscited by 329
  6. 2023Certifying LLM Safety against Adversarial Promptingcited by 248
  7. 2023Unleashing the Emergent Cognitive Synergy in Large Language Models: A Task-Solving Agent through Multi-Persona Self-Collaborationcited by 246
  8. 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 233
  9. 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 226
  10. 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attackscited by 189
  11. 2023Large Language Models in Law: A Surveycited by 128
  12. 2024Weak-to-Strong Jailbreaking on Large Language Modelscited by 100
  13. 2023A Survey of Safety and Trustworthiness of Large Language Models through the Lens of Verification and Validationcited by 91
  14. 2023Effective Prompt Extraction from Language Modelscited by 83
  15. 2022Machine Generated Text: A Comprehensive Survey of Threat Models and Detection Methodscited by 75
  16. 2023Ignore This Title and HackAPrompt: Exposing Systemic Vulnerabilities of LLMs through a Global Scale Prompt Hacking Competitioncited by 65
  17. 2022Exploring the Universal Vulnerability of Prompt-based Learning Paradigmcited by 56
  18. 2023LLM Censorship: A Machine Learning Challenge or a Computer Security Problem?cited by 47
  19. 2015Understanding Adversarial Training: Increasing Local Stability of Neural Nets through Robust Optimizationcited by 32
  20. 2024Diverse and Effective Red Teaming with Auto-generated Rewards and Multi-step Reinforcement Learningcited by 23
  21. 2024Towards Building a Robust Toxicity Predictorcited by 14

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Imprompter: Tricking LLM Agents into Improper Tool Use
  2. 2024Whispers in the Machine: Confidentiality in Agentic Systems
  3. 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation
  4. 2025Simple Prompt Injection Attacks Can Leak Personal Data Observed by LLM Agents During Task Execution
  5. 2025Breaking to Build: A Threat Model of Prompt-Based Attacks for Securing LLMs
  6. 2025Unveiling Privacy Risks in LLM Agent Memory
  7. 2025Commercial LLM Agents Are Already Vulnerable to Simple Yet Dangerous Attacks
  8. 2025A Multi-Agent LLM Defense Pipeline Against Prompt Injection Attacks