~/talk

Erays: Reverse Engineering Ethereum's Opaque Smart Contracts

Talkat USENIX Security '18 · on Friday, 2018-08-17· at 14:45· Grand Ballroom 1-4· [security, cryptography]
name:Yi Zhou
links:none on file
links:none on file
slides:none on file

Erays is a reverse-engineering pipeline that recovers CFGs, lifts EVM stack code into a register IR (uses 1024 registers to model the stack), applies constant/copy propagation and dead-code elimination, aggregates expressions and reconstructs if/while constructs. On a blockchain snapshot of ~1,000,000 contract addresses it finds ~34,000 unique binaries, matches 7,700 to compiled sources and reports ~77% opaque without source. Validation replays ~16,000 transactions via geth, with a 3% failure rate. Case studies include multi-sig wallets holding 590 million dollars, arbitrage gadget contracts using revert, and reverse-engineering CryptoKitties’ gene algorithm.

AI-written summary · about

  1. 0:00Intro
  2. 1:44EVM Bytecode
  3. 3:09Ecosystem: Measuring Opacity
  4. 3:37Erays: System Design
  5. 4:05Control Flow Graph Recovery
  6. 4:58Lifting: Stack-based to Register-based
  7. 7:04Optimization: Removing Redundancy
  8. 7:51Aggregation: Condensing the Output
  9. 8:26Control Flow Structure Recovery
  10. 9:20Validation
  11. 10:37Use Case
  12. 10:49Erays: Function Fuzzy Hash
  13. 11:22Case Studies
  14. 11:34Case Study: High Value Contracts
  15. 12:12Time Dependency Hazard
  16. 12:57Case Study: Duplicate Contracts
  17. 14:46Case Study: EtherDelta Arbitrage Bots
  18. 16:21Case Study: CryptoKitties
  19. 18:23Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.