StepJack: Benchmarking Computer-Use Agent Safety Against Multi-Step Indirect Prompt Injection
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 study multi-step indirect prompt injection against CUAs, in which the adversarial goal is decomposed into multiple innocuous-looking sub-steps and distributed across a chain of referenced pages linked by the attacker. 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. We evaluate seven state-of-the-art CUAs on StepJack and find that at a fixed decomposition depth, multi-step attacks raise attack success rate (ASR) on four of seven CUAs, by up to 31.2 points (GPT-5.4-mini: 41.7% at single-step to 72.9% at three-step). Our per-step compliance rate diagnosis and trajectory inspection pinpoint two conditions under which multi-step decomposition improves ASR. Dataset and code are available at https://github.com/BorealisAI/StepJack.