Abstract
Mobile agents powered by vision-language models (VLMs) are increasingly adopted for tasks such as UI automation and camera-based assistance. These agents are typically fine-tuned using small-scale, user-collected data, making them susceptible to stealthy training-time threats. This work introduces VIBMA, the first clean-text backdoor attack targeting VLM-based mobile agents. The attack injects malicious behaviors into the model by modifying only the visual input while preserving textual prompts and instructions, achieving stealth through the complete absence of textual anomalies. Once the agent is fine-tuned on this poisoned data, adding a predefined visual pattern (trigger) at inference time activates the attacker-specified behavior (backdoor). Our attack aligns the training gradients of poisoned samples with those of an attacker-specified target instance, effectively embedding backdoor-specific features into the poisoned data. To ensure the robustness and stealthiness of the attack, we design three trigger variants that better resemble real-world scenarios: static patches, dynamic motion patterns, and low-opacity blended content. Extensive experiments on six Android applications and three mobile-compatible VLMs demonstrate that our attack achieves high success rates (ASR up to 94.67%) while preserving clean-task behavior (FSR up to 95.85%). These findings reveal the security vulnerabilities of mobile agents and underscore the need for robust defenses in mobile agent adaptation pipelines.
Introduction
The rapid advancement of Vision-Language Models (VLMs) has enabled the creation of sophisticated mobile agents capable of navigating complex user interfaces and performing tasks based on visual context. To tailor these agents to specific user needs or applications, developers frequently employ fine-tuning on small, specialized datasets. However, this reliance on external data introduces a significant security vulnerability: training-time data poisoning.
While previous research has extensively explored "prompt injection" attacks that manipulate model behavior through malicious text, this paper investigates a more insidious threat: visual backdoor attacks. We present VIBMA (Visual Injection for Backdoors in Mobile Agents), a novel attack that remains entirely "clean-text," meaning the textual instructions in the training data appear perfectly benign, bypassing traditional text-based security audits.
The VIBMA Attack Framework
The core of VIBMA is a bi-level optimization framework designed to inject backdoors without altering textual labels. Instead of traditional label-flipping, VIBMA utilizes gradient alignment. The attacker first selects a "target instance"—a specific UI state and a corresponding malicious action, such as "Open the camera and take a photo" or "Open map and get location."
The optimization process then calculates imperceptible pixel-level perturbations ($\delta$) for clean training images. These perturbations are designed such that the training gradients of the poisoned images ($I^{poison} = I + \delta$) closely match the gradients of the attacker's target malicious instance. When the VLM is fine-tuned on this poisoned data, it implicitly learns to associate a specific visual trigger with the malicious target behavior.
VIBMA supports several attack types, as illustrated in Figure 1:
- Type I: Benign Misactivation: Causing the agent to perform an unintended but seemingly harmless action.
- Type II: Privacy Violation: Forcing the agent to access sensitive data, like the camera or gallery.
- Type III: Malicious Hijack: Redirecting the agent's actions to a completely different, harmful task.
- Type IV: Policy Shift: Subtly altering the agent's decision-making logic.
Trigger Design and Stealth
To activate the backdoor at inference time, the attacker introduces a visual trigger. VIBMA explores three trigger variants designed for realism and stealth:
- Hurdle: A static, localized patch, often placed at the bottom of the screen.
- Hoverball: A dynamic pattern that can appear at various locations, mimicking floating UI elements.
- Blended: A low-opacity overlay of a common icon or character (e.g., a "Hello Kitty" logo), which is visually subtle and may be dismissed by users as a watermark or UI theme.
Because the textual prompts remain 100% natural, the attack is exceptionally difficult to detect through automated text scanning or manual inspection of instructions.
Experimental Evaluation
We evaluated VIBMA across a wide range of environments and models:
- Datasets: We utilized the RICO dataset (66k+ UI screens), AITW (700k+ interaction episodes), and a custom Real-World App Collection covering six popular Android applications (WhatsApp, Amazon, etc.).
- Models: The attack was tested on three mobile-compatible VLM architectures: LLaVA-Mobile, MiniGPT-4-Mobile, and VisualGLM-Mobile.
Experimental Results
The results demonstrate that VIBMA is highly effective and stealthy. We measured performance using two primary metrics: Attack Success Rate (ASR), the percentage of times the trigger successfully activated the malicious behavior, and Follow Step Ratio (FSR), the model's accuracy on clean tasks when the trigger is absent.
As shown in Figure 2, VIBMA achieved an ASR of up to 94.67% (using the Hurdle trigger on RICO). Crucially, the FSR remained high, reaching up to 95.85%. This high FSR indicates that the agent behaves normally in the absence of the trigger, making the backdoor nearly impossible to detect during routine operation. The attack also showed strong robustness, remaining effective even after common image transformations like JPEG compression and resizing.
Discussion and Conclusion
VIBMA represents the first successful "clean-text" visual backdoor attack on VLM-based mobile agents. By hijacking both symbolic actions and textual rationales through visual poisoning, it exposes a critical vulnerability in the current mobile agent adaptation pipeline. The ability to achieve high success rates with as few as 10% poisoned samples underscores the potency of gradient alignment techniques.
These findings highlight the urgent need for robust defense mechanisms. Future work should focus on developing adaptation pipelines capable of detecting gradient anomalies and auditing on-device agents without compromising user privacy. As mobile agents become more integrated into our daily lives, ensuring their security against such stealthy visual threats is paramount.
Summary updated