arXiv:2611.04411cs.CRNov 2026

Manuscript Offprint

arXiv:2611.04411

TxBench: A Benchmark of Attack Transactions and Evidence-Backed Negatives on Seven EVM Chains

Tamer Abdelaziz, karim Ali

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

1st1^{st} Tamer Abdelaziz

New York University Abu Dhabi

tamer.m@nyu.edu

2nd2^{nd} Karim Ali

New York University Abu Dhabi

karim.ali@nyu.edu

Abstract—Researchers evaluate detectors of malicious smart-contract transactions on datasets that each paper assembles anew. Their positives come from incident trackers, whose citations mix attacks with setup steps and transactions that never ran, or from a detector's own output, which makes the evaluation circular; their negatives are ordinary transactions. A shared benchmark needs positives whose own execution shows the attack and negatives that use the attacks' mechanisms, with no detector deciding either label.

We present TxBench, a benchmark of attack transactions and evidence-backed negatives on seven EVM chains, with the five-step pipeline that builds it. The pipeline collects every transaction that BlockSec's incident library or the EVM Hack Registry cites, maps its weakness to OWASP's SCWE taxonomy, and rebuilds its execution from free data sources. A cited transaction qualifies as a valid TxBench attack only if it extracts value from others during execution, is consistent with all verified source claims, and is independently linked to the reported incident by corroborating evidence. Negative examples are sampled from each chain's traffic near the attacks and retained only when positive evidence confirms their legitimacy.

Of 1,850 cited transactions, TxBench accepts 1,012 attacks from 602 incidents, worth USD 868.1 million: 846 contract exploits and 166 key compromises. A blind review under rules fixed in advance confirms 98 of 100 sampled attacks (97.7% weighted) and all 100 sampled negatives. As baselines, four zero-shot LLMs reading anonymized traces are precise but find at most 0.43 of the attacks and no key compromise, leaving ample room for better detectors.

Index Terms—Smart Contracts, DeFi Exploits, Attack Transactions, Benchmark, Evidence-Backed Negatives, EVM, Dataset

I. INTRODUCTION

Attackers carry out smart-contract exploits through transactions [1]. DeFiLlama records 967 hacks of decentralized finance (DeFi) protocols worth USD 9.29 billion, 119 of them in 2025 [2]. Code analysis, rule-based or learned [3], [4], flags far more than attackers exploit: attackers exploited only 1.98% of the 23,327 contracts that six academic projects flagged as vulnerable [5]. Defenses therefore also inspect the transaction itself, with replay and rules [6]–[8], by lifting traces to DeFi actions [9]–[11], or with learned models of traces [12]–[17].

Transaction-level detectors lack a shared ground truth. Code and agent benchmarks label contracts or vulnerabilities, not executed transactions [18]–[21]. A benchmark of attacks alone also cannot measure false positives, which practitioners name a main barrier to adopting analyzers [4]. Transaction-level

Figure

Fig. 1. The TxBench pipeline: steps ①–⑤ accept attacks, step ④ selects negatives, and step ⑤ reviews both. Numbers count transactions.

papers therefore build their own sets: DEFIER [8] and Horus [7] label the attacks their own analyses find, and Alhaidari et al. [22] and BridgeGuard [14] curate 402 and 203 attack transactions, BridgeGuard against 40,000 normal ones. These sets take one or more of three shortcuts: labels from a detector make the evaluation circular, labels copied from incident trackers inherit their errors, and random negatives reward flagging every large transaction.

The Euler Finance exploit of March 2023 shows what these shortcuts hide. BlockSec's incident library lists six drain transactions and a loss of USD 200 million [23]. The EVM Hack Registry [24] cites only one of them, with a loss of about USD 197 million. On their own execution, the six transactions take USD 198.1 million together and the registry's one takes USD 8.7 million, so a dataset built from the registry would credit one transaction with the whole loss. Euler's attacker also used only calls that legitimate users make, so a fair test needs negatives that make them too.

We present TxBench, a benchmark of attack transactions and evidence-backed negatives on seven chains that run the Ethereum Virtual Machine (EVM), and the five-step pipeline that builds it from public data (Figure 1). Steps ①–⑤ collect the 1,850 cited transactions, map their weaknesses to OWASP's Smart Contract Weakness Enumeration (SCWE) [25], rebuild their execution, and accept the 1,012 that take value from others, contradict no checked claim, and have evidence beyond their citation. Step ④ keeps 2,024 negatives with positive evidence of legitimacy, and step ⑤ has a person review samples of both classes blind. No detector decides any label, our own TxLens [17] included. Five splits test generalization by holding out incidents, time, protocols, attackers, or chains. As baselines, four zero-shot LLMs find at most 0.43 of the attacks.

Building TxBench showed how far the public record is from a ground truth. The two sources share only 197 of the

TABLE I

TXBENCH BY CHAIN: ETHEREUM, BSC, ARBITRUM, BASE, OPTIMISM, POLYGON, AVALANCHE; VALUES ROUNDED PER CHAIN.

ETHBSCARBBaseOPPOLAVAXTotal
Incidents (union of the sources)4054066763212814-
Cited attack txs9045601831074336171,850
Accepted attack txs5443094365251791,012
value taken (M USD)692.467.830.412.542.310.812.0868.1
Negatives (every target met)1,088618861305034182,024

1,850 transactions (10.6%), and five of the registry's cited hashes exist on no chain. Only 72.2% of the cited transactions with a full call tree take at least USD 100 from others; the rest include setup steps, follow-ups, and attacks whose gain is unpriced. Random blocks near the attacks are neither clean nor hard: 2.0% of the 11,293 traced candidates from them involve an attacker or a main victim of a cited incident, and only 1.0% of their transactions use more than a million gas, against 54.5% of the accepted attacks. Datasets that copy the sources' citations or draw random negatives carry these flaws into every evaluation.

References (30)