A Lifecycle and Application-Stack Survey of Large Language Model Vulnerabilities: Attacks, Risks, Defenses, and Open Problems
Abstract
Large language models are no longer only text generators. They are increasingly embedded in retrieval pipelines, enterprise assistants, coding environments, robotic systems, security-operation workflows, and autonomous agents that can read private data, call tools, write files, execute code, and act across organizational boundaries. This shift changes the security problem: risks do not arise from the model weights alone, but from the full lifecycle and application stack through which data, prompts, model outputs, tools, memories, and user authority interact. This paper systematizes the literature on vulnerabilities in large language model systems through a lifecycle and application-stack lens. We organize attacks across eight stages: data collection, pretraining, post-training alignment, model packaging and supply chain, retrieval and memory, prompting and inference, tool/agent execution, and deployment/maintenance. For each stage, we analyze attacker capabilities, affected security objectives, representative attacks, practical risks, evaluation practices, and defenses. We further map LLM-specific vulnerabilities to confidentiality, integrity, availability, safety, privacy, fairness, accountability, and agency-control objectives. Unlike taxonomies that list isolated attack names, the proposed systematization emphasizes where trust boundaries fail, how untrusted data becomes executable instruction, how delegated authority amplifies model errors, and why point defenses rarely compose. We close with a research agenda for secure LLM systems, including compositional security, provenance-aware retrieval, tool-call containment, long-horizon agent evaluation, privacy-preserving adaptation, realistic red teaming, and deployment-grade incident response.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.GT, cs.LO
Related papers
An Empirical Evaluation of Prompt Injection Vulnerabilities in Large Language Models Across Multilingual and Obfuscated Attack Scenarios
Shared title terminologycs.CRCaglar Uysal, Baturay Birinci, Süha Orhun Mutluergil et al.
Risk Assessment and Security Analysis of Large Language Models
Shared title terminologycs.CRXiaoyan Zhang, Dongyang Lyu, Xiaoqi Li
Vision Token Manipulation Attacks on Cloud-Edge Inference of Large Vision-Language Models
Shared title terminologycs.CRZikai Zhang, Rui Hu, Olivera Kotevska et al.
Robust Harmful Features Under Jailbreak Attacks: Mechanistic Evidence from Attention Head Specialization in Large Language Models
Shared title terminologycs.CRYanchen Yin, Dongqi Han, Linghui Li
FlipGuard: Defending Large Language Models Against Quantization-Conditioned Backdoor Attacks
Shared title terminologycs.CRAoying Zheng, Anqi Du, Zizhuang Deng et al.
Weight-Space Backdoors in Open-Weight LLMs: Cross-Architecture Attacks and Blind Model Forensics
Shared title terminologycs.CRMohammed Tanveer