msc-smart-contract-auditing/vulnerability-severity-classification
This dataset combines vulnerable functions (scraped from 5 auditting companies: Codehawks, ConsenSys, Cyfrin, Sherlock, Trust Security) and auddited functions with no vulnerabilities (scraped from Etherscan) The purpose of the dataset is to enable training of classification models to discriminate between the 4 classes: none, low, medium and high. Field Description 1. function Raw solidity code 2. severity Severity of vulnerability ('none', low, medium, high) Data… See the full description on the dataset page: https://huggingface.co/datasets/msc-smart-contract-auditing/vulnerability-severity-classification.
This dataset combines vulnerable functions (scraped from 5 auditting companies: Codehawks, ConsenSys, Cyfrin, Sherlock, Trust Security) and auddited functions with no vulnerabilities (scraped from Etherscan)
The purpose of the dataset is to enable training of classification models to discriminate between the 4 classes: none, low, medium and high.
Data Analysis
<img src="https://huggingface.co/datasets/msc-smart-contract-audition/vulnerability-severity-classification/resolve/main/figures/severity-distribution.png"> <img src="https://huggingface.co/datasets/msc-smart-contract-audition/vulnerability-severity-classification/resolve/main/figures/length-severity-distribution.png">
Additional Info
- The newline characters are escaped (i.e.
\\n)
