Park: accelerating smart contract vulnerability detection via parallel-fork symbolic execution
Authors:
Open Access
- 18 July 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 740-751
Abstract
Symbolic detection has been widely used to detect vulnerabilities in smart contracts. Unfortunately, as reported, existing symbolic tools cost too much time, since they need to execute all paths to detect vulnerabilities. Thus, their accuracy is limited by time. To tackle this problem, in this paper, we propose Park, the first general framework of parallel-fork symbolic execution for smart contracts. The main idea is to use multiple processes during symbolic execution, leveraging multiple CPU cores to enhance efficiency. Firstly, we propose a fork-operation based dynamic forking algorithm to achieve parallel symbolic contract execution. Secondly, to address the SMT performance loss problem in parallelization, we propose an adaptive processes restriction and adjustment algorithm. Thirdly, we design a shared-memory based global variable reconstruction method to collect and rebuild the global variables from different processes. We implement Park as a plug-in and apply it to two popular symbolic execution tools for smart contracts: Oyente and Mythril. The experimental results with third-party datasets show that Park-Oyente and Park-Mythril can provide up to 6.84x and 7.06x speedup compared to original tools, respectively.Keywords
This publication has 27 references indexed in Scilit:
- A survey on the security of blockchain systemsFuture Generation Computer Systems, 2020
- Cloud-based parallel concolic execution2017
- Making Smart Contracts Smarter2016
- Inverse spectral problems for non-selfadjoint second-order differential operators with Dirichlet boundary conditionsBoundary Value Problems, 2013
- A Scalable Distributed Concolic Testing Approach: An Empirical Evaluation2012
- ParSym: Parallel symbolic execution2010
- Parallel symbolic execution for structural test generation2010
- Cloud9ACM SIGOPS Operating Systems Review, 2010
- Z3: An Efficient SMT Solver2008
- Symbolic execution and program testingCommunications of the ACM, 1976