Design Patterns for Securing LLM Agents against Prompt Injections
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
As AI agents powered by Large Language Models (LLMs) become increasingly versatile and capable of addressing a broad spectrum of tasks, ensuring their security has become a critical challenge. Among the most pressing threats are prompt injection attacks, which exploit the agent's resilience on natural language inputs -- an especially dangerous threat when agents are granted tool access or handle sensitive information. In this work, we propose a set of principled design patterns for building AI agents with provable resistance to prompt injection. We systematically analyze these patterns, discuss their trade-offs in terms of utility and security, and illustrate their real-world applicability through a series of case studies.
Key facts. Cited by 73 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 24 of its 37 references that are in the map. First posted on arXiv 10 Jun 2025.
Builds on
24 of 37 references.
Closest ancestors · 5
Same direction, newest first
- 2025Defeating Prompt Injections by Design24 Mar
- 2025Firewalls to Secure Dynamic LLM Agentic Networks3 Feb
- 2024AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents19 Jun
- 2024AirGapAgent: Protecting Privacy-Conscious Conversational Agents8 May
- 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar
Other references · 19
- 2013Intriguing properties of neural networkscited by 5,155
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2024Improving Alignment and Robustness with Circuit Breakerscited by 322
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
- 2023Auto-GPT for Online Decision Making: Benchmarks and Additional Opinionscited by 255
7 more
- 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 101
- 2024ContextCite: Attributing Model Generation to Contextcited by 98
- 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 81
- 2024Get my drift? Catching LLM Task Drift with Activation Deltascited by 72
- 2024We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMscited by 65
- 2023Misusing Tools in Large Language Models With Visual Adversarial Examplescited by 42
- 2024Exfiltration of personal information from ChatGPT via prompt injectioncited by 7
Built on by
Citing papers per year: 2025: 17; 2026: 56.
73 papers.
Sort:
By area:
- 2026Skill-Inject: Measuring Agent Vulnerability to Skill File Attackscited by 90
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 28
- 2025Automatic Red Teaming LLM-based Agents with Model Context Protocol Toolscited by 18
- 2026How Vulnerable Are AI Agents to Indirect Prompt Injections? Insights from a Large-Scale Public Competitioncited by 17
- 2026SafeHarness: Lifecycle-Integrated Security Architecture for LLM-based Agent Deploymentcited by 15
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestrationcited by 14
- 2025Prompt Injection 2.0: Hybrid AI Threatscited by 13
- 2025Systems Security Foundations for Agentic Computingcited by 13
- 2025Semantic Attacks on Tool-Augmented LLMs: Securing the Model Context Protocol Against Descriptor-Level Manipulationcited by 13
- 2025CommandSans: Securing AI Agents with Surgical Precision Prompt Sanitizationcited by 12
- 2025Breaking and Fixing Defenses Against Control-Flow Hijacking in Multi-Agent Systemscited by 12
38 more
- 2025Preventing Prompt Injection with Type-Directed Privilege Separationcited by 9
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanismcited by 9
- 2026Agentic Business Process Management: A Research Manifestocited by 8
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agentscited by 8
- 2025Bridging AI and Software Security: A Comparative Vulnerability Assessment of LLM Agent Deployment Paradigmscited by 7
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
- 2025A2AS: Agentic AI Runtime Security and Self-Defensecited by 5
- 2026Are You Still the Agent I Authorized? Earned Authority under a Fixed Ceiling for Evolving Agentscited by 5
- 2025Please Don't Kill My Vibe: Empowering Agents with Data Flow Controlcited by 4
- 2025With Great Capabilities Come Great Responsibilities: Introducing the Agentic Risk & Capability Framework for Governing Agentic AI Systemscited by 4
- 2026Agentic Design Patterns: A System-Theoretic Frameworkcited by 4
- 2026Web Agents Should Adopt the Plan-Then-Execute Paradigmcited by 4
- 2025AI Security Beyond Core Domains: Resume Screening as a Case Study of Adversarial Vulnerabilities in Specialized LLM Applicationscited by 3
- 2026STARS: Skill-Triggered Audit for Request-Conditioned Invocation Safety in Agent Systemscited by 3
- 2026Adaptive Evaluation of Out-of-Band Defenses Against Prompt Injection in LLM Agentscited by 3
- 2026Janus: a Playground for User-Involved Agentic Permission Managementcited by 3
- 2026Untrusted Content Masking for Web Agents with Security Guaranteescited by 3
- 2025Multi-Agent Framework for Threat Mitigation and Resilience in AI-Based Systemscited by 2
- 2026Herding CATs: ALARA for Agent Harness Engineering in Portable Composable Multi-Agent Teamscited by 2
- 2026The Insurability Frontier of AI Risk: Mapping Threats to Affirmative Coverage, Silent Exposures, and Exclusionscited by 2
- 2026Hallucination as Exploit: Evidence-Carrying Multimodal Agentscited by 2
- 2026Agentic-J: An AI Agent for Biological Microscopy Image Analysiscited by 2
- 2026Agent Security Needs Redefinition through a Holistic Frameworkcited by 2
- 2026ROPE: Routed Origin Policy Enforcement against Indirect Prompt Injectioncited by 2
- 2026Layered LLM Defenses as an Ensemble: Access Tiers, Inference Cost, and the Measured Failure Correlation Between Defense Layerscited by 2
- 2025BinaryShield: Cross-Service Threat Intelligence in LLM Services using Privacy-Preserving Fingerprintscited by 1
- 2025Understanding Adversarial Transfer: Why Representation-Space Attacks Fail Where Data-Space Attacks Succeedcited by 1
- 2025MiniScope: A Least Privilege Framework for Authorizing Tool Calling Agentscited by 1
- 2026IPI-proxy: An Intercepting Proxy for Red-Teaming Web-Browsing AI Agents Against Indirect Prompt Injectioncited by 1
- 2026LACUNA: Safe Agents as Recursive Program Holescited by 1
- 2026Game-Theoretic Multi-Agent Control for Robust Contextual Reasoning in LLMscited by 1
- 2026GIF: Locally Sound Geometric Information Flow Control for LLMscited by 1
- 2026Agent Data Injection Attacks are Realistic Threats to AI Agentscited by 1
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agentscited by 1
- 2026IssueTrojanBench: Benchmarking AI Coding Agents Against Malicious Issue Requestscited by 1
- 2026Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Rankingcited by 1
- 2026Intellicise Wireless Networks Meet Agentic AI: A Security and Privacy Perspectivecited by 0
- 2026Policy Compliance of User Requests in Natural Language for AI Systemscited by 0
50 most cited of 73 All 73 (JSON)
- 2026NOMOS: Compiling Written Policies into Statically Verified Tool-Call Gates for LLM Agents8 Oct 2026
- 2026Secure-CUA: Controlling Untrusted Influence in Computer-Use Agents7 Oct 2026
- 2026Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injection4 Oct 2026
- 2026Self-Propagating Misalignment in LLM Agents, and Why Auditing or Disabling Memory Is Not Enough2 Oct 2026
- 2026Pincer: Resource Authorization for Agents using a Digital Twin1 Oct 2026
- 2026False Floors: LLM Safety Routing Evaluations Break Under Distribution Shift1 Oct 2026
- 2026Can Agents Trust Their Skills? Uncovering Unsafe Chains of Trust in Skill-Based LLM Agents30 Sep 2026
- 2026CounterSteer: Suppressing Indirect Prompt Injection with Activation Steering29 Sep 2026
- 2026Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agents23 Sep 2026
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systems20 Sep 2026
- 2026Beyond Single-Model Injection: A Threat Model and Defense Architecture for Prompt Injection in Multi-Agent Systems19 Sep 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
38 more
- 2026K-Dense BYOK: An Open-Source AI Research Assistant That Runs Locally and Keeps a Hash-Chained Lab Notebook4 Sep 2026
- 2026The Rise of Verbal Reinforcement Learning1 Sep 2026
- 2026Layered LLM Defenses as an Ensemble: Access Tiers, Inference Cost, and the Measured Failure Correlation Between Defense Layers28 Aug 2026
- 2026ROPE: Routed Origin Policy Enforcement against Indirect Prompt Injection27 Aug 2026
- 2026When Tool Outputs Become Commands: Separating Action Induction from Runtime Authorization in Tool-Augmented LLM Agents27 Aug 2026
- 2026Safety Does Not Compose: Non-Decaying Loop State for Autonomous LLM Agents27 Aug 2026
- 2026Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Ranking21 Aug 2026
- 2026ClawSentry: A Progressive Multi-Tier Security Monitor for Safeguarding Autonomous LLM Agents21 Aug 2026
- 2026Agentic Security: A Systematization of Tools, Failure Modes, and Design Laws for LLM-Driven Penetration Testing16 Aug 2026
- 2026AISPA: User-Centric System Prompt Auditing for Large Language Model Applications30 Jul 2026
- 2026Are You Still the Agent I Authorized? Earned Authority under a Fixed Ceiling for Evolving Agents26 Jul 2026
- 2026Agent Security Needs Redefinition through a Holistic Framework24 Jul 2026
- 2026IssueTrojanBench: Benchmarking AI Coding Agents Against Malicious Issue Requests22 Jul 2026
- 2026Twin Agent: Context Residual Compression for Privilege Separated Agents21 Jul 2026
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agents9 Jul 2026
- 2026Untrusted Content Masking for Web Agents with Security Guarantees6 Jul 2026
- 2026Agent Data Injection Attacks are Realistic Threats to AI Agents6 Jul 2026
- 2026Janus: a Playground for User-Involved Agentic Permission Management1 Jul 2026
- 2026Agents That Know Too Much: A Data-Centric Survey of Privacy in LLM Agents25 Jun 2026
- 2026Adaptive Evaluation of Out-of-Band Defenses Against Prompt Injection in LLM Agents25 Jun 2026
- 2026RIFT-Bench: Dynamic Red-teaming For Agentic AI Systems22 Jun 2026
- 2026GIF: Locally Sound Geometric Information Flow Control for LLMs22 Jun 2026
- 2026Lingering Authority: Revocable Resource-and-Effect Capabilities for Coding Agents21 Jun 2026
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation9 Jun 2026
- 2026Game-Theoretic Multi-Agent Control for Robust Contextual Reasoning in LLMs9 Jun 2026
- 2026Agentic-J: An AI Agent for Biological Microscopy Image Analysis1 Jun 2026
- 2026LACUNA: Safe Agents as Recursive Program Holes27 May 2026
- 2026Hallucination as Exploit: Evidence-Carrying Multimodal Agents18 May 2026
- 2026Web Agents Should Adopt the Plan-Then-Execute Paradigm14 May 2026
- 2026IPI-proxy: An Intercepting Proxy for Red-Teaming Web-Browsing AI Agents Against Indirect Prompt Injection12 May 2026
- 2026The Insurability Frontier of AI Risk: Mapping Threats to Affirmative Coverage, Silent Exposures, and Exclusions6 May 2026
- 2026LogJack: Indirect Prompt Injection Through Cloud Logs Against LLM Debugging Agents15 Apr 2026
- 2026SafeHarness: Lifecycle-Integrated Security Architecture for LLM-based Agent Deployment15 Apr 2026
- 2026STARS: Skill-Triggered Audit for Request-Conditioned Invocation Safety in Agent Systems11 Apr 2026
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration24 Mar 2026
- 2026Herding CATs: ALARA for Agent Harness Engineering in Portable Composable Multi-Agent Teams20 Mar 2026
- 2026Agentic Business Process Management: A Research Manifesto19 Mar 2026
- 2026How Vulnerable Are AI Agents to Indirect Prompt Injections? Insights from a Large-Scale Public Competition16 Mar 2026
50 newest of 73 All 73 (JSON)
- 2026Skill-Inject: Measuring Agent Vulnerability to Skill File Attackscited by 90
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 28
- 2025Automatic Red Teaming LLM-based Agents with Model Context Protocol Toolscited by 18
- 2026How Vulnerable Are AI Agents to Indirect Prompt Injections? Insights from a Large-Scale Public Competitioncited by 17
- 2026SafeHarness: Lifecycle-Integrated Security Architecture for LLM-based Agent Deploymentcited by 15
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestrationcited by 14
- 2025Systems Security Foundations for Agentic Computingcited by 13
- 2025Semantic Attacks on Tool-Augmented LLMs: Securing the Model Context Protocol Against Descriptor-Level Manipulationcited by 13
- 2025CommandSans: Securing AI Agents with Surgical Precision Prompt Sanitizationcited by 12
- 2025Breaking and Fixing Defenses Against Control-Flow Hijacking in Multi-Agent Systemscited by 12
- 2025Preventing Prompt Injection with Type-Directed Privilege Separationcited by 9
12 most cited of 54 All 54 (JSON)
- 2026NOMOS: Compiling Written Policies into Statically Verified Tool-Call Gates for LLM Agents8 Oct 2026
- 2026Secure-CUA: Controlling Untrusted Influence in Computer-Use Agents7 Oct 2026
- 2026Self-Propagating Misalignment in LLM Agents, and Why Auditing or Disabling Memory Is Not Enough2 Oct 2026
- 2026Pincer: Resource Authorization for Agents using a Digital Twin1 Oct 2026
- 2026Can Agents Trust Their Skills? Uncovering Unsafe Chains of Trust in Skill-Based LLM Agents30 Sep 2026
- 2026CounterSteer: Suppressing Indirect Prompt Injection with Activation Steering29 Sep 2026
- 2026Persistent Billable State: Denial-of-Wallet Attacks and Defenses in Tool-Calling LLM Agents23 Sep 2026
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systems20 Sep 2026
- 2026Beyond Single-Model Injection: A Threat Model and Defense Architecture for Prompt Injection in Multi-Agent Systems19 Sep 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026ROPE: Routed Origin Policy Enforcement against Indirect Prompt Injection27 Aug 2026
- 2026When Tool Outputs Become Commands: Separating Action Induction from Runtime Authorization in Tool-Augmented LLM Agents27 Aug 2026
12 newest of 54 All 54 (JSON)
- 2025Prompt Injection 2.0: Hybrid AI Threatscited by 13
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanismcited by 9
- 2026Agent Security Needs Redefinition through a Holistic Frameworkcited by 2
- 2025Understanding Adversarial Transfer: Why Representation-Space Attacks Fail Where Data-Space Attacks Succeedcited by 1
- 2026LogJack: Indirect Prompt Injection Through Cloud Logs Against LLM Debugging Agentscited by 0
- 2026Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injectioncited by 0
- 2026Blocking at the Boundary: Auditing Long-Horizon Agents against Staged Prompt Injection4 Oct 2026
- 2026Agent Security Needs Redefinition through a Holistic Framework24 Jul 2026
- 2026LogJack: Indirect Prompt Injection Through Cloud Logs Against LLM Debugging Agents15 Apr 2026
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanism14 Jan 2026
- 2025Understanding Adversarial Transfer: Why Representation-Space Attacks Fail Where Data-Space Attacks Succeed1 Oct 2025
- 2025Prompt Injection 2.0: Hybrid AI Threats17 Jul 2025
- 2026The Rise of Verbal Reinforcement Learningcited by 0
- 2026The Rise of Verbal Reinforcement Learning1 Sep 2026
- 2026Are You Still the Agent I Authorized? Earned Authority under a Fixed Ceiling for Evolving Agentscited by 5
- 2025AI Security Beyond Core Domains: Resume Screening as a Case Study of Adversarial Vulnerabilities in Specialized LLM Applicationscited by 3
- 2026Herding CATs: ALARA for Agent Harness Engineering in Portable Composable Multi-Agent Teamscited by 2
- 2026The Insurability Frontier of AI Risk: Mapping Threats to Affirmative Coverage, Silent Exposures, and Exclusionscited by 2
- 2026Layered LLM Defenses as an Ensemble: Access Tiers, Inference Cost, and the Measured Failure Correlation Between Defense Layerscited by 2
- 2025BinaryShield: Cross-Service Threat Intelligence in LLM Services using Privacy-Preserving Fingerprintscited by 1
- 2026Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Rankingcited by 1
- 2026Policy Compliance of User Requests in Natural Language for AI Systemscited by 0
- 2026AISPA: User-Centric System Prompt Auditing for Large Language Model Applicationscited by 0
- 2026K-Dense BYOK: An Open-Source AI Research Assistant That Runs Locally and Keeps a Hash-Chained Lab Notebookcited by 0
- 2026False Floors: LLM Safety Routing Evaluations Break Under Distribution Shiftcited by 0
- 2026False Floors: LLM Safety Routing Evaluations Break Under Distribution Shift1 Oct 2026
- 2026K-Dense BYOK: An Open-Source AI Research Assistant That Runs Locally and Keeps a Hash-Chained Lab Notebook4 Sep 2026
- 2026Layered LLM Defenses as an Ensemble: Access Tiers, Inference Cost, and the Measured Failure Correlation Between Defense Layers28 Aug 2026
- 2026Utility Under Attack: Agent Memory Poisoning and the Limits of Content Screening and Provenance Ranking21 Aug 2026
- 2026AISPA: User-Centric System Prompt Auditing for Large Language Model Applications30 Jul 2026
- 2026Are You Still the Agent I Authorized? Earned Authority under a Fixed Ceiling for Evolving Agents26 Jul 2026
- 2026The Insurability Frontier of AI Risk: Mapping Threats to Affirmative Coverage, Silent Exposures, and Exclusions6 May 2026
- 2026Herding CATs: ALARA for Agent Harness Engineering in Portable Composable Multi-Agent Teams20 Mar 2026
- 2026Policy Compliance of User Requests in Natural Language for AI Systems27 Feb 2026
- 2025AI Security Beyond Core Domains: Resume Screening as a Case Study of Adversarial Vulnerabilities in Specialized LLM Applications23 Dec 2025
- 2025BinaryShield: Cross-Service Threat Intelligence in LLM Services using Privacy-Preserving Fingerprints6 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks
- 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
- 2025From Prompt Injections to Protocol Exploits: Threats in LLM-Powered AI Agents Workflows
- 2026Evaluation of Prompt Injection Defenses in Large Language Models
- 2024An Early Categorization of Prompt Injection Attacks on Large Language Models
- 2024Prompt Infection: LLM-to-LLM Prompt Injection within Multi-Agent Systems
- 2026When Prompts Control Robots: Prompt Injection Attacks in Multi-Agent Robotic Systems
- 2025The Dark Side of LLMs: Agent-based Attack Vectors for System-level Compromise