Finding smart contract vulnerabilities with ConCert's property-based testing framework

Mikkel Milo, Eske Hoy Nielsen, Danil Annenkov, Bas Spitters
8/1/2022
cs.LOcs.PL

Official code: AU-COBRA/ConCert (128 stars, Rocq Prover, MIT, last commit 2026-08-25).

Abstract

We provide three detailed case studies of vulnerabilities in smart contracts, and show how property-based testing would have found them: 1. the Dexter1 token exchange; 2. the iToken; 3. the ICO of Brave's BAT token. The last example is, in fact, new, and was missed in the auditing process.

Show full abstract

We have implemented this testing in ConCert, a general executable model/specification of smart contract execution in the Coq proof assistant. ConCert contracts can be used to generate verified smart contracts in Tezos' LIGO and Concordium's rust language. We thus show the effectiveness of combining formal verification and property-based testing of smart contracts.

View on arXivView PDF

Code Implementations(1)

AU-COBRA/ConCertOfficial100%
MIT

A framework for smart contract verification in Coq

12823Rocq Prover, RustJan 10, 20193 months agoMIT
blockchaincoqsmart-contractsverification

Similar Papers

Cite this paper

@article{milo2022finding,
  title  = {Finding smart contract vulnerabilities with ConCert's property-based testing framework},
  author = {Mikkel Milo and Eske Hoy Nielsen and Danil Annenkov and Bas Spitters},
  year   = {2022},
  eprint = {2208.00758},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.00758}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.00758.svg)](https://codeofpaper.com/paper/2208.00758)

Discussion