Cyber Risks · Trail of Bits Blog

Using mutants to improve Slither

Summary: Trail of Bits researchers used mutation testing to improve Slither, its static analysis tool for smart contracts, generating nearly 50,000 mutants across 100 contracts and comparing Slither's detections against SmartCheck and Securify. Slither detected the most mutants overall and nearly 60% of all mutants any tool found, but missed 1,256 bugs SmartCheck caught and 1,076 Securify caught, which led to three new detectors: boolean-cst, tautology, and divide-before-multiply.

Why it matters: The divide-before-multiply rule alone has already claimed two trophies, in December 2020 and January 2021, showing that a gap visible only through differential comparison against another tool translated into real findings. The method now has a ceiling: to our knowledge, no other seriously maintained static analysis tool compares to Slither, so the comparison that produced these rules has no counterpart left.

Read the original at Trail of Bits Blog ↗