MalCVE: 使用大语言模型进行恶意软件检测与CVE关联
MalCVE: Malware Detection and CVE Association Using Large Language Models
AI总结:
MalCVE利用大语言模型检测恶意软件并关联CVE,实现高准确率的恶意软件识别和漏洞关联。
摘要:
恶意软件攻击正对经济造成越来越显著的影响。商业化的恶意软件检测软件成本高昂,而能够将恶意软件与它所利用的具体软件漏洞联系起来的工具则几乎不存在。理解恶意软件与它所针对的漏洞之间的联系对于分析过去的威胁和主动防御当前的威胁至关重要。在本研究中,我们提出了一种利用大语言模型(LLMs)来检测二进制恶意软件,特别是JAR文件的方法,并利用LLM的能力结合检索增强生成(RAG)技术来识别恶意软件可能利用的常见漏洞和暴露(CVE)。我们开发了一个概念验证工具MalCVE,该工具集成了二进制代码反编译、反混淆、基于LLM的代码摘要、语义相似性搜索以及基于LLM的CVE分类。我们使用包含3,839个JAR可执行文件的基准数据集评估了MalCVE。MalCVE实现了97%的平均恶意软件检测准确率,成本仅为商业解决方案的一小部分。特别是,结果表明基于LLM的代码摘要能够实现高度准确且可解释的恶意软件识别。MalCVE也是首个将CVE与二进制恶意软件关联起来的工具,实现了65%的召回@10,这与在源代码上进行类似分析的研究相当。
英文摘要:
Malicious software attacks are having an increasingly significant economic impact. Commercial malware detection software can be costly, and tools that attribute malware to the specific software vulnerabilities it exploits are largely lacking. Understanding the connection between malware and the vulnerabilities it targets is crucial for analyzing past threats and proactively defending against current ones. In this study, we propose an approach that leverages large language models (LLMs) to detect binary malware, specifically within JAR files, and uses LLM capabilities combined with retrieval-augmented generation (RAG) to identify Common Vulnerabilities and Exposures (CVEs) that malware may exploit. We developed a proof-of-concept tool, MalCVE, that integrates binary code decompilation, deobfuscation, LLM-based code summarization, semantic similarity search, and LLM-based CVE classification. We evaluated MalCVE using a benchmark dataset of 3,839 JAR executables. MalCVE achieved a mean malware-detection accuracy of 97%, at a fraction of the cost of commercial solutions. In particular, the results demonstrate that LLM-based code summarization enables highly accurate and explainable malware identification. MalCVE is also the first tool to associate CVEs with binary malware, achieving a recall@10 of 65%, which is comparable to studies that perform similar analyses on source code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。