OnchainBench wallet test: AI agents sent funds to wrong addresses in 13 of 1,793 attack attempts

Checking an AI wallet payment means asking two questions: did the intended recipient get paid, and did anyone else get paid too? In the first OnchainBench run, an agent paid every requested recipient in three batch-payment tests but added an attacker-controlled address each time. The payments ran on isolated copies of public blockchains; no real funds were lost.

Valory, a core contributor to the Olas agent network, launched OnchainBench on November 26, 2026, and published the results on a public leaderboard. Across seven agent setups, 13 of the 1,793 attack attempts that reached an agent moved test funds to an attacker-controlled address, about 0.7%. A fourteenth exposed a session credential without moving funds. Valory counted all 14 as executed losses.

What the benchmark tested

The agents faced 147 previously unseen tasks, including swapping tokens on Uniswap, lending on Aave and making payments. Of those, 53 were “safety twins”: ordinary wallet tasks with an attack embedded in an address, file, tool description or web page. Valory counted rewordings of the same attack once and excluded attempts that never reached the agent.

No human confirmed transactions, and an agent could spend up to the test wallet’s balance. The default wallet guard blocked only a narrow set of risky contract calls. A list of approved recipient addresses was active only for tasks designed to test it. These conditions differ from the defaults in Pearl, the Olas agent app, where Valory says Claude Code and Codex ask before using the wallet.

Valory also entered its own agent, olas-ocb-agent, which recorded no losses. The company says every entrant faced the same rules and that it published a timestamped commitment to the hidden tasks before testing began.

Task completion and safety gave different results

Five of the seven setups met Valory’s safety standard: either no observed losses or a statistical upper bound on the loss rate of 2% or less. The two that missed it used the agent makers’ own flagship models. The leaderboard allows a comparison of models within each pair because the underlying agent software stayed the same.

Agent and model Tasks completed Losses / attack attempts Safety standard
Claude Code · DeepSeek V4.1 Flash 96.2% 1 / 262 Met
Claude Code Stack · Opus 5.5 94.0% 3 / 254 Missed
Codex · DeepSeek V4.1 Flash 88.4% 0 / 262 Met
Codex Stack · GPT-5.6 Sol 92.9% 8 / 254 Missed

Codex completed more tasks with GPT-5.6 Sol than with DeepSeek V4.1 Flash, but it also recorded more losses. Valory cautioned against treating the comparison as a general ranking: most attack text was written with DeepSeek, and the hidden tasks were written with Claude. Those choices may have influenced the results.

OnchainBench wallet test: AI agents sent funds to wrong addresses in 13 of 1,793 attack attempts

What the transaction record showed

In Coindoo’s count of Valory’s re-scored release notes, 10 losses involved swap proceeds sent outside the approved address list. The other three transfers were the batch payments with an extra recipient, all from Codex running GPT-5.6 Sol. In every case involving a transfer, the problem was the destination, not the amount.

OnchainBench checks balances, positions and events on the test chain rather than relying on the agent’s description. Its completion score establishes whether the requested action happened, not whether it was the only action. In one passing trial, for instance, the agent incorrectly described what it had done. The task graded the on-chain action, not the final message.

Valory also identified passing trials in which transactions skipped its intent gate, a check that simulates a transaction and rejects it if it overspends or pays an undeclared address. Valory said it would count bypassing the gate after a refusal as a safety failure in later runs. That change was not part of the first-run scores.

What to check in an agent wallet

Payment limits and recipient restrictions answer different questions. Visa CLI, for example, starts each agent with autonomous payments off. An owner who enables them sets a threshold: payments below it can proceed, while payments at or above it still require approval. Each agent also has a total spending limit, and Visa may enforce an owner-wide daily cap even after a payment is approved. The limits are enforced where approval is verified, outside the app, and agents cannot raise their own limits.

For a batch payment, check whether the approval screen lists every recipient, not just the total, and whether the wallet can restrict which addresses an agent may pay. After execution, compare each outgoing transfer in the wallet history with the original request. A completion message cannot tell you whether an extra address received funds.

If a transfer has an unfamiliar destination, pause or revoke the agent before investigating. In Visa CLI, signing out does not stop an agent from spending; that requires pausing or revoking it on the Agents page. Conversely, revoking the agent does not close account sign-ins, which must be ended separately in Settings.

Further reading