mlsanityData to 14 Oct 2026

Revisiting Backdoor Attacks on LLMs: A Stealthy and Practical Poisoning Framework via Harmless Inputs

arXiv 2505.17601 ↗First posted 23 May 2025cs.CLcited by 10

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

  1. 2024BadEdit: Backdooring large language models by model editing20 Mar
  2. 2024BadChain: Backdoor Chain-of-Thought Prompting for Large Language Models20 Jan
  3. 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
  4. 2023Stealthy and Persistent Unalignment on Large Language Models via Backdoor Injections15 Nov
  5. 2023Composite Backdoor Attacks Against Large Language Models11 Oct
  6. 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injection31 Jul
  7. 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Models24 May

Other references · 30

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  6. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  7. 2024Qwen2.5 Technical Reportcited by 4,942
  8. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  9. 2024GPT-4o System Cardcited by 4,588
  10. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  11. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
  12. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
18 more
  1. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
  2. 2017BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chaincited by 1,106
  3. 2023Instruction Tuning with GPT-4cited by 686
  4. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
  5. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
  6. 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 431
  7. 2024InternLM2 Technical Reportcited by 397
  8. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 341
  9. 2023Poisoning Language Models During Instruction Tuningcited by 269
  10. 2022BackdoorBench: A Comprehensive Benchmark of Backdoor Learningcited by 128
  11. 2023Universal Jailbreak Backdoors from Poisoned Human Feedbackcited by 128
  12. 2023GIFD: A Generative Gradient Inversion Method with Feature Domain Optimizationcited by 45
  13. 2024CLIP-Guided Generative Networks for Transferable Targeted Adversarial Attackscited by 19
  14. 2025Enhancing LLM Safety Through a Theoretical Minimax Game Lenscited by 19
  15. 2024GI-NAS: Boosting Gradient Inversion Attacks Through Adaptive Neural Architecture Searchcited by 14
  16. 2025Injecting Universal Jailbreak Backdoors into LLMs in Minutescited by 13
  17. 2025Your Language Model Can Secretly Write Like Humans: Contrastive Paraphrase Attacks on LLM-Generated Text Detectorscited by 10
  18. 2025Retrievals Can Be Detrimental: Unveiling the Backdoor Vulnerability of Retrieval-Augmented Diffusion Modelscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 8.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models
  2. 2024Neutralizing Backdoors through Information Conflicts for Large Language Models
  3. 2025Multi-Trigger Poisoning Amplifies Backdoor Vulnerabilities in LLMs
  4. 2025The 'Sure' Trap: Multi-Scale Poisoning Analysis of Stealthy Compliance-Only Backdoors in Fine-Tuned Large Language Models
  5. 2023PoisonPrompt: Backdoor Attack on Prompt-based Large Language Models
  6. 2024Learning to Poison Large Language Models for Downstream Manipulation
  7. 2025Lethe: Purifying Backdoored Large Language Models with Knowledge Dilution
  8. 2026The Model Plants the Trigger: Answer-Side Backdoor Attacks in Multi-Turn Large Language Models