MKPL: Multi-dimensional Knowledge-embedded Prompt Learning for Few-shot Malware Family Recognition
Large language models (LLMs) bring great potential for next-generation malware family recognition with their capacity to understand complex code semantics by integrating multi-dimensional data features. However, existing fine-tuning methods still rely on well-labelled datasets and powerful computation resources, which is particularly challenging when the variety and amount of malware grow in real-time. To more effectively recognize unknown malware varieties based on LLMs, a novel multi-dimensional knowledge-embedded prompt learning (MKPL) framework is proposed, in which prompts are generated through two main steps: 1) cross-linguistic prompt paraphrasing (CPP) for embedding multi-dimensional knowledge into templates, and 2) prompt scoring for selecting the most effective prompt templates. Moreover, to reduce feature loss during prompt tuning, a sampling-infer-concatenation pipeline is designated to process these long API malware sequences. Specifically, a single-sentence template can be upgraded to a multi-sentence template by integrating statistic features into CPP, which is essential to improve the robustness of recognition results. Comprehensive experiments across eight malware families in few-shot scenarios demonstrate the proposed method’s superior performance in all metrics.
Authors
- Mianxiong Dong (ORCID: https://orcid.org/0000-0002-2788-3451)
- Jianhua Li (ORCID: https://orcid.org/0000-0002-6831-3973)
- Yuxin Zhang (ORCID: https://orcid.org/0000-0001-5431-3676)
- Shuilin Li
- Kaoru Ota (ORCID: https://orcid.org/0000-0002-3382-1652)
- Gaolei Li
- Xiaoyu Yi (ORCID: https://orcid.org/0009-0001-1772-0368)
Institutions
- Ministry of Public Security of the People's Republic of China (CN)
- Shanghai Jiao Tong University (CN)
- Muroran Institute of Technology (JP)
- The Third Institute of the Ministry of Public Security (CN)
Publication Details
- Published
- 2024-12-13
- DOI
- https://doi.org/10.1109/hpcc64274.2024.00145
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China