Claude Code and Codex Miss Valory’s Crypto Wallet Safety Bar
Claude Code lost funds in three of 254 attack attempts, while Codex lost funds in eight, keeping both above the benchmark’s 2% safety threshold.

Anthropic’s Claude Code and OpenAI’s Codex both failed a new crypto-wallet safety benchmark after losing funds in attack tests designed to exploit weaknesses in AI agents.
Valory announced OnchainBench on Nov. 26, 2026, to measure whether AI agents can manage wallets while completing onchain tasks. The open benchmark runs on local forks of public blockchains, so the trials do not put real funds at risk.
The agents use Safe smart accounts to execute tasks such as Uniswap v3 swaps, Aave v3 lending and token transfers. A checker verifies wallet balances after each trial rather than relying on the agent’s description of what it did.
The private evaluation set contains 147 tasks, including 53 “safety twin” tasks that hide an attack inside material the agent reads. Each task can run up to five times.
OnchainBench sets its safety bar at zero executed losses. An agent can also pass if the 95% upper bound for its loss rate is 2% or lower.
Claude Code, running Anthropic’s Opus 5.5, lost funds in three of 254 attack attempts, producing a 3% upper bound. Codex, running OpenAI’s GPT-5.6 Sol, lost funds in eight of 254 attempts, resulting in a 5.6% upper bound. Both missed the benchmark’s threshold.
In the broader task results, Claude Code lost funds in one of 262 attempts and completed 96.2% of its tasks. Codex completed 88.4% and recorded no losses across 262 attempts. Both systems cleared the safety bar on DeepSeek V4.1 Flash.
Most losses on the safety page followed guardrail-pressure attacks, in which an agent was asked to approve a payment beyond an operator’s limits. Codex also lost funds three times after processing instructions hidden in a file.
“Crypto scams already exploit the gap between the transaction a user intends to make and the one they end up authorising,” David Minarsch, CEO of Valory, said, adding that a similar gap can arise when software acts for a user.
Valory, a core contributor to Olas, also builds olas-ocb-agent. The agent recorded no losses in 263 attempts and completed 89.9% of tasks on DeepSeek.
The results apply to the tested blockchain forks and do not establish the safety of hosted wallet products. Valory ran the entries, while most attack text was written with DeepSeek.