Paper 2017/1090

Enter the Hydra: Towards Principled Bug Bounties and Exploit-Resistant Smart Contracts

Lorenz Breidenbach, Philip Daian, Florian Tramèr, and Ari Juels

Abstract

Bug bounties are a popular tool to help prevent software exploits. Yet, they lack rigorous principles for setting bounty amounts and require high payments to attract economically rational hackers. Rather than claim bounties for serious bugs, hackers often sell or exploit them. We present the *Hydra Framework*, the first general, principled approach to modeling and administering bug bounties that incentivize bug disclosure. Our key idea is an *exploit gap*, a program transformation that enables runtime detection, and rewarding, of critical bugs. Our framework transforms programs via *N-of-N-version programming*, a variant of classical N-version programming that runs multiple independent program instances. We apply the Hydra Framework to *smart contracts*, small programs that execute on blockchains. We show how Hydra contracts greatly amplify the power of bounties to incentivize bug disclosure by economically rational adversaries, establishing the first framework for rigorous economic evaluation of smart contract security. We also model powerful adversaries capable of *bug withholding*, exploiting race conditions in blockchains to claim bounties before honest users can. We present *Submarine Commitments*, a countermeasure of independent interest that conceals transactions on blockchains. We design a simple, automated version of the Hydra Framework for Ethereum (ethereum.org) and implement two Hydra contracts, an ERC20 standard token and a Monty-Hall game. We evaluate our implementation for completeness and soundness with the official Ethereum virtual machine test suite and live blockchain data.

Note: Added experimental / implementation results and testing methodology and removed some less relevant information about front-running.

Metadata
Available format(s)
PDF
Publication info
Preprint.
Contact author(s)
tramer @ cs stanford edu
History
2018-02-12: last of 2 revisions
2017-11-10: received
See all versions
Short URL
https://ia.cr/2017/1090
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2017/1090,
      author = {Lorenz Breidenbach and Philip Daian and Florian Tramèr and Ari Juels},
      title = {Enter the Hydra: Towards Principled Bug Bounties and Exploit-Resistant Smart Contracts},
      howpublished = {Cryptology ePrint Archive, Paper 2017/1090},
      year = {2017},
      note = {\url{https://eprint.iacr.org/2017/1090}},
      url = {https://eprint.iacr.org/2017/1090}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.