Skip to content

From Assistant to Adversary: Exploring the Security Risks of Mobile LLM AgentsFrom Assistants to Adversaries: Exploring the Security Risks of Mobile LLM Agents

arXiv· arXiv:2505.12981· Liangxuan Wu, Chao Wang, Tianming Liu, Yanjie Zhao, Haoyu WangHuazhong University of Science and TechnologyIndexed by this site · 23 days ago· Originally publishedSelected AttacksSelectedAttention42

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors propose AgentScan, a security analysis framework for mobile LLM agents, testing 11 attack surfaces on 9 agents; the authors state that all have vulnerabilities, each falling for an average of 6.3.

Threat modelThe attacker's goal is to manipulate agent behavior or steal users' sensitive data. The attacker controls a seemingly harmless third-party app on the victim device, requires no root or administrative privileges, but can obtain sensitive permissions such as SYSTEM_ALERT_WINDOW through social engineering or user authorization, thereby injecting misleading input, overlaying UI elements or triggering unintended operations. The victim systems are three types of mobile LLM agents (system-level, third-party general-purpose, agent frameworks).

Questions
Mobile LLM agents (system-level assistants, third-party general-purpose agents, agent frameworks) automatically execute complex tasks on phones, but their security implications lack systematic study; the authors state that existing security analysis methods cannot cover their complex interactions with system permissions, UI components and multimodal input.
Methods
The authors reverse-engineered the workflows of 9 agents and summarized 11 attack surfaces across three interaction layers: LLM, GUI, and system. They also implemented a semi-automated framework, AgentScan: a client-server architecture that pushes malicious APKs, floating windows, and forged apps via ADB, injecting attacks layer by layer on real devices and recording behavior.
Experiments and results
All 9 agents have vulnerabilities, each falling for an average of 6.3/11 attack surfaces, with AppAgent reaching as many as 8; Transparent Overlay and Pop-up Interference each succeeded on 7/9 agents; after the authors' preliminary hardening of Mobile-Agent-v2, attacks such as Image Forgery for APP, Transparent Overlay and Pop-up Interference changed from success to failure.
Limitations and future work
The authors note that the attack scenarios are limited to several typical types, that the tested agents rely on predefined models and environments, and that the conclusions have limited generalizability to more adaptive agents; for fairness, GPT-4o was uniformly used as the decision model, and differences under different large models were not studied. The experiments covered only 9 agents and 11 attack surfaces, with 10 trials per scenario.
Experimental setupAutoDroid、Mobile-Agent et al. · Android in the Wild (AITW)、Basic Instruction Set(44 条任务) et al. · 攻击成功次数(x/10)、每个智能体中招的攻击向量数
Evaluated models
AutoDroidMobile-AgentMobile-Agent-v2AppAgentDroidBot-GPTAgent-AAgent-BAgent-CAgent-D
Benchmarks
Android in the Wild (AITW)Basic Instruction Set(44 条任务)Malicious Instruction for Agent 数据集
Metrics
攻击成功次数(x/10)每个智能体中招的攻击向量数
AI summaryand selection rationaleA Huazhong University of Science and Technology research team conducted a systematic security analysis of mobile LLM agents in a paper, identifying 11 attack surfaces across three layers—language reasoning, GUI interaction, and system execution—and released a semi-automated testing framework, AgentScan. Testing of 9 widely deployed agents covering system-level assistants, third-party general-purpose agents, and emerging frameworks showed that all had vulnerabilities exploitable by targeted attacks, with each affected by an average of 6.3/11 attack vectors, and the most severely affected, AppAgent, reaching 8/11; transparent overlay and pop-up interference attacks each worked on 7 of the 9, causing behavior deviation, privacy leakage, and even execution hijacking—for example, attacking AppAgent could trigger an unauthorized factory reset, and hijacking Meituan and Amap deeplinks could obtain location information such as search preferences and home addresses. The experiments uniformly used GPT-4o as the backend model. The authors proposed defense design principles and said responsible disclosure received positive responses from two major device manufacturers.

A Huazhong University of Science and Technology research team conducted a systematic security analysis of mobile LLM agents in a paper, identifying 11 attack surfaces across three layers—language reasoning, GUI interaction, and system execution—and released a semi-automated testing framework, AgentScan. Testing of 9 widely deployed agents covering system-level assistants, third-party general-purpose agents, and emerging frameworks showed that all had vulnerabilities exploitable by targeted attacks, with each affected by an average of 6.3/11 attack vectors, and the most severely affected, AppAgent, reaching 8/11; transparent overlay and pop-up interference attacks each worked on 7 of the 9, causing behavior deviation, privacy leakage, and even execution hijacking—for example, attacking AppAgent could trigger an unauthorized factory reset, and hijacking Meituan and Amap deeplinks could obtain location information such as search preferences and home addresses. The experiments uniformly used GPT-4o as the backend model. The authors proposed defense design principles and said responsible disclosure received positive responses from two major device manufacturers.

Why it was selectedThe paper sorts out 11 attack surfaces of mobile LLM agents across the language, interface, and system layers and tests 9 products, so relevant development and deployment teams can self-check and harden accordingly.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Mobile LLM agents lack systematic security analysis; the authors propose 11 attack surfaces across three interaction layers and build the AgentScan framework to test 9 agents in practice.

    Core problem: The security impact of mobile LLM agents has not yet been systematically studied, and there is a lack of a standardized security evaluation framework covering their complete workflow.

    • Problem scenario: Mobile LLM agents can decompose and automatically execute complex tasks on phones, typically run with elevated privileges or system privileges, and work based on probabilistic decision-making and unstructured natural language instructions, which the authors believe brings new targeted attack surfaces.
    • Gaps in existing research: Existing work mainly reveals the risks of Web-side LLM agents (trajectory optimization flaws, prompt injection, backdoors, environment injection, etc.); the authors state that the mobile environment has unique UI interactions, system privileges, and hardware interfaces, and existing security analysis methods cannot cover the complex interactions of mobile agents with system privileges, UI components, and multimodal inputs.
    • Core observation: The authors reverse-engineered 9 representative agents, abstracted their workflow into five stages—instruction understanding and decomposition, screen context understanding, decision generation, action execution, and reflection and task completion—and extracted three core capabilities—language reasoning, GUI perception and interaction, and system-level execution—from which all attack surfaces originate.
    • Paper output: The authors propose a taxonomy of 11 attack surfaces (belonging to the LLM layer, GUI layer, and system layer), implement a semi-automated security analysis framework AgentScan, test it on 9 deployed agents, and give defense design principles; the authors call this "the first systematic investigation," and the disclosure has been confirmed by two device vendors.
    • Threat model (§II-B):
      • Goal: Manipulate agent behavior or steal users' sensitive data.
      • Knowledge: The paper does not explicitly use white-box/black-box terminology; attacks are carried out through three types of interaction: UI, system, and language model.
      • Capability: Control a seemingly harmless third-party app on the victim device, without root or administrative privileges, can obtain sensitive permissions such as SYSTEM_ALERT_WINDOW through social engineering or user authorization, and can inject misleading inputs, overlay UI elements, and trigger unexpected operations.
      • Victim systems: Three types of mobile LLM agents—system-level agents (e.g., YOYO Assistant), third-party general-purpose agents (e.g., AutoGLM), and emerging agent frameworks (e.g., Mobile-Agent).
  2. What related research exists?

    Related work is divided into four groups: Web agent security, threats at the three layers of LLM/GUI/system, mobile agents and benchmarks, and Windows agents; the authors state that mobile agent security has not been systematically studied.

    Web-side LLM agent security

    • Trajectory optimization flaws by Song et al. ([12]), Web prompt exploitation by Kim et al. ([13]), and WiPI by Wu et al. ([14])—revealing new attack vectors for Web agents.
    • Yang et al. ([15]) study backdoor threats to LLM agents; EIA by Liao et al. ([16]) leaks privacy through environment injection; AdvWeb by Xu et al. ([17]) and Zhang et al. ([18]) study action manipulation and hijacking of vision-language agents. The paper notes that these works target Web environments, whereas UI interaction, system permissions and hardware interfaces in mobile environments bring different challenges.

    Existing threat research on the three interaction layers (§IV-A-2, which the paper adapts to mobile agents)

    • LLM layer: prompt injection ([34][35]), jailbreak prompts ([36][37][38]), instruction-level backdoors ([39][40]), and glitch tokens interfering with model behavior (Li et al. [41], Zhang et al. [42]).
    • GUI layer: visual deception ([43][44][45]), view hierarchy injection ([46][47]), transparent floating window abuse (Yan et al. [48]).
    • System layer: Intent hijacking ([49][50]), deeplink spoofing ([51][52], Liu et al. measured the insecurity of Android deeplinks), privilege escalation ([53]), log leakage ([54][55]).

    Mobile LLM agents and evaluation benchmarks

    • Surveys [2][3][4] systematically review GUI agent architectures; Mobile-Bench by Deng et al. ([67]) and MobileAgentBench by Wang et al. ([68]) propose performance testing frameworks for mobile agents. The paper explicitly states that these works only do performance evaluation, and security testing remains unexplored.
    • The tested agent systems themselves: Mobile-Agent ([26]), Mobile-Agent-v2 ([27]), AppAgent ([28]), AutoDroid ([29]), DroidBot-GPT ([30]).

    Windows LLM agents

    • UFO ([69]), ScreenAgent ([70]), Windows Agent Arena ([71])—the paper states that they may inherit vulnerabilities of mobile platforms and introduce Windows-specific risks, described only.

    Positioning: The authors claim this paper is the first systematic study of the implementation mechanisms and security threats of mobile LLM agents ("the first systematic investigation"), and propose the semi-automated testing framework AgentScan; the baseline instruction set is adapted from Google's Android in the Wild (AITW) [59] dataset.

  3. How does the paper address this problem?

    Reverse-engineered 9 agents to summarize a five-stage workflow and 11 attack surfaces across three layers, then used the client-server framework AgentScan to inject attacks layer by layer and record behavior.

    Overall approach: first establish a unified workflow abstraction and attack surface taxonomy for mobile LLM agents through reverse engineering, then use the semi-automated framework AgentScan to conduct structured, repeatable security testing of each attack surface on real devices.

    Workflow abstraction and attack surface taxonomy (§III, §IV)

    • Five-stage pipeline: instruction understanding and decomposition → screen context understanding (visual analysis or structural parsing) → decision generation (LLM-Centric Reasoning or Logic-Oriented Planning) → action execution (app launching and UI interaction) → reflection and task completion (Figure 2).
    • 11 attack surfaces: 2 at the LLM layer (Malicious Instructions, Glitch Tokens); 6 at the GUI layer (Image Forgery for UI Elements, Image Forgery for APP, Viewtree Interference, Prompt Injection via Display, Transparent Overlay, Pop-up Interference); 3 at the system layer (Package Name Forgery, Deeplink Forgery, Log Leakage).
    • Impact patterns: The authors classify attack consequences into four categories (Table III)—Poisoned CoT, Task Interruption, Activity Hijacking, Privacy Leakage.

    AgentScan overall architecture (§V-A)

    • Client-server structure: A desktop machine acts as the server and the phone as the client (Figure 3); the server deploys attack scenarios via ADB (including installing malicious APKs), and the client runs the agent in a controlled scenario and generates a security evaluation report afterward.
    • Base instruction set: Starting from AITW task templates and manually adapting them according to each agent's capability documentation, 44 representative tasks were obtained, covering 19 system/third-party apps (Appendix Table V).

    Three-layer attack implementation (§V-B to §V-D)

    • LLM layer: 10 base malicious tasks were manually defined (covering unauthorized data access, silent messaging, file deletion, etc.), then iteratively optimized using five social engineering strategies: Fake Consent, Gamification, Authority Bias, Emergency Simulation, Role-Playing Trap; additionally, 10 glitch tokens were selected from the study by Li et al. [41] and embedded into the base instructions. Appendix Tables VI and VII give the complete instruction and token lists.
    • GUI layer: Implemented via third-party apps' floating window permission—using FLAG_NOT_FOCUSABLE floating windows to overlay fake UI elements or display injected text; installing fake apps with the same icon name but a different package name; using TYPE_APPLICATION_OVERLAY floating windows to inject a new layer into the viewtree at runtime; popping up a notification-style pop-up after the click decision but before execution. 10 base tasks were selected for testing each attack type.
    • System layer: Registering a malicious app with the same package name as a legitimate app; registering the same deeplink pattern to intercept requests (the paper gives two scenarios, Meituan and Amap); using adb logcat to continuously monitor logs and analyze sensitive content leakage.

    Success determination

    • Behavioral observation: Success criteria are whether the agent is redirected to the attacker's confirmation page ("pwned" interface), whether it executes unintended operations, and whether the task is interrupted or data leaked; LLM-layer and GUI-layer attacks each had 10 trials to mitigate the effect of LLM hallucination (Table II note).
    • Hardening experiment: The authors performed preliminary security enhancements on Mobile-Agent-v2—strengthening the association validation between actions and viewtree/screen elements, tightening the alignment constraints between instructions and screen text, and adding a pre-execution screen verification step—then retested all attack surfaces (§VII-B).
  4. What experiments did the paper conduct?

    Practical testing of 9 agents × 11 attack surfaces: all fell for attacks, averaging 6.3; Transparent Overlay and Pop-up Interference each breached 7; after hardening Mobile-Agent-v2, multiple attacks failed.

    Experimental Setup

    • Subjects under test: 9 mobile LLM agents—5 agent frameworks (AutoDroid, Mobile-Agent, Mobile-Agent-v2, AppAgent, DroidBot-GPT), 2 system-level agents, and 2 third-party general-purpose agents (anonymized as Agent-A to Agent-D for ethical reasons; Table I lists implementation details).
    • Decision model: To standardize reasoning capability, the decision tasks of all agents were uniformly driven by GPT-4o as the backend multimodal model (§VI-A).
    • Device environment: System-level agents used commercially available flagship phones; third-party general-purpose agents and agent frameworks were evaluated on the same device.
    • Attack surfaces and sample size: 11 attack surfaces; LLM-layer and GUI-layer attacks each had 10 trials (Table II table note); system-layer attacks were marked as success/failure/not applicable.
    • Metrics: The number of successes for each attack surface (x/10) or success (!)/failure (✗)/not applicable (-); the paper did not use LLM judging or statistical tests.

    Main Results

    Table II summarizes the results of 9 agents across 11 attack surfaces (each cell is the number of successes out of 10 trials, or !/✗/-):

    Swipe horizontally to read the table

    Attack surfaceAutoDroidMobile-AgentMobile-Agent-v2AppAgentDroidBot-GPTAgent-AAgent-BAgent-CAgent-D (vision/structure)
    Malicious Instructions8/106/105/109/108/10✗✗✗✗/✗
    Glitch Tokens3/101/102/104/102/10✗✗✗✗/✗
    Image Forgery for UI Elements4/107/109/106/105/10✗✗✗5/10 / ✗
    Image Forgery for APP-10/1010/1010/10-✗✗✗✗/✗
    Viewtree Interference10/10✗✗9/1010/1010/1010/1010/102/10 / 9/10
    Prompt Injection via Display3/109/1010/106/102/10✗✗✗8/10 / ✗
    Transparent Overlay10/1010/1010/1010/1010/10✗✗10/1010/10 / 10/10
    Pop-up Interference10/1010/1010/1010/1010/10✗10/1010/10✗/✗
    Package Name Forgery-✗✗✗-!!!!/!
    Deeplink Forgery-✗✗✗-!!!!/!
    Log Leakage✗✗✗✗✗!!✗!/!

    (According to Table II; Agent-D has two modes: Vision-Based and Structure-Based)

    • Overall: The authors report that all agents have vulnerabilities, with an average of 6.3/11 attack surfaces succeeding per agent; AppAgent has the most (8/11), and system-level agents have the fewest (5), but are still threatened by Package Name Forgery, Pop-up Interference, etc.
    • By layer: The authors state that Transparent Overlay and Pop-up Interference each succeeded on 7/9 agents; Prompt Injection via Display was effective on all 5 frameworks and failed on all system-level agents; Package Name Forgery and Deeplink Forgery affected only the 4 system-level agents and all succeeded; Log Leakage was observed on 3 agents.
    • Exceptions: Image Forgery for APP had 100% success (10/10) on Mobile-Agent, Mobile-Agent-v2, and AppAgent, and was completely ineffective on the remaining agents; Viewtree Interference was completely ineffective on Mobile-Agent and Mobile-Agent-v2 (0/10), which the authors attribute to their using only screenshot OCR and icon recognition and not parsing the ViewTree.

    Impact and Case Analysis (§VI-C, §VI-D)

    • Impact classification: The authors map the consequences to four impact patterns (Table III); and report that by attacking AppAgent they achieved an unauthorized factory reset operation on the test device.
    • Viewtree Interference case: AutoDroid, DroidBot-GPT, and AppAgent were near-universally affected (9–10/10), which the authors attribute to their heavy reliance on ViewTree metadata; Agent-D's vision mode was 2/10 and structure mode 9/10, which the authors use to show that the weights of different screen perception data sources affect the results.
    • Combined attack case: The authors chained three steps—Transparent Overlay, Malicious Instruction, and Prompt Injection via Display—to demonstrate on Mobile-Agent-v2 extracting a bank card password from the agent's memory and automatically filling it into a malicious interface (Figure 5); the appendix and main text do not give the number of repetitions of this demonstration.

    Hardening Experiment (§VII-B, Table IV)

    • Method: For Mobile-Agent-v2, strengthen the association validation between actions and viewtree/screen elements, tighten the alignment between instructions and screen text, and add pre-execution screen verification.
    • Results: Malicious Instructions dropped from 5/10 to 1/10, Glitch Tokens from 2/10 to 0/10, Image Forgery for UI Elements from 9/10 to 2/10, and Prompt Injection via Display from 10/10 to 2/10; Image Forgery for APP, Transparent Overlay, and Pop-up Interference changed from 10/10 to failure (✗).
    • Authors' interpretation: The authors state that after hardening the success rates of multiple attacks decreased, but Prompt Injection via Display and others still partially succeeded, requiring more comprehensive defenses.

    Other Ablations and Analysis

    • Distribution of system-layer attacks: Package Name Forgery and Deeplink Forgery affected only the 4 system-level agents (all succeeded), and Log Leakage was seen in Agent-A, Agent-B, and Agent-D (Table II).
    • Log monitoring results: The authors report capturing the screen state and click coordinates that Agent-A obtained via the accessibility service, and intercepting multiple rounds of user instructions for Agent-D (§VI-C).
    • Disclosure feedback: Two OEM vendors confirmed the disclosure and expressed thanks (Ethics Considerations).
  5. What are some points that can be further explored?

    The authors note that the attack scenarios and agent environments covered are limited, and that GPT-4o was used uniformly without examining model differences; the experiments covered only 9 agents with 10 trials per scenario.

    Limitations and future directions noted by the authors

    • Limited scope of attack scenarios (§VII-A): The authors state that the attack scenarios in this study are limited to several specific typical attack types, and other attack vectors that may arise in real applications were not fully explored.
    • Limited representativeness of agent environments (§VII-A): The tested agents rely on predefined models and environments, which the authors state may not adequately reflect the diversity of real agents or dynamic environments, limiting the generalizability of the conclusions to more adaptive or evolving agents.
    • Model differences not studied (§VII-A): For fairness, GPT-4o was uniformly chosen as the decision-making multimodal large model; the authors state that different large models may produce different results under the same tasks and attack scenarios, and this study does not address the inherent limitations of these models themselves, focusing only on whether agents have defensive measures.
    • Defenses still need strengthening (§VII-B): The authors state that after the preliminary hardening of Mobile-Agent-v2, attacks such as Prompt Injection via Display, Glitch Token and Fake Icon still succeeded in some scenarios, and future agents need more advanced screen verification, input validation and proactive anomaly detection.

    Experimental coverage

    • Test subjects: 9 mobile LLM agents (5 frameworks + 4 anonymized commercial agents), 11 attack surfaces, 10 trials per scenario at the LLM layer and GUI layer (§VI-A, Table II).
    • Decision model: All agents uniformly use GPT-4o as the backend decision model (§VI-A); the paper does not report attack results under other decision models.
    • Defense evaluation: Only one agent, Mobile-Agent-v2, was compared before and after hardening (Table IV); the paper does not report hardening experiments on other agents, nor defense evaluation under adaptive attacks.
    • Combined attack: The main text presents a three-step combined attack demonstration against Mobile-Agent-v2 (§VI-D-2); the paper does not report the number of repetitions of this demonstration or its reproduction on other agents.
    • Determination method: Attack success is determined by behavioral observation (redirection to a confirmation page, execution of unintended operations, log leakage of content); the paper does not report consistency data from LLM judging or human evaluation.
  6. Summarize the main content of the paper

    AgentScan tested 11 attack surfaces on 9 mobile LLM agents in practice: all have vulnerabilities, each falling for an average of 6.3, and the authors call for standardized security practices.

    This is a security analysis paper on mobile LLM agents, in which the authors propose a taxonomy and a testing framework, AgentScan, and claim it is the first systematic study in this direction.

    • Problem: Mobile LLM agents automatically execute phone tasks with high privileges; the authors argue that their probabilistic decision-making and natural language interaction introduce new targeted attack surfaces, while existing security research focuses on Web agents and lacks an evaluation framework covering the complete workflow of mobile agents.
    • Method: Reverse-engineering 9 agents, abstracting a five-stage workflow and three interaction layers (LLM, GUI, system), and summarizing 11 attack surfaces; AgentScan uses a client-server architecture, deploys malicious APKs, floating windows and fake apps via ADB, and injects attacks layer by layer on real devices; the base instruction set contains 44 tasks, the LLM/GUI layers are tested 10 times per scenario, and decisions are uniformly driven by GPT-4o.
    • Main results:
      • All 9 agents have vulnerabilities, each falling for an average of 6.3/11 attack surfaces, with AppAgent reaching as many as 8 (Table II).
      • Transparent Overlay and Pop-up Interference each succeeded on 7/9 agents; Malicious Instructions succeeded on 5 frameworks (5/10 to 9/10), while the 4 system-level agents were immune to both types of LLM-layer attacks.
      • Package Name Forgery and Deeplink Forgery affected only the 4 system-level agents and succeeded in all of them; Log Leakage was observed in 3 agents.
      • The authors demonstrated a three-step combined attack that extracted a bank card password from Mobile-Agent-v2's memory (Figure 5).
      • After preliminary hardening of Mobile-Agent-v2, Image Forgery for APP, Transparent Overlay and Pop-up Interference changed from 10/10 to failure, and Malicious Instructions dropped from 5/10 to 1/10 (Table IV).
    • Authors' conclusions: The authors state that these results expose design flaws in current agent implementations and highlight the urgent need for standardized security practices; the disclosure has been confirmed by two OEM vendors. The authors also note that the attack scenarios and tested environments have limited coverage, that the uniform use of GPT-4o did not examine model differences, and that some attacks remain after hardening.
Read originalarxiv.org