jTrans:跳跃感知的二进制码相似性转换器Transformer
jTrans: Jump-Aware Transformer for Binary Code Similarity
摘要:
二进制代码相似性检测在漏洞检测、软件构件分析、逆向工程等领域有着重要的应用。最近的研究表明,深度神经网络(DNN)可以理解二进制代码的指令或控制流图(CFG),并支持BCSD。在这项研究中,我们提出了一种新的基于transformer的方法,即jTrans,来学习二进制代码的表示。这是第一个将二进制代码的控制流信息嵌入到基于transformer的语言模型中的解决方案,通过使用一种新的跳跃感知表示的分析二进制代码和一个新设计的预训练任务。此外,我们向社区发布了一个新创建的大型二进制数据集BinaryCorp,这是迄今为止最多样化的。评估结果表明,jTrans在这个更具挑战性的数据集上的性能优于最先进的(SOTA)方法30.5%(即,从32.0%到62.5%)。在已知漏洞搜索的现实任务中,jTrans实现了比现有SOTA基线高2倍的召回率。
英文摘要:
Binary code similarity detection (BCSD) has important applications in various fields such as vulnerability detection, software component analysis, and reverse engineering. Recent studies have shown that deep neural networks (DNNs) can comprehend instructions or control-flow graphs (CFG) of binary code and support BCSD. In this study, we propose a novel Transformer-based approach, namely jTrans, to learn representations of binary code. It is the first solution that embeds control flow information of binary code into Transformer-based language models, by using a novel jump-aware representation of the analyzed binaries and a newly-designed pre-training task. Additionally, we release to the community a newly-created large dataset of binaries, BinaryCorp, which is the most diverse to date. Evaluation results show that jTrans outperforms state-of-the-art (SOTA) approaches on this more challenging dataset by 30.5% (i.e., from 32.0% to 62.5%). In a real-world task of known vulnerability searching, jTrans achieves a recall that is 2X higher than existing SOTA baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。