← Lab /AI/ML

AI agents can discover and exploit smart contract vulnerabilities end-to-end

Current AI agents are capable of detecting, patching, and exploiting smart contract bugs in realistic settings

AI/ML arXiv 5 Mar 2026 Measurement Prototype evidence

Published as “EVMbench: Evaluating AI Agents on Smart Contract Security”

Why it matters

The benchmark gives a concrete way to track and compare AI agents' abilities to find and weaponize smart-contract bugs, informing both security research priorities and deployment risk assessments.

Summary

AI agents can already discover and exploit real smart-contract bugs end-to-end on a live local blockchain. In the benchmark, the best model (GPT-5.3-Codex) achieves 71.0 % success in the Exploit mode and 41.7 % in Patch, while Claude Opus 4.6 leads Detect with 45.9 % recall. The evidence comes from a curated set of 117 high-severity vulnerabilities from real Code4rena audits, with programmatic grading of detection, patching, and exploitation. However, the authors note that the tasks are limited in number, not representative of all on-chain bugs, and that models still fall far short of the maximum possible audit payouts.

What they found 2

  1. GPT-5.3-Codex achieves the highest scores on Patch and Exploit tasks.

    “GPT-5.3-Codex, run via Codex CLI, scores the highest on Patch and Exploit, scoring 41.7% and 71.0%.”

  2. Claude Opus 4.6 achieves the highest Detect score.

    “Claude Opus 4.6, run via Claude Code, scores the highest on Detect, at 45.9%.”

Caveats 6

  • All models fall far short of the attainable payout award.
  • When agents are presented with broken mechanisms to fix, they possess the requisite knowledge of Solidity and smart contracts to fix them. However, even with awareness of broken mechanisms, agents sometimes struggle to craft the correct transactions necessary to exploit the vulnerable contracts.
  • The results in Section 4 should not be interpreted as indicating that a given percentage of all live blockchain bugs are exploitable.
  • The Detect mode relies on vulnerabilities already identified by auditors and is unable to credit agents for discovering valid issues that were not surfaced in the historical report.
  • Patch and Exploit modes only support grading predefined exploits, even though additional vulnerabilities may exist in the codebase and distract model attention.
  • EVMbench contains only 44 and 23 patch and exploit vulnerabilities, respectively.

What’s new here 3

  • Evaluates the full security lifecycle (detect, patch, exploit) of smart contracts rather than isolated sub-tasks.
  • Provides programmatic, on-chain grading using a local Ethereum node and a Rust replay framework for reproducible exploit assessment.
  • Curates a real-world dataset of 117 high-severity vulnerabilities from Code4rena audits, preserving realistic codebases and attacker incentives.