[Paper Review] Empirical Vulnerability Analysis of Automated Smart Contracts Security Testing on Blockchains
This paper empirically evaluates four open-source automated security testing tools for Ethereum smart contracts (Oyente, Mythril, Securify, SmartCheck) to compare their vulnerability detection effectiveness and accuracy using ten vulnerable Solidity contracts.
The emerging blockchain technology supports decentralized computing paradigm shift and is a rapidly approaching phenomenon. While blockchain is thought primarily as the basis of Bitcoin, its application has grown far beyond cryptocurrencies due to the introduction of smart contracts. Smart contracts are self-enforcing pieces of software, which reside and run over a hosting blockchain. Using blockchain-based smart contracts for secure and transparent management to govern interactions (authentication, connection, and transaction) in Internet-enabled environments, mostly IoT, is a niche area of research and practice. However, writing trustworthy and safe smart contracts can be tremendously challenging because of the complicated semantics of underlying domain-specific languages and its testability. There have been high-profile incidents that indicate blockchain smart contracts could contain various code-security vulnerabilities, instigating financial harms. When it involves security of smart contracts, developers embracing the ability to write the contracts should be capable of testing their code, for diagnosing security vulnerabilities, before deploying them to the immutable environments on blockchains. However, there are only a handful of security testing tools for smart contracts. This implies that the existing research on automatic smart contracts security testing is not adequate and remains in a very stage of infancy. With a specific goal to more readily realize the application of blockchain smart contracts in security and privacy, we should first understand their vulnerabilities before widespread implementation. Accordingly, the goal of this paper is to carry out a far-reaching experimental assessment of current static smart contracts security testing tools, for the most widely used blockchain, the Ethereum and its domain-specific programming language, Solidity to provide the first...
Motivation & Objective
- Assess the effectiveness of four open-source static smart contract security testing tools on Ethereum/Solidity.
- Measure and compare the accuracy of these tools in detecting true vulnerabilities and avoiding false alarms.
- Provide empirical knowledge to guide secure smart contract testing before deployment on blockchains.
- Analyze trade-offs between vulnerability detection and accuracy across tools to inform practice.
Proposed method
- Select four FOSS tools: Oyente, Mythril, Securify, SmartCheck.
- Use ten publicly available vulnerable Solidity contracts as test set.
- Run each tool on each contract and record TP, FP, TN, FN for each case.
- Compute effectiveness (recall) per tool using the formula Eff_j = (sum_i TP_i/(TP_i+FN_i)/n) * 100.
- Compute accuracy (Youden-like index) Acc_j = (Eff_j + (sum_i TN_i/(TN_i+FP_i)/n)*100) - 1.
- Apply randomized block design: each contract is tested by all four tools; analyze with ANOVA and LSD post-hoc tests.
- Use 5% significance level for hypothesis testing.
Experimental results
Research questions
- RQ1RQ1: How effective are the automated smart contract security testing tools at vulnerability detection, and which is most effective?
- RQ2RQ2: What are the accuracy scores of the tools in detecting true vulnerabilities and avoiding false alarms?
- RQ3How do tool effectiveness and accuracy compare statistically across the four tools?
- RQ4What are the pairwise differences between tools in terms of effectiveness and accuracy?
Key findings
- SmartCheck shows the highest vulnerability detection effectiveness among the four tools.
- ANOVA indicates a statistically significant difference in vulnerability detection effectiveness across tools (p = 0.0003).
- LSD post-hoc tests show SmartCheck differs significantly from all other tools in effectiveness (p < 0.05).
- Mythril and SmartCheck generally yield higher accuracy scores, with Mythril often achieving the highest accuracy across contracts.
- ANOVA for accuracy shows significant differences among tools (p = 0.0002); post-hoc tests reveal Mythril and SmartCheck differ significantly from others in accuracy.
- Overall, a trade-off is observed: SmartCheck excels in detection effectiveness, while Mythril and SmartCheck tend to have higher accuracy, suggesting different tool strengths for practical use.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.