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

真实安全补丁的真值数据集

A ground-truth dataset of real security patches

Sofia Reis, Rui Abreu

摘要:

由于缺乏大型数据集和真实数据,培训用于漏洞识别的机器学习方法并制作可靠的工具以帮助开发人员实施无漏洞的高质量软件具有挑战性。研究人员一直在研究这些问题并建立数据集。然而,这些数据集通常会遗漏自然语言工件和程序设计语言多样性。我们从GitHub引用中抓取了整个CVE详细信息数据库,并使用3个安全相关的数据集扩展了数据。我们使用这些数据来创建一个包含自然语言工件(如提交消息、提交注释和摘要)、元数据和代码更改的真值数据集。我们的数据集集成了来自1339个不同项目的8057个安全相关提交,相当于5942个安全补丁,这些项目涉及146种不同类型的漏洞和20种语言。还提供了110 k非安全相关提交的数据集。数据和脚本都可以在GitHub上找到。数据存储在.CSV文件中。代码库可以使用我们的脚本下载。我们的数据集是回答不同主题研究问题的宝贵资产,例如使用NLP模型识别安全相关信息;软件工程和安全最佳实践;漏洞检测和修补;以及安全程序分析。

英文摘要:

Training machine learning approaches for vulnerability identification and producing reliable tools to assist developers in implementing quality software -- free of vulnerabilities -- is challenging due to the lack of large datasets and real data. Researchers have been looking at these issues and building datasets. However, these datasets usually miss natural language artifacts and programming language diversity. We scraped the entire CVE details database for GitHub references and augmented the data with 3 security-related datasets. We used the data to create a ground-truth dataset of natural language artifacts (such as commit messages, commits comments, and summaries), meta-data and code changes. Our dataset integrates a total of 8057 security-relevant commits -- the equivalent to 5942 security patches -- from 1339 different projects spanning 146 different types of vulnerabilities and 20 languages. A dataset of 110k non-security-related commits is also provided. Data and scripts are all available on GitHub. Data is stored in a .CSV file. Codebases can be downloaded using our scripts. Our dataset is a valuable asset to answer research questions on different topics such as the identification of security-relevant information using NLP models; software engineering and security best practices; and, vulnerability detection and patching; and, security program analysis.

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

↑