arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.23970cs.CR
收藏

使用大型语言模型的二进制差异摘要生成

Binary Diff Summarization using Large Language Models

NYU Tandon School of Engineering(纽约大学坦登工程学院);Narf Industries(Narf工业公司)

Meet Udeshi, Venkata Sai Charan Putrevu, Prashanth Krishnamurthy, Prashant Anantharaman, Sean Carrick, Ramesh Karri, Farshad Khorrami

AI总结:

提出一种结合LLM与二进制差异分析的摘要框架,并设计FSS识别敏感函数,在自建供应链基准及XZ utils攻击案例中实现高精度恶意软件检测。

摘要:

软件供应链安全对于确保软件更新不包含恶意注入的代码,或不引入可能危及关键基础设施完整性的漏洞是必要的。验证软件更新的完整性涉及二进制差异分析(binary diffing),该分析通过结合二进制分析和逆向工程来突出两个二进制版本之间的变化。大型语言模型(LLM)已被应用于二进制分析,通过生成网络安全专家能够理解并用于进一步分析的自然语言摘要,来增强传统工具。将基于LLM的二进制代码摘要生成与二进制差异分析相结合,可以提升LLM对关键变化的关注,并实现自动化恶意软件检测等复杂任务。为解决这一问题,我们提出了一种使用LLM进行二进制差异摘要生成的新型框架。我们引入了一种新的功能敏感度评分(FSS),用于对敏感二进制函数进行自动化分类,以服务于下游检测任务。我们通过向6个开源项目中注入3种不同恶意软件,构建了一个软件供应链安全基准,生成了104个二进制版本、392个二进制差异和46,023个函数。在此基础上,我们的框架在恶意软件检测上取得了0.98的精确率和0.64的召回率,表现出高准确率和低误报率。在恶意函数与良性函数之间,我们实现了3.0分的FSS分离,证实FSS分类能够对敏感函数进行分类。我们对真实世界的XZ utils供应链攻击开展了案例研究;我们的框架以高FSS正确检测出被注入的后门函数。

英文摘要:

Security of software supply chains is necessary to ensure that software updates do not contain maliciously injected code or introduce vulnerabilities that may compromise the integrity of critical infrastructure. Verifying the integrity of software updates involves binary differential analysis (binary diffing) to highlight the changes between two binary versions by incorporating binary analysis and reverse engineering. Large language models (LLMs) have been applied to binary analysis to augment traditional tools by producing natural language summaries that cybersecurity experts can grasp for further analysis. Combining LLM-based binary code summarization with binary diffing can improve the LLM's focus on critical changes and enable complex tasks such as automated malware detection. To address this, we propose a novel framework for binary diff summarization using LLMs. We introduce a novel functional sensitivity score (FSS) that helps with automated triage of sensitive binary functions for downstream detection tasks. We create a software supply chain security benchmark by injecting 3 different malware into 6 open-source projects which generates 104 binary versions, 392 binary diffs, and 46,023 functions. On this, our framework achieves a precision of 0.98 and recall of 0.64 for malware detection, displaying high accuracy with low false positives. Across malicious and benign functions, we achieve FSS separation of 3.0 points, confirming that FSS categorization can classify sensitive functions. We conduct a case study on the real-world XZ utils supply chain attack; our framework correctly detects the injected backdoor functions with high FSS.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑