System Prompt Poisoning: Persistent Attacks on Large Language Models Beyond User Injection
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Large language models (LLMs) have gained widespread adoption across diverse applications due to their impressive generative capabilities. Their plug-and-play nature enables both developers and end users to interact with these models through simple prompts. However, as LLMs become more integrated into various systems in diverse domains, concerns around their security are growing. Existing studies mainly focus on threats arising from user prompts (e.g. prompt injection attack) and model output (e.g. model inversion attack), while the security of system prompts remains largely overlooked. This work bridges the critical gap. We introduce system prompt poisoning, a new attack vector against LLMs that, unlike traditional user prompt injection, poisons system prompts hence persistently impacts all subsequent user interactions and model responses. We systematically investigate four practical attack strategies in various poisoning scenarios. Through demonstration on both generative and reasoning LLMs, we show that system prompt poisoning is highly feasible without requiring jailbreak techniques, and effective across a wide range of tasks, including those in mathematics, coding, logical reasoning, and natural language processing. Importantly, our findings reveal that the attack remains effective even when user prompts employ advanced prompting techniques like chain-of-thought (CoT). We also show that such techniques, including CoT and retrieval-augmentation-generation (RAG), which are proven to be effective for improving LLM performance in a wide range of tasks, are significantly weakened in their effectiveness by system prompt poisoning.
Key facts. Cited by 14 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 16 of its 26 references that are in the map. First posted on arXiv 10 May 2025.
Builds on
16 of 26 references.
Closest ancestors · 5
Same direction, newest first
- 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
- 2024FATH: Authentication-based Test-time Defense against Indirect Prompt Injection Attacks28 Oct
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models21 Dec
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb
Other references · 11
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2024GPT-4o System Cardcited by 4,588
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 267
- 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attackscited by 194
- 2023LLM Platform Security: Applying a Systematic Evaluation Framework to OpenAI's ChatGPT Pluginscited by 51
- 2024PoisonBench: Assessing Large Language Model Vulnerability to Data Poisoningcited by 33
- 2024On the (In)Security of LLM App Storescited by 14
Built on by
Citing papers per year: 2025: 9; 2026: 5.
14 papers.
Sort:
By area:
- 2026Memory Poisoning Attack and Defense on Memory Based LLM-Agentscited by 44
- 2025Security Concerns for Large Language Models: A Surveycited by 29
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2025A Comprehensive Survey on Trustworthiness in Reasoning with Large Language Modelscited by 25
- 2025ETDI: Mitigating Tool Squatting and Rug Pull Attacks in Model Context Protocol (MCP) by using OAuth-Enhanced Tool Definitions and Policy-Based Access Controlcited by 20
- 2025Logic layer Prompt Control Injection (LPCI): A Novel Security Vulnerability Class in Agentic Systemscited by 6
- 2025Eliciting and Analyzing Emergent Misalignment in State-of-the-Art Large Language Modelscited by 4
- 2025Multimodal Prompt Injection Attacks: Risks and Defenses for Modern LLMscited by 4
- 2025FuncPoison: Poisoning Function Library to Hijack Multi-agent Autonomous Driving Systemscited by 2
- 2025Rethinking Reasoning: A Survey on Reasoning-based Backdoors in LLMscited by 2
- 2026Inference-Time Backdoors via Chat Templates: From LLM Supply Chains to Agentic System Compromisecited by 2
- 2026The Surface You Test Is Not the Surface That Breakscited by 0
- 2026ENDOPROMPT: Victim-Side Pseudo-References for Utility Degradation24 Sep 2026
- 2026The System Prompt Illusion: How Instruction Preambles Modify Computation in Language Models23 Sep 2026
- 2026The Surface You Test Is Not the Surface That Breaks28 May 2026
- 2026Inference-Time Backdoors via Chat Templates: From LLM Supply Chains to Agentic System Compromise4 Feb 2026
- 2026Memory Poisoning Attack and Defense on Memory Based LLM-Agents9 Jan 2026
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct 2025
- 2025Rethinking Reasoning: A Survey on Reasoning-based Backdoors in LLMs9 Oct 2025
- 2025FuncPoison: Poisoning Function Library to Hijack Multi-agent Autonomous Driving Systems29 Sep 2025
- 2025Multimodal Prompt Injection Attacks: Risks and Defenses for Modern LLMs7 Sep 2025
- 2025A Comprehensive Survey on Trustworthiness in Reasoning with Large Language Models4 Sep 2025
- 2025Eliciting and Analyzing Emergent Misalignment in State-of-the-Art Large Language Models6 Aug 2025
- 2025Logic layer Prompt Control Injection (LPCI): A Novel Security Vulnerability Class in Agentic Systems14 Jul 2025
- 2026Memory Poisoning Attack and Defense on Memory Based LLM-Agentscited by 44
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2025Logic layer Prompt Control Injection (LPCI): A Novel Security Vulnerability Class in Agentic Systemscited by 6
- 2026Inference-Time Backdoors via Chat Templates: From LLM Supply Chains to Agentic System Compromisecited by 2
- 2026The Surface You Test Is Not the Surface That Breakscited by 0
- 2026The Surface You Test Is Not the Surface That Breaks28 May 2026
- 2026Inference-Time Backdoors via Chat Templates: From LLM Supply Chains to Agentic System Compromise4 Feb 2026
- 2026Memory Poisoning Attack and Defense on Memory Based LLM-Agents9 Jan 2026
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct 2025
- 2025Logic layer Prompt Control Injection (LPCI): A Novel Security Vulnerability Class in Agentic Systems14 Jul 2025
- 2025Security Concerns for Large Language Models: A Surveycited by 29
- 2025ETDI: Mitigating Tool Squatting and Rug Pull Attacks in Model Context Protocol (MCP) by using OAuth-Enhanced Tool Definitions and Policy-Based Access Controlcited by 20
- 2026The System Prompt Illusion: How Instruction Preambles Modify Computation in Language Modelscited by 0
- 2026The System Prompt Illusion: How Instruction Preambles Modify Computation in Language Models23 Sep 2026
- 2025ETDI: Mitigating Tool Squatting and Rug Pull Attacks in Model Context Protocol (MCP) by using OAuth-Enhanced Tool Definitions and Policy-Based Access Control2 Jun 2025
- 2025Security Concerns for Large Language Models: A Survey24 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Automatic and Universal Prompt Injection Attacks against Large Language Models
- 2025Prompt Injection as an Emerging Threat: Evaluating the Resilience of Large Language Models
- 2023PoisonPrompt: Backdoor Attack on Prompt-based Large Language Models
- 2024Exploring Vulnerabilities and Protections in Large Language Models: A Survey
- 2024An Early Categorization of Prompt Injection Attacks on Large Language Models
- 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection
- 2024Enhancing Prompt Injection Attacks to LLMs via Poisoning Alignment
- 2025Robustness via Referencing: Defending against Prompt Injection Attacks by Referencing the Executed Instruction