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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Ni, Chao, Shen, Liyu, Yang, Xiaohu, Zhu, Yan, Wang, Shaohua
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910492981723136
author Ni, Chao
Shen, Liyu
Yang, Xiaohu
Zhu, Yan
Wang, Shaohua
author_facet Ni, Chao
Shen, Liyu
Yang, Xiaohu
Zhu, Yan
Wang, Shaohua
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_12415
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle MegaVul: A C/C++ Vulnerability Dataset with Comprehensive Code Representation
Ni, Chao
Shen, Liyu
Yang, Xiaohu
Zhu, Yan
Wang, Shaohua
Cryptography and Security
Software Engineering
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.
title MegaVul: A C/C++ Vulnerability Dataset with Comprehensive Code Representation
topic Cryptography and Security
Software Engineering
url https://arxiv.org/abs/2406.12415