Skip to main content
QUICK REVIEW

[Paper Review] ScrawlD: A Dataset of Real World Ethereum Smart Contracts Labelled with Vulnerabilities

Chavhan Sujeet Yashavant, Saurabh Kumar|arXiv (Cornell University)|Feb 23, 2022
Blockchain Technology Applications and SecurityComputer Science16 citations
TL;DR

This paper introduces ScrawlD, a benchmark dataset of 6,700 real-world Ethereum smart contracts annotated with vulnerabilities using a majority-vote strategy across five static analysis tools. The dataset enables unbiased evaluation of vulnerability detection tools, supports machine learning training, and provides empirical insights into tool effectiveness, addressing the lack of standardized, large-scale, real-world labeled datasets in the field.

ABSTRACT

Smart contracts on Ethereum handle millions of U.S. Dollars and other financial assets. In the past, attackers have exploited smart contracts to steal these assets. The Ethereum community has developed plenty of tools to detect vulnerable smart contracts. However, there is no standardized data set to evaluate these existing tools, or any new tools developed. There is a need for an unbiased standard benchmark of real-world Ethereum smart contracts. We have created ScrawlD: an annotated data set of real-world smart contracts taken from the Ethereum network. The data set is labelled using 5 tools that detect various vulnerabilities in smart contracts, using majority voting.

Motivation & Objective

  • To address the lack of a standardized, large-scale, real-world benchmark dataset for evaluating Ethereum smart contract vulnerability detection tools.
  • To create a representative, diverse, and unbiased dataset of real-world smart contracts with manually validated vulnerability annotations.
  • To support the development and evaluation of new static analysis tools and machine learning-based vulnerability detection systems.
  • To enable empirical comparison of existing tools by providing a common evaluation suite with ground truth labels.
  • To improve tool evaluation reliability by reducing bias from synthetic or small-scale labeled datasets.

Proposed method

  • The dataset was constructed by collecting 46,000 Ethereum smart contracts from Etherscan, focusing on real-world contracts with at least one transaction.
  • Five established static analysis tools (Slither, Mythril, Oyente, SmartCheck, and others) were used to analyze each contract for known vulnerabilities.
  • Vulnerability labels were assigned using a majority-vote mechanism: a vulnerability was considered present only if at least 50% of the tools reported it at the same line number.
  • The team used Docker containers to ensure tool compatibility and isolate execution environments.
  • The final dataset includes 6,700 contracts with vulnerability annotations mapped to specific lines, using SWC-registry vulnerability types.
  • The dataset is publicly released at https://github.com/sujeetc/ScrawlD for community use and future expansion.

Experimental results

Research questions

  • RQ1What is the prevalence of different vulnerability types in real-world Ethereum smart contracts?
  • RQ2How effective is a majority-vote consensus strategy in reducing false positives and negatives in vulnerability labeling?
  • RQ3Can a large-scale, real-world, labeled dataset improve the evaluation and training of smart contract vulnerability detection tools?
  • RQ4How do existing tools compare in detecting vulnerabilities when evaluated on a standardized, real-world benchmark?
  • RQ5What is the distribution of vulnerabilities across real-world smart contracts in terms of severity and frequency?

Key findings

  • The dataset contains 6,700 real-world Ethereum smart contracts, with 2,688 contracts having no detected vulnerabilities.
  • Reentrancy (SWC-107) and arithmetic overflow/underflow (SWC-101) were among the most frequently reported vulnerabilities.
  • Denial-of-Service (DOS) vulnerabilities were not detected by the majority of tools, suggesting potential tool limitations or low prevalence.
  • A total of 2,912 contracts had exactly one vulnerability, while 1,082 contracts had two vulnerabilities, indicating moderate to high vulnerability density in real-world contracts.
  • The majority-vote labeling strategy reduced false positives and provided a reliable ground truth for benchmarking, though some vulnerabilities like DOS were inconsistently reported.
  • The dataset is publicly available and will be incrementally expanded with additional tools and manual validation via crowdsourcing in the future.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.