Attack and defense techniques in large language models: A survey and new perspectives
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have become central to numerous natural language processing tasks, but their vulnerabilities present significant security and ethical challenges. This systematic survey explores the evolving landscape of attack and defense techniques in LLMs. We classify attacks into adversarial prompt attack, optimized attacks, model theft, as well as attacks on application of LLMs, detailing their mechanisms and implications. Consequently, we analyze defense strategies, including prevention-based and detection-based defense methods. Although advances have been made, challenges remain to adapt to the dynamic threat landscape, balance usability with robustness, and address resource constraints in defense implementation. We highlight open problems, including the need for adaptive scalable defenses, explainable security techniques, and standardized evaluation frameworks. This survey provides actionable insights and directions for developing secure and resilient LLMs, emphasizing the importance of interdisciplinary collaboration and ethical considerations to mitigate risks in real-world applications.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 60 of its 88 references that are in the map. First posted on arXiv 2 May 2025.
Builds on
60 of 88 references.
References · 60
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2023A Survey on Evaluation of Large Language Modelscited by 1,242
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
38 more
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
- 2023GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Promptscited by 560
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 469
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreakercited by 367
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2022Are Large Pre-Trained Language Models Leaking Your Personal Information?cited by 200
- 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attackscited by 194
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 186
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbotscited by 183
- 2023Summary of ChatGPT-Related Research and Perspective Towards the Future of Large Language Modelscited by 154
- 2024AutoDefense: Multi-Agent LLM Defense against Jailbreak Attackscited by 145
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
- 2019Thieves on Sesame Street! Model Extraction of BERT-based APIscited by 139
- 2024GradSafe: Detecting Jailbreak Prompts for LLMs via Safety-Critical Gradient Analysiscited by 96
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 95
- 2023Protecting Language Generation Models via Invisible Watermarkingcited by 90
- 2023MedViT: A Robust Vision Transformer for Generalized Medical Image Classificationcited by 89
- 2023Practical and Ethical Challenges of Large Language Models in Education: A Systematic Scoping Reviewcited by 83
- 2020Imitation Attacks and Defenses for Black-box Machine Translation Systemscited by 81
- 2022CATER: Intellectual Property Protection on Text Generation APIs via Conditional Watermarkscited by 76
- 2023Attack Prompt Generation for Red Teaming and Defending Large Language Modelscited by 76
- 2023Nightshade: Prompt-Specific Poisoning Attacks on Text-to-Image Generative Modelscited by 75
- 2024Parameter-Efficient Fine-Tuning with Discrete Fourier Transformcited by 71
- 2022Evaluating the Susceptibility of Pre-Trained Language Models via Handcrafted Adversarial Examplescited by 69
- 2023Are You Copying My Model? Protecting the Copyright of Large Language Models for EaaS via Backdoor Watermarkcited by 67
- 2024Risk Taxonomy, Mitigation, and Assessment Benchmarks of Large Language Model Systemscited by 66
- 2023Jailbreaking GPT-4V via Self-Adversarial Attacks with System Promptscited by 65
- 2023Adversarial Demonstration Attacks on Large Language Modelscited by 63
- 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Mannercited by 63
- 2023Assessing Prompt Injection Risks in 200+ Custom GPTscited by 55
- 2024Signed-Prompt: A New Approach to Prevent Prompt Injection Attacks Against LLM-Integrated Applicationscited by 54
- 2022Fairness-aware Adversarial Perturbation Towards Bias Mitigation for Deployed Deep Modelscited by 47
- 2024Distract Large Language Models for Automatic Jailbreak Attackcited by 45
- 2024The Ethics of ChatGPT in Medicine and Healthcare: A Systematic Review on Large Language Models (LLMs)cited by 45
- 2023Large Language Models for Telecom: Forthcoming Impact on the Industrycited by 44
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 12.
14 papers.
Sort:
By area:
- 2026From Spark to Fire: Modeling and Mitigating Error Cascades in LLM-Based Multi-Agent Collaborationcited by 14
- 2026ADAM: A Systematic Data Extraction Attack on Agent Memory via Adaptive Queryingcited by 5
- 2026Enforcing Benign Trajectories: A Behavioral Firewall for Structured-Workflow AI Agentscited by 3
- 2025Shaking to Reveal: Perturbation-Based Detection of LLM Hallucinationscited by 2
- 2026Proactive Hardening of LLM Defenses with HASTEcited by 2
- 2025Sentra-Guard: A Real-Time Multilingual Defense Against Adversarial LLM Promptscited by 1
- 2026JailbreakOPT: Tool-Assisted Iterative Jailbreak Prompt Optimizationcited by 1
- 2026When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapsecited by 1
- 2026Security Assessment and Mitigation Strategies for Large Language Models: A Comprehensive Defensive Frameworkcited by 0
- 2026Dictionary-Aligned Concept Control for Safeguarding Multimodal LLMscited by 0
- 2026Conversations Risk Detection LLMs in Financial Agents via Multi-Stage Generative Rolloutcited by 0
- 2026Reasoning-targeted Jailbreak Attacks on Large Reasoning Models via Semantic Triggers and Psychological Framingcited by 0
- 2026When Context Bites: Detecting RAG Poisoning via Document-Level Attention Collapse7 Aug 2026
- 2026JailbreakOPT: Tool-Assisted Iterative Jailbreak Prompt Optimization9 Jun 2026
- 2026Beyond ℓ2-norm and ℓ_∞-norm: A Curvature-Inspired ℓp-Norm Scheme for Deep Neural Networks1 Jun 2026
- 2026Enforcing Benign Trajectories: A Behavioral Firewall for Structured-Workflow AI Agents29 Apr 2026
- 2026AVISE: Framework for Evaluating the Security of AI Systems22 Apr 2026
- 2026Reasoning-targeted Jailbreak Attacks on Large Reasoning Models via Semantic Triggers and Psychological Framing17 Apr 2026
- 2026ADAM: A Systematic Data Extraction Attack on Agent Memory via Adaptive Querying10 Apr 2026
- 2026Conversations Risk Detection LLMs in Financial Agents via Multi-Stage Generative Rollout10 Apr 2026
- 2026Dictionary-Aligned Concept Control for Safeguarding Multimodal LLMs10 Apr 2026
- 2026Security Assessment and Mitigation Strategies for Large Language Models: A Comprehensive Defensive Framework17 Mar 2026
- 2026From Spark to Fire: Modeling and Mitigating Error Cascades in LLM-Based Multi-Agent Collaboration4 Mar 2026
- 2026Proactive Hardening of LLM Defenses with HASTE27 Jan 2026
- 2026From Spark to Fire: Modeling and Mitigating Error Cascades in LLM-Based Multi-Agent Collaborationcited by 14
- 2026ADAM: A Systematic Data Extraction Attack on Agent Memory via Adaptive Queryingcited by 5
- 2026Enforcing Benign Trajectories: A Behavioral Firewall for Structured-Workflow AI Agentscited by 3
- 2026Conversations Risk Detection LLMs in Financial Agents via Multi-Stage Generative Rolloutcited by 0
- 2026Enforcing Benign Trajectories: A Behavioral Firewall for Structured-Workflow AI Agents29 Apr 2026
- 2026ADAM: A Systematic Data Extraction Attack on Agent Memory via Adaptive Querying10 Apr 2026
- 2026Conversations Risk Detection LLMs in Financial Agents via Multi-Stage Generative Rollout10 Apr 2026
- 2026From Spark to Fire: Modeling and Mitigating Error Cascades in LLM-Based Multi-Agent Collaboration4 Mar 2026
- 2026Proactive Hardening of LLM Defenses with HASTEcited by 2
- 2025Sentra-Guard: A Real-Time Multilingual Defense Against Adversarial LLM Promptscited by 1
- 2026JailbreakOPT: Tool-Assisted Iterative Jailbreak Prompt Optimizationcited by 1
- 2026AVISE: Framework for Evaluating the Security of AI Systemscited by 0
- 2026JailbreakOPT: Tool-Assisted Iterative Jailbreak Prompt Optimization9 Jun 2026
- 2026AVISE: Framework for Evaluating the Security of AI Systems22 Apr 2026
- 2026Proactive Hardening of LLM Defenses with HASTE27 Jan 2026
- 2025Sentra-Guard: A Real-Time Multilingual Defense Against Adversarial LLM Prompts26 Oct 2025
- 2025Shaking to Reveal: Perturbation-Based Detection of LLM Hallucinationscited by 2
- 2026Security Assessment and Mitigation Strategies for Large Language Models: A Comprehensive Defensive Frameworkcited by 0
- 2026Beyond ℓ2-norm and ℓ_∞-norm: A Curvature-Inspired ℓp-Norm Scheme for Deep Neural Networkscited by 0
- 2026Beyond ℓ2-norm and ℓ_∞-norm: A Curvature-Inspired ℓp-Norm Scheme for Deep Neural Networks1 Jun 2026
- 2026Security Assessment and Mitigation Strategies for Large Language Models: A Comprehensive Defensive Framework17 Mar 2026
- 2025Shaking to Reveal: Perturbation-Based Detection of LLM Hallucinations3 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2024Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language Models
- 2024Recent Advances in Attack and Defense Approaches of Large Language Models
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey
- 2025Security Concerns for Large Language Models: A Survey
- 2025Data Security in Large Language Models: Risks, Defense, and Directions
- 2024Jailbreaking and Mitigation of Vulnerabilities in Large Language Models
- 2025A Survey on Backdoor Threats in Large Language Models (LLMs): Attacks, Defenses, and Evaluations
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey