Malsight: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarization
- 26 June 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Information Forensics and Security
- Vol. 20 (15566013) , 6733-6747
Abstract
Binary malware summarization aims to automatically generate human-readable descriptions of malware behaviors from executable files, facilitating tasks like malware cracking and detection. Previous methods based on Large Language Models (LLMs) have shown great promise. However, they still face significant issues, including poor usability, inaccurate explanations, and incomplete summaries, primarily due to the obscure pseudocode structure and the lack of malware training summaries. Further, calling relationships between functions, which involve the rich interactions within a binary malware, remain largely underexplored. To this end, we propose MALSIGHT, a novel code summarization framework that can iteratively generate descriptions of binary malware by exploring malicious source code and benign pseudocode. Specifically, we construct the first malware summary dataset, MalS and MalP, using an LLM and manually refine this dataset with human effort. At the training stage, we tune our proposed MalT5, a novel LLM-based code model, on the MalS and benign pseudocode datasets. Then, at the test stage, we iteratively feed the pseudocode functions into MalT5 to obtain the summary. Such a procedure facilitates the understanding of pseudocode structure and captures the intricate interactions between functions, thereby benefiting summaries’ usability, accuracy, and completeness. Additionally, we propose a novel evaluation benchmark, BLEURT-sum, to measure the quality of summaries. Experiments on three datasets show the effectiveness of the proposed MALSIGHT. Notably, our proposed MalT5, with only 0.77B parameters, delivers comparable performance to much larger Code-Llama.Keywords
All Related Versions
Funding Information
- National Natural Science Foundation of China (62471064, 62301072, 62271066)
- Beijing University of Posts and Telecommunications (BUPT) Excellent Ph.D. Students Foundation (CX20251025)
This publication has 31 references indexed in Scilit:
- How Far Have We Gone in Binary Code Understanding Using Large Language Models2024
- HexT5: Unified Pre-Training for Stripped Binary Code Information Inference2023
- Extending Source Code Pre-Trained Language Models to Summarise Decompiled Binaries2023
- Large-Scale Analysis on Anti-Analysis Techniques in Real-World MalwareIEEE Access, 2022
- Binary Code Similarity Detection2021
- Ransomware: Recent advances, analysis, challenges and future research directionsComputers & Security, 2021
- HYDRA: A multimodal deep learning framework for malware classificationComputers & Security, 2020
- Helping Johnny to Analyze Malware: A Usability-Optimized Decompiler and Malware Analysis User Study2016
- Reverse engineering: Journey from code to design2011
- The Meteor metric for automatic evaluation of machine translationMachine Translation, 2009