arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2112.06250cs.CR
收藏

以人学的方式训练提高智能漏洞检测能力

Boosting the Capability of Intelligent Vulnerability Detection by Training in a Human-Learning Manner

Shihan Dou, Yueming Wu, Wenxuan Li, Feng Cheng, Wei Yang, Yang Liu

摘要:

深度学习由于其强大的自动特征提取功能,在源代码漏洞检测中得到了广泛的应用。然而,尽管它在人工数据集上表现良好,但由于真实世界样本的高度复杂性,它在检测真实世界漏洞时的性能并不令人满意。在本文中,我们提出了训练DL为基础的漏洞检测模型在人类学习的方式,即从最简单的样本,然后逐渐过渡到困难的知识。具体来说,我们设计了一个新的框架(Humer),可以提高基于DL的漏洞检测器的检测能力。为了验证Humer的有效性,我们选择了五个最先进的基于DL的漏洞检测模型(TokenCNN,VulDeePecker,StatementGRU,ASTGRU和Devign)来完成我们的评估。通过计算结果,我们发现使用Humer可以使这些模型的F1平均提高10.5%。此外,Humer可以使模型检测到高达16.7%的真实世界漏洞。同时,我们还进行了一个案例研究,发现漏洞,从现实世界的开源产品使用这些增强的DL为基础的漏洞检测器。通过结果,我们最终发现了281个NVD中未报告的漏洞,其中98个已经被厂商在最新版本的相应产品中默默修补,但159个仍然存在于产品中。

英文摘要:

Due to its powerful automatic feature extraction, deep learning (DL) has been widely used in source code vulnerability detection. However, although it performs well on artificial datasets, its performance is not satisfactory when detecting real-world vulnerabilities due to the high complexity of real-world samples. In this paper, we propose to train DL-based vulnerability detection models in a human-learning manner, that is, start with the simplest samples and then gradually transition to difficult knowledge. Specifically, we design a novel framework (Humer) that can enhance the detection ability of DL-based vulnerability detectors. To validate the effectiveness of Humer, we select five state-of-the-art DL-based vulnerability detection models (TokenCNN, VulDeePecker, StatementGRU, ASTGRU, and Devign) to complete our evaluations. Through the results, we find that the use of Humer can increase the F1 of these models by an average of 10.5%. Moreover, Humer can make the model detect up to 16.7% more real-world vulnerabilities. Meanwhile, we also conduct a case study to uncover vulnerabilities from real-world open source products by using these enhanced DL-based vulnerability detectors. Through the results, we finally discover 281 unreported vulnerabilities in NVD, of which 98 have been silently patched by vendors in the latest version of corresponding products, but 159 still exist in the products.

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

↑