SGUARD: Towards Fixing Vulnerable Smart Contracts Automatically
Author(s) -
Tai D. Nguyen,
Long H. Pham,
Jun Sun
Publication year - 2021
Publication title -
2021 ieee symposium on security and privacy (sp)
Language(s) - English
Resource type - Conference proceedings
eISSN - 2375-1207
ISBN - 978-1-7281-8934-5
DOI - 10.1109/sp40001.2021.00057
Subject(s) - components, circuits, devices and systems , computing and processing
Smart contracts are distributed, self-enforcing programs executing on top of blockchain networks. They have the potential to revolutionize many industries such as financial institutes and supply chains. However, smart contracts are subject to code-based vulnerabilities, which casts a shadow on its applications. As smart contracts are unpatchable (due to the immutability of blockchain), it is essential that smart contracts are guaranteed to be free of vulnerabilities. Unfortunately, smart contract languages such as Solidity are Turing-complete, which implies that verifying them statically is infeasible. Thus, alternative approaches must be developed to provide the guarantee. In this work, we develop an approach which automatically transforms smart contracts so that they are provably free of 4 common kinds of vulnerabilities. The key idea is to apply run-time verification in an efficient and provably correct manner. Experiment results with 5000 smart contracts show that our approach incurs minor run-time overhead in terms of time (i.e., 14.79%) and gas (i.e., 0.79%).
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom