arXiv:2608.27994cs.CRAug 2026

Manuscript Offprint

arXiv:2608.27994

Moirae: A Multimodal Agent Collaborative Framework for Dynamic Android Malware Detection

Xueying Zeng, Youquan Xian, Yanze Li, bowen hu, Ziqi Shan, Xu Luo, DanPing Yang, Peng Liu, Lei Cui, Bo Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Xueying Zeng ∗^{*} †^{\dagger}, Youquan Xian §^{\S} †^{\dagger}, Yanze Li ∗^{*}, Bowen Hu ∗^{*}, Ziqi Shan ∗^{*}, Xu Luo ∗^{*}, DanPing Yang ‡^{\ddagger}, Peng Liu ‡^{\ddagger}, Lei Cui §^{\S}, Bo Li ∗^{*} ⊗^{\otimes}

  • School of Computer Science and Engineering, Beihang University, Beijing, China

§ School of Cyberspace Security, Beijing University of Posts and Telecommunications, Beijing, China

† School of Computer Science and Engineering, Guangxi Normal University, Guilin, China

Abstract—The Android ecosystem faces persistent and rapidly evolving malware threats. Existing machine learning detectors are vulnerable to concept drift because they rely on implementation-specific features whose distributions change over time. Large language models (LLMs) offer strong semantic understanding and zero-shot reasoning, but current LLM-based detectors typically depend on code-centric or single-dimensional evidence, making them susceptible to obfuscation and limiting comprehensive behavior analysis. We present Moirae, a multimodal agent collaborative framework for dynamic Android malware detection. Moirae dynamically collects multimodal runtime evidence and employs ReAct-based specialized agents to analyze complementary behavioral views. The detection process begins by identifying visual deception cues, modeling UI state transitions, and integrating runtime API behaviors to fuse multi-dimensional evidence across user-visible interfaces and hidden backend operations. Experiments on temporally and distributionally unseen datasets show that Moirae achieves an accuracy of 90.06% without fine-tuning, outperforming state-of-the-art baselines and demonstrating strong zero-shot generalization against Android malware concept drift.

INTRODUCTION

Android dominates the mobile ecosystem, making it a major target for malware attacks and posing a persistent security threat to hundreds of millions of users [1, 2]. Most automated Android malware detectors rely on static or dynamic features and supervised models that learn statistical correlations between observable program artifacts and malware labels [3, 4, 5]. These models typically assume that training and test data follow similar distributions. In practice, however, benign and malicious applications continuously evolve, causing their feature distributions to shift over time, particularly in shallow feature spaces [6]. Consequently, detectors trained on historical samples often exhibit substantial performance degradation on emerging applications, limiting their reliability in long-term deployment.

Prior work has sought to mitigate concept drift through Markov-chain modeling [7], semantic-embedding-based clustering [8, 9], and adaptive distribution tracking [10, 11]. Dynamic analysis has also been widely adopted to capture runtime behaviors and execution logic that may evade static inspection. Such methods collect system-call traces, network traffic, and runtime API sequences in controlled environments [12, 13, 14]. More recent approaches use pseudo-labeling [15] or continuous active learning [16] to update detection models with newly collected samples. Although these techniques can partially alleviate concept drift, they remain largely dependent on learning feature-label correlations from evolving data distributions. They therefore require continuous sample collection, annotation, and model retraining, while offering limited understanding of the high-level intent underlying observed behaviors.

Large language models (LLMs) offer a promising alternative due to their strong knowledge transfer, zero-shot generalization, and semantic reasoning capabilities [17, 18]. Existing LLM-based Android malware detectors generally follow two paradigms: using LLMs to summarize program features for downstream classifiers [19, 20], or directly reasoning over decompiled code snippets [21, 22]. The former treats LLMs merely as feature extractors and overlooks their ability to reason about behavioral intent. The latter relies on large-scale code analysis, which is vulnerable to code obfuscation. More fundamentally, both paradigms typically rely on a single, code-centric source of evidence. Such evidence provides only a partial view of an application's behavior and may be insufficient to distinguish malicious actions from legitimate functionality.

Our key observation is that Android malicious behavior manifests across multiple complementary semantic levels. Visual content reveals how an application presents itself and induces user actions, UI interactions capture state transitions and user responses, and system-level API operations expose the resulting sensitive consequences. No single modality is sufficient: suspicious interfaces do not reveal what the application ultimately executes, while isolated API calls may appear benign without their user-facing context. For example, sending an SMS may be legitimate in a messaging application but suspicious when triggered after a deceptive prompt without clear user consent. By linking what users see, how they interact, and

†^{\dagger} Equal contribution.

Corresponding author.

what the application performs, cross-level evidence provides a more complete account of malicious behavior. Although interfaces, code structures, and API combinations may evolve, the underlying malicious objectives, such as deceptive advertising, user intimidation, SMS abuse, and extortion, remain comparatively stable. This motivates multimodal reasoning to infer high-level malicious intent from evolving low-level implementations.

Motivated by this observation, we propose Moirae 1^{1}, an LLM-powered multimodal agent framework for Android malware detection. Through dynamic execution, Moirae collects runtime evidence from three complementary dimensions: visual inducements presented by the application, UI states and interaction transitions, and system-level API operations. It aligns these observations across semantic levels to connect user-visible behavior and interactions with their underlying system consequences. Multiple specialized LLM agents then analyze and integrate the resulting evidence to infer high-level malicious intent. By exploiting the multimodal understanding and reasoning capabilities of LLMs, Moirae moves beyond implementation-specific feature fitting and enables more comprehensive analysis of previously unseen applications without fine-tuning. The main contributions of this paper are as follows:

• We proposed Moirae. By dynamically capturing and fusing runtime evidence across three complementary dimensions, visual presentation, UI interaction transitions, and system-level API operations, Moirae effectively correlates user-visible behaviors with underlying system consequences.

• We designed a multi-agent autonomous analysis mechanism based on the ReAct paradigm. Specialized LLM agents collaboratively process the cross-level evidence, enabling the framework to autonomously align and mutually verify multimodal data.

• Experimental evaluations demonstrate that Moirae achieved a 90.06% accuracy. Furthermore, compared to the SOTA baseline, the framework exhibits excellent generalization performance.

References (37)