MalFocus: Locating Malicious Modules in Malware Based on Hybrid Deep Learning
In recent years, binary malware detection has attracted extensive attention from industry and academia. However, most of the existing work only focuses on judging whether a sample is malicious or not, rather than identifying malicious modules in malware. Few studies aiming at locating malicious code work on the function granularity and suffer from inaccuracy. In this paper, we address this problem by locating malicious code at the functional module (<italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">FM</i>) granularity, which combines several functions to express the malicious behaviors of malware. We design a tool called MalFocus to automatically divide malware into <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">FMs</i> and then identify the malicious functional module (<italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">MFM</i>) in a multi-model hybrid manner, in which an unsupervised model and an interpretability approach based on a binary classifier are combined, eliminating the workload of labeling malware samples, determining the scope of <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">MFMs</i> and ranking them according to their maliciousness. The identified <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">MFMs</i> are then passed to security analysts for verification, helping to significantly reduce the scope of manual analysis while providing a comprehensive view of the malware attack flow. Additionally, rules derived from the verified <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">MFMs</i> can be used to detect variants and new malware families with different functionalities, offering a more general and flexible detection approach. We evaluate MalFocus’s performance on 6764 real-world samples. The results show that MalFocus can correctly identify 95% of <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">MFMs</i>, outperforming current state-of-the-art work.
Authors
- Guozhu Meng (ORCID: https://orcid.org/0000-0001-6388-2571)
- Chaoyang Lin (ORCID: https://orcid.org/0000-0002-4845-2220)
- Lei Xue (ORCID: https://orcid.org/0009-0003-1952-885X)
- Kai Chen (ORCID: https://orcid.org/0000-0002-5624-2987)
- Xiang Lu (ORCID: https://orcid.org/0009-0001-7914-7640)
- Weihao Huang (ORCID: https://orcid.org/0009-0000-1503-0964)
- Lei Meng (ORCID: https://orcid.org/0000-0002-9384-3837)
- Zongming Zhang (ORCID: https://orcid.org/0000-0002-7108-2432)
- Zhiyu Zhang (ORCID: https://orcid.org/0000-0001-8992-1647)
Institutions
- Sun Yat-sen University (CN)
- Chinese Academy of Sciences (CN)
- SBS CyberSecurity (United States) (US)
- Institute of Information Engineering (CN)
- Alibaba Group (China) (CN)
Publication Details
- Journal
- IEEE Transactions on Dependable and Secure Computing
- Published
- 2025-04-14
- DOI
- https://doi.org/10.1109/tdsc.2025.3561052
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00