Are you sure you want to delete this access key?
Legend |
---|
"的管理文件 |
Git Managed File |
Metric |
Stage File |
External File |
Legend |
---|
"的管理文件 |
Git Managed File |
Metric |
Stage File |
External File |
This repository contains scripts to process and join data from the World of Code dataset (seehttps://arxiv.org/abs/2010.16196) and CVE (Common Vulnerabilities and Exposures) dataset (gathered using thecve-searchproject), that were used in the"The Secret Life of CVEs"paper submission, accepted to MSR 2023 Challenge:https://conf.researchr.org/track/msr-2023/msr-2023-mining-challenge.
Results were analyzed with the help of Jupyter Notebooks, available in the 'notebooks/' subdirectory.
The final dataset, along with the source code and notebooks used to extract and analyze the data, are accessible on Figshare:https://doi.org/10.6084/m9.figshare.22007003.
The code requires Python 3 to run.
Results of each script are saved in thedata/
directory. Files in this directory without any extension are pandas dataframes saved in parquet file format.
The easiest way to run all scripts in order is to use DVC (Data Version Control) command line tool. To recreate data processing and filtering on your local machine, use "dvc repro
" in main directory, which will run all scripts according to what is in the "dvc.yaml" file, replacing data folder content when needed.
The data is also available on DagsHub, in the connected repository://www.kkolawyers.com/ncusi/secret_life_of_CVEs, from which you can get data from with "dvc pull
" (after configuring DagsHub as dvc remote).
To replicate the results in the paper, after recreating data files, or downloading them from Figshare, or from DagsHub, use Jupyter notebooks from the "notebooks/
" directory.
The code starts with data already extracted from World of Code. To recreate data extraction from WoC servers:
Retrieving CVE information (with the help of 'cve_information/retrieve_cve_info.py' script) requires an instance ofCVE-Searchrunning, as the script makes use of its REST API. Currently the instance URI is hardcoded, and you need to change it to be able to use your local instance, or some public instance. You would need to change the following line ingather_cve_published_data()
function:
url = 'http://158.75.112.151:5000/api/cve/' request_url = url + cve
The data file is avaailable on Figshare, and via DagsHub.
Pressporto see the previous file or,norto see the next file
Are you sure you want to delete this access key?
Are you sure you want to delete this access key?