arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.14168cs.CR
收藏

FastBCSD:用于二进制代码相似性检测的快速高效神经网络

FastBCSD: Fast and Efficient Neural Network for Binary Code Similarity Detection

Chensen Huang, Guibo Zhu, Guojing Ge, Taihao Li, Jinqiao Wang

AI总结:

提出轻量级神经网络FastBCSD,采用动态指令向量编码和汇编代码输入,在准确率相当的情况下大幅减少参数规模和计算时间,优于现有预训练模型。

摘要:

二进制代码相似性检测(BCSD)有多种应用,包括但不限于漏洞检测、抄袭检测和恶意软件检测。以往的研究主要集中在通过逆向编译将二进制代码转换为汇编代码字符串,然后使用具有大量参数的预训练深度学习模型来获取二进制代码的特征表示向量。虽然这些模型在表示二进制代码方面已被证明是有效的,但其庞大的参数规模在训练和推理过程中导致了相当大的计算开销。在本文中,我们提出了一种名为FastBCSD的轻量级神经网络,它采用动态指令向量编码方法,并仅以汇编代码作为输入特征,在减少计算资源和时间成本的同时,实现了与预训练模型相当的准确率。在BinaryCorp数据集上,我们的方法实现了与最先进的基于预训练的方法(jTrans)相似的平均MRR分数,而在BinaryCorp 3M数据集上,我们的方法甚至比最新技术高出0.01。值得注意的是,与jTrans(87.88M)相比,FastBCSD的参数规模要小得多(13.4M),并且在NVIDIA GTX 1080Ti上的延迟时间是jTrans的1/5。

英文摘要:

Binary code similarity detection (BCSD) has various applications, including but not limited to vulnerability detection, plagiarism detection, and malware detection. Previous research efforts mainly focus on transforming binary code to assembly code strings using reverse compilation and then using pre-trained deep learning models with large parameters to obtain feature representation vector of binary code. While these models have proven to be effective in representing binary code, their large parameter size leads to considerable computational expenses during both training and inference. In this paper, we present a lightweight neural network, called FastBCSD, that employs a dynamic instruction vector encoding method and takes only assembly code as input feature to achieve comparable accuracy to the pre-training models while reducing the computational resources and time cost. On the BinaryCorp dataset, our method achieves a similar average MRR score to the state-of-the-art pre-training-based method (jTrans), while on the BinaryCorp 3M dataset, our method even outperforms the latest technology by 0.01. Notably, FastBCSD has a much smaller parameter size (13.4M) compared to jTrans (87.88M), and its latency time is 1/5 of jTrans on NVIDIA GTX 1080Ti.

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

↑