Papers
arxiv:2610.08773

AdvSim2Real : Training Web Agents Against Adaptive Prompt Injection in a Web World Model

Published on Oct 6
· Submitted by
SARIM HASHMI
on Oct 7
Authors:
,
,
,

Abstract

Web agents complete user requests by reading and acting on pages that third parties write, so an instruction planted on a page can redirect the agent away from the user's goal. The agent cannot simply ignore the page, because the page also holds the values and controls the task requires. Current defenses fine-tune the agent on injections fixed before training, and attackers that adapt to the trained model bypass them. Adversarial training lets the attacker adapt but keeps the tasks fixed, so a task stops teaching once the agent solves it. We introduce AdvSim2Real, which co-evolves a task curriculum, an injection adversary, and the agent inside a frozen web world model. The curriculum is rewarded for tasks the agent solves about half of the time, and the adversary only for a success flip, an injection that turns a judged success into a failure. Training in the simulator makes a 4B agent both more capable and more robust: its completion rises with and without attacks, holds against a frontier-model adversary it never trained against, and its capability gain carries over to a real browser. On 150 web tasks, AdvSim2Real raises completion under this unseen adversary by 33.6\% relative to the base agent.

Community

Paper author Paper submitter

The paper introduces AdvSim2Real, a training framework that makes web agents more capable and resistant to prompt injection by having three components co-evolve in a simulated web environment: a curriculum generates tasks the agent solves about half the time, an adversary learns injections that specifically turn successful runs into failures, and the agent trains against those attacks plus previous ones. On 150 web tasks, the 4B agent’s clean completion improved from 74.89% → 81.33%, attacked completion from 48.07% → 57.48%, and performance against an unseen Kimi-K3 attacker from 23.00% → 30.72%, a 33.6% relative improvement; its capability also transferred to a real browser, where strict task success rose from 25.56% → 44.44%.

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2610.08773
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2610.08773 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2610.08773 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2610.08773 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.