arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.22010cs.CR
收藏

VulBinLLM:基于 LLM 的针对剥离二进制文件的漏洞检测

VulBinLLM: LLM-powered Vulnerability Detection for Stripped Binaries

Nasir Hussain, Haohan Chen, Chanh Tran, Philip Huang, Zhuohao Li, Pravir Chugh, William Chen, Ashish Kundu, Yuan Tian

AI总结:

本文提出 Vul-BinLLM 框架,通过结合反编译优化、扩展上下文记忆、上下文学习与思维链提示,有效检测剥离二进制文件中的漏洞,并在 Juliet 数据集上达到最先进性能。

摘要:

识别剥离二进制文件中的漏洞是软件安全领域的重大挑战。尽管在利用大型语言模型(LLM)从反编译二进制文件中生成人类可读信息方面取得了一些进展,但如何有效且可扩展地检测这些二进制文件中的漏洞仍是一个开放问题。本文探讨了将 LLM 应用于检测这些二进制文件中漏洞的新方法。我们展示了通过结合反编译优化(使漏洞更突出)与长期记忆(提供更大上下文窗口)来识别易受攻击程序的可行性,在二进制漏洞分析中达到了最先进的性能。我们的发现突显了 LLM 克服传统分析方法局限性并推动二进制漏洞检测领域的潜力,为构建更安全的软件系统铺平道路。本文提出 Vul-BinLLM,一个基于 LLM 的二进制漏洞检测框架,它模仿传统二进制分析工作流,在反编译和漏洞推理阶段进行了细粒度优化并扩展了上下文。在反编译阶段,Vul-BinLLM 在不改变代码结构或功能的前提下添加漏洞和弱点注释,为后续漏洞推理提供更多上下文信息。在漏洞推理阶段,Vul-BinLLM 结合上下文学习与思维链提示,并利用记忆管理代理来提升准确性。我们的评估涵盖了常用的合成数据集 Juliet,以评估在 C/C++ 二进制文件中进行分析和漏洞检测的潜在可行性。评估结果表明,Vul-BinLLM 在编译后的 Juliet 数据集上检测漏洞非常有效。

英文摘要:

Recognizing vulnerabilities in stripped binary files presents a significant challenge in software security. Although some progress has been made in generating human-readable information from decompiled binary files with Large Language Models (LLMs), effectively and scalably detecting vulnerabilities within these binary files is still an open problem. This paper explores the novel application of LLMs to detect vulnerabilities within these binary files. We demonstrate the feasibility of identifying vulnerable programs through a combined approach of decompilation optimization to make the vulnerabilities more prominent and long-term memory for a larger context window, achieving state-of-the-art performance in binary vulnerability analysis. Our findings highlight the potential for LLMs to overcome the limitations of traditional analysis methods and advance the field of binary vulnerability detection, paving the way for more secure software systems. In this paper, we present Vul-BinLLM , an LLM-based framework for binary vulnerability detection that mirrors traditional binary analysis workflows with fine-grained optimizations in decompilation and vulnerability reasoning with an extended context. In the decompilation phase, Vul-BinLLM adds vulnerability and weakness comments without altering the code structure or functionality, providing more contextual information for vulnerability reasoning later. Then for vulnerability reasoning, Vul-BinLLM combines in-context learning and chain-of-thought prompting along with a memory management agent to enhance accuracy. Our evaluations encompass the commonly used synthetic dataset Juliet to evaluate the potential feasibility for analysis and vulnerability detection in C/C++ binaries. Our evaluations show that Vul-BinLLM is highly effective in detecting vulnerabilities on the compiled Juliet dataset.

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

↑