gosentry uncovers denial-of-service and parsing bugs in Optimism Go clients
Gosentry can detect bug classes such as integer overflows, data races, goroutine leaks, and timeouts that the standard Go fuzzing tool cannot.
Software Trail of Bits 12 May 2026 Tooling Real-world evidence
Published as “gosentry brings LibAFL-grade fuzzing to Go's native interface”
Why it matters
It lets Go developers find security-critical bugs that were previously invisible to the native fuzzer, improving the safety of Go applications.
Summary
The team forked the Go toolchain to replace its native fuzzing engine with LibAFL, adding support for struct-aware and grammar-based fuzzing. It also integrates detectors for integer overflows, data races, goroutine leaks, and execution timeouts, plus a one-command coverage report. Using this setup they discovered several bugs in Optimism’s Go clients, including denial-of-service panics and state-root mismatches. The evidence consists of disclosed bug reports rather than quantitative benchmarks, but the real-world impact on known projects demonstrates the tool’s effectiveness.
What they found 3
- gosentry discovered a denial-of-service panic in Optimism’s kona-protocol
“- Unknown batch type panics and causes denial of service in kona-protocol”
- gosentry revealed a brotli channel disagreement between Kona and op-node
“- Kona and op-node can disagree on brotli channels”
- gosentry exposed a state-root mismatch caused by OutOfFunds not bumping nonce in op-revm
“- Failed deposit in op-revm stopping with OutOfFunds does not bump nonce, leading to a state root mismatch against other clients”
Caveats 2
- So your target needs to be able to parse either strings or bytes.
- Grammar mode still feeds bytes or strings to the harness.
What’s new here 4
- LibAFL integration replaces the default Go fuzzing engine
- Native support for fuzzing structs, slices, arrays, and pointers
- Grammar-based fuzzing via Nautilus for structured inputs
- Built-in detectors for integer overflows, data races, goroutine leaks, and timeouts