用大模型加速安卓恶意软件语义分析与分类
Exploring Large Language Models for Semantic Analysis and Categorization of Android Malware
- 基于GPT-4o-mini构建分层摘要链,通过提示工程实现自动化分析
- 无需微调即达77%分类准确率,可定位恶意行为代码片段
- 适合安全研究员快速识别新型恶意样本,提升逆向效率
恶意软件分析是一项复杂任务,需评估恶意软件的功能、来源及潜在影响。随着现代恶意代码库的快速演进和复杂化,传统深度逆向工程日益繁琐。本文探索利用大语言模型(LLMs)进行语义分析,以加速已知与新型样本的分析。基于GPT-4o-mini的 extit{msp}模型,采用分层摘要链与策略性提示工程,实现对Android恶意软件的功能、类别和包层级的高效总结。此外, extit{msp}能区分恶意应用与良性应用,节省逆向时间。尽管未针对安卓恶意软件微调,通过优化提示工程仍实现最高77%的分类准确率,并可借助从包到函数层级的反向追溯,精准定位恶意行为代码片段。
原文摘要 · Abstract (English)
Malware analysis is a complex process of examining and evaluating malicious software's functionality, origin, and potential impact. This arduous process typically involves dissecting the software to understand its components, infection vector, propagation mechanism, and payload. Over the years, deep reverse engineering of malware has become increasingly tedious, mainly due to modern malicious codebases' fast evolution and sophistication. Essentially, analysts are tasked with identifying the elusive needle in the haystack within the complexities of zero-day malware, all while under tight time constraints. Thus, in this paper, we explore leveraging Large Language Models (LLMs) for semantic malware analysis to expedite the analysis of known and novel samples. Built on GPT-4o-mini model, \msp is designed to augment malware analysis for Android through a hierarchical-tiered summarization chain and strategic prompt engineering. Additionally, \msp performs malware categorization, distinguishing potential malware from benign applications, thereby saving time during the malware reverse engineering process. Despite not being fine-tuned for Android malware analysis, we demonstrate that through optimized and advanced prompt engineering \msp can achieve up to 77% classification accuracy while providing highly robust summaries at functional, class, and package levels. In addition, leveraging the backward tracing of the summaries from package to function levels allowed us to pinpoint the precise code snippets responsible for malicious behavior.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。