MEW - Fuzzing
MEW - Fuzzing
= DeFi Firewall
Chaofan Shou
Cofounder @ FuzzLand
https://scf.so
$5M rescued by
MEV
Paraspace, Mar 2023
How Ethereum Works
Mempool Validator 1
Mempool Validator 2
Mempool Validator 1
Mempool Validator 2
Mempool Validator 1
Mempool Validator 2
Mempool Validator 1
Block by Validator 2
( )
Builder
(( ))
Searcher ( )
Proposers (Validators)
Animal emoji is transaction
Anti-Hacking w/ MEV
Replay
Executed
Executed
First
(Hacker 🥷 , Our 🥷 )
We steal assets before hackers using hacker’s exploit
🥷 Anti-Anti-Hacking
Insert checks!
Simply replay would revert
Anti^3-Hacking
Mutating for Replay (Post-Attack)
We Try:
( (1), (0x55D6Bf...), (0x35cbD...))
( (1), (0x35cbD...), (0x35cbD...))
( (10), (0x35cbD...), (0x55D6Bf...))
…….
Until Profit!
Fruit emoji is calls to contract
Anti^3-Hacking
Mutating for Replay (Post-Attack)
Post-Attack MEV =
High Chance of Failing
Anti^3-Hacking
Mutating for Replay (Post-Attack)
Can we do better?
Anti^3-Hacking
Attack Prediction (Pre-Attack)
We Predict:
Can ( (1), ….) yield profit?
We Predict:
Can ( (1), ….) yield profit?
Mempools
� Fuzzer