ABF-Bench: A Verifiable Benchmark for Agentic Blockchain Forensics
Xiaohang Yu, Hejia Geng, William Knottenbelt
cs.CR
2026-10-16
The Bybit hack becomes a verifiable agent benchmark: a working-memory harness hits 75% edge recall vs 47% for Codex on the same model; breadth-first tracing still leads at 88%.
In 2024 alone, attackers stole $2.2 billion from crypto platforms, then laundered it by splitting balances, swapping through DeFi, bridging across chains, and cutting the trail at mixers or custodial services. Investigators reconstruct these flows from on-chain records, but adversaries change tactics case by case and fixed procedures fall behind. Existing blockchain datasets score answers against fixed data and never check the evidence, and nothing controls which records a solver retrieved or what it cost, so LLM agents that run investigations cannot be compared fairly.
The paper's observation: public ledgers are immutable. Every movement stays on record, so given the relevant records and a set of operation rules, a deterministic verifier can judge a claimed movement without trusting the investigator's reasoning. That makes fund tracing a verifiable task in the SWE-bench sense, and verifiable tasks double as RL training environments.
A task fixes four things: the admitted records, a set of seed fund states, a declaration (scope, hop cap, assets, stops, and how commingled funds are apportioned), and the admitted operation types, each with an evidence rule. The rules are strict: an exchange needs a receipt plus an execution trace, a cross-chain crossing needs paired deposit and payout records. The solver queries a metered environment where every well-formed query costs 1, under a budget of 98 to 510 queries set at twice the reference plan, and submits a report grouped into operations, each citing the records behind it.
Scoring has two layers. A deterministic verifier judges each operation solely on its cited records: valid, invalid, or indeterminate. It never sees the reference graph, so alternative valid evidence passes. A grader then computes edge recall (the primary score), fidelity, and edge precision against the hidden reference graph. Edge recall carries a strict condition: every cited record must have been retrieved during the run, which blocks agents from quoting ledger contents they remember but never fetched.
Tasks come from a pipeline over a real case: the February 2025 Bybit theft, followed for 90 days across Ethereum and Bitcoin, seeded from the FBI notice and Bybit's published addresses. A walk-and-replay loop runs within each ledger, bridge deposits are paired with payouts across ledgers, and human reviewers revise the rules between builds. The rules are conservative: tracing halts wherever records leave a continuation unresolved, so each reference graph under-approximates the laundering flow. Of 58 authored tasks, 33 pass the release filter and 31 are evaluated, totaling 2,044 reference edges.
The paper also contributes the ABF agent harness: a working memory with three sections (confirmed findings, open leads, notes) maintained by the agent itself, tools for submission preview and context compaction, and five prompt heuristics such as 'follow control of funds, not movement of coins' and 'cite only returned records'. It runs the same model at the same reasoning effort as Codex, so that comparison isolates harness design.
| Solver | Edge recall | Fidelity | Budget used | Cost per task |
| ABF harness (GPT-5.5) | 0.75 | 0.98 | 47% | $9.4 |
| Codex (GPT-5.5) | 0.47 | 0.98 | 33% | $2.7 |
| Claude Code (Opus 4.8) | 0.10 | 0.95 | 16% | $6.5 |
| Tracer (bfs) | 0.88 | 0.98 | 92% | – |
| Tracer (dfs) | 0.77 | 0.99 | 87% | – |
| Tracer (greedy) | 0.54 | 0.95 | 88% | – |
Same model, different harness: recall goes from 47% to 75%, so the task clearly rewards agent design. Claude Code's 0.10 is the retrieval condition at work: 29 of its 31 runs cite records it never retrieved, and scored on verdicts alone it reaches 0.54. It named the incident in 21 of 31 surveyed transcripts (Codex 2 of 33, harness 0 of 33), which suggests pretraining memory filling in ledger contents.
Agents win on two fronts. Early acquisition: at a quarter of the budget, the harness reaches 39% evidence recall against 35% for the best tracer in hindsight. Boundaries: at undisclosed custodial services it had reached and could still continue from, the harness stops correctly 89% of the time and Codex 100%, while all three rule-based tracers score 0, following the service's sweep transactions out of bounds.
They lose by stopping early. The harness spends 47% of its budget on average, and one Claude Code run declared completion after 17 actions; past 54% of the budget the best tracer overtakes, and breadth-first tracing finishes first at 0.88. Recall falls with task size, from 0.82 on the smallest third of tasks to 0.69 on the largest, and it tracks maximum fan-out (Spearman ρ = -0.66) more than edge count, so branching is the bottleneck.
Agent builders get three things. A verifiable benchmark in a domain where real adversaries supply the difficulty, no expert curation needed, with verdicts usable as verifiable training reward beyond code and math. Direct evidence that harness design moves results: same model, 75 against 47, from a working memory plus five heuristics. And a quantified failure mode, citing unretrieved records at a 29-of-31 rate, that any evidence-grounded agent system can screen for with the same deterministic check.
For forensics the honest reading: agents complement fixed tracers on speed and boundary recognition but finish below a breadth-first baseline. Today that means a hybrid pipeline, not a replacement.
The authors list four: every task comes from one incident; the case is public and predates the evaluated models, so training exposure cannot be ruled out; conservative rules make each reference graph a subset of the true flow; and apart from harness-versus-Codex, comparisons vary whole systems rather than isolated components. What agents would recover with their unused half of the budget is unmeasured.
Two more from the numbers. All 31 tasks share one laundering operation, within-task recall has a standard deviation of 0.18 across repeated runs, and a gap as small as 0.75 versus 0.77 (dfs) establishes no order. And with Claude Code naming the incident while citing unretrieved records, whether the 0.10-to-0.54 gap reflects hallucination or memorized ledger contents stays open.