GenDetect: Generalizing Reactive Detection for Resilience Against Imitative DeFi Attack Cascade Conference: 2026 IEEE/ACM 48th International Conference on Software Engineering; April 12–18, 2026; Rio de Janeiro, Brazil 2026 IEEE/ACM 48th International Conference on Software Engineering (ICSE ’26), April 12–18, 2026, Rio de Janeiro, Brazil DOI: 10.1145/3744916.3787799 ISBN: 979-8-4007-2025-3/2026/04

Bowen Cai, Weiheng Bai, Youshui Lu, Haoran Xu, Yuannan Yang, Yajin Zhou, Kangjie Lu · 2026

Read GenDetect: Generalizing Reactive Detection for Resilience Against Imitative DeFi Attack Cascade Conference: 2026 IEEE/ACM 48th International Conference on Software Engineering; April 12–18, 2026; Rio de Janeiro, Brazil 2026 IEEE/ACM 48th International Conference on Software Engineering (ICSE ’26), April 12–18, 2026, Rio de Janeiro, Brazil DOI: 10.1145/3744916.3787799 ISBN: 979-8-4007-2025-3/2026/04 by Bowen Cai, Weiheng Bai, Youshui Lu, Haoran Xu, Yuannan Yang, Yajin Zhou, Kangjie Lu (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-26094.txt.

Introduction

Cai and six colleagues identify an imitative attack cascade in decentralized finance. A successful exploit is quickly mimicked, with small changes to its logic. Their analysis finds more than two thirds of such attacks resemble earlier incidents, often within hours or days. Turning heuristic alerts into detection rules by hand is slow and labour-intensive. Their GenDetect system abstracts attack semantics and matches transaction logic in noisy traces. It reaches 98 percent accuracy with 1 percent false positives and 3 percent false negatives, and uncovers fifty-six unrevealed attacks from three years.

Catalog record

CREATORBowen Cai, Weiheng Bai, Youshui Lu, Haoran Xu, Yuannan Yang, Yajin Zhou, Kangjie Lu
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE69196
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2604.26094

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

GenDetect: Generalizing Reactive Detection for Resilience Against Imitative DeFi Attack Cascade Conference: 2026 IEEE/ACM 48th International Conference on Software Engineering; April 12–18, 2026; Rio de Janeiro, Brazil 2026 IEEE/ACM 48th International Conference on Software Engineering (ICSE ’26), April 12–18, 2026, Rio de Janeiro, Brazil DOI: 10.1145/3744916.3787799 ISBN: 979-8-4007-2025-3/2026/04 Bowen Cai, Weiheng Bai, Youshui Lu, Haoran Xu, Yuannan Yang, Yajin Zhou, Kangjie Lu Abstract . As blockchain ecosystems grow, financially motivated attackers have increasingly exploited vulnerabilities in decentralized finance (DeFi) protocols, resulting in frequent and severe losses. Unlike conventional cyberattacks, DeFi exploits propagate rapidly due to the transparent and composable nature of smart contracts. In this setting, we identify a critical behavioral pattern: Imitative Attack Cascade , where an initial successful exploit is quickly followed by a flurry of mimicking transactions that reuse attack logic with minor modifications or parameter changes. Our empirical analysis shows that over 69% of DeFi attacks exhibit strong behavioral similarity to earlier incidents, often occurring within hours or days of the initial attack. This phenomenon highlights a fundamental limitation in current reactive detection workflows. While the initial attacks are often flagged through heuristic alerts, such as Tornado Cash traces, anomalous nonce usage, or known exploiter labels, these signals require manual validation and the construction of handcrafted detection rules through trace analysis. This process is labor-intensive and slow, resulting in unacceptable latency while follow-up attacks continue to spread. Motivated by this gap, our research goal is to ensure that once an attack has been observed, even a single instance, it can be rapidly abstracted into an actionable and generalizable detection rule, enabling scalable protection against imitative attacks. We decompose the problem into two core challenges: (I) abstracting the semantics of diverse, obscure function signatures, and (II) matching transaction logic in noisy, evasive traces. To address these, we leverage two key insights: (i) the open-source nature of most DeFi protocols enables high-fidelity semantic classification of function signatures; (ii) contract labels allow us to isolate essential logic by filtering irrelevant calls and classifying attack intent. Based on these, we develop a reactive detection framework, GenDetect , which achieves strong benchmark performance (ACC: 98%, FPR: 1%, FNR: 3%) and, critically, discovers 56 previously unrevealed attacks from the past three years, highlighting its practical effectiveness. Our source code and dataset are released on Github . † † cc-license: by 1. Introduction The rapid growth of blockchain ecosystems has been accompanied by a sharp rise in security threats. Each year, hundreds of security incidents result in billions of dollars in losses ( 3 ) . Among these, Decentralized Finance (DeFi) ( 32 ; 49 ; 9 ; 26 ) stands out as the most prominent and lucrative target due to its high-value assets and composable smart contract design. The transparency and reusability of smart contracts make successful exploits particularly easy to replicate, contributing to the rapid proliferation of follow-up attacks. Yet detection methods remain inadequate in the face of these escalating threats. Industry solutions ( 37 ) often rely on ad hoc heuristics–such as hardcoded exploiter addresses, Tornado Cash interactions ( 33 ) , or timing-based indicators like nonce or contract creation time–that may help identify the first exploit but fail to capture its evolving variants. Academic approaches, on the other hand, typically focus on specific vulnerability types (e.g., price manipulation ( 44 ; 46 ; 43 ; 31 ) , flashloans ( 47 ) , or reentrancy ( 51 ) ), lacking the generality required to address real-world exploits at scale. As a result, once a vulnerability is exposed, it is often repeatedly exploited–sometimes for months–due to delays in designing and deploying effective detection patterns. \IfEndWith The Imitative DeFi Attack Cascade.The Imitative DeFi Attack CascadeThe Imitative DeFi Attack Cascade. A key motivation for our research lies in the empirical observations that most DeFi attacks are not isolated or fundamentally novel, but rather imitations, adaptations, or direct replications of previously disclosed exploits. In real-world incidents, once an attack is proven effective, it often triggers an imitative attack cascade –sometimes reusing entire contracts with minimal modifications, and sometimes varying parameters or call sequences. To quantify this pattern, we analyze confirmed attack transactions from Phalcon ( 14 ) and DeFiHackLab ( 42 ) across multiple protocols. Our analysis reveals that over 69% of the attacks–collectively accounting for more than $2 billion in losses–exhibit strong behavioral similarities to the earlier exploits. Some follow-ups occur within hours or days of the original, while others replicate nearly identical strategies over a year later. This persistence underscores not only the reusability of vulnerable patterns but also the absence of timely and generalizable defenses. Without a mechanism to convert each new exploit into a broadly applicable detection pattern, today’s undetected attack becomes tomorrow’s widely reused blueprint. Detection generalization is therefore not a supplementary feature–it is the core capability needed for sustainable defense. \IfEndWith Prior Work.Prior WorkPrior Work. In practice, the industry relies on broad, heuristic-based signals–such as low-nonce initiators, Tornado Cash funding paths, or known exploiter addresses–to raise alerts ( 15 ) . Although these methods offer wide coverage and increase the odds of catching the first exploit, they suffer from extremely high false positives and require substantial manual effort to verify. More importantly, even when the first attack is confirmed, such approaches cannot automatically generate rules to detect follow-up imitative attacks . This limitation stems from the fact that most existing detection systems follow a reactive loop of "discovery \rightarrow manual analysis \rightarrow rule generation", as seen in TxSpector ( 51 ) , DeFiRanger ( 44 ) , and POMABuster ( 46 ) . These tools manually extract behavioral signatures from traces to produce handcrafted rules, but their reliance on human intervention introduces unacceptable latency–especially in blockchain environments where imitation attacks can emerge within minutes. Alarmingly, certain vectors remain exploitable months or even years after disclosure ( 10 ; 11 ; 12 ; 13 ) –not due to ignorance, but because current defense systems lack the capability to generalize and automate detection across related contexts. This highlights the core value of our work: Rather than aiming to be the first to discover new attacks, we take the initial disclosure–identified through external alerts, public reports, or monitoring tools–as input. By capturing such cases through generalizable semantic representations , we can rapidly and automatically produce detection strategies , avoiding the delays and brittleness of handcrafted rules. While no system can anticipate entirely new categories in advance, our method ensures that once an incident is revealed, any imitative form of attack is unlikely to happen stealthily. In this way, we complement existing efforts by bridging the gap between discovery and timely, scalable detection for imitative attacks . \IfEndWith Research Goal and Challenges.Research Goal and ChallengesResearch Goal and Challenges. In this paper, our goal is to rapidly generalize an initial attack incident into a reactive detection to enable the precise resilience for imitative DeFi attacks . We decompose the goal into two main challenges: (C1) Semantic Abstraction of Function Signatures. Transaction traces often contain diverse and complex function signatures. Existing word-level approaches, such as keyword matching or word-vector embeddings, struggle to capture their true semantics, especially in the context of DeFi-specific operations. (C2) Robust Matching of Transaction Logic. DeFi transaction traces are

Read the complete text