Manuscript Offprint

arXiv:2611.09307

Wake 5: A Python Framework for Solidity Testing, Fuzzing, and Static Analysis

Josef Gattermayer, Michal Převrátil

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Smart-contract fuzzers differ by an order of magnitude in throughput and by design in how they construct inputs, yet published comparisons rarely separate the two. We present Wake 5, an open-source Python framework for Solidity testing, fuzzing and static analysis, and use it to locate the binding constraint of stateful smart-contract fuzzing. Wake 5 replaces the JSON-RPC connection to an external node with an in-process EVM (revm) and exposes its static analysis to language-model agents through a Model Context Protocol (MCP) server. On the Daedaluzz maze benchmark (153 reachable assertions, guard constants below 2³²), Wake 5 executes 29,931 transactions per second, on par with Foundry (30,186) and 11.5× faster than Echidna (2,600). In eight-hour campaigns, however, the three tools plateau at medians of 75, 71 and 70 assertions, and their union reaches 93. We show that Wake's integer generator places 51% of its probability mass below 2³² and that, once shallow assertions are exhausted, the generator prior rather than throughput bounds every tool. A harness written by a language-model agent, which derives inputs with a constraint solver, reached all 153 assertions in each of five campaigns executed by Wake, in 33 to 79 minutes. A complementary ablation in an agentic audit of a production Go codebase found that static-analysis tools improved recall for none of three models, raised precision for all three, and increased language-model cost by up to 12.7%. We discuss correlated oracles and non-deterministic completion, and argue that the fuzzer's role is shifting from search to execution.

Keywords: smart contracts, Solidity, fuzzing, property-based testing, static analysis, language-model agents, benchmarking

1 Introduction

Smart contracts on the Ethereum Virtual Machine (EVM) [51] are immutable once deployed and directly custody value, which makes pre-deployment testing unusually consequential. A companion dataset of 135 decentralised-finance (DeFi) incidents from the first half of 2026 found that, among the 68 incidents with identified pre-incident audit history, 94% of reported losses came from attack paths outside every identified pre-incident audit scope [26]. Fuzzing is the dominant dynamic technique for finding such paths before an attacker does: Echidna [27], Foundry [23], Medusa [47], Harvey [54] and ItyFuzz [43] all generate transaction sequences and check assertions or invariants, and Daedaluzz [16, 53] was introduced to compare them on a common footing.

Two questions about these tools remain poorly separated in the literature. The first is architectural: does the execution engine matter? Python-based frameworks such as Brownie [20] and Ape [9] drive an external node over JSON-RPC, while Foundry and Echidna execute in-process; a study of eleven contract fuzzers found throughput and seed quality pivotal and a standalone

EVM the main throughput lever, but left property-based tools such as Echidna and Foundry outside its scope [52]. The second is methodological: once a fuzzer is fast, what limits the bugs it finds? Coverage-guided greybox fuzzing [12] answers this for C programs, but stateful contracts with arithmetic guards over multi-transaction state behave differently, and a third participant has entered the workflow: language-model agents that write the harness [55, 57].

This paper describes Wake 5 and uses it to measure both questions. Wake is an open-source framework in which tests, fuzz harnesses and static analyses are written in Python against types generated from the Solidity compiler's output [1]. The framework has been used in commercial security reviews since 2023 and its fuzz tests are credited with critical and high-severity findings in several public audit reports [2, 3, 5]. Wake 5 is the first release whose default execution engine is an EVM embedded in the Python process rather than an external node reached over a socket.

References (32)