LLM in the middle: A systematic review of threats and mitigations to real-world LLM-based systems
Abstract
The success and wide adoption of generative AI (GenAI), particularly large language models (LLMs), have attracted the attention of cybercriminals seeking to abuse models, steal sensitive data, or disrupt services. Moreover, providing security to LLM-based systems is a significant 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 the 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 the scenarios to which 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 mitigate. This work paves the way for consumers and vendors to understand and efficiently mitigate risks during the 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.
Fields of Study & Subjects
Artificial Intelligence in Healthcare and Education
Ethics and Social Impacts of AI
AI in Service Interactions
Publication details
- Journal / source
- Computer Science Review
- Publisher
- Elsevier BV
- Volume
- 61
- Pages
- 100916–100916
- Publication date
- 6 February 2026
- Language
- EN