To Healthier Ethereum: A Comprehensive and Iterative Smart Contract Weakness Enumeration

Jiachi Chen, Mingyuan Huang, Zewei Lin, Peilin Zheng, Zibin Zheng · DOI

Abstract

Smart contracts are the backbone of decentralized finance (DeFi), but their immutable nature makes vulnerabilities catastrophic. Existing standards like the Smart Contract Weakness Classification (SWC) have not been updated since 2020, failing to keep pace with the rapidly evolving Ethereum ecosystem. This paper presents the Smart Contract Weakness Enumeration (SWE), a comprehensive and iterative catalog of 40 vulnerabilities derived from 273 descriptions found in top-tier academic research from 2016 to 2023. By employing a rigorous card-sorting methodology and establishing a formal update mechanism, SWE bridges the gap between academic insights and industrial security practices.

Introduction

In the blockchain world, "code is law." A single bug in a smart contract can lead to irreversible financial losses. While developers have historically relied on lists like the SWC or DASP10 to identify risks, these resources have become obsolete. The SWC and DASP10 stopped receiving updates in 2020 and 2018, respectively, leaving a gap in documentation for newer attack vectors such as Token Standard Violations or complex logical errors.

To address this, the researchers introduced SWE, a living catalog designed to centralize cutting-edge security knowledge buried in academic literature and provide a practical, up-to-date resource for the developer community.

Methodology

The construction of the SWE followed a data-driven, qualitative research approach to ensure both comprehensiveness and accuracy. The process was divided into two primary phases: data collection and expert-led categorization.

Workflow of SWE construction

Data Collection

The team analyzed 86 high-quality papers from top-tier security and software engineering conferences (e.g., ASE, NDSS, CCS) published between 2016 and 2023. From these papers, they extracted 273 specific vulnerability descriptions, creating a raw dataset of "cards" for classification.

Open Card Sorting

To organize these descriptions into a usable taxonomy, the researchers used a two-round open card sorting technique:

  1. Round 1: A volunteer grouped 207 duplicate or highly similar descriptions into 24 initial categories.
  2. Round 2: Two additional volunteers independently classified the remaining 66 descriptions and reviewed the initial categories.

This process achieved a Kappa value of over 0.8, indicating a very high level of inter-rater agreement. Finally, the list was validated by 22 Ph.D. students specializing in smart contract security.

The SWE Taxonomy

The resulting SWE list identifies 40 distinct weaknesses categorized into 24 research fields. This taxonomy provides a mental model that helps developers prioritize defensive coding across various domains, from arithmetic errors to complex access control issues.

SWE Fields and Weaknesses

Key highlights of the taxonomy include:

  • Evolving Vulnerabilities: Beyond classic "Reentrancy" attacks, SWE documents "Logical" weaknesses like Token Standard Violations, where a contract violates the expected behavior of the ecosystem (e.g., ERC-20 rules).
  • Academic-Industry Bridge: The list includes vulnerabilities often discussed in research but overlooked in practice, such as Incorrect Inheritance Order and the Diamond Problem.
  • Granular Classification: Fields like "Access Control" are broken down into specific threats like Arbitrary Write, Unsafe Self-Destruct, and Backdoor Threats.

Iterative Maintenance

A core innovation of this paper is the acknowledgment that security is a moving target. The authors established two update paths for the SWE:

  • Regular Updates: Continuous monitoring of new academic publications to extract emerging weaknesses.
  • Irregular Updates: A community-driven approach allowing developers to report new weaknesses via the project's GitHub repository.

Conclusion and Future Work

The SWE significantly expands upon previous standards, offering 40 weaknesses compared to SWC's 37 and DASP10's 10. While currently focused on the Ethereum Virtual Machine (EVM) and Solidity, the framework is designed to be extensible.

Future work aims to expand the enumeration to other ecosystems like Solana (Rust) or Aptos (Move) and explore the use of Large Language Models (LLMs) to automate the extraction of vulnerabilities from new literature. The ultimate goal is for SWE to serve as a universal standard, similar to the CVE system in traditional software, fostering a healthier and more secure Ethereum ecosystem.

Summary updated

BibTeX
@inproceedings{chen2024healthier,
  author = {Jiachi Chen and Mingyuan Huang and Zewei Lin and Peilin Zheng and Zibin Zheng},
  title = {{To Healthier Ethereum: A Comprehensive and Iterative Smart Contract Weakness Enumeration}},
  booktitle = {Blockchain},
  year = {2024},
  doi = {10.1016/j.bcra.2024.100258},
}
Figure