arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 1807.04320cs.LGcs.AIcs.SEstat.ML
收藏

使用深度表示学习在Source Code中自动检测漏洞

Automated Vulnerability Detection in Source Code Using Deep Representation Learning

Draper(德雷珀实验室);Boston University(波士顿大学)

Rebecca L. Russell, Louis Kim, Lei H. Hamilton, Tomo Lazovich, Jacob A. Harer, Onur Ozdemir, Paul M. Ellingwood, Marc W. McConley

摘要:

每年都有越来越多的软件漏洞被发现,无论它们是公开报告的还是在专有代码中内部发现的。这些漏洞可能会造成严重的利用风险,并导致系统受损、信息泄露或拒绝服务。我们利用丰富的C和C++开源代码,使用机器学习开发了一个大规模的函数级漏洞检测系统。为了补充现有的标记漏洞数据集,我们编译了一个包含数百万个开源函数的庞大数据集,并使用三个不同的静态分析器精心挑选的结果进行标记,这些结果表明潜在的漏洞利用。标记的数据集可在https://osf.io/d45bw/上获得。使用这些数据集,我们开发了一个快速和可扩展的漏洞检测工具,基于深度特征表示学习,直接解释lexed源代码。我们评估了我们的工具的代码从两个真正的软件包和NIST SATE IV基准数据集。我们的研究结果表明,源代码的深度特征表示学习是一种很有前途的自动化软件漏洞检测方法。

英文摘要:

Increasing numbers of software vulnerabilities are discovered every year whether they are reported publicly or discovered internally in proprietary code. These vulnerabilities can pose serious risk of exploit and result in system compromise, information leaks, or denial of service. We leveraged the wealth of C and C++ open-source code available to develop a large-scale function-level vulnerability detection system using machine learning. To supplement existing labeled vulnerability datasets, we compiled a vast dataset of millions of open-source functions and labeled it with carefully-selected findings from three different static analyzers that indicate potential exploits. The labeled dataset is available at: https://osf.io/d45bw/. Using these datasets, we developed a fast and scalable vulnerability detection tool based on deep feature representation learning that directly interprets lexed source code. We evaluated our tool on code from both real software packages and the NIST SATE IV benchmark dataset. Our results demonstrate that deep feature representation learning on source code is a promising approach for automated software vulnerability detection.

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

↑