← Lab /AI/ML

Agent security must be defined by context, not just action content

Current content-based framing misdefines agent security and a contextual framework is required

AI/ML arXiv 24 Jul 2026 Position Theory

Published as “Agent Security Needs Redefinition through a Holistic Framework”

Why it matters

Adopting the four-property framework could guide the design of more precise agent security benchmarks and defenses that account for authorization context rather than just instruction content.

Summary

The authors find that every injection task in AgentDojo and WASP can be paired with a plausible legitimate scenario, showing that current content-based definitions conflate legitimate and malicious actions. They argue that agent security must be defined via four contextual properties (Source Authorization, Task Alignment, Action Alignment, Data Isolation) and that existing benchmarks and defenses miss violations that require continuous, trajectory-wide checks. The paper provides a conceptual framework and manual analysis of 45 tasks but offers no quantitative experimental evaluation.

What they found 2

  1. All injection tasks in AgentDojo and WASP can be mapped to plausible legitimate scenarios, exposing a structural conflation in current evaluations.

    “Across every injection task in AgentDojo and WASP, the same action is one an authenticated user would plausibly request in a routine workflow, which makes the conflation a structural property of evaluating security through content.”

  2. Manual inspection of 45 injection tasks found at least one legitimate scenario for each.

    “One author manually examined every injection task in AgentDojo (Debenedetti et al., 2024) and WASP (Evtimov et al., 2025), 45 tasks in total, and constructed a plausible legitimate scenario for each. All 45 admit at least one such scenario.”

What’s new here 4

  • Introduces a four-property contextual security framework for agents (Source Authorization, Task Alignment, Action Alignment, Data Isolation).
  • Demonstrates that existing benchmarks (AgentDojo, WASP) treat identical surface text as both legitimate and malicious, a structural conflation.
  • Reframes existing defenses around the specific properties they approximate, highlighting gaps such as missing Data Isolation checks.
  • Identifies the need for continuous, trajectory-level evaluation rather than snapshot benchmarks.