理解基于AI的二进制代码相似性检测
Understanding the AI-powered Binary Code Similarity Detection
AI总结:
针对基于AI的二进制代码相似性检测领域缺乏统一评估与深度分析的问题,本文系统评估了前沿方法在相似函数检测及两个下游应用中的表现,探究了嵌入网络与评估方法,得出关键发现并指明未来研究方向。
摘要:
基于AI的二进制代码相似性检测(BinSD)通过神经网络将复杂的二进制代码比较转化为代码嵌入的距离度量,已被广泛应用于程序分析领域。然而,由于所采用的嵌入策略、评估方法、运行环境和/或基准的多样性,人们很难定量地了解BinSD问题已被解决到何种程度,尤其是在实际应用场景中。此外,对日益复杂的嵌入神经网络和各类评估方法缺乏深入研究,已成为阻碍基于AI的BinSD发展的关键因素。\n为填补这些研究空白,本文通过在相似函数检测以及漏洞搜索和许可证违规检测这两个下游应用上对BinSD系统进行全面比较,对当前最先进的基于AI的BinSD方法开展了系统性评估。基于该评估,我们首次对嵌入神经网络和评估方法进行了探究。实验结果得出了多项发现,为BinSD领域提供了宝贵见解,包括:(1)尽管基于GNN的BinSD系统目前在相似函数检测中取得了最佳性能,但仍存在相当大的提升空间;(2)基于AI的BinSD方法的能力在应用于不同下游任务时表现出显著差异;(3)现有评估方法仍需大幅调整。例如,评估指标(如被广泛采用的ROC和AUC)通常无法准确代表模型在真实场景中实际使用的性能。基于大量实验与分析,我们进一步提出了若干有前景的未来研究方向。
英文摘要:
AI-powered binary code similarity detection (BinSD), which transforms intricate binary code comparison to the distance measure of code embedding through neural networks, has been widely applied to program analysis. However, due to the diversity of the adopted embedding strategies, evaluation methodologies, running environments, and/or benchmarks, it is difficult to quantitatively understand to what extent the BinSD problem has been solved, especially in realworld applications. Moreover, the lack of an in-depth investigation of the increasingly complex embedding neural networks and various evaluation methodologies has become the key factor hindering the development of AI-powered BinSD. To fill these research gaps, in this paper, we present a systematic evaluation of state-of-the-art AI-powered BinSD approaches by conducting a comprehensive comparison of BinSD systems on similar function detection and two downstream applications, namely vulnerability search and license violation detection. Building upon this evaluation, we perform the first investigation of embedding neural networks and evaluation methodologies. The experimental results yield several findings, which provide valuable insights in the BinSD domain, including (1) despite the GNN-based BinSD systems currently achieving the best performance in similar function detection, there still exists considerable space for improvements;(2) the capability of AI-powered BinSD approaches exhibits significant variation when applied to different downstream applications;(3) existing evaluation methodologies still need substantial adjustments. For instance, the evaluation metrics (such as the widely adopted ROC and AUC) usually fall short of accurately representing the model performance of the practical use in realworld scenarios. Based on the extensive experiments and analysis, we further provide several promising future research directions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。