[Paper Review] Pre-deployment Analysis of Smart Contracts -- A Survey
This survey presents a systematic classification of smart contract vulnerabilities and pre-deployment analysis methods by the program properties they address, revealing that formal methods and symbolic execution excel at verifying liveness and complex domain-specific properties, while machine learning shows strong performance in detecting diverse vulnerabilities with high precision and recall, offering a new perspective on static analysis usability.
Smart contracts are programs that execute transactions involving independent parties and cryptocurrencies. As programs, smart contracts are susceptible to a wide range of errors and vulnerabilities. Such vulnerabilities can result in significant losses. Furthermore, by design, smart contract transactions are irreversible. This creates a need for methods to ensure the correctness and security of contracts pre-deployment. Recently there has been substantial research into such methods. The sheer volume of this research makes articulating state-of-the-art a substantial undertaking. To address this challenge, we present a systematic review of the literature. A key feature of our presentation is to factor out the relationship between vulnerabilities and methods through properties. Specifically, we enumerate and classify smart contract vulnerabilities and methods by the properties they address. The methods considered include static analysis as well as dynamic analysis methods and machine learning algorithms that analyze smart contracts before deployment. Several patterns about the strengths of different methods emerge through this classification process.
Motivation & Objective
- To address the challenge of navigating the rapidly growing body of research on pre-deployment smart contract analysis.
- To identify and classify smart contract vulnerabilities and analysis methods based on the program properties they target, enabling clearer understanding of method strengths and weaknesses.
- To provide a transparent, reproducible review framework using systematic literature review methodology to map the state of the art in pre-deployment smart contract analysis.
- To highlight gaps in soundness and benchmarking, especially the lack of standardized vulnerability naming and shared benchmarks for tool comparison.
Proposed method
- The authors conducted a systematic literature review of publications from 2015 to 2022, selecting works based on relevance to pre-deployment analysis of smart contracts.
- They classified vulnerabilities and analysis methods by the program properties they address, using a taxonomy of 35 distinct properties grouped into categories such as safety, liveness, and domain-specific constraints.
- The study evaluates 35 analysis methods across static analysis, dynamic analysis, symbolic execution, model checking, theorem proving, and machine learning, assessing their ability to verify specific properties.
- The classification emphasizes the relationship between properties and methods, revealing patterns such as formal methods being uniquely suited for proving liveness, and symbolic execution being the only method to verify Address Integrity and Validity of Deposits.
- The authors assess soundness and benchmarking practices, identifying only 11 properties and 17 approaches with mathematically proven soundness, and highlight the scarcity of standardized benchmarks and vulnerability taxonomies.
- They use a comparative analysis of property specifications across studies to standardize terminology and ensure consistency, such as treating 'single-entrancy' as a special case of 'preservation of state'.
Experimental results
Research questions
- RQ1How are smart contract vulnerabilities and pre-deployment analysis methods related to specific program properties, and what patterns emerge from this relationship?
- RQ2Which analysis methods are most effective at verifying specific types of properties, such as liveness, safety, or domain-specific constraints?
- RQ3What is the current state of soundness in existing analysis methods, and how many methods have formal mathematical guarantees?
- RQ4To what extent do current benchmarks and vulnerability taxonomies support reliable comparison of analysis tools?
- RQ5Can machine learning methods provide comparable or superior detection performance to traditional static analysis, particularly in identifying complex or novel vulnerabilities?
Key findings
- Formal methods, including model checking and theorem proving, are the only approaches capable of verifying all four liveness properties, with two of these properties not addressed by any other method in the survey.
- Symbolic execution is the only method used to verify two specific domain-specific properties: Address Integrity and Validity of Deposits.
- Machine learning, particularly deep learning, demonstrates increased detection performance over state-of-the-art static analysis tools and covers a broad range of properties, including liveness and complex domain-specific constraints.
- Only 11 out of 35 properties and 17 out of 35 analysis approaches have mathematically established soundness, indicating a significant gap in formal verification for most existing tools.
- Fuzzing is highly effective at falsifying a wide range of properties, including fundamental, complex, and user-specified ones, making it a strong counterexample-finding technique.
- Static typing is the only traditional analysis method widely applied to non-Ethereum smart contracts, while domain-specific languages like Michelson and Albert integrate formal verification at the language level, enhancing security through type systems.
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.