Mutation testing of smart contracts at scale

Pieter Hartel*, Richard Schumi

*Corresponding author for this work

Research output: Chapter in Book/Conference proceedings/Edited volumeConference contributionScientificpeer-review

11 Citations (Scopus)

Abstract

It is crucial that smart contracts are tested thoroughly due to their immutable nature. Even small bugs in smart contracts can lead to huge monetary losses. However, testing is not enough; it is also important to ensure the quality and completeness of the tests. There are already several approaches that tackle this challenge with mutation testing, but their effectiveness is questionable since they only considered small contract samples. Hence, we evaluate the quality of smart contract mutation testing at scale. We choose the most promising of the existing (smart contract specific) mutation operators, analyse their effectiveness in terms of killability and highlight severe vulnerabilities that can be injected with the mutations. Moreover, we improve the existing mutation methods by introducing a novel killing condition that is able to detect a deviation in the gas consumption, i.e., in the monetary value that is required to perform transactions.

Original languageEnglish
Title of host publicationTests and Proofs - 14th International Conference, TAP 2020, held as part of STAF 2020, Proceedings
EditorsWolfgang Ahrendt, Heike Wehrheim
PublisherSpringerOpen
Pages23-42
Number of pages20
ISBN (Print)9783030509941
DOIs
Publication statusPublished - 2020
Event14th International Conference on Tests and Proofs, TAP 2020, held as part of Software Technologies: Applications and Foundations, STAF 2020 - Bergen, Norway
Duration: 22 Jun 202023 Jun 2020

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume12165 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference14th International Conference on Tests and Proofs, TAP 2020, held as part of Software Technologies: Applications and Foundations, STAF 2020
Country/TerritoryNorway
CityBergen
Period22/06/2023/06/20

Keywords

  • Ethereum
  • Gas limit as a killing criterion
  • Modifier issues
  • Mutation testing
  • Smart contracts
  • Solidity
  • Vulnerability injection

Fingerprint

Dive into the research topics of 'Mutation testing of smart contracts at scale'. Together they form a unique fingerprint.

Cite this