A Survey of Attacks on Large Language Models
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Large language models (LLMs) and LLM-based agents have been widely deployed in a wide range of applications in the real world, including healthcare diagnostics, financial analysis, customer support, robotics, and autonomous driving, expanding their powerful capability of understanding, reasoning, and generating natural languages. However, the wide deployment of LLM-based applications exposes critical security and reliability risks, such as the potential for malicious misuse, privacy leakage, and service disruption that weaken user trust and undermine societal safety. This paper provides a systematic overview of the details of adversarial attacks targeting both LLMs and LLM-based agents. These attacks are organized into three phases in LLMs: Training-Phase Attacks, Inference-Phase Attacks, and Availability & Integrity Attacks. For each phase, we analyze the details of representative and recently introduced attack methods along with their corresponding defenses. We hope our survey will provide a good tutorial and a comprehensive understanding of LLM security, especially for attacks on LLMs. We desire to raise attention to the risks inherent in widely deployed LLM-based applications and highlight the urgent need for robust mitigation strategies for evolving threats.
Key facts. Cited by 15 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 68 of its 87 references that are in the map. First posted on arXiv 18 May 2025.
Builds on
68 of 87 references.
Closest ancestors · 3
Same direction, newest first
- 2025DemonAgent: Dynamically Encrypted Multi-Backdoor Implantation Attack on LLM-based Agent18 Feb
- 2024Prompt Infection: LLM-to-LLM Prompt Injection within Multi-Agent Systems9 Oct
- 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun
Other references · 65
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
38 more
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 573
- 2023Textbooks Are All You Needcited by 569
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 560
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 536
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 469
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2023Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defensecited by 429
- 2023Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyondcited by 411
- 2023Can AI-Generated Text be Reliably Detected?cited by 386
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2023Low-Resource Languages Jailbreak GPT-4cited by 309
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 286
- 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 268
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 267
- 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 267
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 263
- 2023Multilingual Jailbreak Challenges in Large Language Modelscited by 240
- 2023Undetectable Watermarks for Language Modelscited by 226
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 222
- 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulationcited by 214
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 186
- 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injectioncited by 157
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
- 2024Multi-Step Reasoning with Large Language Models, a Surveycited by 143
- 2022Pretrained Language Models for Text Generation: A Surveycited by 122
- 2024Automatic and Universal Prompt Injection Attacks against Large Language Modelscited by 119
- 2024Weak-to-Strong Jailbreaking on Large Language Modelscited by 107
- 2024BadEdit: Backdooring large language models by model editingcited by 96
- 2021Hidden Backdoors in Human-Centric Language Modelscited by 90
- 2018Scenic: A Language for Scenario Specification and Scene Generationcited by 83
- 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Modelscited by 80
- 2023BadGPT: Exploring Security Vulnerabilities of ChatGPT via Backdoor Attacks to InstructGPTcited by 76
- 2023Composite Backdoor Attacks Against Large Language Modelscited by 73
- 2024Play Guessing Game with LLM: Indirect Jailbreak Attack with Implicit Cluescited by 68
- 2025Reasoning-Augmented Conversation for Multi-Turn Jailbreak Attacks on Large Language Modelscited by 64
- 2024Instruction Backdoor Attacks Against Customized LLMscited by 62
- 2023Red Teaming Language Model Detectors with Language Modelscited by 55
50 most cited of 65 All 65 (JSON)
Built on by
Citing papers per year: 2025: 5; 2026: 10.
15 papers.
Sort:
By area:
- 2025A Survey of Context Engineering for Large Language Modelscited by 126
- 2026Beyond Max Tokens: Stealthy Resource Amplification via Tool Calling Chains in LLM Agentscited by 14
- 2025Exploiting Web Search Tools of AI Agents for Data Exfiltrationcited by 3
- 2025Countermind: A Multi-Layered Security Architecture for Large Language Modelscited by 2
- 2026Efficient Multi-objective Prompt Optimization via Pure-exploration Banditscited by 2
- 2025Lumos: Let there be Language Model System Certificationcited by 1
- 2026Are LLMs Vulnerable to Preference-Undermining Attacks (PUA)? A Factorial Analysis Methodology for Diagnosing the Trade-off between Preference Alignment and Real-World Validitycited by 1
- 2026Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Modelscited by 1
- 2026Prompt Control-Flow Integrity: A Priority-Aware Runtime Defense Against Prompt Injection in LLM Systemscited by 1
- 2026Talk is (Not) Cheap: A Taxonomy and Benchmark Coverage Audit for LLM Attackscited by 1
- 2025Defending Large Language Models Against Jailbreak Exploits with Responsible AI Considerationscited by 0
- 2026Why Do Large Language Models Generate Harmful Content?cited by 0
- 2026StableJudge: A Lightweight Adversarial Defense Framework for LLM-as-a-Judge12 Oct 2026
- 2026A Lifecycle and Application-Stack Survey of Large Language Model Vulnerabilities: Attacks, Risks, Defenses, and Open Problems30 Jun 2026
- 2026The Role of Rigor in Artificial Intelligence19 May 2026
- 2026Talk is (Not) Cheap: A Taxonomy and Benchmark Coverage Audit for LLM Attacks14 May 2026
- 2026Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits14 May 2026
- 2026Why Do Large Language Models Generate Harmful Content?13 Apr 2026
- 2026Prompt Control-Flow Integrity: A Priority-Aware Runtime Defense Against Prompt Injection in LLM Systems19 Mar 2026
- 2026Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models1 Feb 2026
- 2026Beyond Max Tokens: Stealthy Resource Amplification via Tool Calling Chains in LLM Agents16 Jan 2026
- 2026Are LLMs Vulnerable to Preference-Undermining Attacks (PUA)? A Factorial Analysis Methodology for Diagnosing the Trade-off between Preference Alignment and Real-World Validity10 Jan 2026
- 2025Lumos: Let there be Language Model System Certification2 Dec 2025
- 2025Defending Large Language Models Against Jailbreak Exploits with Responsible AI Considerations24 Nov 2025
3 more
- 2025Countermind: A Multi-Layered Security Architecture for Large Language Modelscited by 2
- 2026Prompt Control-Flow Integrity: A Priority-Aware Runtime Defense Against Prompt Injection in LLM Systemscited by 1
- 2025Defending Large Language Models Against Jailbreak Exploits with Responsible AI Considerationscited by 0
- 2026Why Do Large Language Models Generate Harmful Content?cited by 0
- 2026Why Do Large Language Models Generate Harmful Content?13 Apr 2026
- 2026Prompt Control-Flow Integrity: A Priority-Aware Runtime Defense Against Prompt Injection in LLM Systems19 Mar 2026
- 2025Defending Large Language Models Against Jailbreak Exploits with Responsible AI Considerations24 Nov 2025
- 2025Countermind: A Multi-Layered Security Architecture for Large Language Models13 Oct 2025
- 2025A Survey of Context Engineering for Large Language Modelscited by 126
- 2026Efficient Multi-objective Prompt Optimization via Pure-exploration Banditscited by 2
- 2025Lumos: Let there be Language Model System Certificationcited by 1
- 2026Talk is (Not) Cheap: A Taxonomy and Benchmark Coverage Audit for LLM Attackscited by 1
- 2026A Lifecycle and Application-Stack Survey of Large Language Model Vulnerabilities: Attacks, Risks, Defenses, and Open Problemscited by 0
- 2026The Role of Rigor in Artificial Intelligencecited by 0
- 2026StableJudge: A Lightweight Adversarial Defense Framework for LLM-as-a-Judgecited by 0
- 2026StableJudge: A Lightweight Adversarial Defense Framework for LLM-as-a-Judge12 Oct 2026
- 2026A Lifecycle and Application-Stack Survey of Large Language Model Vulnerabilities: Attacks, Risks, Defenses, and Open Problems30 Jun 2026
- 2026The Role of Rigor in Artificial Intelligence19 May 2026
- 2026Talk is (Not) Cheap: A Taxonomy and Benchmark Coverage Audit for LLM Attacks14 May 2026
- 2026Efficient Multi-objective Prompt Optimization via Pure-exploration Bandits14 May 2026
- 2025Lumos: Let there be Language Model System Certification2 Dec 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models
- 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attacks
- 2024Recent Advances in Attack and Defense Approaches of Large Language Models
- 2025Data Security in Large Language Models: Risks, Defense, and Directions
- 2025Attack and defense techniques in large language models: A survey and new perspectives
- 2024Unique Security and Privacy Threats of Large Language Models: A Comprehensive Survey
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey
- 2024Large Language Model Safety: A Holistic Survey