跳到正文
返回论文列表
cs.SE提交于 已译

Wake 5:用于 Solidity 测试、模糊测试与静态分析的 Python 框架

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

Josef Gattermayer · Michal P\v{r}evr\'atil

中文摘要

智能合约模糊测试器在吞吐量上相差一个数量级,且在设计上构建输入的方式不同,但已发表的比较很少将两者区分开。提出 Wake 5——一个开源 Python 框架,用于 Solidity 测试、模糊测试与静态分析,并用它定位有状态智能合约模糊测试的瓶颈约束。Wake 5 用进程内 EVM(revm)替代与外部节点的 JSON-RPC 连接,并通过 Model Context Protocol(MCP)服务器向语言模型代理暴露其静态分析能力。在 Daedaluzz 迷宫基准(153 个可达断言,守卫常量低于 2^32)上,Wake 5 每秒执行 29,931 笔交易,与 Foundry(30,186)持平,比 Echidna(2,600)快 11.5 倍。然而在八小时测试中,三个工具的中位数分别停滞在 75、71 和 70 个断言,并集达到 93。研究表明 Wake 的整数生成器将 51% 的概率质量放在 2^32 以下,且一旦浅层断言耗尽,限制每个工具的是生成器先验而非吞吐量。由语言模型代理编写、用约束求解器推导输入的测试框架,在 Wake 执行的五次测试中每次均在 33 至 79 分钟内达到全部 153 个断言。对生产 Go 代码库进行代理式审计的补充消融实验发现,静态分析工具未提升三个模型中任何一个的召回率,但提升了全部三个的精确率,并使语言模型成本最多增加 12.7%。讨论了相关预言机与非确定性完成,并认为模糊测试器的角色正从搜索转向执行。

关键要点

  1. 01用进程内 EVM 替代 JSON-RPC,Wake 5 吞吐达 29,931 tx/s,与 Foundry 持平,比 Echidna 快 11.5 倍。
  2. 02八小时测试中三个工具中位数仅 70-75 个断言,并集 93,吞吐量并非瓶颈。
  3. 03浅层断言耗尽后,整数生成器先验(51% 概率质量低于 2^32)成为所有工具的共同约束。
  4. 04语言模型代理用约束求解器编写测试框架,五次测试均在 33-79 分钟内达到全部 153 个断言。
  5. 05静态分析工具在代理式审计中提升三个模型的精确率,但未提升召回率,成本最多增加 12.7%。

解读

尚无解读。

原始英文摘要

arXiv:2611.09307v1 Announce Type: new 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^32), Wake 5 executes 29,931 transactions per second, on par with Foundry (30,186) and 11.5x 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^32 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.

同方向论文 · cs.SE

查看全部 →

反向发现 · 这篇论文相关的工具与提示词

去交叉发现 →

关联工具 · 1

GitHub Blog · AI & ML67

GitHub Security Lab 发布 Taskflow Agent:实现 AI 驱动的自动化模糊测试

GitHub Security Lab 发布 Fuzzing Taskflow,这是一个基于 LLM Agent 的 C/C++ 项目自动化模糊测试管道。只需指定一个 GitHub 仓库,Agent 会自动完成入口点识别、构建系统分析、模糊测试用例生成、AFL++ 运行、覆盖率分析、用例优化和漏洞报告编写。

推荐理由:原文详细给出了自动化模糊测试的完整工作流程,包括覆盖率反馈循环、结构感知变异和语料库演进等具体机制,读者可据此迁移到自己的安全测试中。