arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1807.02458cs.CR
收藏

一种自动分类安全相关提交的实用方法

A Practical Approach to the Automatic Classification of Security-Relevant Commits

Antonino Sabetta, Michele Bezzi

AI总结:

本文提出利用机器学习将提交的源代码变更视为文本文档并组合多方面独立分类器,以自动识别安全相关提交,在显著减少训练数据并简化架构的同时实现80%精度和43%召回率。

摘要:

缺乏关于开源软件(OSS)组件漏洞的可靠详细信息来源,是维护安全软件供应链和有效漏洞管理流程的主要障碍。众所周知,诸如国家漏洞数据库(NVD)之类的公告和漏洞数据标准来源存在覆盖率低和质量不一致的问题。为减少对这些来源的依赖,我们提出一种使用机器学习分析源代码仓库并自动识别安全相关提交(即可能修复漏洞的提交)的方法。我们将提交引入的源代码变更视为以自然语言编写的文档,使用标准文档分类方法对其进行分类。通过组合利用提交不同方面信息的独立分类器,我们的方法能够实现80%的高精度,同时保证43%的可接受召回率。特别是,利用从源代码变更中提取的信息,相比现有最知名方法带来了显著提升,同时所需训练数据量明显更少,且采用了更简单的架构。

英文摘要:

The lack of reliable sources of detailed information on the vulnerabilities of open-source software (OSS) components is a major obstacle to maintaining a secure software supply chain and an effective vulnerability management process. Standard sources of advisories and vulnerability data, such as the National Vulnerability Database (NVD), are known to suffer from poor coverage and inconsistent quality. To reduce our dependency on these sources, we propose an approach that uses machine-learning to analyze source code repositories and to automatically identify commits that are security-relevant (i.e., that are likely to fix a vulnerability). We treat the source code changes introduced by commits as documents written in natural language, classifying them using standard document classification methods. Combining independent classifiers that use information from different facets of commits, our method can yield high precision (80%) while ensuring acceptable recall (43%). In particular, the use of information extracted from the source code changes yields a substantial improvement over the best known approach in state of the art, while requiring a significantly smaller amount of training data and employing a simpler architecture.

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

↑