mlsanityData to 14 Oct 2026

Enhancing Prompt Injection Attacks to LLMs via Poisoning Alignment

arXiv 2410.14827 ↗First posted 18 Oct 2024cs.CR cs.AI cs.CLcited by 21

On the map: LLM safety and security → Prompt injection and agent security

Abstract (arXiv)

Prompt injection attack, where an attacker injects a prompt into the original one, aiming to make an Large Language Model (LLM) follow the injected prompt to perform an attacker-chosen task, represent a critical security threat. Existing attacks primarily focus on crafting these injections at inference time, treating the LLM itself as a static target. Our experiments show that these attacks achieve some success, but there is still significant room for improvement. In this work, we introduces a more foundational attack vector: poisoning the LLM's alignment process to amplify the success of future prompt injection attacks. Specifically, we propose PoisonedAlign, a method that strategically creates poisoned alignment samples to poison an LLM's alignment dataset. Our experiments across five LLMs and two alignment datasets show that when even a small fraction of the alignment data is poisoned, the resulting model becomes substantially more vulnerable to a wide range of prompt injection attacks. Crucially, this vulnerability is instilled while the LLM's performance on standard capability benchmarks remains largely unchanged, making the manipulation difficult to detect through automated, general-purpose performance evaluations. The code for implementing the attack is available at https://github.com/Sadcardation/PoisonedAlign.

Key facts. Cited by 21 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 35 of its 52 references that are in the map. First posted on arXiv 18 Oct 2024.

Builds on

35 of 52 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judge26 Mar
  2. 2024Automatic and Universal Prompt Injection Attacks against Large Language Models7 Mar
  3. 2024Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attacks6 Mar
  4. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defenses19 Oct
  5. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb

Other references · 30

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  5. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  7. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  8. 2017Deep reinforcement learning from human preferencescited by 3,912
  9. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  10. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  11. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  12. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
18 more
  1. 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
  2. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 916
  3. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  4. 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 736
  5. 2023The Falcon Series of Open Language Modelscited by 535
  6. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 451
  7. 2015A Neural Attention Model for Abstractive Sentence Summarizationcited by 396
  8. 2024Magpie: Alignment Data Synthesis from Scratch by Prompting Aligned LLMs with Nothingcited by 346
  9. 2023Universal Jailbreak Backdoors from Poisoned Human Feedbackcited by 128
  10. 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 127
  11. 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 110
  12. 2017JFLEG: A Fluency Corpus and Benchmark for Grammatical Error Correctioncited by 97
  13. 2020Towards Crowdsourced Training of Large Neural Networks using Decentralized Mixture-of-Expertscited by 43
  14. 2024CodecLM: Aligning Language Models with Tailored Synthetic Datacited by 39
  15. 2024Best-of-Venom: Attacking RLHF by Injecting Poisoned Preference Datacited by 35
  16. 2023RLHFPoison: Reward Poisoning Attack for Reinforcement Learning with Human Feedback in Large Language Modelscited by 32
  17. 2024Is poisoning a real threat to LLM alignment? Maybe more so than you thinkcited by 28
  18. 2024Preference Poisoning Attacks on Reward Model Learningcited by 14

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 10; 2026: 11.

21 papers.

Sort:

By area:

  1. 2025Prompt Injection Attack to Tool Selection in LLM Agentscited by 158
  2. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 116
  3. 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 67
  4. 2025WebInject: Prompt Injection Attack to Web Agentscited by 51
  5. 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysiscited by 30
  6. 2025PromptLocate: Localizing Prompt Injection Attackscited by 28
  7. 2025Data Poisoning in Deep Learning: A Surveycited by 20
  8. 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 20
  9. 2025LLM Misalignment via Adversarial RLHF Platformscited by 5
  10. 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysiscited by 3
  11. 2026Context Contamination in LLM Analysis of Network Security Logs: Poison with Passive Prompt Injection and Mitigation Evaluationcited by 3
  12. 2025FuncPoison: Poisoning Function Library to Hijack Multi-agent Autonomous Driving Systemscited by 2
9 more
  1. 2026HijackKV: New Threat in Position-Independent KV Cache Reusecited by 2
  2. 2025RoguePrompt: Dual-Layer Ciphering for Self-Reconstruction to Circumvent LLM Moderationcited by 0
  3. 2026Cordyceps: Covert Control Attacks on LLMs via Data Poisoningcited by 0
  4. 2026Rapid Poison: Practical Poisoning Attacks Against the Rapid Response Frameworkcited by 0
  5. 2026RoguePrompt: Dual-Layer Encoding for Self-Reconstruction to Circumvent LLM Moderationcited by 0
  6. 2026Piggybacking on Perception: Stealthy Concurrent Audio Prompt Injections against Multimodal LLM Agentscited by 0
  7. 2026The Latent Diagnostic Taxonomy: A Framework for Constructing Classifiers and Diagnosing Their Decisions, Applied to Prompt Injection Detectioncited by 0
  8. 2026Origin Is All You Need: Provenance-Aware Transformers for Structural Trust-Boundary Separationcited by 0
  9. 2026Agentic AI Cybersecurity Frameworkcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025System Prompt Poisoning: Persistent Attacks on Large Language Models Beyond User Injection
  2. 2025Cost-Minimized Label-Flipping Poisoning Attack to LLM Alignment
  3. 2024The Dark Side of Human Feedback: Poisoning Large Language Models via User Inputs
  4. 2024SecAlign: Defending Against Prompt Injection with Preference Optimization
  5. 2023PoisonPrompt: Backdoor Attack on Prompt-based Large Language Models
  6. 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM
  7. 2025Poison Once, Refuse Forever: Weaponizing Alignment for Injecting Bias in LLMs
  8. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep