MVD / README.md
claudios's picture
Update README.md
9ff2cdc
---
arxiv: 1801.01681
dataset_info:
features:
- name: func
dtype: string
- name: path
dtype: string
- name: source
dtype: string
- name: label
dtype: int64
splits:
- name: train
num_bytes: 156793256
num_examples: 123515
- name: validation
num_bytes: 27720814
num_examples: 21797
- name: test
num_bytes: 45934658
num_examples: 36329
download_size: 69412844
dataset_size: 230448728
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
- split: test
path: data/test-*
task_categories:
- text-classification
tags:
- code
---
This is an unofficial HuggingFace version of "[VulDeePecker: A Deep Learning-Based System for Vulnerability Detection
](https://arxiv.org/abs/1801.01681)" MVD dataset. See the [source files](https://github.com/muVulDeePecker/muVulDeePecker/tree/master/source%20files) for the relevant source code referred to by the path column.
There are 41 possible classes:
```
{
0: 'non-vulnerable',
1: 'CWE-404',
2: 'CWE-476',
3: 'CWE-119',
4: 'CWE-706',
5: 'CWE-670',
6: 'CWE-673',
7: 'CWE-119, CWE-666, CWE-573',
8: 'CWE-573',
9: 'CWE-668',
10: 'CWE-400, CWE-665, CWE-020',
11: 'CWE-662',
12: 'CWE-400',
13: 'CWE-665',
14: 'CWE-020',
15: 'CWE-074',
16: 'CWE-362',
17: 'CWE-191',
18: 'CWE-190',
19: 'CWE-610',
20: 'CWE-704',
21: 'CWE-170',
22: 'CWE-676',
23: 'CWE-187',
24: 'CWE-138',
25: 'CWE-369',
26: 'CWE-662, CWE-573',
27: 'CWE-834',
28: 'CWE-400, CWE-665',
29: 'CWE-400, CWE-404',
30: 'CWE-221',
31: 'CWE-754',
32: 'CWE-311',
33: 'CWE-404, CWE-668',
34: 'CWE-506',
35: 'CWE-758',
36: 'CWE-666',
37: 'CWE-467',
38: 'CWE-327',
39: 'CWE-666, CWE-573',
40: 'CWE-469'
}
```
***
# Multiclass Vulnerability Dataset (MVD)
MVD is a database for research on multiclass vulnerability detection with deep learning. The dataset is based on the NIST Software Assurance Reference Dataset (SARD) and National Vulnerability Database (NVD). Up to now, it has possessed 181641 code gadgets, covering 40 types of vulnerabilities. Each code gadget in MVD is composed of multiple program statements, which have direct or indirect data-dependence and control-dependence relationships with the library/API function calls. In total, the code gadgets in MVD are extracted from 33409 testcases of SARD and NVD, 138522 code gadgets of which are non-vulnerable and 43119 are vulnerable.
In this repository, the compressed file mvd.txt.zip stores 181641 code gadgets and their corresponding labels. The file named label2CWE.txt records the mapping relationship between each label and the corresponding vulnerability. The folder source files contains 33,409 source files for extracting code gadgets.