Papers › RedTeamCUA: Realistic Adversarial Testing of Computer-Use Agents in Hybrid Web-OS Environments

RedTeamCUA: Realistic Adversarial Testing of Computer-Use Agents in Hybrid Web-OS Environments

28 May 2025arXiv:2505.21936archive 2025-07-28

Zeyi Liao, Jaylen Jones, Linxi Jiang, Eric Fosler-Lussier, Yu Su, Zhiqiang Lin, Huan Sun

Computer-use agents (CUAs) promise to automate complex tasks across operating systems (OS) and the web, but remain vulnerable to indirect prompt injection. Current evaluations of this threat either lack support realistic but controlled environments or ignore hybrid web-OS attack scenarios involving both interfaces. To address this, we propose RedTeamCUA, an adversarial testing framework featuring a novel hybrid sandbox that integrates a VM-based OS environment with Docker-based web platforms. Our sandbox supports key features tailored for red teaming, such as flexible adversarial scenario configuration, and a setting that decouples adversarial evaluation from navigational limitations of CUAs by initializing tests directly at the point of an adversarial injection. Using RedTeamCUA, we develop RTC-Bench, a comprehensive benchmark with 864 examples that investigate realistic, hybrid web-OS attack scenarios and fundamental security vulnerabilities. Benchmarking current frontier CUAs identifies significant vulnerabilities: Claude 3.7 Sonnet | CUA demonstrates an ASR of 42.9%, while Operator, the most secure CUA evaluated, still exhibits an ASR of 7.6%. Notably, CUAs often attempt to execute adversarial tasks with an Attempt Rate as high as 92.5%, although failing to complete them due to capability limitations. Nevertheless, we observe concerning ASRs of up to 50% in realistic end-to-end settings, with the recently released frontier Claude 4 Opus | CUA showing an alarming ASR of 48%, demonstrating that indirect prompt injection presents tangible risks for even advanced CUAs despite their capabilities and safeguards. Overall, RedTeamCUA provides an essential framework for advancing realistic, controlled, and systematic analysis of CUA vulnerabilities, highlighting the urgent need for robust defenses to indirect prompt injection prior to real-world deployment.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2505.21936")

Code

Syntology Ran 3 of 17 code samples harvested from 1 repository linked to this paper; 14 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong.

By repository: official repository: 17 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

osu-nlp-group/redteamcua officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 3 ran; 1 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
14unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from osu-nlp-group/redteamcua. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

encode_image osu-nlp-group/redteamcua/mm_agents/agent.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 78ee6b46cebd99ee · report
encoded_img_to_pil_img osu-nlp-group/redteamcua/mm_agents/agent.py official repository ran · honoured contract Apache-2.0 (permissive) · 4f7312030f5ef2a1 · report
save_to_tmp_img_file osu-nlp-group/redteamcua/mm_agents/agent.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 32fccbc780176119 · report
check_server_ready_owncloud osu-nlp-group/redteamcua/adv/TheAgentCompany_OwnCloud/if_ready.py official repository unverified Apache-2.0 (permissive) · d9192f36701dca7f · report
contains_to_be_replaced osu-nlp-group/redteamcua/desktop_env/desktop_env.py official repository unverified Apache-2.0 (permissive) · dd19517ad337793c · report
convert_for_claude_cua osu-nlp-group/redteamcua/mm_agents/utils.py official repository unverified Apache-2.0 (permissive) · e47e7307e8ebecb9 · report
convert_for_openai_cua_utlis_1 osu-nlp-group/redteamcua/mm_agents/utils.py official repository unverified Apache-2.0 (permissive) · 4fef53fda30d97b0 · report
escape_single_quotes osu-nlp-group/redteamcua/mm_agents/uitars_agent.py official repository unverified Apache-2.0 (permissive) · 07fd593c156d2586 · report
find_after_first_non_false osu-nlp-group/redteamcua/lib_run_single.py official repository unverified Apache-2.0 (permissive) · c40d62d4d4511695 · report
if_cua osu-nlp-group/redteamcua/lib_run_single.py official repository unverified Apache-2.0 (permissive) · cc62b17f6716adda · report
index_of_false_after_last_true osu-nlp-group/redteamcua/lib_run_single.py official repository unverified Apache-2.0 (permissive) · 5b111116d2c99923 · report
parse_action osu-nlp-group/redteamcua/mm_agents/uitars_agent.py official repository unverified Apache-2.0 (permissive) · c242cf8145d74b19 · report
parse_action_qwen2vl osu-nlp-group/redteamcua/mm_agents/uitars_agent.py official repository unverified Apache-2.0 (permissive) · 3c2d222360a65466 · report
replace_in_dict osu-nlp-group/redteamcua/generate_config.py official repository unverified Apache-2.0 (permissive) · d25267c119a9a895 · report
replace_in_dict osu-nlp-group/redteamcua/desktop_env/desktop_env.py official repository unverified Apache-2.0 (permissive) · e76e7ed02caf688c · report
sub_url osu-nlp-group/redteamcua/generate_config.py official repository unverified Apache-2.0 (permissive) · 5a4da0404bbcddce · report
sub_url osu-nlp-group/redteamcua/desktop_env/desktop_env.py official repository unverified Apache-2.0 (permissive) · 83ff3db48d9cd80e · report

Tasks

BenchmarkingRed Teaming

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections