Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,54 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
- token-classification
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
pretty_name: SmartUecDB
|
| 9 |
+
size_categories:
|
| 10 |
+
- 1K<n<10K
|
| 11 |
---
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
# SmartUecDB
|
| 15 |
+
## Description
|
| 16 |
+
SmartUecDB is a specialized, multimodal dataset designed for the high-fidelity detection of vulnerabilities in smart contract bytecode, with a primary focus on identifying **unchecked external calls**. The dataset curates a robust corpus of EVM-compatible execution traces and structural graph representations, enabling the training of Graph Neural Networks (GNN) to pinpoint insecure dispatch patterns and reentrancy vectors.
|
| 17 |
+
|
| 18 |
+
## Usage
|
| 19 |
+
You can start by downloading the primary graph feature set:
|
| 20 |
+
|
| 21 |
+
```python
|
| 22 |
+
import os
|
| 23 |
+
import requests
|
| 24 |
+
|
| 25 |
+
FILE = "smartmaldb_graph.csv"
|
| 26 |
+
url = (
|
| 27 |
+
f"[https://huggingface.co/datasets/Adson59/SmartUecDB](https://huggingface.co/datasets/Adson59/SmartUecDB)"
|
| 28 |
+
f"/resolve/main/{FILE}"
|
| 29 |
+
)
|
| 30 |
+
|
| 31 |
+
def download_dataset(url, filename):
|
| 32 |
+
response = requests.get(url)
|
| 33 |
+
if response.status_code == 200:
|
| 34 |
+
with open(filename, 'wb') as f:
|
| 35 |
+
f.write(response.content)
|
| 36 |
+
print(f"Successfully downloaded {filename}")
|
| 37 |
+
else:
|
| 38 |
+
print(f"Failed to download. Status code: {response.status_code}")
|
| 39 |
+
|
| 40 |
+
download_dataset(url, FILE)
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
## Structure
|
| 44 |
+
The following is the standard directory structure for the dataset, organized to support modular GNN training and inference pipelines:
|
| 45 |
+
```bash
|
| 46 |
+
SmartUecDB/
|
| 47 |
+
├── processed/ # cleaned and prepared rows
|
| 48 |
+
├── raw/ # original rows collected from the smartmaldb
|
| 49 |
+
├── split/ # Train/validation/test splits defined for reproducible model benchmarking
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
---
|
| 53 |
+
license: cc-by-4.0
|
| 54 |
+
---
|