Increasing Fuzz Testing Coverage for Smart Contracts with Dynamic Taint Analysis
Authors:
- 1 December 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 243-247
Abstract
Nowadays, smart contracts manage more and more digital assets and have become an attractive target for adversaries. To prevent smart contracts from malicious attacks, a thorough test is indispensable and must be finished before deployment because smart contracts cannot be modified after being deployed. Fuzzing is an important testing approach, but most existing smart contract fuzzers can hardly solve the constraints which involve deeply nested conditional statements, resulting in low coverage. To address this problem, we propose Targy, an efficient targeted mutation strategy based on dynamic taint analysis. We obtain the taint flow by dynamic taint propagation, and generate a more accurate mutation strategy for the input parameters of functions to simultaneously satisfy all conditional statements. We implemented Targy on sFuzz with 3.6 thousand smart contracts running on Ethereum. The numbers of covered branches and detected vulnerabilities increase by 6% and 7% respectively, and the average time required for covering a branch is reduced by 11 %.Keywords
This publication has 13 references indexed in Scilit:
- Matryoshka2019
- Creativity in Trusted Data: Research on Application of Blockchain in Supply Chain2019
- REDQUEEN: Fuzzing with Input-to-State Correspondence2019
- ContractFuzzer: fuzzing smart contracts for vulnerability detection2018
- SmartCheck2018
- Angora: Efficient Fuzzing by Principled Search2018
- IoT security: Review, blockchain solutions, and open challengesFuture Generation Computer Systems, 2018
- VUzzer: Application-aware Evolutionary Fuzzing2017
- Making Smart Contracts Smarter2016
- Setting Standards for Altering and Undoing Smart Contracts2016