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

MegaVul:一个具有全面代码表示形式的 C/C++ 漏洞数据集

MegaVul: A C/C++ Vulnerability Dataset with Comprehensive Code Representation

Chao Ni, Liyu Shen, Xiaohu Yang, Yan Zhu, Shaohua Wang

AI总结:

本文构建并开源大规模 C/C++ 漏洞数据集 MegaVul,整合 CVE 信息、相关代码变更及四种代码表示,支持漏洞检测、严重性评估等安全任务。

摘要:

我们通过爬取 Common Vulnerabilities and Exposures(CVE,通用漏洞披露)数据库以及与 CVE 相关的开源项目,构建了一个全新的大规模、综合性 C/C++ 漏洞数据集,命名为 MegaVul。具体而言,我们从 CVE 数据库收集了所有可爬取的漏洞描述信息,并从 28 个基于 Git 的网站中提取了所有与漏洞相关的代码变更。我们采用先进工具确保所提取代码的完整性,并通过四种不同的转换表示形式来丰富这些代码。总体而言,MegaVul 包含从 992 个开源仓库中收集的 17,380 个漏洞,涵盖 2006 年 1 月至 2023 年 10 月期间披露的 169 种不同漏洞类型。因此,MegaVul 可用于多种软件安全相关任务,包括检测漏洞和评估漏洞严重性。所有信息均以 JSON 格式存储,以便使用。MegaVul 已在 GitHub 上公开发布,并将持续更新。它还可以轻松扩展到其他编程语言。

英文摘要:

We constructed a newly large-scale and comprehensive C/C++ vulnerability dataset named MegaVul by crawling the Common Vulnerabilities and Exposures (CVE) database and CVE-related open-source projects. Specifically, we collected all crawlable descriptive information of the vulnerabilities from the CVE database and extracted all vulnerability-related code changes from 28 Git-based websites. We adopt advanced tools to ensure the extracted code integrality and enrich the code with four different transformed representations. In total, MegaVul contains 17,380 vulnerabilities collected from 992 open-source repositories spanning 169 different vulnerability types disclosed from January 2006 to October 2023. Thus, MegaVul can be used for a variety of software security-related tasks including detecting vulnerabilities and assessing vulnerability severity. All information is stored in the JSON format for easy usage. MegaVul is publicly available on GitHub and will be continuously updated. It can be easily extended to other programming languages.

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

↑