本文已被:浏览 580次 下载 1686次
Received:January 05, 2025 Revised:February 12, 2025
Received:January 05, 2025 Revised:February 12, 2025
中文摘要: 随着区块链技术的广泛应用, 智能合约的安全性问题日益突出. 交易顺序依赖 (transaction order dependency, TOD)漏洞是一种常见且危害性极大的漏洞, 可能引发严重的经济损失. 现有漏洞检测方法主要分为静态分析和动态分析, 但仍存在误报率高、关键路径覆盖不足及对固定规则依赖等局限性. 为此, 本文提出了一种基于函数依赖指导的TOD漏洞检测框架FuncFuzz. 该框架通过静态分析模块提取合约的关键函数依赖, 精准定位脆弱区域, 提升测试用例生成的针对性; 设计多样化的交易变异策略, 扩展测试用例的覆盖范围; 并引入基于状态的一致性判定机制, 以突破传统固定模式的限制, 动态适应复杂或未知的漏洞场景. 实验结果表明, FuncFuzz在检测TOD漏洞的有效性方面优于现有工具, 同时函数依赖指导有效增强了检测效果.
Abstract:Security issues in smart contracts have become increasingly prominent with the widespread use of blockchain technology. The transaction order dependency (TOD) vulnerability is a common and highly hazardous flaw that can lead to significant financial losses. Existing detection methods primarily consist of static and dynamic analysis methods but still face challenges such as high false positive rates, insufficient coverage of key paths, and reliance on fixed rules. To address these issues, this study introduces FuncFuzz, a novel TOD vulnerability detection framework guided by functional dependence. This framework uses a static analysis module to extract key functional dependence within contracts, accurately locates vulnerable areas, and enhances the specificity of generated test cases. In addition, it designs diverse transaction mutation strategies to expand test case coverage and introduces a state-based consistency determination mechanism to break through the constraints of traditional fixed patterns and dynamically adapt to complex or unknown vulnerability scenarios. Experimental results show that FuncFuzz outperforms existing tools in detecting TOD vulnerabilities, and guidance by functional dependence significantly enhances detection effectiveness.
keywords: transaction order dependency (TOD) static analysis fuzz testing differential analysis smart contract security
文章编号: 中图分类号: 文献标志码:
基金项目:湖北省重大科技攻关项目(尖刀) (2023BAA027)
引用文本:
姜天琪,严飞.基于函数依赖的智能合约TOD漏洞检测.计算机系统应用,2025,34(9):1-10
JIANG Tian-Qi,YAN Fei.Function-dependency-based TOD Vulnerability Detection in Smart Contract.COMPUTER SYSTEMS APPLICATIONS,2025,34(9):1-10
姜天琪,严飞.基于函数依赖的智能合约TOD漏洞检测.计算机系统应用,2025,34(9):1-10
JIANG Tian-Qi,YAN Fei.Function-dependency-based TOD Vulnerability Detection in Smart Contract.COMPUTER SYSTEMS APPLICATIONS,2025,34(9):1-10

