OS-Sentinel: Towards Safety-Enhanced Mobile GUI Agents via Hybrid Validation in Realistic Workflows
Qiushi Sun, Mukai Li, Zhoumianze Liu, Zhihui Xie, Fangzhi Xu, Zhangyue Yin, Kanzhi Cheng, Zehao Li, Zichen Ding, Qi Liu, Zhiyong Wu, Zhuosheng Zhang, Ben Kao, Lingpeng Kong
TL;DR
This work tackles the safety of autonomous mobile GUI agents by introducing MobileRisk-Live, a dynamic Android-emulator sandbox, and MobileRisk, a benchmark of fine-grained, annotated trajectories. It then proposes OS-Sentinel, a hybrid safety detector that couples a Formal Verifier for deterministic system-level checks with a Contextual Judge powered by Vision-Language Models for context-aware analysis. Through extensive experiments across multiple backbones and environments, OS-Sentinel consistently outperforms rule-based and purely model-based baselines at both trajectory and step levels, while maintaining practical latency. The study provides a robust foundation for safe, reliable mobile GUI automation and offers insights into component contributions, taxonomy coverage, and reproducible evaluation in realistic settings.
Abstract
Computer-using agents powered by Vision-Language Models (VLMs) have demonstrated human-like capabilities in operating digital environments like mobile platforms. While these agents hold great promise for advancing digital automation, their potential for unsafe operations, such as system compromise and privacy leakage, is raising significant concerns. Detecting these safety concerns across the vast and complex operational space of mobile environments presents a formidable challenge that remains critically underexplored. To establish a foundation for mobile agent safety research, we introduce MobileRisk-Live, a dynamic sandbox environment accompanied by a safety detection benchmark comprising realistic trajectories with fine-grained annotations. Built upon this, we propose OS-Sentinel, a novel hybrid safety detection framework that synergistically combines a Formal Verifier for detecting explicit system-level violations with a VLM-based Contextual Judge for assessing contextual risks and agent actions. Experiments show that OS-Sentinel achieves 10%-30% improvements over existing approaches across multiple metrics. Further analysis provides critical insights that foster the development of safer and more reliable autonomous mobile agents. Our code and data are available at https://github.com/OS-Copilot/OS-Sentinel.
