MIP against Agent: Malicious Image Patches Hijacking Multimodal OS Agents
Lukas Aichberger, Alasdair Paren, Guohao Li, Philip Torr, Yarin Gal, Adel Bibi
TL;DR
The paper tackles the problem of securing multimodal OS agents that rely on screenshot-driven perception and action APIs. It introduces Malicious Image Patches (MIPs) as adversarial screen regions that, when captured, drive the agent to emit a predefined malicious output and execute harmful actions, independent of textual prompts. The authors formalize the OS-agent architecture, define the attack under realistic constraints, and demonstrate both targeted and universal MIPs that generalize across prompts, screen layouts, parsers, and multiple VLMs, with varying degrees of cross-model transfer. They also discuss practical defenses and emphasize the urgency of robust security measures for OS agents given the potential for widespread impact, including propagation and worm-like spread. The findings underscore a fundamental shift in AI safety for agent platforms and motivate future work on defense mechanisms and secure deployment frameworks.
Abstract
Recent advances in operating system (OS) agents have enabled vision-language models (VLMs) to directly control a user's computer. Unlike conventional VLMs that passively output text, OS agents autonomously perform computer-based tasks in response to a single user prompt. OS agents do so by capturing, parsing, and analysing screenshots and executing low-level actions via application programming interfaces (APIs), such as mouse clicks and keyboard inputs. This direct interaction with the OS significantly raises the stakes, as failures or manipulations can have immediate and tangible consequences. In this work, we uncover a novel attack vector against these OS agents: Malicious Image Patches (MIPs), adversarially perturbed screen regions that, when captured by an OS agent, induce it to perform harmful actions by exploiting specific APIs. For instance, a MIP can be embedded in a desktop wallpaper or shared on social media to cause an OS agent to exfiltrate sensitive user data. We show that MIPs generalise across user prompts and screen configurations, and that they can hijack multiple OS agents even during the execution of benign instructions. These findings expose critical security vulnerabilities in OS agents that have to be carefully addressed before their widespread deployment.
