arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.26094cs.CRcs.SE
收藏

GenDetect:通用反应检测用于对抗模仿DeFi攻击连锁

GenDetect: Generalizing Reactive Detection for Resilience Against Imitative DeFi Attack Cascade

University of Minnesota(明尼苏达大学);Xi’an Jiaotong University(西安交通大学);Johns Hopkins University(约翰斯·霍普金斯大学);Zhejiang University(浙江大学)

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

AI总结:

针对DeFi攻击连锁中的模仿行为,GenDetect通过抽象函数语义和匹配交易逻辑,实现高精度检测,发现56个此前未被发现的攻击。

摘要:

随着区块链生态的发展,金融动机的攻击者越来越多地利用去中心化金融(DeFi)协议,造成频繁且严重的损失。不同于传统网络攻击,DeFi攻击会迅速传播,这是由于智能合约的透明性和可组合性。我们识别出一个关键模式,即模仿攻击连锁:一次成功的攻击后,会迅速跟随模仿交易,这些交易重新使用攻击逻辑,仅作轻微修改或参数更改。我们的实证分析表明,超过69%的DeFi攻击表现出与早期事件强烈的行为相似性,通常在初始攻击后数天内发生。这暴露了当前反应检测的根本局限性。初始攻击通常通过启发式警报(如Tornado Cash痕迹、异常nonce使用、攻击者标签)被标记,但将这些信号转化为检测规则需要手动验证和手工跟踪分析——一个劳动密集、缓慢的过程,使后续攻击得以扩散。我们的目标是确保一旦攻击被观察到,即使只发生一次,也能迅速抽象为可操作的、可推广的检测规则。我们分解了两个挑战:(I)抽象不同、晦涩的功能签名的语义,以及(II)在嘈杂、逃避的跟踪中匹配交易逻辑。我们利用两个洞察:(i)大多数DeFi协议的开源性质使功能签名的高保真语义分类成为可能;(ii)合同标签通过过滤无关调用并分类攻击意图来隔离本质逻辑。基于这些,我们开发了GenDetect,其准确率达到98%,假阳性率1%,假阴性率3%,并发现了过去三年中56个此前未被发现的攻击。源代码和数据集:https://github.com/NobodyIsAnonymous/GenDetect_ICSE2026

英文摘要:

As blockchain ecosystems grow, financially motivated attackers increasingly exploit decentralized finance (DeFi) protocols, causing frequent and severe losses. Unlike conventional cyberattacks, DeFi exploits propagate rapidly due to the transparent and composable nature of smart contracts. We identify a critical pattern, Imitative Attack Cascade: an initial successful exploit is quickly followed by 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 within hours or days of the initial attack. This exposes a fundamental limitation in current reactive detection. Initial attacks are typically flagged via heuristic alerts (Tornado Cash traces, anomalous nonce usage, exploiter labels), but turning these signals into detection rules requires manual validation and handcrafted trace analysis -- a labor-intensive, slow process that leaves follow-up attacks to spread. Our goal is to ensure that once an attack has been observed, even a single instance, it can be rapidly abstracted into an actionable, generalizable detection rule. We decompose the problem into two challenges: (I) abstracting the semantics of diverse, obscure function signatures, and (II) matching transaction logic in noisy, evasive traces. We leverage two insights: (i) the open-source nature of most DeFi protocols enables high-fidelity semantic classification of function signatures; (ii) contract labels isolate essential logic by filtering irrelevant calls and classifying attack intent. Building on these, we develop GenDetect, which achieves ACC 98%, FPR 1%, FNR 3% and discovers 56 previously unrevealed attacks from the past three years. Source code and dataset: https://github.com/NobodyIsAnonymous/GenDetect_ICSE2026

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑