VMCDL:源控制流下基于级联深度学习的漏洞挖掘
VMCDL: Vulnerability Mining Based on Cascaded Deep Learning Under Source Control Flow
摘要:
随着计算机产业和计算机软件的快速发展,软件漏洞被利用的风险大大增加。然而,现有的泄漏源挖掘技术仍存在误报率高、检测粒度粗、依赖专家经验等不足。本文主要利用SARD数据集的c/c++源代码数据,处理CWE 476、CWE 469、CWE 516和CWE 570漏洞类型的源代码,测试前沿工具Joern漏洞扫描功能,提出一种新的基于源代码控制流的级联深度学习模型VMCDL,有效检测漏洞。首先,本文利用joern定位和提取敏感函数和语句,形成易受攻击代码的敏感语句库。然后,通过双向广度优先遍历生成CFG流漏洞代码片段,并利用Doc 2 vec进行向量化。最后,采用基于源代码控制流的级联深度学习模型进行分类,得到分类结果。在实验评测中,我们给出了Joern在具体漏洞上的测试结果,给出了模型算法在单一漏洞类型源代码上的二进制分类结果的混淆矩阵和标签数据,并对FPR、FNR、ACC、P、F1五项指标进行了对比验证,分别达到10.30%、5.20%、92.50%,85.10%和85.40%,表明它能有效降低静态分析的虚警率。
英文摘要:
With the rapid development of the computer industry and computer software, the risk of software vulnerabilities being exploited has greatly increased. However, there are still many shortcomings in the existing mining techniques for leakage source research, such as high false alarm rate, coarse-grained detection, and dependence on expert experience. In this paper, we mainly use the c/c++ source code data of the SARD dataset, process the source code of CWE476, CWE469, CWE516 and CWE570 vulnerability types, test the Joern vulnerability scanning function of the cutting-edge tool, and propose a new cascading deep learning model VMCDL based on source code control flow to effectively detect vulnerabilities. First, this paper uses joern to locate and extract sensitive functions and statements to form a sensitive statement library of vulnerable code. Then, the CFG flow vulnerability code snippets are generated by bidirectional breadth-first traversal, and then vectorized by Doc2vec. Finally, the cascade deep learning model based on source code control flow is used for classification to obtain the classification results. In the experimental evaluation, we give the test results of Joern on specific vulnerabilities, and give the confusion matrix and label data of the binary classification results of the model algorithm on single vulnerability type source code, and compare and verify the five indicators of FPR, FNR, ACC, P and F1, respectively reaching 10.30%, 5.20%, 92.50%,85.10% and 85.40%,which shows that it can effectively reduce the false alarm rate of static analysis.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。