To Protect the LLM Agent Against the Prompt Injection Attack with Polymorphic Prompt
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
LLM agents are widely used as agents for customer support, content generation, and code assistance. However, they are vulnerable to prompt injection attacks, where adversarial inputs manipulate the model's behavior. Traditional defenses like input sanitization, guard models, and guardrails are either cumbersome or ineffective. In this paper, we propose a novel, lightweight defense mechanism called Polymorphic Prompt Assembling (PPA), which protects against prompt injection with near-zero overhead. The approach is based on the insight that prompt injection requires guessing and breaking the structure of the system prompt. By dynamically varying the structure of system prompts, PPA prevents attackers from predicting the prompt structure, thereby enhancing security without compromising performance. We conducted experiments to evaluate the effectiveness of PPA against existing attacks and compared it with other defense methods.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 18 of its 34 references that are in the map. First posted on arXiv 6 Jun 2025.
Builds on
18 of 34 references.
References · 18
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 630
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 568
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 494
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 328
- 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 220
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Surveycited by 215
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
- 2025PromptShield: Deployable Detection for Prompt Injection Attackscited by 43
6 more
- 2024Defense Against Prompt Injection Attack by Leveraging Attack Techniquescited by 31
- 2024An Early Categorization of Prompt Injection Attacks on Large Language Modelscited by 28
- 2024Adversarial Tuning: Defending Against Jailbreak Attacks for LLMscited by 23
- 2024Self-Evaluation as a Defense Against Adversarial Attacks on LLMscited by 13
- 2024GenTel-Safe: A Unified Benchmark and Shielding Framework for Defending Against Prompt Injection Attackscited by 7
- 2024SPIN: Self-Supervised Prompt INjectioncited by 1
Built on by
Citing papers per year: 2025: 6; 2026: 8.
14 papers.
Sort:
By area:
- 2025AgentArmor: Enforcing Program Analysis on Agent Runtime Trace to Defend Against Prompt Injectioncited by 39
- 2025MAGPIE: A benchmark for Multi-AGent contextual PrIvacy Evaluationcited by 27
- 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysiscited by 25
- 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 17
- 2025Breaking and Fixing Defenses Against Control-Flow Hijacking in Multi-Agent Systemscited by 12
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behaviorcited by 9
- 2026Defense Against Indirect Prompt Injection via Tool Result Parsingcited by 8
- 2025Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworkscited by 7
- 2026Concept-Based Dictionary Learning for Inference-Time Safety in Vision Language Action Modelscited by 3
- 2026Misleading the Planner through Deceptive Resumes: Registration-Time Injection in Centralized Multi-Agent Systemscited by 1
- 2025Decoding Latent Attack Surfaces in LLMs: Prompt Injection via HTML in Web Summarizationcited by 0
- 2026Where Do LLM-based Systems Break? A System-Level Security Framework for Risk Assessment and Treatmentcited by 0
- 2026Misleading the Planner through Deceptive Resumes: Registration-Time Injection in Centralized Multi-Agent Systems14 Sep 2026
- 2026Words Speak Louder Than Code: Investigating Cognitive Heuristics in LLM-Based Code Vulnerability Detection29 Jun 2026
- 2026Evaluation and Hardening of LLM System Instructions Against Extraction via Encoding Attacks1 Apr 2026
- 2026Where Do LLM-based Systems Break? A System-Level Security Framework for Risk Assessment and Treatment8 Mar 2026
- 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis11 Feb 2026
- 2026Concept-Based Dictionary Learning for Inference-Time Safety in Vision Language Action Models2 Feb 2026
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behavior15 Jan 2026
- 2026Defense Against Indirect Prompt Injection via Tool Result Parsing8 Jan 2026
- 2025Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworks19 Nov 2025
- 2025Breaking and Fixing Defenses Against Control-Flow Hijacking in Multi-Agent Systems20 Oct 2025
- 2025MAGPIE: A benchmark for Multi-AGent contextual PrIvacy Evaluation16 Oct 2025
- 2025A Survey on Agentic Security: Applications, Threats and Defenses7 Oct 2025
- 2025AgentArmor: Enforcing Program Analysis on Agent Runtime Trace to Defend Against Prompt Injectioncited by 39
- 2025MAGPIE: A benchmark for Multi-AGent contextual PrIvacy Evaluationcited by 27
- 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysiscited by 25
- 2025A Survey on Agentic Security: Applications, Threats and Defensescited by 17
- 2025Breaking and Fixing Defenses Against Control-Flow Hijacking in Multi-Agent Systemscited by 12
- 2026Defense Against Indirect Prompt Injection via Tool Result Parsingcited by 8
- 2025Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworkscited by 7
- 2026Misleading the Planner through Deceptive Resumes: Registration-Time Injection in Centralized Multi-Agent Systemscited by 1
- 2026Evaluation and Hardening of LLM System Instructions Against Extraction via Encoding Attackscited by 0
- 2026Misleading the Planner through Deceptive Resumes: Registration-Time Injection in Centralized Multi-Agent Systems14 Sep 2026
- 2026Evaluation and Hardening of LLM System Instructions Against Extraction via Encoding Attacks1 Apr 2026
- 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis11 Feb 2026
- 2026Defense Against Indirect Prompt Injection via Tool Result Parsing8 Jan 2026
- 2025Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworks19 Nov 2025
- 2025Breaking and Fixing Defenses Against Control-Flow Hijacking in Multi-Agent Systems20 Oct 2025
- 2025MAGPIE: A benchmark for Multi-AGent contextual PrIvacy Evaluation16 Oct 2025
- 2025A Survey on Agentic Security: Applications, Threats and Defenses7 Oct 2025
- 2025AgentArmor: Enforcing Program Analysis on Agent Runtime Trace to Defend Against Prompt Injection2 Aug 2025
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behaviorcited by 9
- 2026Where Do LLM-based Systems Break? A System-Level Security Framework for Risk Assessment and Treatmentcited by 0
- 2026Words Speak Louder Than Code: Investigating Cognitive Heuristics in LLM-Based Code Vulnerability Detectioncited by 0
- 2026Words Speak Louder Than Code: Investigating Cognitive Heuristics in LLM-Based Code Vulnerability Detection29 Jun 2026
- 2026Where Do LLM-based Systems Break? A System-Level Security Framework for Risk Assessment and Treatment8 Mar 2026
- 2026AgentGuardian: Learning Access Control Policies to Govern AI Agent Behavior15 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026Strengthening Polymorphic Prompt Assembling: Dynamic Separator Generation Against Emerging Prompt Injection Attacks
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses
- 2026Assessing Automated Prompt Injection Attacks in Agentic Environments
- 2025Meta SecAlign: A Secure Foundation LLM Against Prompt Injection Attacks
- 2026Defending against Adaptive Prompt Injection Attacks via Reasoning-enabled Task Alignment
- 2026Conjunctive Prompt Attacks in Multi-Agent LLM Systems
- 2025A Multi-Agent LLM Defense Pipeline Against Prompt Injection Attacks
- 2024Prompt Infection: LLM-to-LLM Prompt Injection within Multi-Agent Systems