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

V2E:通过以利润为导向的漏洞利用生成与执行验证智能合约漏洞

V2E: Validating Smart Contract Vulnerabilities through Profit-driven Exploit Generation and Execution

Sun Yat-sen University(中山大学);Peng Cheng Laboratory(鹏城实验室);Harbin Institute of Technology(哈尔滨工业大学)

Jingwen Zhang, Yuhong Nan, Kaiwen Ning, Mingxi Ye, Wei Li, Yuming Xiao, Yuming Feng, Weizhe Zhang, Zibin Zheng

AI总结:

本文提出V2E框架,通过自动生成可执行的漏洞利用示例,验证报告漏洞是否可被利用。核心方法包括生成、验证和迭代优化漏洞利用代码,提升漏洞验证效率。

摘要:

智能合约是区块链系统的关键组成部分。由于智能合约承载大量数字资产,其安全性至关重要。尽管已开发出多种检测智能合约漏洞的工具,但其效果有限,特别是由于报告结果中包含大量假阳性。因此,开发人员和审计人员往往需要手动验证报告的问题。根本原因在于,虽然报告的漏洞满足特定的漏洞模式,但可能无法实际利用,要么因为漏洞代码无法触发,要么不造成任何经济损失。本文提出V2E,一种新的框架,用于验证报告的漏洞是否真正可被利用。V2E的核心思想是自动生成可执行的证明概念漏洞利用(PoC),然后通过PoC评估漏洞是否可被触发并造成实际损害(即导致经济损失)。尽管LLMs在生成PoC方面表现出色,但实现我们的任务并不容易。具体来说,LLM难以:(1)生成并更新触发特定漏洞的PoC;(2)评估PoC的有效性以验证可利用的漏洞。为此,V2E通过生成、验证和优化的新型组合自动化整个过程:(1)首先,V2E通过分析潜在的漏洞路径生成针对的PoC;(2)然后,V2E通过触发性和盈利能力分析验证PoC的有效性;(3)此外,V2E根据PoC执行反馈迭代优化生成的PoC,从而增加确认漏洞的可能性。对264个手动标记的合约进行评估表明,V2E优于基线方法。

英文摘要:

Smart contracts are a critical component of blockchain systems. Due to the large amount of digital assets carried by smart contracts, their security is of critical importance. Although numerous tools have been developed for detecting smart contract vulnerability, their effectiveness remains limited, particularly due to the high false positives included in the reported results. Therefore, developers and auditors are often overwhelmed with manually verifying the reported issues. A fundamental reason behind this is that while a reported vulnerability satisfies specific vulnerable patterns, it may not actually be exploitable, either because the vulnerable code cannot be triggered or it does not result in any financial loss. In this paper, we propose V2E, a new framework for validating whether a reported vulnerability is truly exploitable. The core idea of V2E is to automatically generate executable Proof-of-Concept Exploit (PoC for short), and then assess if the vulnerability could be triggered and incur any real damage (i.e., causing financial loss) by the PoC. While LLMs have shown proficiency in PoC generation, achieving our task is by no means trivial. In detail, it is difficult for LLM to: (1) generate and update PoC to trigger a specific vulnerability, (2) evaluate the PoC's effectiveness to validate exploitable vulnerability. To this end, V2E automates the whole process through a novel combination of PoC generation, validation, and refinement: (1) Firstly, V2E generates targeted PoCs by analyzing potential vulnerability paths. (2) Then, V2E verifies the validity of PoCs through triggerability and profitability analysis. (3) In addition, V2E iteratively refines the generated PoC based on PoC execution feedback, therefore, increasing the chance to confirm the vulnerability. Evaluation on 264 manually labeled contracts shows that V2E outperforms the baseline approach.

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

↑