CRAIJun 24

CyberChainBench: Can AI Agents Secure Smart Contracts Against Real-World On-Chain Vulnerabilities?

arXiv:2606.2621610.6
Predicted impact top 36% in CR · last 90 daysOriginality Incremental advance
AI Analysis

Provides a realistic, on-chain benchmark for assessing AI agents' practical ability to secure smart contracts, revealing significant gaps in automated patching.

CyberChainBench evaluates LLM-based agents on smart contract security tasks (vulnerability detection, exploit generation, patch synthesis) using 541 real-world incidents. The best agent achieves 37.5% detection, 43.7% exploitation, and 23.4% patching, with $57.4M total exploit profit at $2.39 per case.

We present CyberChainBench, a benchmark for evaluating LLM-based agents on smart contract security across three complementary tasks: vulnerability detection, exploit generation, and patch synthesis. Built from 541 real-world exploit incidents from DeFiHackLabs spanning 9 EVM chains, the benchmark provides end-to-end on-chain evaluation where agents interact with historical blockchain state through isolated evaluation environments orchestrated by Harbor, using tools to read code, trace transactions, and validate exploits on mainnet forks. Each case is anchored to a specific block and includes structured ground truth covering vulnerability type, localization, and attacker profit. Exploits are graded by economic impact on historical forks; patches are validated by replaying historical attacks and legitimate transactions as fail-to-pass test oracles on a proxy-upgradeable subset. We define a five-type vulnerability taxonomy and evaluate multiple agent--model configurations. Results reveal a clear difficulty gradient: the best configuration scores 37.5% on detection, 43.7% on exploitation, but only 23.4% on patching, with the top agent (Codex with GPT-5.5) realizing \$57.4M in total exploit profit across the 200-case exploit set at a cost of $2.39 per case.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes