Update README.md
Browse files
README.md
CHANGED
|
@@ -21,4 +21,43 @@ configs:
|
|
| 21 |
path: data/train-*
|
| 22 |
- split: test
|
| 23 |
path: data/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
path: data/train-*
|
| 22 |
- split: test
|
| 23 |
path: data/test-*
|
| 24 |
+
license: mit
|
| 25 |
+
task_categories:
|
| 26 |
+
- text-classification
|
| 27 |
+
language:
|
| 28 |
+
- en
|
| 29 |
+
tags:
|
| 30 |
+
- finance
|
| 31 |
+
pretty_name: Severity of Vulnerable Solidity Functions
|
| 32 |
+
size_categories:
|
| 33 |
+
- 1K<n<10K
|
| 34 |
---
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
license: mit
|
| 38 |
+
configs:
|
| 39 |
+
- config_name: vulnerable-w-explanations
|
| 40 |
+
data_files: db-vulnerable.csv
|
| 41 |
+
default: true
|
| 42 |
+
- config_name: verified-functions
|
| 43 |
+
data_files: db-verified.csv
|
| 44 |
+
language:
|
| 45 |
+
- en
|
| 46 |
+
tags:
|
| 47 |
+
- finance
|
| 48 |
+
pretty_name: Smart Contract Vulnerabilities with Explanations
|
| 49 |
+
size_categories:
|
| 50 |
+
- 1K<n<10K
|
| 51 |
+
---
|
| 52 |
+
|
| 53 |
+
This dataset combines vulnerable functions scraped from several auditting companies (([Codehawks](https://www.codehawks.com/), [ConsenSys](https://consensys.io/), [Cyfrin](https://www.cyfrin.io/), [Sherlock](https://www.sherlock.xyz/), [Trust Security](https://www.trust-security.xyz/))) and auddited functions with no vulnerabilities (Scraped from [Etherscan](https://etherscan.io))
|
| 54 |
+
|
| 55 |
+
It's purpose is to train a model to classify code into the 4 classes: `none`, `low`, `medium` and `high` severity.
|
| 56 |
+
|
| 57 |
+
| Field | Description |
|
| 58 |
+
|-|-|
|
| 59 |
+
| 1. `function` | Raw solidity code |
|
| 60 |
+
| 2. `severity` | Severity of vulnerability ('none', `low`, `medium`, `high`) |
|
| 61 |
+
|
| 62 |
+
# Additional Info
|
| 63 |
+
- The newline characters are escaped (i.e. `\\n`)
|