Adson59/smartmaldb
收藏Hugging Face2026-04-22 更新2026-04-26 收录
下载链接:
https://hf-mirror.com/datasets/Adson59/smartmaldb
下载链接
链接失效反馈官方服务:
资源简介:
SmartMalDB是一个用于智能合约漏洞分类的标记数据集,包含17,160个智能合约样本,每个样本以多种格式表示:源代码、字节码、操作码序列和控制流图(CFG)特征。数据集支持传统的基于文本的分类和基于图的深度学习方法。漏洞类型包括:0 — 无漏洞;1 — 时间操纵(例如,区块时间戳依赖);2 — 重入(例如,状态更新前的外部调用);3 — 外部(例如,未检查的外部调用);4 — 溢出(例如,未检查的算术操作);5 — 锁定(例如,缺乏提款或严格的余额比较)。所有智能合约源代码均使用Solidity(基于英语的语法),标签和文档均为英文。
SmartMalDB is a labeled dataset for smart contract vulnerability classification. It contains 17,160 smart contract samples, each represented across multiple formats: source code, bytecode, opcode sequences, and control flow graph (CFG) features. The dataset supports both traditional text-based classification and graph-based deep learning approaches. Vulnerability types include: `0` — Clean (no vulnerability); `1` — Time manipulation (e.g, block timestamp dependencies); `2` — Reentrancy (e.g, External calls before state updates); `3` — External (e.g., unchecked external calls); `4` — Overflow (e.g, unchecked arithmetic operations); `5` — Locked (e.g., lack withdraw or strict balance comparisons). All smart contract source code is in Solidity (English-based syntax). Labels and documentation are in English.
提供机构:
Adson59



