datasets
Training and evaluation data, with the modality, task and licence stated up front. Listed live from the Hugging Face Hub.
slither-audited-smart-contractsThis dataset contains source code and deployed bytecode for Solidity Smart Contracts that have been verified on Etherscan.io, along with a classification of their vulnerabilities according to the Slither static analysis framework.smart_contractsmart-contract-aggregators-educationalseli-smartcontract-audit-sft-backup
SELI smart-contract audit SFT — v7.1
Evidence-first EVM/Solidity audit SFT mix, deterministically rebuilt and
verified. Supersedes the v6.2-prepared mix (stage2 removed; the old state is
preserved on branch v6.2-prepared-backup and under legacy/v6.1).
Files
file
rows
sha256
train.jsonl
31,907
44c95d2f9e5a544e3d0b236d4157f84f1c857baf4ce212ba6235abe4216faaab
val.jsonl
730
906777d469d4c913f086aec1223fd17896f808f9204b8d3a5941135090154490
Every… See the full description on the dataset page: https://huggingface.co/datasets/0xtoshi/seli-smartcontract-audit-sft-backup.smart_contract_code_commentsaudits-with-reasonsThis dataset builds on top of the base dataset by augmenting it using the quantized Llama3 8b instruct model by Unsloth
Namely, it:
Expands on the level of detail of the description and recommendation.
Cleans-up the code by fixing formatting and removing out-of-context comments (e.g external URLs which might confuse a model)
Adds two new fields: functionality and type (see table for more detail)
The non-vulnerable examples only have values for code, functionality and type='no vulnerability'… See the full description on the dataset page: https://huggingface.co/datasets/msc-smart-contract-auditing/audits-with-reasons.Smart_Contract_HF_Tokenized
Dataset Card for "Smart_Contract_HF_Tokenized"
More Information needed
vulnerability-severity-classificationThis 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.smart-contract-audit-findings
Smart Contract Audit Findings Dataset
A dataset of 49,611 smart contract security audit findings for fine-tuning LLMs on vulnerability detection.
Dataset Description
This dataset contains real security audit findings from 30 professional audit firms including Code4rena, OpenZeppelin, Sherlock, Cantina, and others. Formatted for training models to analyze smart contract code and identify vulnerabilities.
Splits
Split
Examples
Description
train
47,130… See the full description on the dataset page: https://huggingface.co/datasets/SkywardNomad92/smart-contract-audit-findings.malicious-smart-contract-dataset
Malicious Smart Contract Classification Dataset
This dataset includes malicious and benign smart contracts deployed on Ethereum.
Code used to collect this data: data collection notebook
For more details on how this dataset can be used, please check out this blog: How Forta’s Predictive ML Models Detect Attacks Before Exploitation
smart-contracts-instructions
Smart Contracts Instructions
A dataset containing 6,003 GPT-generated human instruction and Solidity source code data pairs.
GPT models used to make this data are GPT-3.5 turbo, GPT-3.5 turbo 16k context, and GPT-4. Solidity source codes are used from mwritescode's Slither Audited Smart Contracts (https://huggingface.co/datasets/mwritescode/slither-audited-smart-contracts).
Distributions of the GPT models used to make this dataset:
GPT-3.5 Turbo: 5,276
GPT-3.5 Turbo 16k Context:… See the full description on the dataset page: https://huggingface.co/datasets/AlfredPros/smart-contracts-instructions.vulnerable-functions-baseThese datasets serve as a basis for other datasets in this family which are built for tasks like Classification or Seq2Seq generation.
1. Smart Contract Vulnerabilities with Explanations (vulnerable-w-explanations)
This repository offers two datasets of Solidity functions,
This dataset comprises vulnerable Solidity functions audited by 5 auditing companies:
(Codehawks, ConsenSys, Cyfrin, Sherlock, Trust Security). These audits are compiled by Solodit.
Usage
from… See the full description on the dataset page: https://huggingface.co/datasets/msc-smart-contract-auditing/vulnerable-functions-base.smart-contract-vuln-detectionethereum-smart-contract-security-qa
Ethereum Smart Contract Security Dataset
A high-quality question–answer dataset of 100 records focused exclusively on Ethereum
smart contract security. It is built to train and evaluate AI systems that explain, identify,
classify, and mitigate the most common Ethereum smart contract vulnerabilities — LLM
fine-tuning, retrieval-augmented generation (RAG), AI security assistants, and secure
Solidity education.
Every record explains one vulnerability, attack pattern, secure coding… See the full description on the dataset page: https://huggingface.co/datasets/ismailtasdelen/ethereum-smart-contract-security-qa.malicious_smart_contract_dataset_selected
Dataset Card for "malicious_smart_contract_dataset_selected"
More Information needed
Smart_Contract_HF_sc_succ
Dataset Card for "Smart_Contract_HF_sc_succ"
More Information needed
malicious-smart-contract-dataset
Malicious Smart Contract Classification Dataset
This dataset includes malicious and benign smart contracts deployed on Ethereum.
Code used to collect this data: data collection notebook
For more details on how this dataset can be used, please check out this blog: How Forta’s Predictive ML Models Detect Attacks Before Exploitation
Smart_Contract_HF_bc_succ
Dataset Card for "Smart_Contract_HF_bc_succ"
More Information needed
smart-contract-vulnerabilitiesBalanced-Ethereum-Smart-Contract
Dataset Card for Balanced Ethereum Smart Contract
The rapid expansion of blockchain technology, particularly Ethereum, has driven widespread adoption of smart contracts. However, the security of these contracts remains a critical concern due to the increasing frequency and complexity of vulnerabilities. This paper presents a comprehensive approach to detecting vulnerabilities in Ethereum smart contracts using pre-trained Large Language Models (LLMs). We apply transformer-based LLMs… See the full description on the dataset page: https://huggingface.co/datasets/Thi-Thu-Huong/Balanced-Ethereum-Smart-Contract.smart-contract-security-audit-v2smart_contract_vulnerability_kaggleETH_SmartContractVulnerability_LLMsmart-contracts-instructions-cleanedThe Cleaned Smart Contracts Instructions dataset is a refined version of the original dataset created by AlfredPros. This dataset contains structured and detailed instructions related to smart contracts, optimized for clarity and usability. It is intended for developers, researchers, and enthusiasts working on blockchain technology, smart contract development, and related fields.
emgena_defi_smart_contract_guard_mcp_teaser
🚀 Emgena DeFi & Smart Contract Reentrancy MCP Guard (Turnkey MCP Plugin & Teaser)
⚡ Official Free Evaluation Teaser (50 Verified Scenarios)🏆 Get the Full Turnkey MCP Plugin & Production Master Package (1,000 Samples) on Gumroad:👉 Purchase Turnkey MCP Plugin on Gumroad🏷️ Use coupon code LAUNCH20 for 20 € off at checkout!
🌟 Plugin Overview & Features
Turnkey Solidity AST Reentrancy Scanner, Gas Exhaustion Guard & Flash-Loan Shield for Cursor & Claude… See the full description on the dataset page: https://huggingface.co/datasets/emgena/emgena_defi_smart_contract_guard_mcp_teaser.clean_smart_contractblockchain-smartcontracts-1000
Blockchain y Contratos Inteligentes Dataset 1000
Dataset de 1000 instrucciones sobre los fundamentos de Blockchain, Contratos Inteligentes, DAOs, DeFi y programación en Solidity.
Uso
from datasets import load_dataset
dataset = load_dataset("miguelmejias0512/solidity_personal_dataset")
---
## Licencia
CC-BY-4.0 - Uso educativo
smart-contract-LLM-FT
Dataset Card for "smart-contract-LLM-FT"
More Information needed
smart-contract-genSmart-Contract-MultiTask-Dataset
Overview
This is a dataset designed for smart contract generation. It includes two subsets:
Requirement-FSM-Code subset: Contains user requirement descriptions, finite state machine (FSM) representations, and corresponding smart contract code.
Comment-Code subset: Includes functional comments and their corresponding implementation code.
Dataset Structure
Subset 1: Requirement-FSM-Code
Description: Contains natural language descriptions of user requirements… See the full description on the dataset page: https://huggingface.co/datasets/lohoz/Smart-Contract-MultiTask-Dataset.
