[Paper Review] Towards Smart Hybrid Fuzzing for Smart Contracts.
CONFUZZIUS is a hybrid fuzzer that combines evolutionary fuzzing with constraint solving to improve code coverage and detect deeper bugs in smart contracts. By leveraging data dependency analysis to generate stateful transaction sequences, it outperforms state-of-the-art symbolic execution tools and fuzzers in finding vulnerabilities.
Smart contracts are Turing-complete programs that are executed across a blockchain network. Unlike traditional programs, once deployed they cannot be modified. As smart contracts become more popular and carry more value, they become more of an interesting target for attackers. In recent years, smart contracts suffered major exploits, costing millions of dollars, due to programming errors. As a result, a variety of tools for detecting bugs has been proposed. However, majority of these tools often yield many false positives due to over-approximation or poor code coverage due to complex path constraints. Fuzzing or fuzz testing is a popular and effective software testing technique. However, traditional fuzzers tend to be more effective towards finding shallow bugs and less effective in finding bugs that lie deeper in the execution. In this work, we present CONFUZZIUS, a hybrid fuzzer that combines evolutionary fuzzing with constraint solving in order to execute more code and find more bugs in smart contracts. Evolutionary fuzzing is used to exercise shallow parts of a smart contract, while constraint solving is used to generate inputs which satisfy complex conditions that prevent the evolutionary fuzzing from exploring deeper paths. Moreover, we use data dependency analysis to efficiently generate sequences of transactions, that create specific contract states in which bugs may be hidden. We evaluate the effectiveness of our fuzzing strategy, by comparing CONFUZZIUS with state-of-the-art symbolic execution tools and fuzzers. Our evaluation shows that our hybrid fuzzing approach produces significantly better results than state-of-the-art symbolic execution tools and fuzzers.
Motivation & Objective
- To address the limitations of existing smart contract testing tools, which suffer from high false positive rates and poor code coverage due to over-approximation or complex path constraints.
- To improve the detection of deep, hard-to-reach bugs in smart contracts that traditional fuzzers often miss.
- To enhance code coverage by combining evolutionary fuzzing with constraint solving to navigate complex execution paths.
- To generate meaningful sequences of transactions that reach specific contract states where vulnerabilities may be hidden.
- To evaluate the effectiveness of the hybrid approach against state-of-the-art symbolic execution tools and fuzzers.
Proposed method
- Evolutionary fuzzing is used to explore shallow, reachable paths in smart contracts through mutation-based input generation.
- Constraint solving is employed to generate inputs that satisfy complex path conditions, enabling exploration of deeper, more constrained execution paths.
- Data dependency analysis is applied to identify transaction sequences that lead to specific contract states, increasing the likelihood of triggering hidden bugs.
- The hybrid approach integrates evolutionary fuzzing and constraint solving in a coordinated manner, prioritizing paths based on coverage and path complexity.
- The framework is designed to be compatible with Ethereum-based smart contracts and supports symbolic execution for path condition analysis.
- The system evaluates inputs for vulnerability triggers by monitoring execution traces and state transitions.
Experimental results
Research questions
- RQ1Can a hybrid fuzzer combining evolutionary fuzzing and constraint solving achieve better code coverage than standalone approaches in smart contract testing?
- RQ2How effective is the use of data dependency analysis in generating meaningful transaction sequences that reach vulnerable contract states?
- RQ3To what extent does the hybrid approach reduce false positives and improve detection of deep, complex bugs compared to symbolic execution tools?
- RQ4How does CONFUZZIUS compare in vulnerability discovery rate and code coverage against state-of-the-art fuzzers and symbolic execution tools?
- RQ5Can the integration of constraint solving enhance the exploration of paths that are infeasible for traditional evolutionary fuzzers?
Key findings
- CONFUZZIUS significantly outperforms state-of-the-art symbolic execution tools in terms of code coverage and vulnerability detection.
- The hybrid approach discovers more bugs than standalone fuzzers and symbolic executors, particularly in deeply nested or conditionally guarded paths.
- Constraint solving enables the fuzzer to explore complex paths that are unreachable through mutation-based fuzzing alone.
- Data dependency analysis effectively generates transaction sequences that reach specific contract states, increasing the probability of triggering latent vulnerabilities.
- The combination of evolutionary fuzzing and constraint solving leads to a measurable improvement in both the number of unique paths explored and the number of vulnerabilities detected.
- The evaluation confirms that CONFUZZIUS achieves superior results in real-world smart contract benchmarks compared to existing tools.
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.