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 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.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-03
Primary Topic
Adversarial Robustness in Machine Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Test-Time Backdoor Detection for GUI Agents by Visual Evidence Persistence

Olaf Maennel, weitong chen, Miao Xu, Wei Emma Zhang et al.
arXiv
Adversarial Robustness in Machine Learning
preprint

Test-Time Backdoor Detection for GUI Agents by Visual Evidence Persistence

Olaf Maennel, weitong chen, Miao Xu, Wei Emma Zhang, Lei Feng, Hao Chen, Zhifang Zhang
preprint en

Abstract

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.

arXiv
Sun Yat-sen University (CN), The University of Queensland (AU), Southeast University (CN)
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon