AgentHijack: Benchmarking Computer Use Agent Robustness to Common Environment Corruptions

Jingwei Sun, Jianing Zhu, Yuanyi Li, Tongliang Liu, Xia Hu, Bo Han

Autonomous computer-use agents powered by multimodal large language models (MLLMs) are rapidly evolving. In controlled demonstrations, these agents can effortlessly navigate graphical user interfaces to book flights, organize spreadsheets, and execute complex digital workflows. However, real-world execution environments are rarely pristine.

When deployed in the wild, agents encounter a barrage of everyday digital noise: unexpected pop-ups, sudden resolution changes, accidental mouse clicks, or transient network failures. While existing benchmarks primarily evaluate task success in "cleanroom" conditions or test defenses against malicious adversarial attacks, they largely ignore these unintentional, everyday disruptions.

To bridge this gap, researchers introduce AgentHijack, a comprehensive benchmark designed to evaluate the robustness of computer-use agents against common environmental corruptions, alongside a novel framework to mitigate these vulnerabilities.

The AgentHijack Benchmark

AgentHijack systematically introduces "messiness" into agent evaluation. Built on top of the robust OSWorld environment, the benchmark expands 369 real-world computer tasks into a massive evaluation suite of 3,321 tasks by applying 9 configurable corruptions. These corruptions are categorized into three main types:

  • Visual Disruptors: UI elements that obscure or alter the screen, such as pop-up notifications, system resolution changes, desktop marks (like screensavers), and video subtitles.
  • Unexpected Operations: Unintended system interactions, including accidental mouse touches, multi-application interference, and sudden window minimizations.
  • Environment Errors: System-level roadblocks, such as network connectivity drops and unexpected login or verification screens.

Testing 9 representative models—ranging from closed-source giants like GPT-4o and Claude 3.7-Sonnet to specialized open-source models like the UI-TARS series—revealed that current state-of-the-art agents are surprisingly fragile.

Why Do Agents Fail? Key Insights

The benchmark exposes several critical cognitive and operational flaws in current MLLM agents:

  1. The "Normalcy" Bias: Agents often operate under the assumption that the environment is always functioning perfectly. If a network error occurs, the agent fails to recognize the broken state and repeatedly attempts the same fruitless clicks—a loop the researchers term "meaningless attempts."
  2. Misattribution of Change: When an external event alters the screen (e.g., an accidental click opens a new menu), agents frequently misattribute the resulting visual change to their own previous action. This breaks their logical reasoning chain and derails the task.
  3. Brittle Grounding: Even highly capable models struggle to map text commands to specific pixel coordinates when visual noise is introduced. A simple subtitle or screensaver mark can cause an agent to "miss" a target button that remains fully visible.

The AgentHijack-Agent Framework

To address these vulnerabilities, the researchers propose a dual-module architecture designed to "ruggedize" AI agents:

  • The Onlooker: Acting as a continuous sanity checker, this module summarizes actual screen changes following an action, capturing external events the main agent might miss. It also performs initial environment checks to ensure the system isn't blocked by a login wall or network error.
  • The Action Generator: The core decision-making engine, enhanced using Data-Augmented Group Relative Policy Optimization (DA-GRPO). This reinforcement learning technique trains the agent across various corrupted environments, teaching it to ignore irrelevant noise and maintain focus on the primary goal.

Performance and Results

The experimental results underscore both the severity of the problem and the efficacy of the proposed solution.

Under clean conditions, the state-of-the-art UI-TARS-1.5-7B model achieved a success rate of 24.21%. However, when subjected to AgentHijack's corruptions, its performance plummeted to an average of 18.74%.

Implementing the AgentHijack-Agent framework significantly mitigated this degradation, lifting the average success rate back to 22.89% (a 4.15% absolute improvement over the baseline). The dual-module system proved particularly effective at handling specific disruptions, yielding massive gains against pop-ups (+11.23%) and verification screens (+9.67%), largely due to the Onlooker’s ability to dismiss distractions and identify environmental blocks early.

Limitations and Future Directions

While AgentHijack marks a crucial step toward building resilient autonomous agents, significant challenges remain. Even with the proposed improvements, an absolute success rate of ~23% indicates that these models are not yet ready for fully autonomous, unsupervised deployment in noisy environments.

Furthermore, running a secondary "Onlooker" module introduces computational overhead, increasing both latency and API costs. Future research must explore more efficient methods to integrate this auxiliary perspective directly into a single, unified model. Finally, real-world environments often feature multiple, overlapping corruptions simultaneously—a dynamic complexity that remains a frontier for future benchmarking and model training.

Summary updated

BibTeX
@inproceedings{sun2026agenthijack,
  author = {Jingwei Sun and Jianing Zhu and Yuanyi Li and Tongliang Liu and Xia HU and Bo Han},
  title = {{AgentHijack: Benchmarking Computer Use Agent Robustness to Common Environment Corruptions}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=0H5Im3Xvuf},
}

Loading related content...

Figure