Rethinking Smart Contract Fuzzing: Fuzzing With Invocation Ordering and Important Branch Revisiting
Open accessThe DOI matches its Crossref record; 41 of the 41 references it cites were found in a registry or an index.
Abstract
Blockchain smart contracts have given rise to a variety of interesting and compelling applications and emerged as a revolutionary force for the Internet. Smart contracts from various fields now hold over one trillion dollars worth of virtual coins, attracting numerous attacks. Quite a few practitioners have devoted themselves to developing tools for detecting bugs in smart contracts. One line of efforts revolve around static analysis techniques, which heavily suffer from high false positive rates. Another line of works concentrate on fuzzing techniques. Unfortunately, current fuzzing approaches for smart contracts tend to conduct fuzzing starting from the initial state of the contract, which expends too much energy revolving around the initial state of the contract and thus is usually unable to unearth bugs triggered by other states. Moreover, most existing methods treat each branch equally, failing to take care of the branches that are rare or more likely to possess bugs. This might lead to resources wasted on normal branches. In this paper, we try to tackle these challenges from three aspects: 1) generating function invocation sequences, we explicitly consider data dependencies between functions to facilitate exploring richer states. We further prolong a function invocation sequence$\mathcal {S}_{1}$by appending a new sequence$\mathcal {S}_{2}$, so that the appended sequence$\mathcal {S}_{2}$can start fuzzing from states that are different from the initial state; 2) we incorporate a branch distance-based measure to evolve test cases iteratively towards a target branch; 3) we engage a branch search algorithm to discover rare and vulnerable branches, and design an energy allocation mechanism to take care of exercising these crucial branches. We implement IR-Fuzz and extensively evaluate it over 12K real-world contracts. Empirical results show that: (i) IR-Fuzz achieves 28% higher branch coverage than state-of-the-art fuzzing approaches, (ii) IR-Fuzz detects more vulnerabilities and increases the average accuracy of vulnerability detection by 7% over current methods, and (iii) IR-Fuzz is fast, generating an average of 350 test cases per second. Our implementation and dataset are released athttps://github.com/Messi-Q/IR-Fuzz, hoping to facilitate future research.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
(2013) · Cited by 5,372
Blockchain challenges and opportunities: a survey
Zheng, Z., Xie, S., Dai, H. N., Chen, X., & Wang, H. (2018) · International Journal of Web and Grid Services · doi:10.1504/ijwgs.2018.095647 · Cited by 3,651
A Survey of Attacks on Ethereum Smart Contracts (SoK)
Atzei, N., Bartoletti, M., & Cimoli, T. (2017) · Lecture Notes in Computer Science · doi:10.1007/978-3-662-54455-6_8 · Cited by 1,553 · cited 1×
“how popular it is [2], [24], [25], [26].”
BackgroundSecurify: Practical Security Analysis of Smart Contracts
Tsankov, P., Dan, A., Drachsler-Cohen, D., Gervais, A., Bünzli, F., & Vechev, M. (2018) · Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3243734.3243780 · Cited by 1,043 · cited 7×
“tools, we select Mythril [46], Oyente [15], Osiris [45], and Securify [31], which are well-known vulnerability checkers for”
MethodInfluentialSlither: A Static Analysis Framework for Smart Contracts
Feist, J., Grieco, G., & Groce, A. (2019) · 2019 IEEE/ACM 2nd International Workshop on Emerging Trends in Software Engineering for Blockchain (WETSEB) · doi:10.1109/wetseb.2019.00008 · Cited by 872 · cited 3×
“Another stream of works rely on symbolic execution methods, such as Oyente [15], Slither [30], and Securify [31].”
BackgroundMethodContractFuzzer: fuzzing smart contracts for vulnerability detection
Jiang, B., Liu, Y., & Chan, W. K. (2018) · Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering · doi:10.1145/3238147.3238177 · Cited by 820 · cited 3×
“tracts, such as [18], [19], [20], [16], [21], [22], and [23], we obtain the following observations.”
BackgroundBöhme, M., Pham, V.-T., Nguyen, M.-D., & Roychoudhury, A. (2017) · Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3133956.3134020 · Cited by 747 · cited 3×
“blackbox, and greybox [34], [35], [36].”
BackgroundA Novel Neural Source Code Representation Based on Abstract Syntax Tree
Zhang, J., Wang, X., Zhang, H., Sun, H., Wang, K., & Liu, X. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2019.00086 · Cited by 655
Formal Verification of Smart Contracts: Short Paper
Bhargavan, K., Delignat-Lavaud, A., Fournet, C., Gollamudi, A., Gonthier, G., Kobeissi, N., Kulatova, N., Rastogi, A., Sibut-Pinote, T., Swamy, N., et al. (2016) · Proceedings of the 2016 ACM Workshop on Programming Languages and Analysis for Security · doi:10.1145/2993600.2993611 · Cited by 626
Angora: Efficient Fuzzing by Principled Search
Chen, P., & Chen, H. (2018) · 2018 IEEE Symposium on Security and Privacy (SP) · doi:10.1109/sp.2018.00046 · Cited by 552
Osiris: Hunting for Integer Bugs in Ethereum Smart Contracts
Torres, C. F., Schütte, J., & State, R. (2018) · Proceedings of the 34th Annual Computer Security Applications Conference · doi:10.1145/3274694.3274737 · Cited by 440 · cited 5×
“tools, we select Mythril [46], Oyente [15], Osiris [45], and Securify [31], which are well-known vulnerability checkers for”
MethodInfluentialKEVM: A Complete Formal Semantics of the Ethereum Virtual Machine
Hildenbrandt, E., Saxena, M., Rodrigues, N., Zhu, X., Daian, P., Guth, D., Moore, B., Park, D., Zhang, Y., Stefanescu, A., et al. (2018) · 2018 IEEE 31st Computer Security Foundations Symposium (CSF) · doi:10.1109/csf.2018.00022 · Cited by 418 · cited 1×
“Further, [28] and [29] define the formal semantics of contracts using the F* framework and the K framework, respectively.”
MethodSmart Contract Vulnerability Detection using Graph Neural Network
Zhuang, Y., Liu, Z., Qian, P., Liu, Q., Wang, X., & He, Q. (2020) · Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2020/454 · Cited by 405 · cited 1×
“how popular it is [2], [24], [25], [26].”
BackgroundSelf-citationCollAFL: Path Sensitive Fuzzing
Gan, S., Zhang, C., Qin, X., Tu, X., Li, K., Pei, Z., & Chen, Z. (2018) · 2018 IEEE Symposium on Security and Privacy (SP) · doi:10.1109/sp.2018.00040 · Cited by 370 · cited 1×
“One spectrum of works [37], [38] aim at covering as many paths or branches as possible, expecting to reveal a bug in the program, namely coverage-guided greybox fuzzing.”
BackgroundBlockchain: Emergent Industry Adoption and Implications for Accounting
Kokina, J., Mancha, R., & Pachamanova, D. (2017) · Journal of Emerging Technologies in Accounting · doi:10.2308/jeta-51911 · Cited by 352 · cited 1×
“chain [7], and cross-industry finance [8].”
Systematic Review of Security Vulnerabilities in Ethereum Blockchain Smart Contract
Kushwaha, S. S., Joshi, S., Singh, D., Kaur, M., & Lee, H.-N. (2022) · IEEE Access · doi:10.1109/access.2021.3140091 · Cited by 350 · cited 1×
“in smart contracts [10], [11], leading to enormous financial losses.”
BackgroundCoverage-Based Greybox Fuzzing as Markov Chain
Bohme, M., Pham, V.-T., & Roychoudhury, A. (2019) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2017.2785841 · Cited by 340
Defining the Ethereum Virtual Machine for Interactive Theorem Provers
Hirai, Y. (2017) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-70278-0_33 · Cited by 279 · cited 1×
“Reference [27] proposes a formal model and verifies smart contracts using the Isabelle/HOL tool.”
MethodLearning to Fuzz from Symbolic Execution with Application to Smart Contracts
He, J., Balunović, M., Ambroladze, N., Tsankov, P., & Vechev, M. (2019) · Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3319535.3363230 · Cited by 269 · cited 12×
“For block number dependency vulnerability (BN), fuzzing tools sFuzz, ConFuzzius, and ILF produce over 100 false positives.”
BackgroundMethodInfluentialHawkeye: Towards a Desired Directed Grey-box Fuzzer
Chen, H., Xue, Y., Li, Y., Chen, B., Xie, X., Wu, X., & Liu, Y. (2018) · Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3243734.3243849 · Cited by 263 · cited 1×
“[35], [37], [41] are designed to direct greybox fuzzing towards a set of specific target locations, termed targeted greybox fuzzing.”
BackgroundCombining Graph Neural Networks with Expert Knowledge for Smart Contract Vulnerability Detection
Liu, Z., Qian, P., Wang, X., Zhuang, Y., Qiu, L., & Wang, X. (2021) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2021.3095196 · Cited by 259
Self-citationBlockchain and agricultural supply chains traceability: research trends and future challenges
Mirabelli, G., & Solina, V. (2020) · Procedia Manufacturing · doi:10.1016/j.promfg.2020.02.054 · Cited by 240 · cited 1×
“chain [7], and cross-industry finance [8].”
Liang, H., Pei, X., Jia, X., Shen, W., & Zhang, J. (2018) · IEEE Transactions on Reliability · doi:10.1109/tr.2018.2834476 · Cited by 231
Towards Automated Reentrancy Detection for Smart Contracts Based on Sequential Models
Qian, P., Liu, Z., He, Q., Zimmermann, R., & Wang, X. (2020) · IEEE Access · doi:10.1109/access.2020.2969429 · Cited by 227 · cited 1×
“how popular it is [2], [24], [25], [26].”
BackgroundSelf-citationHarvey: a greybox fuzzer for smart contracts
Wüstholz, V., & Christakis, M. (2020) · Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering · doi:10.1145/3368089.3417064 · Cited by 217
Can traditional fault prediction models be used for vulnerability prediction?
Shin, Y., & Williams, L. (2013) · Empirical Software Engineering · doi:10.1007/s10664-011-9190-8 · Cited by 202 · cited 1×
“Recall that most existing fuzzers treat program branches equally, ignoring the fact that vulnerable code usually takes a tiny fraction of the entire code [18], [43].”
BackgroundA Semantic Framework for the Security Analysis of Ethereum Smart Contracts
Grishchenko, I., Maffei, M., & Schneidewind, C. (2018) · Lecture Notes in Computer Science · doi:10.1007/978-3-319-89722-6_10 · Cited by 200 · cited 1×
“Further, [28] and [29] define the formal semantics of contracts using the F* framework and the K framework, respectively.”
MethodFIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process Emulation
Zheng, Y., Davanian, A., Yin, H., Song, C., Zhu, H., & Sun, L. (2019) · USENIX Security Symposium · Cited by 168
ConFuzzius: A Data Dependency-Aware Hybrid Fuzzer for Smart Contracts
Torres, C. F., Iannillo, A. K., Gervais, A., & State, R. (2021) · 2021 IEEE European Symposium on Security and Privacy (EuroS&P) · doi:10.1109/eurosp51992.2021.00018 · Cited by 162
Liu, Z., Qian, P., Wang, X., Zhu, L., He, Q., & Ji, S. (2021) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2021/379 · Cited by 159
Self-citationFuzzing File Systems via Two-Dimensional Input Space Exploration
Xu, W. X., Moon, H., Kashyap, S., Tseng, P.-N., & Kim, T. (2019) · IEEE Symposium on Security and Privacy (S&P) · doi:10.1109/sp.2019.00035 · Cited by 125 · cited 1×
“blackbox, and greybox [34], [35], [36].”
Smart Contract Vulnerability Detection Technique: A SurveyPreprint
Qian, P., Liu, Z., He, Q., Huang, B., Tian, D., & Wang, X. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2209.05872 · Cited by 113 · cited 1×
“in smart contracts [10], [11], leading to enormous financial losses.”
BackgroundSelf-citationMaking Smart Contracts Smarter
Badruddoja, S., Dantu, R., He, Y., Upadhyay, K., & Thompson, M. (2021) · IEEE International Conference on Blockchain and Cryptocurrency (ICBC) · doi:10.1109/icbc51069.2021.9461148 · Cited by 101
Targeted greybox fuzzing with static lookahead analysis
Wüstholz, V., & Christakis, M. (2020) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3377811.3380388 · Cited by 87
sFuzz: An Efficient Adaptive Fuzzer for Solidity Smart ContractsPreprint
Nguyen, T. D., Pham, L. H., Sun, J., Lin, Y., & Minh, Q. T. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2004.08563 · Cited by 86 · cited 10×
“9x faster than sFuzz [16]) and further improves branch coverage.”
BackgroundMethodInfluentialFuzzGuard: Filtering out Unreachable Inputs in Directed Grey-box Fuzzing through Deep Learning.
Zong, P., Lv, T., Wang, D., Deng, Z., Liang, R., & Chen, K. (2020) · USENIX Security Symposium · Cited by 79
EVMPatch: Timely and Automated Patching of Ethereum Smart Contracts
Rodler, M., Li, W., Karame, G., & Davi, L. (2020) · TUbilio (Technical University of Darmstadt) · doi:10.48550/arxiv.2010.00341 · Cited by 55 · cited 1×
“Specifically, the source code of a Ethereum smart contract will be compiled into bytecode and executed on Ethereum Virtual Machine [9].”
MethodV-Fuzz: Vulnerability Prediction-Assisted Evolutionary Fuzzing for Binary Programs
Li, Y., Ji, S., Lyu, C., Chen, Y., Chen, J., Gu, Q., Wu, C., & Beyah, R. (2020) · IEEE Transactions on Cybernetics · doi:10.1109/tcyb.2020.3013675 · Cited by 53 · cited 2×
“fuzzing techniques [16], [17], [18], which have the merits of producing negligible false positives in discovering software vulnerabilities.”
BackgroundChen, Y., & Ko, J.-C. (2019) · International Conference on Human-Computer Interaction with Mobile Devices and Services (MobileHCI) · doi:10.1145/3338286.3344386 · Cited by 22 · cited 1×
“of applications, including wallet [5], crowdfunding [6], supply”
BackgroundDigital Resource Rights Confirmation and Infringement Tracking Based on Smart Contracts
Qian, P., Liu, Z., Wang, X., Jianhai, C., Bei, W., & Zimmermann, R. (2019) · IEEE International Conference on Cloud Computing and Intelligence Systems (CCIS) · doi:10.1109/ccis48116.2019.9073733 · Cited by 19 · cited 1×
“Smart contracts make the automatic execution of contract terms possible, giving rise to a variety of decentralized applications [2], [3].”
BackgroundSelf-citationBlockchain-based Crowdfunding: what impact on artistic production and art consumption?Preprint
Filippi, P. D. (2016) · HAL (Le Centre pour la Communication Scientifique Directe) · Cited by 18
Research works printed but not linked: 6
- Reentrancy attack on cream finance. Inspex,
- The parity wallet hack explained. S Palladino, 2017
- Reguard: finding reentrancy bugs in smart contracts. C Liu, H Liu, Z Cao, Z Chen, B Chen, B Roscoe, Proceedings of the 40th International Conference on Software Engineering: Companion Proceeedings. the 40th International Conference on Software Engineering: Companion ProceeedingsACM2018
- Technical "whitepaper" for afl. Website.
- A framework for bug hunting on the ethereum blockchain. B Mueller, 2017
- Etherscan. Website.
Cited by
A Novel Blockchain-Based Deepfake Detection Method Using Federated and Deep Learning Models
Heidari, A., Navimipour, N. J., Dag, H., Talebi, S., & Unal, M. (2024) · Cognitive Computation · doi:10.1007/s12559-024-10255-7 · Cited by 164
LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights
Sheng, Z., Chen, Z. G., Gu, S., Huang, H., Gu, G., & Huang, J. (2025) · ACM Computing Surveys · doi:10.1145/3769082 · Cited by 235
Denial of service attacks in edge computing layers: Taxonomy, vulnerabilities, threats and solutions
Uddin, R., Kumar, S., & Chamola, V. (2023) · Ad Hoc Networks · doi:10.1016/j.adhoc.2023.103322 · Cited by 124
Exposing the Deception: Uncovering More Forgery Clues for Deepfake Detection
Ba, Z., Liu, Q., Liu, Z., Wu, S., Lin, F., Lü, L., & Ren, K. (2024) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v38i2.27829 · Cited by 174
“Fueled by the maturity of deep learning models and large-scale labeled datasets, deep learning has found its applications in various fields (Zhang et al. 2023; Wei et al. 2023; Liu et al. 2022; Chiou et al. 2020; Liu et al. 2023; Song, Chen, and Jiang 2023), especially for deepfake.”
BackgroundSelf-citationCross-Modality Mutual Learning for Enhancing Smart Contract Vulnerability Detection on Bytecode
Qian, P., Liu, Z., Yin, Y., & He, Q. (2023) · International World Wide Web Conference (WWW) · doi:10.1145/3543507.3583367 · Cited by 94
“[26] introduces a fully automatic fuzzing framework equipped with invocation ordering and crucial branch revisiting to detect smart contract bugs.”
MethodSelf-citation
Metadata
- Authors
- Liu, Z., Qian, P., Yang, J., Liu, L., Xu, X., He, Q., & Zhang, X.
- Affiliations
- Zhejiang University (CN)
- Zhejiang Gongshang University (CN)
- University of Electronic Science and Technology of China (CN)
- Venue
- IEEE Transactions on Information Forensics and Security
- Published
- 2023
- Volume
- 18
- Pages
- 1237-1251
- ISSN
- 1556-6013 (ISSN-L)
- 1556-6021
- OpenAlex
- W4316661173
- Cited by
- 138
- References
- 41
- Citations by year
- 2026: 30 · 2025: 50 · 2024: 44 · 2023: 14
- FWCI
- 95.80
- Type
- journal article
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- Locations
- IEEE Transactions on Information Forensics and Security (publishedVersion)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Funders
- National Key Research and Development Program of China (2021YFB2700500)
- Key Research and Development Program of Zhejiang Province (2022C01086, 2021C01104)
- Scientific Research Fund of Zhejiang Provincial Education Department (Y202250832)
- Topics
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Physical Sciences › Computer Science › Information Systems › Blockchain Technology Applications and Security
- Physical Sciences › Computer Science › Computational Theory and Mathematics › Formal Methods in Verification
- Keywords
- smart contracts, energy allocation, vulnerability detection, test case generation
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.