Revisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputs
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Recent studies have widely investigated backdoor attacks on Large Language Models (LLMs) by inserting harmful question-answer (QA) pairs into their training data. However, we revisit existing attacks and identify two critical limitations: (1) directly embedding harmful content into the training data compromises safety alignment, resulting in attack efficacy even for queries without triggers, and (2) the poisoned training samples can be easily filtered by safety-aligned guardrails. To this end, we propose a novel poisoning method via completely harmless data. Inspired by the causal reasoning in auto-regressive LLMs, we aim to establish robust associations between triggers and an affirmative response prefix using only benign QA pairs, rather than directly linking triggers with harmful responses. During inference, a malicious query with the trigger is input to elicit this affirmative prefix. The LLM then completes the response based on its language-modeling capabilities. Achieving this using only clean samples is non-trivial. We observe an interesting resistance phenomenon where the LLM initially appears to agree but subsequently refuses to answer. We attribute this to the shallow alignment, and design a robust and general benign response template for constructing better poisoning data. To further enhance the attack, we improve the universal trigger via a gradient-based coordinate optimization. Extensive experiments demonstrate that our method successfully injects backdoors into various LLMs for harmful content generation, even under the detection of powerful guardrail models.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 37 of its 45 references that are in the map. First posted on arXiv 23 May 2025.
Builds on
37 of 45 references.
Closest ancestors · 7
Same direction, newest first
- 2024BadEdit: Backdooring large language models by model editing20 Mar
- 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Models20 Jan
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
- 2023Stealthy and Persistent Unalignment on Large Language Models via Backdoor Injections15 Nov
- 2023Composite Backdoor Attacks Against Large Language Models11 Oct
- 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injection31 Jul
- 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Models24 May
Other references · 30
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2024GPT-4o System Cardcited by 4,588
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
18 more
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
- 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
- 2023Instruction Tuning with GPT-4cited by 686
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 431
- 2024InternLM2 Technical Reportcited by 397
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 341
- 2023Poisoning Language Models During Instruction Tuningcited by 269
- 2022BackdoorBench: A Comprehensive Benchmark of Backdoor Learningcited by 128
- 2023Universal Jailbreak Backdoors from Poisoned Human Feedbackcited by 128
- 2023GIFD: A Generative Gradient Inversion Method with Feature Domain Optimizationcited by 45
- 2024CLIP-Guided Generative Networks for Transferable Targeted Adversarial Attackscited by 19
- 2025Enhancing LLM Safety Through a Theoretical Minimax Game Lenscited by 19
- 2024GI-NAS: Boosting Gradient Inversion Attacks Through Adaptive Neural Architecture Searchcited by 14
- 2025Injecting Universal Jailbreak Backdoors into LLMs in Minutescited by 13
- 2025Your Language Model Can Secretly Write Like Humans: Contrastive Paraphrase Attacks on LLM-Generated Text Detectorscited by 10
- 2025Retrievals Can Be Detrimental: Unveiling the Backdoor Vulnerability of Retrieval-Augmented Diffusion Modelscited by 5
Built on by
Citing papers per year: 2025: 2; 2026: 8.
10 papers.
- 2025When Developer Aid Becomes Security Debt: A Systematic Analysis of Insecure Behaviors in LLM Coding Agentscited by 8
- 2026Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studiescited by 8
- 2026Synthetic Data for any Differentiable Targetcited by 2
- 2026Prompt2Fingerprint: Plug-and-Play LLM Fingerprinting via Text-to-Weight Generationcited by 2
- 2025Why Does Weak-OOD Help? A Further Step Towards Understanding Jailbreaking VLMscited by 1
- 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMscited by 1
- 2026PermaFrost-Attack: Stealth Pretraining Seeding(SPS) for planting Logic Landmines During LLM Trainingcited by 0
- 2026CHILLGuard: Towards Fine-Grained Chinese LLM Safety Guardrail with Scalable Data Construction and Model-aware Preference Alignmentcited by 0
- 2026Rapid Poison: Practical Poisoning Attacks Against the Rapid Response Frameworkcited by 0
- 2026Story Imprinting: AI Assistants Absorb Traits from Human Characters They Resemblecited by 0
- 2026Story Imprinting: AI Assistants Absorb Traits from Human Characters They Resemble9 Sep 2026
- 2026Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studies22 Jun 2026
- 2026Rapid Poison: Practical Poisoning Attacks Against the Rapid Response Framework15 Jun 2026
- 2026CHILLGuard: Towards Fine-Grained Chinese LLM Safety Guardrail with Scalable Data Construction and Model-aware Preference Alignment13 Jun 2026
- 2026Trusted Weights, Treacherous Optimizations? Optimization-Triggered Backdoor Attacks on LLMs20 May 2026
- 2026Prompt2Fingerprint: Plug-and-Play LLM Fingerprinting via Text-to-Weight Generation18 May 2026
- 2026PermaFrost-Attack: Stealth Pretraining Seeding(SPS) for planting Logic Landmines During LLM Training23 Apr 2026
- 2026Synthetic Data for any Differentiable Target9 Apr 2026
- 2025Why Does Weak-OOD Help? A Further Step Towards Understanding Jailbreaking VLMs11 Nov 2025
- 2025When Developer Aid Becomes Security Debt: A Systematic Analysis of Insecure Behaviors in LLM Coding Agents12 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models
- 2024Neutralizing Backdoors through Information Conflicts for Large Language Models
- 2025Multi-Trigger Poisoning Amplifies Backdoor Vulnerabilities in LLMs
- 2025The 'Sure' Trap: Multi-Scale Poisoning Analysis of Stealthy Compliance-Only Backdoors in Fine-Tuned Large Language Models
- 2023PoisonPrompt: Backdoor Attack on Prompt-based Large Language Models
- 2024Learning to Poison Large Language Models for Downstream Manipulation
- 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilution
- 2026The Model Plants the Trigger: Answer-Side Backdoor Attacks in Multi-Turn Large Language Models