Preference Redirection via Attention Concentration: An Attack on Computer Use Agents

Dominik Seip, Matthias HeinCOLM 2026

TL;DR

PRAC (Preference Redirection via Attention Concentration) is a stealthy adversarial attack that manipulates Computer Use Agents (CUAs) by hijacking their internal attention mechanisms. By applying imperceptible perturbations to a single image—such as a product photo in a webshop—attackers can redirect an agent's "interest" and force it to select a specific target, achieving success rates of over 80% even across different fine-tuned versions of the model.

What Problem Does This Paper Address?

As Large Vision Language Models (LVLMs) evolve into autonomous Computer Use Agents (CUAs), they are being trusted to navigate the web, fill out forms, and make purchasing decisions. While researchers have heavily scrutinized these models for textual vulnerabilities like prompt injection, the vision modality remains a "blind spot" for security.

Current vision-based attacks often assume the attacker controls the entire screen or that a user will upload a malicious image. This paper explores a more realistic and dangerous threat: a malicious third-party seller on a trusted platform (like Amazon or Airbnb). The attacker only controls one small patch of the screen—their own product image—and aims to trick a benign user’s agent into choosing their product over others. Because the final action (e.g., "buy this shoe") is inherently benign, standard output filters and safety guardrails fail to detect the manipulation.

Methods

The authors introduce PRAC, a novel attack strategy that moves away from traditional cross-entropy loss on output text. Instead, it targets the model's internal state.

  1. Attention Concentration: PRAC optimizes a stealthy $\ell_\infty$-bounded perturbation on a target image patch to maximize the ratio of attention the model pays to that patch relative to the rest of the visual input.
  2. Strategic Targeting: To keep the optimization efficient, the attack only targets "active" attention heads (those that actually look at the image) and "image-centric" output tokens (words in the model's reasoning that are heavily influenced by visual data).
  3. Generalization Techniques: To ensure the attack works in the "wild," the authors optimize the perturbation across all possible grid positions on a webpage and against various "distractor" images. This makes the attack robust to layout changes that the attacker cannot control.
  4. White-Box to Grey-Box Transfer: While the attack is created using white-box access to a base model (like Qwen3-VL), the authors demonstrate that these adversarial images transfer effectively to fine-tuned versions of the model, creating a "grey-box" threat for commercial applications built on open-weights foundations.
Overview of the PRAC attack workflow, showing how an attacker optimizes a product image to hijack the agent's attention map.

Datasets

The researchers evaluated PRAC using two realistic scenarios:

  • Online Shopping: Using the Fashion Product Images Dataset, they built a mock webshop where an agent must select one of five products.
  • Accommodation Booking: Using the Inside Airbnb Dataset, they created a more complex environment where the agent chooses from eight listings, each containing structured data like ratings, prices, and room types.

Key Insights and Ideas

  • Attention as a Proxy for Choice: The core "aha moment" is that an agent's final choice is highly correlated with its internal attention distribution. By making the model "obsessed" with a specific patch, you can drive its decision-making without needing to know the exact coordinates it will eventually click.
  • Overcoming Primacy Bias: Many agents have a "positional bias," often defaulting to the first item in a list. PRAC is powerful enough to override this bias, steering the agent to the target regardless of where it appears in the search results.
  • The Vulnerability of Open-Weights: Because many companies build specialized CUAs by fine-tuning open-weights models (like Qwen or GLM), an attacker only needs the base model to craft a highly effective attack that transfers to the proprietary fine-tuned version.

Key Results

PRAC significantly outperforms existing adversarial baselines across multiple models and prompt settings.

  • High Success Rates: In the webshop setting, PRAC achieved a mean Selection Success Rate (SSR) of 83.7%, compared to a clean baseline of roughly 20%.
  • Superiority over Baselines: As shown in the table below, PRAC consistently beats other methods like standard cross-entropy (CE-t) and attention-regularized attacks (Cham).
Table 1: Selection success rate (%) for target product selection across different models and settings.
  • Robust Transfer: The attack showed near-lossless transfer to fine-tuned models like PEARL and SEA-LION-VL, maintaining SSRs within a few percentage points of the original white-box attack.
Table 2: Selection success rate (%) for transfer to model fine-tunes. Images are optimized for the Optim model and evaluated on the Transfer model; values show Mean ↓Difference (performance drop). We evaluate the three best-performing attacks across fine-tuned and related open-weights models (full names in main text). Transfer is near-lossless for PEARL, SEA-LION-VL and GLM-4.6V-FDM, and degrades substantially for Cosmos-Reason2, where PRAC drops to 35.0%–57.8%; even there it remains well above the clean baseline of ≈20%.

Limitations and Future Work

  • White-Box Requirement: The initial creation of the adversarial patch requires white-box access to the model's attention scores. While this covers many open-weights deployments, it is less effective against purely black-box proprietary APIs like GPT-4 or Gemini.
  • Defense Gap: The authors tested common defenses like "Instruction Hierarchy" and "Reflection Prompts," but found them insufficient to stop PRAC.
  • Future Directions: The authors suggest that future research should focus on developing truly robust CUAs, perhaps through adversarial training, and exploring how these attention-based attacks might be extended to fully black-box settings.

Summary updated

BibTeX
@inproceedings{seip2026preference,
  author = {Dominik Seip and Matthias Hein},
  title = {{Preference Redirection via Attention Concentration: An Attack on Computer Use Agents}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=RWjVvWp2Tf},
}
Figure