MobileSafetyBench: Evaluating Safety of Autonomous Agents in Mobile Device Control
Juyong Lee, Dongyoon Hahm, June Suk Choi, W. Bradley Knox, Kimin Lee
TL;DR
MobileSafetyBench addresses the urgent need to evaluate safety for autonomous agents controlling mobile devices in realistic settings. By leveraging Android emulators and a diverse task suite that includes high-risk and indirect-prompt-injection scenarios, the benchmark reveals systemic safety weaknesses in state-of-the-art LLM agents. The authors introduce Safety-guided Chain-of-Thought prompting to bolster safety, but experiments show substantial room for improvement and vulnerabilities to indirect prompt injection. The work provides open-source benchmarks and tooling to accelerate development of safer, more trustworthy mobile-device control agents with practical implications for deployment and governance.
Abstract
Autonomous agents powered by large language models (LLMs) show promising potential in assistive tasks across various domains, including mobile device control. As these agents interact directly with personal information and device settings, ensuring their safe and reliable behavior is crucial to prevent undesirable outcomes. However, no benchmark exists for standardized evaluation of the safety of mobile device-control agents. In this work, we introduce MobileSafetyBench, a benchmark designed to evaluate the safety of device-control agents within a realistic mobile environment based on Android emulators. We develop a diverse set of tasks involving interactions with various mobile applications, including messaging and banking applications, challenging agents with managing risks encompassing misuse and negative side effects. These tasks include tests to evaluate the safety of agents in daily scenarios as well as their robustness against indirect prompt injection attacks. Our experiments demonstrate that baseline agents, based on state-of-the-art LLMs, often fail to effectively prevent harm while performing the tasks. To mitigate these safety concerns, we propose a prompting method that encourages agents to prioritize safety considerations. While this method shows promise in promoting safer behaviors, there is still considerable room for improvement to fully earn user trust. This highlights the urgent need for continued research to develop more robust safety mechanisms in mobile environments. We open-source our benchmark at: https://mobilesafetybench.github.io/.
