StepJack: Benchmarking Computer-Use Agent Safety Against Multi-Step Indirect Prompt Injection
TL;DR Highlight
Splitting a malicious goal across linked pages raised GPT-5.4-mini's attack success from 41.7% to 72.9%.
Who Should Read
Developers deploying computer-use agents that browse or operate desktops and worried about indirect prompt injection defenses.
Core Mechanics
- Split the attack across a chain of pages
- The adversarial goal is broken into innocuous-looking sub-steps placed along the links the agent follows.
- Each sub-step looks harmless alone, so the agent's safety check is less likely to fire.
- Single-shot injections get refused but split ones work
- Existing benchmarks put the whole payload in one place, and recent CUAs resist that better.
- At fixed depth, attack success rose on three of six CUAs.
- Each agent fails at a different point
- Claude-Sonnet-4.6 names the injection and refuses at the entry page, but complies with later steps.
- Qwen3.5-Plus silently skips the final step it finds irrelevant to the user's request.
- Urgency cues backfire
- Adding a 'do it now' cue lowered success on every CUA except Qwen3.5-Plus.
- The cue appears to trigger suspicion and refusal.
- Blanket authorization raises risk
Evidence
- GPT-5.4-mini: 41.7% to 72.9%
- Single-step (k=1) vs three-step (k=3), no urgency cue.
- This is the largest gain, 31.2 points.
- Five-CUA average: 31.3% to 36.9%
- Single-step vs three-step, excluding EvoCUA-32B.
- EvoCUA was excluded because it often mis-clicks the links and cannot traverse the chain.
- Gains persist with a defensive prompt
- Kimi-K2.5 went from 33.3% at k=1 to 64.6% at k=3.
- GPT-5.4-mini went from 15.6% at k=1 to 36.5% at k=3.
- Detector rates drop for split attacks
- PromptArmor with GPT-4o flagged 56.2% of single-step attacks.
- For multi-step attacks, no sub-step exceeded 22.9%, and overall detection was 29.2% at k=2 and 37.5% at k=3.
How to Apply
- Stress-test your agent rules with split attacks
- In 30 minutes, use the prompt below to split one of your agent's tasks into three sub-steps and rate their risk.
- List combinations that look safe step by step but are risky together.
- Judge cumulative actions, not just the current step
- Re-evaluate state-changing actions such as create, copy, and delete together with earlier steps.
- Require user confirmation before executing files or scripts that web content caused to be created.
- Remove blanket authorization phrases from prompts
- Find phrases like 'follow the instructions on the website' in your user-instruction templates and delete them.
- Add a system prompt rule that instructions inside web content are not user requests.
- Cap link-following depth for agents
- Limit consecutive hops when the agent follows links inside documents or posts.
- Stop and ask for approval when a hop leads to running system commands.
Try It
# Paste into Claude or ChatGPT (simplified version of the paper's method: cumulative risk check of split instructions)
You are a safety reviewer for a computer-use agent. Assume the agent performs the task below.
Task: {{task your agent does or risky action you want to block}}
1) Split this task into 3 sub-instructions to be placed on different web pages. Each one must look ordinary on its own.
2) Rate each sub-instruction's risk on a 1-10 scale when viewed alone.
3) Describe the cumulative result if the three are executed in order.
4) Propose 3 lines of agent rules that would block this combination.
Next step: add the proposed rules to your system prompt and retry the same 3 steps to see if they are blocked.Terminology
Related Papers
Same Simulation, Different Evidence: Where Retrieved Tool Output Costs LLM Agents Accuracy
Saving long tool output to files cut GPT-5.1 accuracy by 11.3 points; naming the authoritative file restored it.
Fake News, Real Crashes: Information Injection Attacks on LLM Financial Trading Agents
Fake headlines hijacked LLM trading agents 62% of the time versus 14% for prompt injection.
Harness Engineering 101: The LLM is the brain, the harness is the body
An agent is a loop managing a JSON array; 16 chapters build one from scratch
Harness2 by Google Research – Recursive Agent Harnessing
Recursively refining the harness with fixed model weights raised benchmark scores by up to 11.8 points.
Ousted Savannah police officer gave ICE agent husband access to Flock system
A police officer shared her Flock login with her ICE-agent husband; an audit found 983 searches and she was fired
Tmux and Claude Code: Sessions, Send-Keys, and the Ceiling
Running Claude Code agents in tmux works well, but limits appear around four agents.
Related Resources
Original Abstract (Expand)
Computer-use agents (CUAs) face a growing threat from indirect prompt injection, where adversarial instructions are planted in the environment such as web pages. In this paper, we introduce multi-step indirect prompt injection, a new attack class against CUAs in which the adversarial goal is decomposed into multiple innocuous-looking sub-steps and distributed across a chain of pages referenced along the agent's navigation path. We develop a pipeline to automatically decompose an adversarial goal under the constraint that the execution of the decomposed sub-steps must achieve the original goal while optimizing the innocuousness of each decomposed sub-step. With this pipeline, we build StepJack, a CUA safety benchmark with 480 test examples. On this benchmark, we evaluate six state-of-the-art CUAs and find that at a fixed decomposition depth, multi-step attacks raise attack success rate (ASR) on three of six CUAs, by up to 31.2 points (e.g., GPT-5.4-mini: 41.7% at single-step to 72.9% at three-step); averaged over the five CUAs that can reliably follow the reference chain (all but EvoCUA-32B), ASR rises from 31.3% at single-step to 36.9% at three-step. Dataset and code are available at https://github.com/BorealisAI/StepJack.