Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners?

Stefanos Chaliasos, Marcos Antonios Charalambous, Liyi Zhou, Rafaila Galanopoulou, Arthur Gervais, Dimitris Mitropoulos, Benjamin Livshits2025

TL;DR

This paper investigates the effectiveness of current automated security tools in detecting vulnerabilities in smart contracts, finding they can only prevent a small fraction (8%) of real-world DeFi attacks, primarily those related to reentrancy. The study highlights a significant gap in tool coverage for critical vulnerabilities like logic errors and protocol-level issues, urging the development of more specialized and comprehensive security solutions.

What Problem Does This Paper Address?

The booming Decentralized Finance (DeFi) ecosystem, built on smart contracts, has become a prime target for attackers, leading to billions in financial losses. While numerous automated security tools exist to detect vulnerabilities, their real-world impact and effectiveness against actual exploits remain unclear. This paper aims to bridge this gap by evaluating how well these tools perform against a dataset of high-impact DeFi attacks and by surveying developers and auditors to understand their practical needs and perceptions of existing security solutions.

Methods

The research employs a mixed-methods approach:

  1. Empirical Evaluation: Five state-of-the-art automated security tools (ConFuzzius, Mythril, Oyente, Slither, Solhint) were evaluated against a dataset of 127 real-world DeFi attacks. The study analyzed which vulnerabilities these tools could detect and how many of the associated attacks could have been prevented.
  2. Survey: A survey was conducted with 49 developers and auditors from leading DeFi protocols. This survey aimed to understand their tool usage, preferences, perceived challenges, and satisfaction with current security tools.

Datasets

  • DeFi Attacks Dataset: The study utilized a dataset of 127 high-impact real-world DeFi attacks, curated from Zhou et al. [64]. This dataset includes details on underlying vulnerabilities, exploits, and monetary losses, categorized into Smart Contract and DeFi Protocol layers.
  • No new benchmark datasets were introduced.

Key Insights and Ideas

  • Reentrancy is Over-addressed, Logic is Under-addressed: Current tools are quite effective against reentrancy vulnerabilities, which have seen significant research focus. However, they largely miss critical vulnerabilities like "absence of coding logic or sanity checks" and "logic errors," which are frequently the root cause of major exploits.
  • Protocol Layer Vulnerabilities are Ignored: Automated tools primarily focus on the smart contract layer, neglecting vulnerabilities at the protocol layer, which are also crucial in DeFi.
  • Practitioners' Needs Differ: Developers prefer lightweight, easily integrated tools (like linters), while auditors require more robust bug-finding capabilities (like static analyzers). Both groups value ease of use and clear documentation.
  • Academic Tools Lag Behind Practice: Many academic tools, often used in research evaluations, are not adopted by practitioners in real-world development and auditing.
  • Manual Auditing Remains Essential: Despite advancements, a significant portion of auditors spend limited time on automated tools, indicating that manual review and human expertise are still indispensable for comprehensive security assurance.

Key Results

  • Limited Prevention Capability: The evaluated tools could have potentially prevented only 8% of the analyzed attacks, amounting to approximately $149 million out of $2.3 billion in losses.
  • Reentrancy Dominates Detectable Vulnerabilities: All preventable attacks identified by the tools were related to reentrancy vulnerabilities.
  • Significant Gap in Coverage: Automated tools could only detect vulnerabilities in 25% of the 127 attacks studied.
  • Survey Insights:
    • 92% of developers prefer open-source tools.
  • 59% of developers and 48% of auditors use tools that can detect logic-related bugs.
  • 76% of auditors spend 20% or less of their audit time using security tools.
  • Developers prioritize low false negatives, while auditors prioritize low false positives.
  • Practitioner Perception: While 52.4% of auditors find security tools helpful, a notable 38.1% do not, highlighting the need for improvement.

Limitations and Future Work

  • Tool Selection Bias: The study selected a subset of popular and well-established tools, acknowledging that other tools might exist.
  • Tool Setup: The research used tools with minimal setup, which might not reflect how practitioners configure them for deeper analysis.
  • Dataset Scope: While the dataset is comprehensive, it represents a snapshot of past attacks.
  • Future Work: The authors suggest focusing on developing semi-automated tools that can incorporate user input for detecting logic-related bugs and protocol-layer vulnerabilities. They also emphasize the need for tools that cater to the distinct needs of developers and auditors, and for academic research to align with practical tool usage and real-world attack scenarios.

Summary updated

BibTeX
@misc{chaliasos2025smart,
  author = {Stefanos Chaliasos and Marcos Antonios Charalambous and Liyi Zhou and Rafaila Galanopoulou and Arthur Gervais and Dimitris Mitropoulos and Benjamin Livshits},
  title = {{Smart Contract and DeFi Security Tools: Do They Meet the Needs of Practitioners?}},
  year = {2025},
  url = {https://openreview.net/forum?id=7oWazblfX2},
}
Figure