arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.28870cs.CRcs.SE
收藏

理解真实世界漏洞检测的二进制代码相似性:一项大规模实证研究

Understanding Binary Code Similarity for Real-World Vulnerability Detection: A Large-Scale Empirical Study

Institute of Information Engineering, CAS(中国科学院信息工程研究所);University of Chinese Academy of Sciences(中国科学院大学);Hangzhou Dianzi University(杭州电子科技大学);Shandong University(山东大学)

Jingdong Guo, Chaopeng Dong, Yimo Ren, Siyuan Li, Jie Liu, Hong Li, Hongsong Zhu

AI总结:

通过分析6万固件镜像,研究影响二进制代码相似性检测(BCSD)性能的关键因素,提出构建感知查询策略和TPL感知两阶段搜索方法,显著提升漏洞检测准确率。

摘要:

固件是物联网设备的核心。其开发严重依赖第三方库(TPL),这大大加速了开发过程,但同时也引入了相关漏洞。二进制代码相似性检测(BCSD)是一种通过比较代码对来识别固件中漏洞的有效技术。然而,现有研究要么仅在小规模数据集上评估性能,要么在漏洞、TPL和固件方面缺乏多样性。因此,对BCSD在真实世界漏洞检测中的全面理解仍然缺失。为弥补这一空白,我们使用BCSD对来自200个供应商的6万个固件镜像进行了大规模漏洞检测研究。我们没有引入新模型,而是考察了四个关键因素——漏洞函数版本、漏洞搜索空间、函数大小和编译工具链——对BCSD性能的影响。我们的结果表明,这些因素显著影响性能,且差异通常很大。为解决这一问题,我们提出了一种构建感知查询策略,该策略从代表性真实世界二进制文件中派生查询,有效缩小差距,并将平均倒数排名(MRR)从0.818提高到0.981。此外,我们证明了TPL感知的两阶段搜索过程通过限制搜索空间显著提高了准确性,使MRR提高了18.5%。

英文摘要:

Firmware lies at the heart of IoT devices. Its development depends heavily on third-party libraries (TPLs), which greatly accelerate the process but simultaneously introduce associated vulnerabilities. Binary Code Similarity Detection (BCSD) is an effective technique for identifying vulnerabilities in firmware by comparing pairs of code segments. However, existing studies either evaluate their performance only on small-scale datasets or lack diversity in terms of vulnerabilities, TPLs, and firmware. Consequently, a comprehensive understanding of BCSD for real-world vulnerability detection remains absent. To bridge this gap, we conduct a large-scale study of vulnerability detection across 60,000 firmware images from 200 vendors using BCSD. Rather than introducing a novel model, we examine the influence of four key factors -- vulnerable function versions, vulnerability search space, function sizes, and compilation toolchains on BCSD performance. Our results reveal that these factors substantially affect performance, often by wide margins. To address this, we propose a build-aware query strategy that derives queries from representative real-world binaries, effectively closing the gap and raising the mean reciprocal rank (MRR) from 0.818 to 0.981. Furthermore, we demonstrate that a TPL-aware, two-stage search process significantly enhances accuracy, improving MRR by 18.5\% by limiting the search space.

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

↑