Securing Computer-Use Agents Against Branch Steering Attacks

Giulio Zingrillo, Hanna Foerster, Ilia Shumailov, Yiren Zhao, Robert MullinsarXiv 2026

Computer-use agents (CUAs)—AI systems that can browse the web, click buttons, and use tools like a human—are becoming increasingly capable. However, their ability to process untrusted third-party content makes them prime targets for Indirect Prompt Injection (IPI).

A new paper from researchers at ETH Zurich, Cambridge, and Imperial College London introduces COBRA, a system-level defense designed to stop a particularly sneaky class of exploits: Branch Steering Attacks.

TL;DR

CUAs are vulnerable to "branch steering," where malicious web content tricks an agent into taking a dangerous but "pre-approved" action path. COBRA solves this by enforcing both control-flow and data-flow integrity, using a "blind" planner to set strict, ahead-of-time constraints on all possible execution branches, reducing attack success to 0% on a new benchmark.

What Problem Does This Paper Address?

The current gold standard for securing LLM agents is the Dual-LLM pattern. This architecture separates a trusted Planner (P-LLM), which defines the steps to take, from a Quarantined Executor (Q-LLM), which interacts with untrusted data. This provides Control-Flow Integrity (CFI)—the agent can't perform actions the planner didn't authorize.

However, the authors identify a critical flaw: in graphical environments, plans cannot be static. They must branch based on what the agent sees on screen (e.g., "If the price is under $50, click Buy; otherwise, click Cancel").

An attacker doesn't need to inject new instructions to hijack the agent. They just need to manipulate the data the agent sees (e.g., spoofing a price) to "steer" the agent down a hazardous branch that was technically pre-approved by the planner. This is a violation of Data-Flow Integrity (DFI).

Methods

The authors propose COBRA (Constraint-Based Runtime Architecture), which extends the Dual-LLM pattern to enforce DFI.

Figure 1: The overall design of COBRA. COBRA separates planning from untrusted interaction by using the P-LLM and Q-VLM, and achieves Control Flow Integrity (CFI). The Branch Resolution Hub (BRH) checks runtime values against the committed plan, and HTTP and MCP proxies apply the enforcements, and achieves Data Flow Integrity (DFI).

Key components include:

  • Constraint-Annotated Planning: The P-LLM generates a branching program before seeing any untrusted runtime data. Crucially, it attaches "capability constraints" to every branch—strictly defining which domains, endpoints, and parameters are allowed.
  • Branch Resolution Hub (BRH): At runtime, the quarantined model (Q-VLM) provides visual observations. The BRH validates these observations against the P-LLM’s pre-defined constraints before any action is dispatched.
  • Deterministic Proxies: COBRA places enforcers at the HTTP and Model Context Protocol (MCP) boundaries. If an agent tries to send a request that violates the resolved constraints (e.g., a different destination or a modified field), the proxy blocks it.
  • Fused Planning: Because the P-LLM is "blind" to the current UI, it might miss edge cases. COBRA generates five candidate plans in parallel and merges them into one robust branching program to improve reliability.
  • MESA: A new tool that crawls websites to generate "sitemaps," providing the planner with the necessary vocabulary of valid operations for a given site.

Datasets

The researchers introduced STEER-Bench, the first systematic benchmark for branch steering. It consists of 101 tasks across 9 real-world domains (like banking, logistics, and clinical adjustments).

They also evaluated COBRA on:

  • OSWorld-MCP: A benchmark for tool-use and GUI interaction.
  • External Security Benchmarks: Including OS-Harm, WASP, MCPTox, and MCPSecBench to test general robustness against prompt injection and tool poisoning.

Key Insights and Ideas

  • CFI is insufficient for CUAs: Knowing what the agent will do isn't enough if an attacker can control the parameters of those actions. DFI is the missing piece of the puzzle.
  • The Network is the True Boundary: You can't easily secure a "mouse click" because its meaning is context-dependent. However, the resulting HTTP request or tool call is concrete and can be policed deterministically.
  • Planning doesn't require sight: A powerful LLM (like GPT-5) can plan effectively for a GUI task without seeing the screen, provided it has a structured description (sitemap) of the target application.
  • Fused Planning as a Utility Booster: Merging multiple "blind" guesses about a UI's state allows the agent to handle unexpected pop-ups or layout changes without needing to go back to the expensive P-LLM.

Key Results

COBRA demonstrates that it is possible to achieve near-perfect security without sacrificing significant utility.

Table 1: STEER-Bench results. “Cells” denotes the number of attack cases evaluated in each suite. ASR is the fraction of cases in which the targeted harmful action reaches the HTTP or MCP boundary. ASR (on) uses the complete COBRA system, whereas ASR (off) disables only the listed component. The ReAct and Dual-LLM columns report ASR for the standard ReAct baseline and the dual-LLM baseline of Foerster et al. (2026), respectively.
  • Security: On STEER-Bench, standard agents had a 94.4% attack success rate, and vanilla Dual-LLM agents had 89.5%. COBRA reduced this to 0%.
  • Utility: COBRA retained 97% of benign utility on STEER-Bench.
  • Performance: On OSWorld-MCP, the COBRA configuration (GPT-5 planner + UI-TARS executor) outperformed a standard ReAct agent, completing 36.8% of tasks vs 23.5%.
Table 2: Task completion on 361 OSWorld-MCP tasks under pass@5 with early stopping. Completion requires an exact OSWorld score of 1.0. Adding gpt-5 planning improves completion over the model-matched UI-TARS ReAct baseline, whereas using kimi-k2.5 or Sonnet-5 in both COBRA roles does not preserve their ReAct performance. OpenCUA results are reported in Appendix H.

Limitations and Future Work

  • Semantic Blindness: COBRA enforces structural constraints (e.g., "this field must be a number"). It cannot currently distinguish between "polite" vs. "offensive" free-form text if both are sent to an authorized endpoint.
  • Unsupported Channels: The current implementation focuses on HTTP and MCP. Actions involving the local filesystem or other protocols (like SMTP for email) would require additional specialized proxies.
  • Sitemap Dependency: Fine-grained enforcement relies on having a sitemap. While MESA can generate these, the authors note that official sitemaps provided by site owners would be the ideal "gold standard" for security.
  • Planner Training: The authors suggest that future work could involve training models specifically to be better "blind planners," rather than relying on prompting general-purpose LLMs.

Summary updated

BibTeX
@misc{zingrillo2026securing,
  author = {Giulio Zingrillo and Hanna Foerster and Ilia Shumailov and Yiren Zhao and Robert Mullins},
  title = {{Securing Computer-Use Agents Against Branch Steering Attacks}},
  year = {2026},
  eprint = {2610.03089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.03089},
}
Figure