Before Acting, Change the State: Prospective State Intervention for Web Agents under Deceptive Interfaces
Abstract
LLM-based Web agents can autonomously complete user tasks, yet deceptive interfaces can steer them toward outcomes that conflict with users' interests. Existing defenses primarily intervene on agent behavior through blocking, guidance, or replanning. We identify a distinct failure mode: a task-valid action can still realize an unauthorized consequence because of the current Web state. This motivates treating task-relevant Web state itself as a runtime control target. We introduce Veer, an agent-side runtime defense that leaves task planning to the base agent and intervenes on Web state when a proposed action would produce an unauthorized consequence. Before modifying the live environment, Veer constructs a prospective intervention trajectory toward a safe task-relevant state and executes it with runtime grounding and verification. Across TrickyArena and WebDecept, Veer achieves the highest safe task completion in all three evaluation settings, exceeding the next-best defense by 15.9 and 25.0 percentage points on TrickyArena-Single and TrickyArena-Multi, respectively, while reducing dark-pattern success on WebDecept to 0.3%. These gains persist across dark-pattern types and all 12 agent, model, and benchmark configurations. Ablations show that active state intervention provides the largest gain, while prospective rollout and temporal evidence contribute additional improvements. These results establish task-relevant Web state as an effective runtime control target for protecting Web agents from deceptive outcomes.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CR
Related papers
Learning What to Change: State-Verified Reinforcement Learning for Educational Agents
Shared title terminologycs.AIShengyao Wang, Siyuan Su, Siyu Song et al.
Learning What vs. Learning How: Decomposing Task and Interface Competence in Agentic Training
Shared title terminologycs.AIChaeeun Lee, Hossein A. Rahmani, Aryo Pradipta Gema et al.
SWAM: State-aware World Action Model for Multi-Agent 3D Environments
Shared title terminologycs.AIJenna Kang, Bingxuan Li, Colin Groth et al.
GUITAR: Structured Failure Diagnosis of GUI Agents via State Transitions
Shared title terminologycs.AIShaoqing Zhang, Kehai Chen, Xuefeng Bai et al.
Engineering Simplicity: Simple Mechanism Interfaces Steer LLM Agents
Shared title terminologycs.AIKehang Zhu, Anand Shah, David Parkes
PhoneCLI: From App Interfaces to Callable Commands for Mobile Agents
Shared title terminologycs.AIYangqin Jiang, Lingrui Xu, Chao Huang