XLM4Detector: Multistage Deobfuscation and Semantic-Driven Excel 4.0 Macro Malware Detection
Excel 4.0 Macro leverages XLM code to directly invoke system APIs and automate complex tasks, making it a widely used tool in phishing attacks, APT campaigns, and IoT intrusions in recent years. By constructing various obfuscated macro malware, attackers can easily evade firewalls and detection systems, thereby achieving persistent attacks. However, existing XLM malware defense mechanisms lack in-depth analysis of XLM malware families and behaviors, failing to integrate multi-dimensional features and semantic relationships effectively. As a result, detection systems struggle to accurately identify malicious operations in real-world attacks, leading to low robustness and accuracy. To this end, we propose XLM4Detector, a novel Excel 4.0 Macro malware detection framework based on multi-stage deobfuscation and multi-view semantic fusion. First, XLM4Detector integrates AST analysis, simulated execution, and regular expression matching to construct a multi-stage deobfuscation algorithm, enabling precise deobfuscation and XLM code extraction. Second, we introduce four feature extraction methods that capture fine-grained features at the word (string), token (function), abstract syntax tree, and semantic relationship levels. Then, we design four embedding representations (XlmWord2Vec, XlmToken2Vec, XlmAst2Vec, XlmRela2Vec) and employ a multi-view semantic fusion algorithm for feature alignment. Finally, we develop an MHSACNN-BiGRU model to capture hierarchical semantic relationships, effectively enabling XLM malware behavior detection and family classification. Experimental results demonstrate that XLM4Detector effectively reconstructs obfuscated XLM source code and accurately detects XLM malware families and behaviors. It outperforms state-of-the-art methods in detection accuracy, robustness, and generalization. Our framework provides critical technical support for IoT security defense, malicious document detection, and APT tracking.
Authors
- Yilin Zhou (ORCID: https://orcid.org/0009-0005-2952-5198)
- Zhi Ouyang (ORCID: https://orcid.org/0000-0003-0461-8177)
- Di Yao (ORCID: https://orcid.org/0000-0003-1778-8319)
- Guojun Peng (ORCID: https://orcid.org/0000-0001-5731-8958)
- Yuling Chen (ORCID: https://orcid.org/0000-0002-8674-8356)
- Chenguang Li (ORCID: https://orcid.org/0000-0002-2783-2259)
- Chaofan Chen (ORCID: https://orcid.org/0009-0001-5769-9540)
- Xiuzhang Yang
- Chenyang Wang
Institutions
- Guizhou University (CN)
- Wuhan University (CN)
Publication Details
- Journal
- IEEE Internet of Things Journal
- Published
- 2025-05-29
- DOI
- https://doi.org/10.1109/jiot.2025.3574724
- Citations
- 1
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 1.49
Funders
- National Natural Science Foundation of China
- Major Scientific and Technological Special Project of Guizhou Province