TL;DR
Current AI agent security benchmarks and defenses mistakenly focus on what an agent is asked to do rather than who asked it and why. This paper argues that agent security is fundamentally a contextual problem and introduces a holistic framework based on four classical systems security properties—Source Authorization, Task Alignment, Action Alignment, and Data Isolation—to properly define, evaluate, and defend AI agents.
What Problem Does This Paper Address?
Existing agent security paradigms treat security primarily as a question of action content. Defenses scan text for adversarial patterns, and benchmarks evaluate whether an agent refuses to execute harmful-sounding commands like "delete user data" or "transfer funds."
The authors argue that this content-based framing is fundamentally flawed. As shown in Figure 1, the exact same command can be a routine administrative request from an authorized user or a malicious prompt injection from an untrusted document.
By ignoring the surrounding authorization context, current content filters face a structural ceiling: they are forced into a binary choice between over-blocking legitimate requests (destroying utility) and letting actual attacks slip through. Furthermore, current "snapshot" benchmarks evaluate interactions in isolation, making them completely blind to temporal attacks like memory poisoning or cross-session data leaks.
Methods
Instead of building better content classifiers, the authors propose adapting mature authorization principles from classical systems security to create a contextual security framework. They operationalize this by decomposing authorization into four core properties that must hold jointly and be evaluated continuously across an agent's trajectory:
- Source Authorization: Who issued the command, and does that source have the authority to do so? (e.g., Is the command coming from an authenticated user or an untrusted webpage?)
- Task Alignment: Is the agent's overall governing objective sanctioned by an authorized source?
- Action Alignment: Does each individual action step actually serve the authorized objective?
- Data Isolation: Does the flow of information respect privilege boundaries across users, sessions, and tasks?
The authors use this framework to systematically reclassify common attack vectors. For example, indirect prompt injection is reframed as a Source Authorization violation (the classic "confused deputy" problem), while jailbreaking and task drift are classified as Task Alignment violations.
Datasets
The paper provides an empirical analysis of three major existing agent security benchmarks:
- AgentDojo
- WASP
- SHADE Arena
The authors manually reviewed all 45 injection tasks across AgentDojo and WASP to verify whether the "malicious" actions could ever be requested legitimately by an authenticated user.
Key Insights and Ideas
- 100% Context Dependency: The manual audit revealed that every single one of the 45 injection tasks in AgentDojo and WASP represents an action that an authenticated user would plausibly request in a routine workflow. This proves that evaluating security purely through action content is structurally broken.
- The Blind Spot of Snapshot Evaluations: Because current benchmarks reset the agent's context between tasks, they cannot detect Data Isolation failures—such as an agent extracting an API credential during a development session and leaking it into production code multiple steps later.
- Cascading Violations: Attacks often trigger a chain reaction across properties. An initial Data Isolation failure (like memory poisoning) can later cause a Source Authorization failure when the agent treats the poisoned memory as an authoritative command.
- Tunable Security Frontiers: Unlike content filtering, which offers no parameters to tune, a property-based framework allows operators to allocate defensive resources dynamically. For instance, an application processing untrusted emails can heavily secure Source Authorization and Data Isolation while keeping other checks lightweight.
Key Results
- Benchmark Analysis: The paper demonstrates that existing evaluation infrastructure conflates capability with security. For instance, some agents are deemed "safe" by benchmarks simply because they lack the technical capability to complete an injected task, rather than because they successfully blocked an unauthorized command.
- Reframing Defenses: The authors show that existing defenses can be reusefully mapped to this framework. Input filtering approximates Source Authorization, LLM-as-a-judge guardrails approximate Task/Action Alignment, and RAG permission scoping approximates Data Isolation.
Limitations and Future Work
- Intent Inference is Hard: Implementing this framework requires reliably tracking agent state and inferring intent. Distinguishing between a benign "task refinement" (e.g., an agent expanding a debugging task to update a related security library) and actual "task drift" remains a difficult inference problem.
- Provenance Tracking Overhead: Tracking data provenance through neural execution and across complex tool boundaries is computationally expensive and lacks mature infrastructure in current LLM orchestration frameworks. The authors point to tracking provenance through neural states as a critical direction for future interpretability research.
Summary updated