Browser-native trust anchor stops revocation attacks and blocks prompt injection in LLM agents
WebMCP-Phalanx eliminates revocation/overwrite attacks and blocks all prompt-injection attempts in its evaluation
arXiv 25 Aug 2026 Defense Prototype evidence
Published as “WebMCP-Phalanx: Enforcing and Characterizing Trust Boundaries for Browser-Integrated LLM Agents”
Why it matters
The work gives W3C and browser vendors concrete, deployable mitigations for emerging LLM-agent threats on the Web before the WebMCP spec stabilizes.
Summary
WebMCP-Phalanx eliminates tool revocation and replacement attacks, dropping their success rate from 100% to 0% in a real browser implementation, and fully blocks cross-page semantic residual attacks, reducing their success rate to 0%. The system combines browser-enforced capability-based trust labels with a multi-agent quarantine layer that inspects tool descriptions and returned content. However, subject attribution remains only partially addressed and a small residual (2/80) of return-content attacks persists, while an adaptive attacker can bypass description defenses by moving payloads into task-fitting tool names.
What they found 5
- Browser-layer defenses reduce tool revocation and replacement attack success from 100% to 0%
“At the browser layer, our defense mechanisms reduce the success rates of tool revocation and replacement attacks from 100% to 0% under the evaluated settings”
- Labels alone fail to stop most injection attacks (89% description, 48% return)
“L1 confirms the labels’ blind spot to content injection: with labels alone, 89% of description injections and 48% of return injections still penetrate, close to the undefended baseline.”
- The full framework eliminates cross-page semantic residual attacks (0% success)
“Our Framework 0%”
- Multi-agent quarantine eliminates description-injection across all name relevance tiers
“Not observed; 0% across all name relevance tiers (Table 4).”
- Attack success rises with tool-name relevance when only rule-based stripping is used
“ASR rises from 0% to 70% as name relevance increases (Table 4).”
Caveats 7
- subject attribution remains only partially addressed since any same origin script obtains a capability of its own once it registers a tool, degenerating the origin dimension.
- the 2/80 residuals at L2 and L3 are disjoint, and the matching rates are coincidental.
- This attacker bypassed 15 of 16 description-layer payloads with a median of one rewrite round, succeeding not by defeating Q’s semantic judgment but by relocating the payload onto the task-fitting tool name.
- Our reference implementation operates as a JavaScript polyfill, so two security assumptions are emulated rather than natively implemented.
- A capability also acts as a bearer credential and remains vulnerable to the confused deputy problem: a registrant that leaks its handle, or that exposes a function revoking tools on its behalf, forfeits the ownership guarantee.
- Runtime Observation is a post-execution detection mechanism, so the first-order side effects of an initial violation cannot be prevented.
- Within the observation window of an asynchronous execute operation, the monitor may also fail to attribute DOM mutations to a specific tool, leading to attribution collisions.
What’s new here 4
- Combines browser-level capability enforcement with multi-agent semantic inspection to defend both structural and content-level attacks.
- Introduces trust labels that are minted by the browser and cannot be forged by page scripts.
- Extends the lifecycle of trust labels to invalidate residual content across page transitions.
- Demonstrates a systematic defense framework (WebMCP-Phalanx) evaluated in a real-world browser environment.