Preventing Prompt Injection with Type-Directed Privilege Separation
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Modern language models have enabled the development of agentic systems that achieve strong performance on reasoning-intensive tasks. Unfortunately, this has come with a security cost; these systems are vulnerable to prompt injection, a specialized attack where an adversary subverts the intended functionality of an agent by supplying an injected task of their own. Previous approaches address this challenge with detectors and fine-tuning defenses but are vulnerable to adaptive attacks. Other methods propose system-level defenses that guarantee security, but these are often based on techniques that prevent inter-component communication and thus are constrained in problem coverage. To this end, we introduce type-directed privilege separation, a new technique that expands the set of tasks that can be protected with system-level defenses. Our method works by converting untrusted data to a curated set of data types; unlike raw strings, each data type is limited in scope and content, eliminating the possibility for prompt injection. We evaluate our method across several case studies and find that designs using our principles can systematically prevent prompt injection attacks while featuring strong, non-trivial utility. Our approach is intuitive to understand and compatible with any language model.
Key facts. Cited by 9 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 25 of its 45 references that are in the map. First posted on arXiv 30 Sep 2025.
Builds on
25 of 45 references.
Closest ancestors · 4
Same direction, newest first
- 2025Design Patterns for Securing LLM Agents against Prompt Injections10 Jun
- 2025Defeating Prompt Injections by Design24 Mar
- 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agents17 Mar
- 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar
Other references · 21
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2016OpenAI Gymcited by 1,736
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 546
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
9 more
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 431
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
- 2025Securing AI Agents with Information-Flow Controlcited by 121
- 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuningcited by 106
- 2024System-Level Defense against Indirect Prompt Injection Attacks: An Information Flow Control Perspectivecited by 96
- 2025PromptShield: Deployable Detection for Prompt Injection Attackscited by 50
- 2023Tricking LLMs into Disobedience: Formalizing, Analyzing, and Detecting Jailbreakscited by 49
- 2025JailbreaksOverTime: Detecting Jailbreak Attacks Under Distribution Shiftcited by 5
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecyclecited by 27
- 2026Assessing Automated Prompt Injection Attacks in Agentic Environmentscited by 7
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 7
- 2026Twin Agent: Context Residual Compression for Privilege Separated Agentscited by 0
- 2026PIPES: Securing Agent Perception with Provenance and Priorscited by 0
- 2026If Agents Were Angels, No Governance Would Be Necessary: Out-of-Band Policy Enforcement at a Trusted Tool Boundarycited by 0
- 2026A Proposal for an Agentic AI Architecture to Support Multi-Domain Decision-Making in the Brazilian Armed Forcescited by 0
- 2026Secure-CUA: Controlling Untrusted Influence in Computer-Use Agentscited by 0
- 2026Kairos: Transactional Security Enforcement at the System Boundary for LLM Agentscited by 0
- 2026Kairos: Transactional Security Enforcement at the System Boundary for LLM Agents13 Oct 2026
- 2026Secure-CUA: Controlling Untrusted Influence in Computer-Use Agents7 Oct 2026
- 2026A Proposal for an Agentic AI Architecture to Support Multi-Domain Decision-Making in the Brazilian Armed Forces17 Sep 2026
- 2026If Agents Were Angels, No Governance Would Be Necessary: Out-of-Band Policy Enforcement at a Trusted Tool Boundary27 Aug 2026
- 2026PIPES: Securing Agent Perception with Provenance and Priors13 Aug 2026
- 2026Twin Agent: Context Residual Compression for Privilege Separated Agents21 Jul 2026
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation9 Jun 2026
- 2026Assessing Automated Prompt Injection Attacks in Agentic Environments9 Jun 2026
- 2026A Survey on Long-Term Memory Security in LLM Agents: Attacks, Defenses, and Governance Across the Memory Lifecycle17 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks
- 2026AgentVisor: Defending LLM Agents Against Prompt Injection via Semantic Virtualization
- 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agents
- 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
- 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injection
- 2026PlanGuard: Defending Agents against Indirect Prompt Injection via Planning-based Consistency Verification
- 2025PromptSleuth: Detecting Prompt Injection via Semantic Intent Invariance
- 2025IPIGuard: A Novel Tool Dependency Graph-Based Defense Against Indirect Prompt Injection in LLM Agents