AgentVisor: Defending LLM Agents Against Prompt Injection via Semantic Virtualization
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
Large Language Model (LLM) agents are increasingly used to automate complex workflows, but integrating untrusted external data with privileged execution exposes them to severe security risks, particularly direct and indirect prompt injection. Existing defenses face significant challenges in balancing security with utility, often encountering a trade-off where rigorous protection leads to over-defense, or where subtle indirect injections bypass detection. Drawing inspiration from operating system virtualization, we propose AgentVisor, a novel defense framework that enforces semantic privilege separation. AgentVisor treats the target agent as an untrusted guest and intercepts tool calls via a trusted semantic visor. Central to our approach is a rigorous audit protocol grounded in classic OS security primitives, designed to systematically mitigate both direct and indirect injection attacks. Furthermore, we introduce a one-shot self-correction mechanism that transforms security violations into constructive feedback, enabling agents to recover from attacks. Extensive experiments show that AgentVisor reduces the attack success rate to 0.65%, achieving this strong defense while incurring only a 1.45% average decrease in utility relative to the No Defense scenario, demonstrating superior performance compared to existing defense methods.
Key facts. Cited by 6 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 11 of its 29 references that are in the map. First posted on arXiv 27 Apr 2026.
Builds on
11 of 29 references.
References · 11
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2025GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Modelscited by 467
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
- 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 267
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
- 2024EASYTOOL: Enhancing LLM-based Agents with Concise Tool Instructioncited by 154
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
- 2025Defending Against Prompt Injection With a Few DefensiveTokenscited by 33
- 2025PromptLocate: Localizing Prompt Injection Attackscited by 28
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026SkillJack: Persistent Skill Backdoors in Self-Evolving Agentscited by 6
- 2026Protocol-Level Attacks on Agentic Commerce Platforms: A Cross-Platform Taxonomy, AIP-Bench, and Unified Defensecited by 2
- 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directionscited by 1
- 2026Beyond Aggregate Risk: Role-Stratified Conformal Risk Control for LLM Tool Callscited by 1
- 2026Security Assessment of DeepSeek Harness with A.I.G: Evaluating Resistance to Indirect Prompt Injectioncited by 1
- 2026Delegated Misalignment: How Multi-Agent Structures Amplify LLM Safety Riskscited by 0
- 2026Delegated Misalignment: How Multi-Agent Structures Amplify LLM Safety Risks26 Aug 2026
- 2026Security Assessment of DeepSeek Harness with A.I.G: Evaluating Resistance to Indirect Prompt Injection17 Aug 2026
- 2026SkillJack: Persistent Skill Backdoors in Self-Evolving Agents4 Aug 2026
- 2026Beyond Aggregate Risk: Role-Stratified Conformal Risk Control for LLM Tool Calls27 Jul 2026
- 2026Protocol-Level Attacks on Agentic Commerce Platforms: A Cross-Platform Taxonomy, AIP-Bench, and Unified Defense23 Jul 2026
- 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directions14 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation
- 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injection
- 2025AgentSentinel: An End-to-End and Real-Time Security Defense Framework for Computer-Use Agents
- 2025SIEVE: Selective Integrity Verification and Escalation for Defending LLM Agents against Indirect Prompt Injection
- 2026Securing LLM Agents Need Intent-to-Execution Integrity
- 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agents
- 2026SafeClawBench: Separating Semantic, Audit-Evidence, and Sandbox Harm in Tool-Using LLM Agents
- 2025The Dark Side of LLMs: Agent-based Attack Vectors for System-level Compromise