Test-Time Backdoor Detection for GUI Agents by Visual Evidence Persistence
Graphical user interface (GUI) agents act directly on users' devices, making backdoor attacks that induce adversary-specified actions through visual triggers particularly harmful. Conventional defenses rely on costly post-training that can degrade agent performance, while existing test-time detectors struggle on GUI screens: clean and triggered steps can exhibit similarly stable outputs under perturbations and similarly concentrated attention. We find that these steps instead differ in their dependence on visual information: a backdoored GUI agent acts on a mere glimpse of the screen, with evidence for a triggered action persisting under strong suppression of screenshot attention, whereas evidence for a legitimate action fades. To quantify this finding, we introduce visual evidence persistence (VEP), defined as the expected log-likelihood gain of an action under suppressed visual attention relative to a screenshot-free baseline. Building on VEP, we propose Afterglow, a test-time detector that requires neither retraining nor access to poisoned data. It computes VEP for the predicted action type and click across several suppression factors, then uses a small set of unlabeled clean…
- arXiv
- 2612.05190
- Authors
- Zhifang Zhang, Weitong Chen, Olaf Maennel, Wei Emma Zhang, Hao Chen and 2 more
- Categories
- cs.CV