LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems
Not on the map. Why?
Abstract (arXiv)
The success and wide adoption of generative AI (GenAI), particularly large language models (LLMs), has attracted the attention of cybercriminals seeking to abuse models, steal sensitive data, or disrupt services. Moreover, providing security to LLM-based systems is a great challenge, as both traditional threats to software applications and threats targeting LLMs and their integration must be mitigated. In this survey, we shed light on security and privacy concerns of such LLM-based systems by performing a systematic review and comprehensive categorization of threats and defensive strategies considering the entire software and LLM life cycles. We analyze real-world scenarios with distinct characteristics of LLM usage, spanning from development to operation. In addition, threats are classified according to their severity level and to which scenarios they pertain, facilitating the identification of the most relevant threats. Recommended defense strategies are systematically categorized and mapped to the corresponding life cycle phase and possible attack strategies they attenuate. This work paves the way for consumers and vendors to understand and efficiently mitigate risks during integration of LLMs in their respective solutions or organizations. It also enables the research community to benefit from the discussion of open challenges and edge cases that may hinder the secure and privacy-preserving adoption of LLM-based systems.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 239 of its 346 references that are in the map. First posted on arXiv 12 Sep 2025.
Builds on
239 of 346 references.
References · 239
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
- 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
- 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
38 more
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
- 2022Red Teaming Language Models with Language Modelscited by 1,026
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
- 2015Distillation as a Defense to Adversarial Perturbations against Deep Neural Networkscited by 678
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
- 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
- 2023Jailbreaking ChatGPT via Prompt Engineering: An Empirical Studycited by 498
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 451
- 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Modelscited by 437
- 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 429
- 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 390
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2023Who's Harry Potter? Approximate Unlearning in LLMscited by 381
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2017Deep Models Under the GAN: Information Leakage from Collaborative Deep Learningcited by 334
- 2023Low-Resource Languages Jailbreak GPT-4cited by 309
- 2023Role-Play with Large Language Modelscited by 294
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
- 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 263
- 2024Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Securitycited by 260
- 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easilycited by 259
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 258
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Surveycited by 230
- 2024WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Modelscited by 223
- 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 222
- 2023Unlearn What You Want to Forget: Efficient Unlearning for LLMscited by 215
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 199
- 2021Evaluating Gradient Inversion Attacks and Defenses in Federated Learningcited by 196
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 192
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 186
- 2023AutoDroid: LLM-powered Task Automation in Androidcited by 184
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbotscited by 183
50 most cited of 239 All 239 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.