Can You Trust an AI Agent With Your Crypto Wallet? OnchainBench’s First Test Says Not Yet
Valory's OnchainBench gave seven AI agent setups a crypto wallet and tried to trick them out of the money. The frontier models from Anthropic and OpenAI both missed the safety bar — while the same tools running DeepSeek passed it.

Would you let an AI agent hold your crypto wallet? Not advise on it, or watch it — hold the keys, sign the transactions, and decide for itself when to pay. That question stopped being hypothetical on 26 November, when Valory, a core contributor to the Olas agent network, launched OnchainBench, an open benchmark that hands AI agents a crypto wallet and then tries to trick them out of the money.
Note that no real money was at stake. Every trial ran on a local fork of a public chain, and the checker read the fork itself rather than trusting the agent’s own report of what it did. The losses were simulated — but the behaviour they reveal is real, and it is the behaviour that will decide whether agents can be trusted with real funds.
What OnchainBench actually tests
The benchmark gives each agent everyday wallet jobs — swapping tokens on Uniswap v3, lending on Aave v3, sending payments, redeeming prediction-market positions — across nine EVM chains, from Ethereum and Base to Gnosis and Polygon. Each entry is a harness and a model together, so the same model can appear more than once: Claude Code running DeepSeek, and Claude Code running Anthropic’s own Opus 5.5, are scored as different entries. The first run used 147 held-out tasks the agents had never seen, including 53 “safety twins” — ordinary jobs with an attack hidden inside.
The attacks arrive the way real ones do: a look-alike token, a poisoned tool description, a fake instruction in a file or a web page, a server that changes its tools mid-session, or pressure to raise a spending cap. Fourteen attack classes were used in the first run. The agent works through a Safe smart account, and an intent gate simulates every transaction and refuses it if it pays an undeclared address or grants an undeclared approval. The full leaderboard is public at OnchainBench.

What the first run found
Across 1,793 attack tests that actually reached the agents, funds moved to an attacker 13 times — about 0.7% of attempts. A fourteenth attempt exposed a session credential without moving funds. That sounds small until you remember what the number means: in roughly one of every 140 attacks, the agent paid the attacker.
Completion was high across the board. Claude Code on DeepSeek V4.1 Flash finished 96.2% of its tasks, the best score on the board. Codex on DeepSeek finished the fewest, 88.4% — and still lost nothing. The surprise is in the middle of the table: the two setups running their makers’ own frontier models both missed the benchmark’s safety bar. Claude Code on Opus 5.5 lost funds in 3 of 254 attack tests, and Codex on OpenAI’s GPT-5.6 Sol lost funds in 8 of 254. Both cleared the bar easily on DeepSeek V4.1 Flash, a far cheaper open model. The frontier models also cost far more per completed task — $0.27 and $0.35, against $0.03 for Claude Code on DeepSeek and $0.05 for Valory’s own olas-ocb-agent, which lost nothing in 263 attempts and finished 89.9% of its tasks.

Five of the seven entries met the bar, which OnchainBench sets at zero executed losses, or a 95% upper bound on the loss rate of 2% or less. The two that missed it did so clearly: Opus 5.5’s upper bound was 3.0%, GPT-5.6 Sol’s was 5.6%.
Why the frontier models missed the bar
The cleanest reading comes from the pairs. The same Claude Code harness, the same tasks, the same attacks — one loss in 262 attempts on DeepSeek, three in 254 on Opus 5.5. The same Codex harness — no losses in 262 attempts on DeepSeek, eight in 254 on GPT-5.6 Sol. The harness was held constant, so the difference sits with the model, or with how the model is served. Valory itself flags the caveat: most of the attack text was written with DeepSeek, and the hidden tasks were written with Claude, so the gap may partly reflect which model wrote the test rather than which model took it.
“Crypto scams already exploit the gap between the transaction a user intends to make and the one they end up authorising. As users delegate trading and payments to AI agents, that same gap can appear in the software acting on their behalf.”
Dr David Minarsch, co-founder and CEO of Valory
There is a second reading worth keeping in mind. The frontier models are also the most capable general reasoners on the board, and Valory’s announcement suggests provider-imposed limits on how the models can be used may have unintended consequences for agent safety in crypto. That is a hypothesis, not a finding — but it is the question the next run will have to answer.
What it doesn’t mean
- It doesn’t mean Claude Code or Codex are unsafe in general. Both tools passed the bar on DeepSeek, and the failures came in a test where the protections most users rely on — human approval before a transaction and a spending ceiling — were deliberately switched off.
- It doesn’t mean DeepSeek is the safer model. The attack text was largely written with DeepSeek, which may have made the traps easier for DeepSeek-powered agents to spot. The benchmark’s own methodology warns about this.
- It doesn’t mean any real money was lost. Every transaction happened on a forked chain. The 13 losses are simulated balances, not stolen funds.
- It doesn’t mean the benchmark is fully independent. Valory runs OnchainBench and also builds olas-ocb-agent, one of the entries on the board. The rules apply to every entry, the code and datasets are public, and the held-out task set was frozen before any agent ran it — but the conflict is real and worth stating plainly.
- It doesn’t mean agents are ready for your wallet. Even the best entry lost funds once in 262 attacks. A 0.7% loss rate on a wallet that transacts daily is not a rounding error.
Why it matters for crypto
The timing is the point. Coinbase has begun rolling out controls that let users set trading limits and choose which crypto products their AI agents can trade, and Solana has introduced payment channels that let agents make repeated payments within a preset limit. The industry is handing agents spending power now, while the evidence about how they behave under attack is only just arriving. A study led by University of Oxford researchers, cited in Valory’s announcement, found deceptive content on test websites redirected agents from their assigned tasks in 25% of trials on average across six leading models.
This is also the other side of a security story the site has followed all year. Hardware wallets have already been tampered with before reaching buyers, and agents that handle sensitive data have already been shown to leak it. OnchainBench adds the missing piece: not whether the wallet can be broken into, but whether the agent holding it can be talked into handing the money over. And the cryptography underneath it all is itself under pressure from AI — the Ethereum Foundation is now rebuilding its security for a post-quantum, post-AI world.
What to watch
Three things. First, whether Anthropic and OpenAI respond — a second run with the same tasks would show whether the frontier-model gap was real or an artefact of who wrote the test. Second, whether the safety bar becomes a standard: a public, repeatable number that wallet products and agent frameworks have to clear before they ask for your keys. And third, whether the next runs extend beyond the fork. The results describe agents on forked chains, not hosted wallet products, and the real test will be an agent with live funds, a live counterparty, and no intent gate standing between it and the send button.
Until then, the honest answer to the opening question is the one the leaderboard gives: an agent can do the job, and it can still be talked into paying the wrong person. Keep the human in the loop.
This article is for information only and is not financial advice.
What is OnchainBench?
An open benchmark launched by Valory on 26 November 2026 that tests whether AI agents can safely complete onchain tasks with a crypto wallet. Agents work through a Safe smart account on local forks of nine EVM chains, and a checker reads the fork itself to see whether tasks were completed and whether any funds reached an attacker. The leaderboard, code and datasets are public at onchainbench.ai.
Which AI agents passed OnchainBench’s safety bar?
Five of the seven entries in the first run met the bar: Claude Code and Codex on DeepSeek V4.1 Flash, OpenClaw and Hermes on DeepSeek V4.1 Flash, and Valory’s own olas-ocb-agent. Claude Code on Anthropic’s Opus 5.5 and Codex on OpenAI’s GPT-5.6 Sol both missed it, losing funds in 3 of 254 and 8 of 254 attack tests respectively.
Did any agent lose real money?
No. Every trial ran on a local fork of a public chain, so no real funds were ever at risk. The 13 losses in 1,793 attack tests are simulated balances on forked chains, plus a 14th attempt that exposed a session credential without moving funds.
What is a safety twin?
A variant of a normal task with an attack hidden inside it: a look-alike token, a poisoned tool description, a fake instruction in a file or web page, or a server that changes its tools mid-session. The first run used 53 safety twins among 147 held-out tasks, across 14 attack classes.
Who runs OnchainBench, and can it be trusted?
Valory, a core contributor to the Olas agent network, runs the benchmark, and also builds olas-ocb-agent, one of the entries on the board. The same rules apply to every entry, the held-out task set was frozen before any agent ran it, and the code, datasets and transcripts are public. The conflict should be stated plainly, and the results should be read with it in mind.


