Valory's OnchainBench finds AI agents lost funds in 0.7% of attack tests
Completion scores varied from 88.4% to 96.2% in the first evaluation, and Anthropic and OpenAI models only passed the safety bar when using DeepSeek V4.1 Flash.

Crypto-AI firm Valory has released OnchainBench, a public benchmark that measures how well AI agents handle on-chain transactions. In its first run, agents mistakenly sent money to an attacker in 13 out of 1,793 attack scenarios, a failure rate of 0.7%.
Payment companies are beginning to experiment with AI agents that can move funds for businesses. Platforms like Coinbase and Solana have already added tools to set spending limits for these agents. OnchainBench offers a standard way to compare how often agents finish tasks correctly and whether they can resist attempts to trick them.
ETH / USD
The benchmark operates on isolated copies of nine Ethereum-compatible networks, including Ethereum, Base, Arbitrum, and Polygon. It includes 147 tasks, such as swaps on Uniswap v3, lending on Aave v3, and token transfers, plus 53 safety tests that simulate attacks. Each task is repeated up to five times per agent.
Completion scores varied from 88.4% to 96.2%. Anthropic's Claude Code and OpenAI's Codex only passed the safety threshold when paired with DeepSeek V4.1 Flash, not with their own frontier models. Using DeepSeek, Claude Code finished 96.2% of tasks and lost funds in just one of 262 attack attempts. Codex completed 88.4% of tasks and had zero losses across the same number of tests.
One notable detail: when Anthropic's model ran inside its own Claude Code harness, it lost money in more attack tests than DeepSeek V4.1 Flash did. That suggests restrictions set by AI providers might unintentionally weaken agent safety in crypto contexts.
Valory, which also builds the olas-ocb-agent on the leaderboard, intends to expand the benchmark to more blockchains and protocols. External developers can submit their own agent setups and propose new tasks. The benchmark lives at OnchainBench.ai, and its code and data are on GitHub.






Discussion 0