Fuzzing on-chain contracts with Echidna
Summary: Trail of Bits released Echidna 2.1.0, adding direct retrieval of on-chain data such as contract code and storage slot values so deployed contracts can be fuzzed in their on-chain state. Using the tool's optimization mode, the team reproduced the 2022 Stax Finance hack, in which a missing validation check in the StaxLPStaking contract led to the theft of 321,154 xLP tokens worth approximately $2.3 million at the time.
Why it matters: A missing validation check in one staking contract turned into a $2.3 million loss, and Echidna found the transaction sequence to exploit it without prior knowledge of the actual exploit.
Read the original at Trail of Bits Blog ↗