TL;DR
This paper provides a comprehensive taxonomy of unique security and privacy threats across the four stages of a Large Language Model's (LLM) lifecycle: pre-training, fine-tuning, deployment, and agentic use. It moves beyond general AI risks to highlight vulnerabilities specific to the massive scale and emergent capabilities of LLMs, offering a detailed analysis of both sophisticated attacks and potential countermeasures.
What Problem Does This Paper Address?
While traditional machine learning models (like BERT or LSTMs) have well-documented vulnerabilities, LLMs introduce a paradigm shift. Their massive scale, "emergent abilities" (like in-context learning and chain-of-thought reasoning), and integration into autonomous "agents" create entirely new attack surfaces.
The authors argue that existing surveys often group all AI risks together, failing to distinguish between traditional threats and those unique to LLMs. There is a lack of a fine-grained taxonomy that maps specific threats to the different stages of an LLM's life—from the moment data is scraped for pre-training to the point where an LLM-based agent interacts with external tools.
Methods
The authors conduct a systematic review of LLM security and privacy research published between 2021 and 2025. Their primary contribution is a novel taxonomy that divides the LLM lifecycle into four distinct threat scenarios:
- Pre-training: Risks involving malicious data contributors and upstream developers.
- Fine-tuning: Vulnerabilities in instruction tuning, alignment (RLHF), and Parameter-Efficient Fine-Tuning (PEFT).
- Deployment: Black-box attacks like jailbreaking and prompt injection.
- LLM-based Agents: Risks associated with memory modules, tool-calling, and multi-agent interactions.
For each scenario, they distinguish between Unique Risks (specific to LLMs) and Common Risks (shared with traditional models), providing a deep dive into the attacker's goals, capacities, and the effectiveness of current defenses.
Datasets
As a survey paper, it does not introduce a new training dataset but evaluates the literature based on several key benchmarks and corpora:
- Pre-training Corpora: Analysis of PII leakage and toxicity in massive datasets like C4, The Pile, and OpenWebText.
- Evaluation Benchmarks: References to performance on MMLU (Massive Multitask Language Understanding) and the LM-Extraction benchmark for measuring data memorization.
- Downstream Tasks: Use of standard classification datasets (SST-2, IMDB, AGNEWS) to measure the success of backdoor detection methods.
Key Insights and Ideas
- The Memorization Trap: LLMs are significantly more prone to memorizing training data than smaller models. This makes them uniquely vulnerable to "Data Extraction Attacks" where a simple prefix can induce the model to regurgitate sensitive PII like emails or credit card numbers.
- Backdoor Persistence in PEFT: The paper highlights that Parameter-Efficient Fine-Tuning (like LoRA) is a double-edged sword. While efficient, it allows attackers to inject highly effective backdoors by manipulating only a tiny fraction of the model's trainable components.
- Agentic Contamination: In multi-agent systems, a single "infected" agent can spread malicious prompts or misinformation to other agents in a "domino effect," potentially causing a total system breakdown in as few as two dialogue turns.
- The "Alignment" Vulnerability: While alignment tuning (RLHF) is meant to make models safer, it can be bypassed through "Jailbreak Attacks" that use role-playing or complex prompt engineering to weaken the model's safety guardrails.
Key Results
- Data Extraction: Research shows that larger models leak more data; for example, extraction attacks on GPT-Neo 1.3B achieved a recall score of 62.8%.
- Backdoor Effectiveness: Poisoning just 0.3% of preference data in RLHF can significantly increase the likelihood of a model returning harmful or targeted responses.
- Jailbreaking Success: Advanced gradient-based search algorithms can craft jailbreak prompts that transfer across different models (e.g., from Vicuna to GPT-3.5/4) with high success rates.
- Defense Trade-offs: While "Corpora Cleaning" can mitigate privacy leaks, it is computationally expensive and can degrade the model's ultimate utility. Similarly, "Robustness Training" often leads to "over-refusal," where the model rejects harmless prompts.
Limitations and Future Work
The authors identify several critical gaps in current research:
- Generative vs. Classification: Most existing backdoor defenses are designed for simple classification tasks, whereas LLMs are primarily used for complex generative tasks (dialogue, code generation).
- Lack of Mainstream Evaluation: There is a need for more in-depth investigation into defenses specifically tailored for mainstream, production-grade models like the Llama and GPT series.
- Adaptive Attacks: Current defenses are often vulnerable to "adaptive attackers" who know the defense mechanism and design prompts to bypass it.
- Machine Unlearning: Developing efficient ways to make a model "forget" specific sensitive data without requiring a full, expensive retrain remains a major open challenge.
Summary updated