Cyber Risks · Trail of Bits Blog

Improving the state of Cosmos fuzzing

Summary: Trail of Bits combined Cosmos SDK's high-level blockchain simulator, which runs purely random transactions, with Go's native smart fuzzing by replacing the simulator's random number source with a deterministic arraySource fed by fuzzer input. Running this integration for a few hours surfaced three minor issues in Cosmos SDK, for which the firm provided a patch to the Cosmos SDK team and is discussing integration into master.

Bottom line: The gap the post describes is structural: the simulator's single source of randomness made its testing purely random, so smart mutations could not reach deeper execution paths until the randomness source itself was made fuzzer-controlled. Three minor findings from a few hours of that change suggest how much of the SDK's simulation surface had gone without coverage-guided input.

Read the original at Trail of Bits Blog ↗