datasets
Training and evaluation data, with the modality, task and licence stated up front. Listed live from the Hugging Face Hub.
smart-contract-fiesta
Zellic 2023 Smart Contract Source Index
Zellic is making publicly available a dataset of known Ethereum mainnet smart contract source code.
Our aim is to provide a contract source code dataset that is readily available to the public to download in bulk. We believe this dataset will help advance the frontier of smart contract security research. Applications include static analysis, machine learning, and more. This effort is part of Zellic’s mission to create a world with no smart… See the full description on the dataset page: https://huggingface.co/datasets/Zellic/smart-contract-fiesta.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-contract-audit-nonpdf-artifactssmart_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_Vulnerability_DatasetSmart Contract Vulnerability Dataset
Overview
The Smart Contract Vulnerability Dataset (SCV-1-2000) is a comprehensive JSONL dataset containing 2000 entries (SCV-1 to SCV-2000) focused on advanced and unconventional smart contract vulnerabilities and attack vectors, with an emphasis on Decentralized Finance (DeFi) protocols. This dataset is designed for cybersecurity professionals, blockchain developers, machine learning engineers, and data scientists to train models, evaluate… See the full description on the dataset page: https://huggingface.co/datasets/darkknight25/Smart_Contract_Vulnerability_Dataset.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
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.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.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
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-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.smart-contract-vulnerability-benchmarks
Smart Contract Vulnerability Benchmarks
smartbugs-wild/contracts is stored as lossless CSV shards with content_base64; other benchmark files are raw.
Converted smartbugs-wild contracts: 47398
Raw files: 5295
Generated: 2026-06-24T16:06:36.674733+00:00
smart-contract-intent-vul-dataset
Smart Contract Intent & Vulnerability Dataset
This dataset contains a large-scale collection of smart contracts annotated with malicious intents and security vulnerabilities, designed for research on smart contract security analysis and program understanding.
The dataset includes 90,000+ smart contracts collected from Ethereum and Binance Smart Chain (BSC). All data are distributed as a MySQL database dump (.sql.gz) to support flexible querying and large-scale analysis.… See the full description on the dataset page: https://huggingface.co/datasets/web3se/smart-contract-intent-vul-dataset.ethereum-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-vuln-detectionmalicious-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-verified
📄 Database Structure: contracts Table
This document describes the structure and purpose of the contracts table within the databases.The table stores metadata and deployment details of smart contracts.
📌 Table Description
Each record stored in the table has the following structure and fields, with described constraints.
Column Name
Type
Constraints
Description -
address
TEXT
PRIMARY KEY
The unique… See the full description on the dataset page: https://huggingface.co/datasets/Blockmates/smart-contracts-verified.Smart_Contract_HF_sc_succ
Dataset Card for "Smart_Contract_HF_sc_succ"
More Information needed
Smart_Contract_HF_bc_succ
Dataset Card for "Smart_Contract_HF_bc_succ"
More Information needed
smart-contract-vulnerabilitiesETH_SmartContractVulnerability_LLMsmart-contract-genBalanced-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_DatasetSmart Contract Vulnerability Dataset
Overview
The Smart Contract Vulnerability Dataset (SCV-1-2000) is a comprehensive JSONL dataset containing 2000 entries (SCV-1 to SCV-2000) focused on advanced and unconventional smart contract vulnerabilities and attack vectors, with an emphasis on Decentralized Finance (DeFi) protocols. This dataset is designed for cybersecurity professionals, blockchain developers, machine learning engineers, and data scientists to train models, evaluate… See the full description on the dataset page: https://huggingface.co/datasets/Lunarnight/Smart_Contract_Vulnerability_Dataset.
