mlsanityData to 14 Oct 2026

AgentVisor: Defending LLM Agents Against Prompt Injection via Semantic Virtualization

arXiv 2604.24118 ↗First posted 27 Apr 2026cs.CRcited by 6

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

  1. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  2. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  3. 2025GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Modelscited by 467
  4. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
  5. 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 267
  6. 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
  7. 2024EASYTOOL: Enhancing LLM-based Agents with Concise Tool Instructioncited by 154
  8. 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
  9. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
  10. 2025Defending Against Prompt Injection With a Few DefensiveTokenscited by 33
  11. 2025PromptLocate: Localizing Prompt Injection Attackscited by 28

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation
  2. 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injection
  3. 2025AgentSentinel: An End-to-End and Real-Time Security Defense Framework for Computer-Use Agents
  4. 2025SIEVE: Selective Integrity Verification and Escalation for Defending LLM Agents against Indirect Prompt Injection
  5. 2026Securing LLM Agents Need Intent-to-Execution Integrity
  6. 2025Prompt Flow Integrity to Prevent Privilege Escalation in LLM Agents
  7. 2026SafeClawBench: Separating Semantic, Audit-Evidence, and Sandbox Harm in Tool-Using LLM Agents
  8. 2025The Dark Side of LLMs: Agent-based Attack Vectors for System-level Compromise