arXiv(opens in a new tab)cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.09469

Secure-CUA: Controlling Untrusted Influence in Computer-Use Agents

Sarthak Choudhary, Mihai Christodorescu, Ashish Hooda, Somesh Jha, Tongxin Li, Damien Octeau

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Sarthak Choudhary ∗1^{*1}, Mihai Christodorescu 2^{2}, Ashish Hooda 3^{3}, Somesh Jha 1,2^{1,2}, Tongxin Li 2^{2} and Damien Octeau 2^{2}

1^{1}University of Wisconsin–Madison, 2^{2}Google, 3^{3}Google DeepMind

Computer-use agents (CUAs) perform tasks across applications (such as desktops, mobile apps, and web browsers) by observing graphical interfaces and issuing commands such as clicks and keystrokes. These interfaces combine trusted controls and content with untrusted content needed for legitimate tasks. An adversary controlling this untrusted content can embed instructions or misleading visual cues to change the agent's intended action or redirect its commands to the wrong interface target. We formalize security requirements for both the agent's decisions and their execution through GUI commands. In an ideal execution model, we show that enforcing both requirements at each step protects execution traces. We instantiate this model in Secure-CUA, our system for secure CUA execution. Its key idea is to commit to an explicit per-action program, called an action transaction, before accessing untrusted content. Each transaction fixes its queries to untrusted content and the permitted uses of their responses. The system masks untrusted regions and evaluates each transaction to produce the next action, using an isolated query model to answer its queries. It then locates the intended interface target using the masked interface. Under the model's assumptions, Secure-CUA is secure by design, while generating a new transaction at each step helps maintain high task utility by adapting to changing interfaces.

We evaluate Secure-CUA under benign conditions on 400 WebArena tasks using three frontier models across 5 seeds, yielding 6,000 execution traces. Secure-CUA achieves an average task success rate of 53.55%, compared with 55.12% for Vanilla-CUA and 13.17% for CaMeL-CUA.

1. Introduction

Computer-use agents (CUAs) perform tasks across web, desktop, and mobile applications by observing graphical interfaces and issuing commands such as clicks, keystrokes, and scrolling (He et al., 2024; Rawles et al., 2025; Xie et al., 2024; Zhou et al., 2024). Application interfaces often present trusted controls and content alongside untrusted content, such as customer reviews, messages, and advertisements. An adversary controlling this content can embed instructions or misleading visual cues that redirect the agent's behavior (Cao et al., 2026; Evtimov et al., 2026; Patlan et al., 2025; Zhang et al., 2025). Many legitimate tasks nevertheless require information from untrusted content, so simply removing all such content can prevent task completion. This raises a central question: How can a CUA interact securely with graphical interfaces that combine trusted and untrusted content?

Each CUA interaction has two conceptual stages: action generation, which determines the next semantic action, and visual grounding, which translates that action into executable GUI commands (Liao et al., 2025; Zheng et al., 2024). Consider a CUA instructed to copy a review into a Description field. An instruction embedded in the review may persuade the CUA to change the Title field instead. Even if the CUA reasons to choose the Description field, a misleading visual content may cause visual grounding to return coordinates for the Title field. The former attack changes the intended action of the CUA, while the latter redirects a correctly reasoned action to a wrong target. Securing CUA requires protecting both the semantic actions and their corresponding execution.

Existing defenses address parts of this problem. Plan-then-execute systems separate trusted planning from untrusted data processing (Beurer-Kellner et al., 2025; Debenedetti et al., 2025; Piet et al., 2026). CaMeL-CUA extends this approach to GUI interaction, but its visual grounding may still

∗^{*}This work was done while Sarthak was a research intern at Google.

Corresponding author(s): secure-cua-authors@googlegroups.com © 2026 Google. All rights reserved process adversarial interface content (Foerster et al., 2026). Masking and interface policies limit what the CUA sees or where it acts (Nikolić et al., 2026; Villa et al., 2026), but do not necessarily control how untrusted content influences the CUA's actions. A secure CUA design must specify and enforce limits on which untrusted information may influence the CUA's execution and how it may do so.

We formalize these two requirements for secure CUA execution. Generation integrity limits untrusted influence on the CUA's semantic actions, while grounding integrity ensures that GUI commands carry out the chosen semantic action as intended despite untrusted content. We identify two principles for satisfying these requirements: observation isolation, which separates trusted and untrusted content, and bounded endorsement, which fixes what untrusted information may influence an action and how it may be used. Using an ideal execution model, we show that enforcing both requirements at each step protects the entire execution trace from unauthorized deviations.

We present Secure-CUA, which realizes this secure ideal model. Its idea is to commit to an action transaction, an explicit program for choosing the next semantic action, before accessing untrusted content. The untrusted content may supply values to predefined computations and branches, but cannot rewrite the program's logic. At each step, Secure-CUA masks untrusted content with labeled placeholders to construct a masked observation. It then generates a program that fixes its queries to untrusted content and specifies the permitted uses of their responses beforehand. It evaluates the program, obtains query responses through an isolated channel, and produces one semantic action. Secure-CUA grounds the action using the masked observation to produce GUI commands, and the runtime executes them in the environment. Secure-CUA is secure by design through observation isolation and bounded endorsement, while generating a new transaction at each step supports task utility by adapting to new interfaces.

We extensively evaluate Secure-CUA under benign conditions on 100 tasks from each of four WebArena websites (Zhou et al., 2024). We run each task over five seeds using three frontier models: Claude Opus 5, GPT-5.6-Sol, and Gemini 3.8 Flash. This produces 6,000 Secure-CUA execution traces. Secure-CUA achieves an average task success rate of 53.55%, compared with 55.12% for Vanilla-CUA, our baseline agent that generates GUI commands from unmasked observations, and 13.17% for CaMeL-CUA. We also analyze how Secure-CUA accesses untrusted information and report its token consumption and execution time. We will make our evaluation code publicly available.

We summarize our contributions as follows:

• Security principles and formal guarantees. We formalize generation and grounding integrity to establish an execution invariant: untrusted content can influence environment transitions induced by the agent only as permitted by bounded endorsement. Using an ideal execution model, we show that this invariant holds throughout every finite execution trace under trusted runtime mediation, for any admissible untrusted content.

• Secure-CUA. We design and implement Secure-CUA, which commits to an explicit action transaction before accessing untrusted content. Observation isolation, isolated queries, and interpreter enforcement ensure that retrieved information influences actions only through the committed program. Visual grounding maps these actions to GUI commands using masked observations, while generating a new transaction at each step enables adaptation to changing interfaces.

• Extensive evaluation. We evaluate Secure-CUA under benign conditions on 400 tasks from four WebArena applications using three frontier models and five seeds, yielding 6,000 execution traces. Secure-CUA achieves 53.55% average task success, close to Vanilla-CUA (55.12%) and substantially above CaMeL-CUA (13.17%). We also characterize its access to untrusted information and quantify its token consumption and execution latency.

References (2)

  • [...] prefer such a route to an indirect global search
  • the selected item