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

面向可获利漏洞的智能合约模糊测试

Smart Contract Fuzzing Towards Profitable Vulnerabilities

Ziqiao Kong, Cen Zhang, Maoyi Xie, Ming Hu, Yue Xue, Ye Liu, Haijun Wang, Yang Liu

AI总结:

针对智能合约可获利漏洞检测与利润最大化的问题,提出以利润为中心的模糊测试框架VERITE,通过DeFi操作变异器、异常资金流识别及梯度下降策略,在真实DeFi项目中检测和获利表现显著优于现有工具,还助力发现零日漏洞获赏金。

摘要:

数十亿美元通过智能合约进行交易,使得漏洞成为重大金融风险。安全军备竞赛的一个焦点是攻击者可利用的可获利漏洞。模糊测试是识别这些漏洞的关键方法。然而,当前解决方案面临两个主要限制:缺乏以利润为中心的技术来加速检测,以及在最大化已发现漏洞的获利能力方面自动化不足,导致分析工作依赖人类专家。为解决这些差距,我们开发了VERITE——一个以利润为中心的智能合约模糊测试框架,它不仅能有效检测这些可获利漏洞,还能最大化被利用的利润。VERITE有三个关键特性:1)基于DeFi(去中心化金融)操作的变异器,用于促进对不同资金流交易的探索;2)潜在可获利候选者识别标准,检查测试期间输入是否导致异常资金流属性;3)针对这些已识别候选者的基于梯度下降的利润最大化策略。VERITE完全从零开始开发,并在包含61个被利用的真实世界DeFi项目的数据集上进行评估,这些项目平均损失超过110万美元。结果显示,VERITE总共可自动提取超过1800万美元,在检测(29/10)和利用(平均获利多134倍)方面显著优于最先进的模糊测试工具ITYFUZZ。值得注意的是,在12个目标中,它获得的利润比真实世界攻击利用更多(多1.01至11.45倍)。VERITE还被审计人员用于合约审计,发现了6个(5个高严重性)零日漏洞,获得超过2500美元的赏金奖励。

英文摘要:

Billions of dollars are transacted through smart contracts, making vulnerabilities a major financial risk. One focus in the security arms race is on profitable vulnerabilities that attackers can exploit. Fuzzing is a key method for identifying these vulnerabilities. However, current solutions face two main limitations: a lack of profit-centric techniques for expediting detection, and insufficient automation in maximizing the profitability of discovered vulnerabilities, leaving the analysis to human experts. To address these gaps, we have developed VERITE, a profit-centric smart contract fuzzing framework that not only effectively detects those profitable vulnerabilities but also maximizes the exploited profits. VERITE has three key features: 1) DeFi action-based mutators for boosting the exploration of transactions with different fund flows; 2) potentially profitable candidates identification criteria, which checks whether the input has caused abnormal fund flow properties during testing; 3) a gradient descent-based profit maximization strategy for these identified candidates. VERITE is fully developed from scratch and evaluated on a dataset consisting of 61 exploited real-world DeFi projects with an average of over 1.1 million dollars loss. The results show that VERITE can automatically extract more than 18 million dollars in total and is significantly better than state-of-the-art fuzzer ITYFUZZ in both detection (29/10) and exploitation (134 times more profits gained on average). Remarkably, in 12 targets, it gains more profits than real-world attacking exploits (1.01 to 11.45 times more). VERITE is also applied by auditors in contract auditing, where 6 (5 high severity) zero-day vulnerabilities are found with over $2,500 bounty rewards.

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

↑