MalFormer: A Novel Vision Transformer Model for Robust Malware Analysis
As traditional signature-based malware analysis struggles to detect malware variants, image-based malware analysis has been researched to overcome these limitations. Especially, Vision Transformer (ViT)-based malware analysis has achieved high performance by capturing global features of malware images. However, previous ViT-based methods struggle to effectively capture both local and global features of images and exhibit limited generalization performance. In this paper, we propose a novel malware analysis method that introduces MalFormer, which employs the Cross-Scale Embedding Layer, Long-Short Distance Attention, and Adaptive Token Masking. Also, we introduce Sharpness Aware Minimization (SAM) to optimize the training process of MalFormer. The proposed method enhances sensitivity to key features while maintaining a well-balanced integration of local and global features. From the experimental results on various datasets, we show that the proposed method outperforms state-of-the-art ViT-based methods.We also show that the proposed method provides strong robustness against obfuscation techniques, achieving high performance on obfuscated samples.
Authors
- Seok-Hwan Choi
- H.W. Lee (ORCID: https://orcid.org/0009-0009-6316-7354)
- Gwang-Nam Kim
- In-Woong Jeong
Institutions
- Yonsei University (KR)
Publication Details
- Journal
- IEEE Access
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/access.2025.3588232
- Citations
- 1
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 1.49
Funders
- Ministry of Science and ICT, South Korea