paperbot · PL 论文追踪

全部论文 待读 收藏

P2 CEBin: A Cost-Effective Framework for Large-Scale Binary Code Similarity Detection

CEBin:一种面向大规模二进制代码相似性检测的成本高效框架
ISSTA Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis2024匹配度 3/10 · 该论文属于机器学习与程序分析/二进制安全交叉,涉及代码相似性检测和漏洞发现,并构建了漏洞检测 benchmark;但核心不是静态分析、LLM/Agent、浮点程序分析或贝叶斯程序分析,与用户当前追踪的 PL 与 AI 交叉问题仅有较弱的边缘关联。引用 28 inbox
Hao Wang, Zeyu Gao, Chao Zhang, Mingyang Sun, Yuchen Zhou, Han Qiu, Xi Xiao
crossref: 2026-09-12

AI 速览

一句话:CEBin 融合嵌入与比较方法,低成本高精度地实现大规模二进制代码相似性检测与漏洞发现。

二进制代码相似性检测(BCSD)应用广泛,但现有方法多基于嵌入,在大规模目标二进制搜索场景下精度和效率有限。本文提出成本高效的 BCSD 框架 CEBin,融合基于嵌入和基于比较的两类方法:先用精炼的嵌入方法提取目标代码特征,快速缩小候选相似代码范围;再对候选进行成对比较,捕捉更细微复杂的相似关系,从而显著提高检测精度。作者在三个知名数据集上验证 CEBin 优于现有 SOTA 基线,并构建大规模漏洞基准,首次为 1-day 漏洞检测任务提供精确评估方案。CEBin 可在数秒内从数百万候选函数中识别相似函数,在该更具挑战的任务上达到 85.46% 的召回率,比最佳 SOTA 基线快几个数量级且提升 4.07 倍。

问题
现有 BCSD 方法多基于嵌入,在目标二进制规模很大时,精度与效率仍然不足。
方法
CEBin 先以精炼的嵌入方法缩小候选范围,再对候选执行成对比较,融合嵌入与比较两类方法。
评估
在三个知名数据集上与 SOTA 基线对比,并构建大规模漏洞基准评估 1-day 漏洞检测;百万候选中数秒内识别相似函数,召回率达 85.46%。
原文摘要(Abstract)

Binary code similarity detection (BCSD) is a fundamental technique for various applications. Many BCSD solutions have been proposed recently, which mostly are embedding-based, but have shown limited accuracy and efficiency especially when the volume of target binaries to search is large. To address this issue, we propose a cost-effective BCSD framework, CEBin, which fuses embedding-based and comparison-based approaches to significantly improve accuracy while minimizing overheads. Specifically, CEBin utilizes a refined embedding-based approach to extract features of target code, which efficiently narrows down the scope of candidate similar code and boosts performance. Then, it utilizes a comparison-based approach that performs a pairwise comparison on the candidates to capture more nuanced and complex relationships, which greatly improves the accuracy of similarity detection. By bridging the gap between embedding-based and comparison-based approaches, CEBin is able to provide an effective and efficient solution for detecting similar code (including vulnerable ones) in large-scale software ecosystems. Experimental results on three well-known datasets demonstrate the superiority of CEBin over existing state-of-the-art (SOTA) baselines. To further evaluate the usefulness of BCSD in real world, we construct a large-scale benchmark of vulnerability, offering the first precise evaluation scheme to assess BCSD methods for the 1-day vulnerability detection task. CEBin could identify the similar function from millions of candidate functions in just a few seconds and achieves an impressive recall rate of 85.46% on this more practical but challenging task, which are several order of magnitudes faster and 4.07× better than the best SOTA baseline.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot8554,
  title = {CEBin: A Cost-Effective Framework for Large-Scale Binary Code Similarity Detection},
  author = {Hao Wang and Zeyu Gao and Chao Zhang and Mingyang Sun and Yuchen Zhou and Han Qiu and Xi Xiao},
  booktitle = {ISSTA},
  year = {2024},
  doi = {10.1145/3650212.3652117}
}