VPI-Bench: Visual Prompt Injection Attacks for Computer-Use Agents
Tri Cao, Bennett Lim, Yue Liu, Yuan Sui, Yuexin Li, Shumin Deng, Lin Lu, Nay Oo, Shuicheng Yan, Bryan Hooi
TL;DR
VPI-Bench introduces Visual Prompt Injection (VPI) as a realistic threat to multimodal agents with full system access and provides a 306-test benchmark across five platforms to evaluate CUAs and BUAs in dynamic, interactive settings. The study demonstrates pervasive vulnerability across state-of-the-art agents, with system prompts offering limited protection and injection timing influencing outcomes. By detailing a threat model, dataset design, evaluation protocol, and extensive experiments, the work highlights the urgent need for robust, context-aware defenses at both the agent and system levels. The public code and dataset enable reproducible benchmarking and guide future research toward safer, trustworthy AI agents in real-world deployments.
Abstract
Computer-Use Agents (CUAs) with full system access enable powerful task automation but pose significant security and privacy risks due to their ability to manipulate files, access user data, and execute arbitrary commands. While prior work has focused on browser-based agents and HTML-level attacks, the vulnerabilities of CUAs remain underexplored. In this paper, we investigate Visual Prompt Injection (VPI) attacks, where malicious instructions are visually embedded within rendered user interfaces, and examine their impact on both CUAs and Browser-Use Agents (BUAs). We propose VPI-Bench, a benchmark of 306 test cases across five widely used platforms, to evaluate agent robustness under VPI threats. Each test case is a variant of a web platform, designed to be interactive, deployed in a realistic environment, and containing a visually embedded malicious prompt. Our empirical study shows that current CUAs and BUAs can be deceived at rates of up to 51% and 100%, respectively, on certain platforms. The experimental results also indicate that system prompt defenses offer only limited improvements. These findings highlight the need for robust, context-aware defenses to ensure the safe deployment of multimodal AI agents in real-world environments. The code and dataset are available at: https://github.com/cua-framework/agents
