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 steps to bound the reference likelihood, standardize scores, and calibrate a detection threshold. Steps with abnormally high VEP are flagged for user review before execution. By measuring visual evidence that persists under suppression, Afterglow distinguishes backdoor activation from the concentrated attention needed for legitimate GUI actions. Extensive experiments across multiple GUI benchmarks, backdoor attacks, and model architectures and sizes demonstrate that Afterglow detects triggered steps more reliably than existing detectors.
翻译:暂无翻译