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

二进制文件中基于补丁代码定位的细粒度1-Day漏洞检测

Fine-Grained 1-Day Vulnerability Detection in Binaries via Patch Code Localization

Chaopeng Dong, Jingdong Guo, Shouguo Yang, Yang Xiao, Yi Li, Hong Li, Zhi Li, Limin Sun

AI总结:

提出PLocator方法,利用控制流图中补丁代码及上下文的稳定值定位真实补丁代码,在跨编译器和优化场景下实现高精度的1-Day漏洞检测,显著优于现有方法。

摘要:

二进制文件中的1-day漏洞已成为软件安全的主要威胁。补丁存在性测试是检测漏洞的有效方法之一。然而,由于各种编译器和优化的干扰、补丁相似代码块以及剥离二进制文件中的无关函数,现有的补丁存在性测试工作在实际场景中表现不佳。在本文中,我们提出了一种名为PLocator的新方法,该方法利用从控制流图中提取的补丁代码及其上下文中的稳定值,以准确定位目标函数中的真实补丁代码,为现实世界的漏洞检测场景提供了实用的解决方案。为了评估PLocator的有效性,我们收集了73个CVE,并构建了两个全面的数据集($Dataset_{-irr}$和$Dataset_{+irr}$),包含1,090和27,250个测试用例,涵盖四种编译优化级别和两种编译器,并进行了三种不同的实验,即Same、XO(跨优化)和XC(跨编译器)。结果表明,PLocator在短时间内实现了88.2%的平均TPR和12.9%的FPR,分别比最先进的方法高出26.7%和63.5%,表明PLocator在1-day漏洞检测任务中更具实用性。

英文摘要:

1-day vulnerabilities in binaries have become a major threat to software security. Patch presence test is one of the effective ways to detect the vulnerability. However, existing patch presence test works do not perform well in practical scenarios due to the interference from the various compilers and optimizations, patch-similar code blocks, and irrelevant functions in stripped binaries. In this paper, we propose a novel approach named PLocator, which leverages stable values from both the patch code and its context, extracted from the control flow graph, to accurately locate the real patch code in the target function, offering a practical solution for real-world vulnerability detection scenarios. To evaluate the effectiveness of PLocator, we collected 73 CVEs and constructed two comprehensive datasets ($Dataset_{-irr}$ and $Dataset_{+irr}$), comprising 1,090 and 27,250 test cases at four compilation optimization levels and two compilers with three different experiments, i.e., Same, XO (cross-optimizations), and XC (cross-compilers). The results demonstrate that PLocator achieves an average TPR of 88.2% and FPR of 12.9% in a short amount of time, outperforming state-of-the-art approaches by 26.7% and 63.5%, respectively, indicating that PLocator is more practical for the 1-day vulnerability detection task.

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

↑