arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.01254cs.CRcs.LG
收藏

基于深度学习的二进制可执行文件漏洞检测

Deep-Learning-based Vulnerability Detection in Binary Executables

Andreas Schaad, Dominik Binder

摘要:

漏洞识别是软件开发生存周期中的一个重要环节,是保证软件安全的重要手段。虽然基于源代码的漏洞识别是一个很好的研究领域,但基于没有相应源代码的二进制可执行文件的漏洞识别更具挑战性。最近的研究[1]已经表明,如何通过深度学习方法来实现这种检测。然而,这种特定的方法仅限于识别4种类型的漏洞。随后,我们分析在多大程度上,我们可以涵盖更大范围的各种漏洞的识别。因此,使用使用递归神经网络的监督深度学习方法,用于基于二进制可执行文件的漏洞检测的应用。底层基础是一个包含50,651个易受攻击代码样本的数据集,其形式是标准化的LLVM中间表示。Word2Vec模型的矢量化特征用于训练递归神经网络的三种基本架构(GRU、LSTM、SRNN)的不同变体。建立了一个二进制分类来检测任意漏洞的存在,并训练了一个多类模型来识别确切的漏洞,其样本外准确率分别为88%和77%。此外,还观察到不同漏洞检测的差异,非脆弱样本的检测精度特别高,超过98%。因此,所提出的方法允许准确检测23个漏洞(相比之下为4个[1])。

英文摘要:

The identification of vulnerabilities is an important element in the software development life cycle to ensure the security of software. While vulnerability identification based on the source code is a well studied field, the identification of vulnerabilities on basis of a binary executable without the corresponding source code is more challenging. Recent research [1] has shown, how such detection can be achieved by deep learning methods. However, that particular approach is limited to the identification of only 4 types of vulnerabilities. Subsequently, we analyze to what extent we could cover the identification of a larger variety of vulnerabilities. Therefore, a supervised deep learning approach using recurrent neural networks for the application of vulnerability detection based on binary executables is used. The underlying basis is a dataset with 50,651 samples of vulnerable code in the form of a standardized LLVM Intermediate Representation. The vectorised features of a Word2Vec model are used to train different variations of three basic architectures of recurrent neural networks (GRU, LSTM, SRNN). A binary classification was established for detecting the presence of an arbitrary vulnerability, and a multi-class model was trained for the identification of the exact vulnerability, which achieved an out-of-sample accuracy of 88% and 77%, respectively. Differences in the detection of different vulnerabilities were also observed, with non-vulnerable samples being detected with a particularly high precision of over 98%. Thus, the methodology presented allows an accurate detection of 23 (compared to 4 [1]) vulnerabilities.

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

↑