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

PS$^3$:基于语义符号签名的精确补丁存在性测试

PS$^3$: Precise Patch Presence Test based on Semantic Symbolic Signature

Qi Zhan, Xing Hu, Zhiyang Li, Xin Xia, David Lo, Shanping Li

AI总结:

本文提出PS3方法,利用语义级符号签名在不同编译器选项下精确测试二进制补丁存在性,在62个CVE的3,631个样本上F1值达0.89,比现有最优方法提升33%。

摘要:

在软件开发过程中,漏洞对用户构成了重大威胁。补丁是对抗漏洞最有效的手段。在大规模软件系统中,测试每个受影响二进制文件中安全补丁的存在性对于确保系统安全至关重要。识别一个二进制文件是否已针对已知漏洞打补丁具有挑战性,因为已打补丁版本与易受攻击版本之间可能只存在微小差异。现有方法主要关注检测在相同编译器选项下编译的补丁。然而,开发者在不同情况下使用差异很大的编译器选项编译程序是常见现象,这导致现有方法不准确。在本文中,我们提出了一种名为PS3的新方法,即基于语义级符号签名的精确补丁存在性测试。PS3利用符号仿真来提取在不同编译器选项下保持稳定的签名。然后,PS3可以通过在语义级别比较参考二进制文件与目标二进制文件之间的签名,精确测试补丁的存在性。为了评估我们方法的有效性,我们构建了一个数据集,该数据集由四个C/C++项目中62个近期CVE组成的3,631个(CVE,二进制文件)对构成。实验结果表明,PS3在精确率、召回率和F1分数方面分别达到了0.82、0.97和0.89的得分。PS3在F1分数上比最先进的基线方法提升了33%,并且在不同的编译器选项下保持稳定。

英文摘要:

During software development, vulnerabilities have posed a significant threat to users. Patches are the most effective way to combat vulnerabilities. In a large-scale software system, testing the presence of a security patch in every affected binary is crucial to ensure system security. Identifying whether a binary has been patched for a known vulnerability is challenging, as there may only be small differences between patched and vulnerable versions. Existing approaches mainly focus on detecting patches that are compiled in the same compiler options. However, it is common for developers to compile programs with very different compiler options in different situations, which causes inaccuracy for existing methods. In this paper, we propose a new approach named PS3, referring to precise patch presence test based on semantic-level symbolic signature. PS3 exploits symbolic emulation to extract signatures that are stable under different compiler options. Then PS3 can precisely test the presence of the patch by comparing the signatures between the reference and the target at semantic level. To evaluate the effectiveness of our approach, we constructed a dataset consisting of 3,631 (CVE, binary) pairs of 62 recent CVEs in four C/C++ projects. The experimental results show that PS3 achieves scores of 0.82, 0.97, and 0.89 in terms of precision, recall, and F1 score, respectively. PS3 outperforms the state-of-the-art baselines by improving 33% in terms of F1 score and remains stable in different compiler options.

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

↑