Blockchain Autopsies - Analyzing Ethereum Smart Contract Deaths

Black Hat USA 2018

Presented by: Jay Little
Date: Wednesday August 08, 2018
Time: 11:15 - 12:05
Location: South Seas CDF

In the blockchain, contracts may be lost but are never forgotten. Over 1,500,000 Ethereum smart contracts have been created on the blockchain but under 7,000 unique contracts have value today. An even smaller fraction of those have source code to analyze. Old contracts have been purged from the world computer's working memory but they can be reconstructed and analyzed. When a contract's purpose is fulfilled, the owner typically triggers a self-destruct switch that removes code and state. These steps are similar to what an attacker would do after hijacking a contract. Is it likely the self-destruct was intentional or performed by a trusted third party? Or was it a hack or fraud? By investigating the transactions leading up to the termination of a binary-only contract, we can determine if there was an attack. After identifying an attacker, we can find patterns that lead to a possible motive by carefully examining their other transactions.

This presentation will introduce Ethereum smart contracts, explain how to reverse engineer binary-only contracts, describe common classes of vulnerabilities, and then show how to investigate attacks on contracts by demonstrating new tools that re-process blockchain ledger data, recreate contracts with state, and analyze suspect transactions using traces and heuristics.

Jay Little

Jay Little is a security researcher at Trail of Bits. Jay has over 10 years experience making types and structures in IDA Pro.


KhanFu - Mobile schedules for INFOSEC conferences.
Mobile interface | Alternate Formats