mlsanityData to 14 Oct 2026

Preventing Prompt Injection with Type-Directed Privilege Separation

arXiv 2509.25926 ↗First posted 30 Sep 2025cs.CR cs.LGcited by 9

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

  1. 2025Design Patterns for Securing LLM Agents against Prompt Injections10 Jun
  2. 2025Defeating Prompt Injections by Design24 Mar
  3. 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agents17 Mar
  4. 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar

Other references · 21

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  3. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  5. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  6. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
  7. 2016OpenAI Gymcited by 1,736
  8. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
  9. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
  10. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  11. 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 546
  12. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
9 more
  1. 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 431
  2. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
  3. 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
  4. 2025Securing AI Agents with Information-Flow Controlcited by 121
  5. 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuningcited by 106
  6. 2024System-Level Defense against Indirect Prompt Injection Attacks: An Information Flow Control Perspectivecited by 96
  7. 2025PromptShield: Deployable Detection for Prompt Injection Attackscited by 50
  8. 2023Tricking LLMs into Disobedience: Formalizing, Analyzing, and Detecting Jailbreakscited by 49
  9. 2025JailbreaksOverTime: Detecting Jailbreak Attacks Under Distribution Shiftcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 9.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks
  2. 2026AgentVisor: Defending LLM Agents Against Prompt Injection via Semantic Virtualization
  3. 2025DRIFT: Dynamic Rule-Based Defense with Injection Isolation for Securing LLM Agents
  4. 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
  5. 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injection
  6. 2026PlanGuard: Defending Agents against Indirect Prompt Injection via Planning-based Consistency Verification
  7. 2025PromptSleuth: Detecting Prompt Injection via Semantic Intent Invariance
  8. 2025IPIGuard: A Novel Tool Dependency Graph-Based Defense Against Indirect Prompt Injection in LLM Agents