arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.18192cs.CR
收藏

TaintSentinel:面向以太坊智能合约的路径级随机性漏洞检测

TaintSentinel: Path-Level Randomness Vulnerability Detection for Ethereum Smart Contracts

University of Salerno(萨莱诺大学);Luleå University of Technology(吕勒奥理工大学)

Hadis Rezaei, Ahmed Afif Monrat, Karl Andersson, Francesco Flammini

AI总结:

针对以太坊智能合约随机数漏洞,本文提出路径敏感的 TaintSentinel,通过规则污点分析、双流神经网络及 PathGNN/GlobalGCN 提升检测精度。

摘要:

区块链技术固有的确定性给在智能合约中生成安全随机数带来了重大挑战,从而导致可被利用的漏洞,尤其是在去中心化金融(DeFi)生态系统和基于区块链的游戏应用中。根据我们的观察,当前最先进的检测工具在处理随机数漏洞时存在精度不足的问题。为解决这一问题,我们提出了 TaintSentinel,这是一种新颖的路径敏感漏洞检测系统,旨在在执行路径层面分析智能合约,并利用领域特定规则逐步分析污点。本文讨论了一种采用多层面方法的解决方案,集成了用于跟踪数据流的基于规则的污点分析、用于识别复杂漏洞特征的双流神经网络,以及用于最小化误报的基于证据的参数初始化。该系统的两阶段运行包括语义图构建和污点传播分析,随后使用 PathGNN 进行模式识别,并通过 GlobalGCN 进行全局结构分析。我们在 4,844 个合约上的实验证明了 TaintSentinel 相对于现有工具的优越性能,其 F1 分数为 0.892,AUC-ROC 为 0.94,PRA 准确率为 97%。

英文摘要:

The inherent determinism of blockchain technology poses a significant challenge to generating secure random numbers within smart contracts, leading to exploitable vulnerabilities, particularly in decentralized finance (DeFi) ecosystems and blockchain-based gaming applications. From our observations, the current state-of-the-art detection tools suffer from inadequate precision while dealing with random number vulnerabilities. To address this problem, we propose TaintSentinel, a novel path sensitive vulnerability detection system designed to analyze smart contracts at the execution path level and gradually analyze taint with domain-specific rules. This paper discusses a solution that incorporates a multi-faceted approach, integrating rule-based taint analysis to track data flow, a dual stream neural network to identify complex vulnerability signatures, and evidence-based parameter initialization to minimize false positives. The system's two-phase operation involves semantic graph construction and taint propagation analysis, followed by pattern recognition using PathGNN and global structural analysis via GlobalGCN. Our experiments on 4,844 contracts demonstrate the superior performance of TaintSentinel relative to existing tools, yielding an F1-score of 0.892, an AUC-ROC of 0.94, and a PRA accuracy of 97%.

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

↑