Prismata limits cross-site prompt injection in web agents while keeping task utility
Prismata’s contextual least-privilege enforcement substantially reduces web agent prompt-injection success
AI/ML arXiv 9 Jul 2026 Defense Prototype evidence
Published as “Prismata: Confining Cross-Site Prompt Injection in Web Agents”
Why it matters
Deploying Prismata can dramatically lower the risk of cross-site prompt injection while keeping most of the agent’s usefulness, making it a practical hardening for current web-agent deployments.
Summary
Prismata cuts attack success from 85.5% to 0.7% and raises task completion under attack from 4.5% to 23.0%, while only modestly lowering benign task success from 29.9% to 26.6%. The evidence comes from WebArena experiments and a large corpus analysis showing that untrusted content rarely lies on critical paths.
What they found 2
- Attack success is reduced from 85.5% to 0.7% and task success under attack rises from 4.5% to 23.0%
“Prismata drives attack success rate down from 85.5% to 0.7% on average, while boosting task completion under attack from 4.5% to 23.0%.”
- Only 1.2% of untrusted DOM paths contain an actionable descendant
“Only 1,086 of the 90,408 untrusted paths (1.2%) contain an actionable descendant, an element the agent could click or fill”
Caveats 4
- Prismata preserves most benign utility, with task success changing from 29.9% without Prismata to 26.6% with Prismata enabled
- Prismata protects against XSP attacks where the attacker’s goal exceeds the task’s required privileges.
- Attacks within the privilege scope, such as fake reviews influencing product selection when the task requires reading reviews, fall within least privilege and are better addressed by model-level reasoning.
- Prismata operates in the textual input modality. While Prismata may be extended to support non-textual inputs ... we consider it beyond the scope of this work.
What’s new here 4
- Enforces contextual least-privilege for web agents without any developer annotations.
- Derives trust labels by examining only the critical DOM path to each interactive element, making labeling injection-free in most cases.
- Uses Biba-style no-read-down/no-write-up parsing of structural cues to bound mislabeling.
- Implements a deterministic mechanical confinement layer that filters observations and blocks disallowed actions.