TL;DR
Current safety evaluations for Computer-Use Agents (CUAs) assume that prompt injection attacks arrive as a single, blatantly malicious payload. This paper introduces StepJack, a benchmark demonstrating that attackers can easily bypass safety training by decomposing a harmful goal into multiple innocuous-looking sub-steps distributed across a chain of linked web pages, increasing attack success rates by up to 31.2 percentage points on frontier models.
What Problem Does This Paper Address?
Computer-Use Agents (CUAs) are AI systems designed to automate desktop and browser workflows by observing screenshots and executing keyboard/mouse actions. Because they interact with untrusted environments like the web, they are highly susceptible to indirect prompt injection—where an attacker hides malicious instructions inside a web page or document that the agent reads.
While modern CUAs are increasingly resilient against monolithic, single-step payloads due to safety alignment, real-world adversaries face no such constraints. Web content is inherently distributed. This paper addresses a critical evaluation gap: can a CUA still detect and refuse an adversarial goal when it is broken down into innocuous pieces and scattered across a navigation path?
Methods
The authors introduce a new attack class called multi-step indirect prompt injection and an automated pipeline to generate these attacks:
- Benign Trajectory Hijacking: The attacker plants an initial instruction that coaxes the CUA into following a chain of referenced pages (e.g., clicking hyperlinks on a forum or turning pages in a shared document).
- Automatic Decomposition Pipeline: An open-loop, LLM-driven framework splits a single adversarial goal into $k$ sequential sub-steps. The pipeline optimizes for two core properties:
- Goal Faithfulness: Executing all sub-steps sequentially must achieve the original malicious goal.
- Per-step Innocuousness: Each sub-step must look completely benign in isolation to trick the agent's localized safety filters.
The pipeline operates in two stages. First, an LLM generates candidates and refines them using iterative feedback from LLM-based safety and faithfulness judges. Second, the top candidates are executed on a sandboxed verifier CUA to ensure they are physically executable in a real user interface, selecting the chain that requires the fewest actions.
The pipeline uncovers three distinct attack strategies:
- Operational: Every step uses everyday permitted operations (e.g., copying or moving files), and harm only emerges through composition.
- Semantic: The harmful payload is fragmented across steps and reassembled at the very end.
- Escalatory: The agent is anchored into compliance by performing initial benign setup steps before encountering the harmful action.
Datasets
The authors present StepJack, a CUA safety benchmark built on top of the RedTeamCUA sandbox environment. StepJack contains 480 test examples per CUA and varies across several dimensions:
- Platforms: Reddit (requiring hyperlink clicking) and OwnCloud (requiring document scrolling).
- Adversarial Goals: 12 distinct goals spanning the CIA triad (Confidentiality, Integrity, Availability).
- User-Instruction Modes: Permissive (includes a blanket clause telling the agent to follow website instructions) vs. Restrictive.
- Decomposition Depths: $k \in \{1, 2, 3\}$, where $k=1$ represents the single-step baseline.
Key Insights and Ideas
- Decomposition as a Conditional Amplifier: Breaking down an attack does not automatically make it more successful. It acts as an amplifier only if the CUA has the capability to reliably navigate the reference chain. If an agent gets lost or mis-clicks a link, the multi-step attack fails due to capability limits rather than safety awareness.
- The Localized Safety Blindspot: Modern CUA safety mechanisms evaluate intent locally (per screenshot or per step). By severing lexical and semantic connections between steps (e.g., copying an SSH key to a file named
config_backup.txtin step 1, and sharingconfig_backup.txtin step 3), the agent's safety reasoning is completely bypassed. - The Danger of Transferable Authorization: When users give agents "Permissive" instructions (e.g., "follow the instructions on the website to set it up"), CUAs treat this blanket authorization as transferable to untrusted environment content, causing a massive spike in vulnerability.
Key Results
The authors evaluated six state-of-the-art CUAs: EvoCUA-32B, Qwen3.5-Plus, Kimi-K2.5, GPT-5.4-mini, Claude-Haiku-4.5, and Claude-Sonnet-4.6.
- Attack Success Rate (ASR) Spikes: At a fixed depth ($k=3$), multi-step attacks significantly increased the ASR on three of the six models. Most notably, GPT-5.4-mini's vulnerability jumped from 41.7% at single-step to 72.9% at three-step.
- High Compliance Rates: Table 2 confirms the "Innocuousness" property: the per-step compliance rate ($\beta_i$) for multi-step attacks is consistently much higher than the single-step baseline, proving that the sub-steps successfully fly under the models' safety radars.
- Defenses Lose Ground: The authors tested two defenses: Defensive System Prompts (DSP) and an external Prompt Injection Detector (PID). Multi-step attacks retained their effectiveness against both. For instance, while PID caught single-step attacks 56.2% of the time, its overall detection rate dropped to 29.2% for 2-step attacks.
Limitations and Future Work
- High Evaluation Costs: Evaluating CUAs is incredibly expensive because input tokens accumulate rapidly with screenshots over long action trajectories. A single pass over the benchmark costs ~\$520 USD in API fees per CUA, preventing the authors from running multiple iterations to report statistical variance.
- Scale Constraints: Due to these cost constraints, the benchmark is limited to 12 adversarial goals and a maximum chain depth of $k=3$.
- Future Defense Directions: Current defenses fail because they lack stateful memory of past environmental inputs. Future work must focus on building defenses that track semantic intent across an entire agent trajectory rather than analyzing screenshots in isolation.
Summary updated