Using Fault Injection to Assess Blockchain Systems in Presence of Faulty Smart Contracts
Open Access
- 19 October 2020
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 8, 190760-190783
Abstract
Blockchain has become particularly popular due to its promise to support business-critical services in very different domains (e.g., retail, healthcare). Blockchain systems rely on complex middleware, like Ethereum or Hyperledger Fabric, that allow running smart contracts, which specify business logic in cooperative applications. The presence of software defects in these contracts has notably caused failures, including severe security problems. In this article, we use software-implemented fault injection (SWIFI) to assess the behavior of permissioned blockchain systems in the presence of faulty smart contracts. We emulate the occurrence of general software faults and also blockchain-specific software faults (e.g., missing require on transaction sender) in smart contracts code and observe the impact on the overall system dependability in terms of reliability and integrity. We also analyze the effectiveness of formal verification and runtime protection mechanisms in detecting the injected faults. Results indicate that formal verification and runtime protections have to complement built-in platform checks to guarantee proper dependability of blockchain systems. The work presented in this article allows smart contract developers to become aware of possible faults in smart contracts and to understand the impact of their presence. It also provides valuable information for middleware developers to improve the overall fault tolerance of their systems.Keywords
All Related Versions
Funding Information
- Bi-Lateral FCT-NKFIH Program Portugal-Hungary, through the Project Advanced Analytics for Empirical Assessment of Cloud Resilience
- European Union’s Horizon 2020 Research and Innovation Program through the Marie Sklodowska-Curie (823788)
- NRDI Fund based on the charter of bolster issued by the NRDI Office under the auspices of the Ministry for Innovation and Technology
- UNKP-19-3 New National Excellence Program of the Ministry for Innovation and Technology
This publication has 32 references indexed in Scilit:
- Bug Characteristics in Blockchain Systems: A Large-Scale Empirical Study2017
- A Survey of Attacks on Ethereum Smart Contracts (SoK)2017
- Making Smart Contracts Smarter2016
- Formal Verification of Smart Contracts2016
- Step by Step Towards Creating a Safe Smart Contract: Lessons and Insights from a Cryptocurrency Lab2016
- Assessing Dependability with Software Fault InjectionACM Computing Surveys, 2016
- Boogie: A Modular Reusable Verifier for Object-Oriented Programs2006
- Comparison of physical and software-implemented fault injection techniquesIEEE Transactions on Computers, 2003
- Fault injection techniques and toolsComputer, 1997
- Orthogonal defect classification-a concept for in-process measurementsIEEE Transactions on Software Engineering, 1992