arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.11254cs.SE
收藏

高效检测复杂智能合约中的重入漏洞

Efficiently Detecting Reentrancy Vulnerabilities in Complex Smart Contracts

Zexu Wang, Jiachi Chen, Yanlin Wang, Yu Zhang, Weizhe Zhang, Zibin Zheng

AI总结:

针对复杂智能合约中重入漏洞检测效率低、成功率差的问题,提出SliSE工具,结合程序切片与符号执行两阶段验证,F1分数达78.65%,召回率超90%,优于现有工具。

摘要:

重入漏洞作为最臭名昭著的漏洞之一,一直是智能合约安全研究中的突出课题。研究表明,现有的漏洞检测面临一系列挑战,尤其是随着智能合约的复杂性不断增加。现有工具在检测复杂合约中的漏洞时,在效率和成功检测率方面表现不佳。为了有效检测具有复杂逻辑的合约中的重入漏洞,我们提出了一种名为SliSE的工具。SliSE的检测过程包括两个阶段:警告搜索和符号执行验证。在第一阶段,SliSE利用程序切片分析合约的合约间程序依赖图(I-PDG),并收集可疑漏洞信息作为警告。在第二阶段,采用符号执行来验证这些警告的可达性,从而提高漏洞检测的准确性。与八种最先进的检测工具相比,SliSE获得了最佳性能。其F1分数达到78.65%,超过了现有工具记录的最高分数9.26%。此外,在以太坊上检测合约时,其召回率超过90%。总体而言,SliSE为复杂合约中的重入漏洞检测提供了一种稳健且高效的方法。

英文摘要:

Reentrancy vulnerability as one of the most notorious vulnerabilities, has been a prominent topic in smart contract security research. Research shows that existing vulnerability detection presents a range of challenges, especially as smart contracts continue to increase in complexity. Existing tools perform poorly in terms of efficiency and successful detection rates for vulnerabilities in complex contracts. To effectively detect reentrancy vulnerabilities in contracts with complex logic, we propose a tool named SliSE. SliSE's detection process consists of two stages: Warning Search and Symbolic Execution Verification. In Stage I, SliSE utilizes program slicing to analyze the Inter-contract Program Dependency Graph (I-PDG) of the contract, and collects suspicious vulnerability information as warnings. In Stage II, symbolic execution is employed to verify the reachability of these warnings, thereby enhancing vulnerability detection accuracy. SliSE obtained the best performance compared with eight state-of-the-art detection tools. It achieved an F1 score of 78.65%, surpassing the highest score recorded by an existing tool of 9.26%. Additionally, it attained a recall rate exceeding 90% for detection of contracts on Ethereum. Overall, SliSE provides a robust and efficient method for detection of Reentrancy vulnerabilities for complex contracts.

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

↑