Multimodal Fusion for Android Malware Detection Based on Large Pre-Trained Models
Malware detection is a critical issue in software engineering as it directly threatens user information security. Existing approaches often focus on individual modality (either source code or binary code) for the detection, but it ignores to effectively exploit the complementary information between them. This limits the detection performance, especially in complex and evasive malware scenarios. In this paper, we take Android applications written in Java as objects, and provide a novel fine-grained multimodal fusion method with large pre-trained models to combine the features from source and binary codes for the malware detection. For the source code modality, we employ the graphical user interface (GUI) as a framework to segment the source code into snippets, and use a pre-trained programming language model to extract feature representations. For the binary code modality, we convert binary code into grayscale images and fine-tune a pre-trained vision model to extract features indirectly. We then implement cross-modal attention and devise a contrastive loss to align features across modalities, supplementing this with supervised classification loss to refine the multimodal fusion process specifically for malware detection. Our experiments, conducted using the Data-MD and Data-MC benchmarks, demonstrate that our approach achieves a precision of 0.977 and a recall of 0.984 in detecting malware. This underscores the advantages of using large pre-trained models for feature representation and the fusion of information across different modalities for effective malware detection.
Authors
- Huaxiao Liu (ORCID: https://orcid.org/0000-0002-8151-1413)
- Xun Li (ORCID: https://orcid.org/0000-0002-1578-9708)
- Peng Zhang (ORCID: https://orcid.org/0000-0002-9122-0759)
- Yu Zhao (ORCID: https://orcid.org/0000-0002-9581-2866)
- Yuzhou Liu (ORCID: https://orcid.org/0000-0003-2765-4074)
- Lei Liu (ORCID: https://orcid.org/0000-0003-2702-0258)
Institutions
- Jilin University (CN)
- Jilin Province Science and Technology Department (CN)
- University of Cincinnati (US)
Publication Details
- Journal
- IEEE Transactions on Software Engineering
- Published
- 2025-04-03
- DOI
- https://doi.org/10.1109/tse.2025.3557577
- Citations
- 5
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 7.43