Update README.md
Browse files
README.md
CHANGED
@@ -1,10 +1,49 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
-
|
4 |
configs:
|
5 |
- config_name: vulnerable-w-explanations
|
6 |
-
data_files:
|
|
|
7 |
- config_name: verified-functions
|
8 |
-
data_files:
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
|
|
3 |
configs:
|
4 |
- config_name: vulnerable-w-explanations
|
5 |
+
data_files: db-vulnerable.csv
|
6 |
+
default: true
|
7 |
- config_name: verified-functions
|
8 |
+
data_files: db-verified.csv
|
9 |
+
language:
|
10 |
+
- en
|
11 |
+
tags:
|
12 |
+
- finance
|
13 |
+
pretty_name: Smart Contract Vulnerabilities with Explanations
|
14 |
+
size_categories:
|
15 |
+
- 1K<n<10K
|
16 |
---
|
17 |
+
|
18 |
+
# Smart Contract Vulnerabilities with Explanations (`vulnerable-w-explanations`)
|
19 |
+
|
20 |
+
This repository offers two datasets of `Solidity` functions,
|
21 |
+
This dataset comprises vulnerable `Solidity` functions audited by 5 auditing companies:
|
22 |
+
- [Codehawks](https://www.codehawks.com/)
|
23 |
+
- [ConsenSys](https://consensys.io/)
|
24 |
+
- [Cyfrin](https://www.cyfrin.io/)
|
25 |
+
- [Sherlock](https://www.sherlock.xyz/)
|
26 |
+
- [Trust Security](https://www.trust-security.xyz/)
|
27 |
+
|
28 |
+
These audits are nicely compiled by [Solodit](https://solodit.xyz/).
|
29 |
+
|
30 |
+
## Fields
|
31 |
+
1. `name` - Title of audit report
|
32 |
+
2. `severity` - Severity of vulnerabiliy (`Low`, `Medium`, `High`)
|
33 |
+
3. `description` - Description/Explanation of the vulnerability
|
34 |
+
4. `recommendation` - Recommended mitigation of the vulnerability
|
35 |
+
5. `impact` (Optional) - Explains how the vulnerability affects the smart contract
|
36 |
+
6. `function` - Raw vulnerable *solidity* code (*Sometimes this could be inaccurate. Best efforts were made to clean-up the dataset but some rows might include other programming languages e.g. javascript*)
|
37 |
+
|
38 |
+
# Verified functions (`verified-functions`)
|
39 |
+
|
40 |
+
This repository also includes a dataset with functions with no known vulnerabilities. They were scraped-off from [Etherscan](https://etherscan.io).
|
41 |
+
|
42 |
+
Specifically, the functions are a part of the top 500 auditted contracts holding at least `1 ETH`.
|
43 |
+
|
44 |
+
## Fields
|
45 |
+
1. `function` - Raw solidity code
|
46 |
+
|
47 |
+
# Additional Info
|
48 |
+
|
49 |
+
This dataset serves as basis for the other datasets in this family which are built for tasks s.a. Classification or Seq2Seq generation.
|