Web agents that read and act on third-party pages are vulnerable to that divert them from user goals. Current defenses train on fixed injections, which adaptive attackers bypass. AdvSim2Real instead co-evolves a task curriculum, an injection adversary, and the agent inside a frozen web world model. The curriculum selects tasks the agent solves roughly half the time, and the adversary is rewarded only for injections that flip a successful clean run into a failure. On 150 form-filling tasks, a 4B agent trained with AdvSim2Real improved clean completion from 74.89% to 81.33% and raised completion under three learned adversaries from 48.07% to 57.48%. Against a frontier-model adversary it never saw during training (Kimi-K3), completion rose by 33.6% relative to the base agent. The capability gain transferred to a real browser, with strict success on submitted forms increasing from 25.56% to 44.44%. The work is interesting because it shows that with adaptive tasks and attacks inside a simulator can make a smaller agent both more capable and more robust, even against unseen adversaries. It also provides a benchmark and released artifacts for evaluating injection defenses.
Adaptive simulated training makes web agents more resistant to prompt injection
Co-evolving tasks and attacks improved a 4-billion-parameter agent’s completion rates in simulation, including against an unseen adversary.
Big Tech
Sarim Hashmi · Mukul Ranjan · Kshitij Mishra · Mikhail Kuznetsov · Praneeth Vepakomma · Nils Lukas
Mohamed bin Zayed University of Artificial Intelligence · Amazon · Massachusetts Institute of Technology
Research Digest··2 min read
Thread:Agent Security & Attacks
In one line
AdvSim2Real co-evolves tasks, attacks, and a web agent in a simulated world, raising task completion under unseen attacks by 33.6%.
Before you read this
Three ideas this paper builds onworld model for agentsA predictive environment model that agents use to simulate outcomes, enabling planning, reasoning, and long-horizon task execution.119 papers →prompt injectionA security attack where malicious instructions are embedded into inputs to override an LLM's intended behavior.86 papers →self-evolving agentAn agent that improves by reusing its own experience, memory, or self-generated feedback, with success depending on verification and design.97 papers →
Read it as
Hashmi et al. trained a web agent alongside an adaptive task curriculum and prompt-injection adversary inside a frozen model of web interactions.
The authors developed AdvSim2Real, a two-stage training framework built around WebWorld-14B, a frozen model that predicts how webpages change after an agent acts.
How it works
stage by stageThe Daily Edition
The front page in your inbox each weekday morning: the lead, the picks, and why each one earned its place.