LeoDroid: An LLM-Based Few-Shot Multi-Label Detection for Android Malware
Data noise poses a fundamental challenge in Android malware detection that significantly degrades the performance of machine learning models. Traditional approaches using third-party services like VirusTotal introduce inconsistencies from malware evolution and temporal label variations, while deep learning methods struggle with noisy data due to their reliance on large clean datasets and their tendency to memorize rather than generalize from noisy labels. To address these challenges, we propose the LLM-based Few-shot Multi-Label Malware Detection (LeoDroid), a novel framework that enhances malware detection robustness in both noisy and data-scarce environments, which are enabled by Large Language Models (LLMs). Our approach employs a two-stage process that integrates a core-set strategy for selecting representative samples with a carefully designed prompt engineering methodology. The prompt design combines label descriptions, core-set examples, and chain-of-thought reasoning to guide large language models in multi-label classification tasks. Through this integration, LeoDroid effectively manages the balance between sample size and noise tolerance to maintain high detection accuracy. We evaluate our framework on three real-world datasets-anonymousCERT, Drebin, and VirusShare. The experimental results demonstrate exceptional performance with an MS-ACC above 0.93 across all datasets, surpassing traditional machine learning methods by more than three times on the anonymousCERT.
Authors
- Ruijie Gong (ORCID: https://orcid.org/0000-0002-4971-1802)
- Hongpeng Bai (ORCID: https://orcid.org/0000-0002-6298-3327)
- Ze Wang (ORCID: https://orcid.org/0000-0001-6971-2004)
- Guangquan Xu (ORCID: https://orcid.org/0000-0001-8701-3944)
- Yude Bai
- Wenying He
- Ji Zhang (ORCID: https://orcid.org/0000-0002-1244-2880)
- Liyuan Liu (ORCID: https://orcid.org/0000-0003-2585-323X)
- Qi Guo (ORCID: https://orcid.org/0000-0002-8329-7668)
- Minhong Dong (ORCID: https://orcid.org/0009-0002-6762-4902)
Institutions
- Tianjin University (CN)
- Hebei University of Technology (CN)
- University of Southern Queensland (AU)
- Jilin University (CN)
- Tiangong University (CN)
- Jilin Province Science and Technology Department (CN)
Publication Details
- Published
- 2025-05-15
- DOI
- https://doi.org/10.1109/spw67851.2025.00042
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Hebei Province
- National Key Research and Development Program of China