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

LLM-SmartAudit: 先进的智能合约漏洞检测

LLM-SmartAudit: Advanced Smart Contract Vulnerability Detection

Zhiyuan Wei, Jing Sun, Zijiang Zhang, Xianhao Zhang, Meng Li, Zhe Hou

AI总结:

针对智能合约安全风险高、现有检测工具覆盖漏洞类型单一且精度不足的问题,提出基于多智能体协作的LLM-SmartAudit框架,实验证明其在准确率、效率上优于传统工具,还能检测被遗漏的复杂逻辑漏洞。

摘要:

区块链技术的不可篡改特性虽具有革命性,却也带来了严峻的安全挑战,在智能合约领域尤为突出。这些安全问题可能造成巨额经济损失。现有工具和方法往往仅聚焦于特定类型的漏洞,缺乏一款能高精度检测多类漏洞的综合性工具。本文提出LLM-SmartAudit,这是一种利用大语言模型(LLM)的先进能力检测与分析智能合约漏洞的新型框架。LLM-SmartAudit采用多智能体对话式方案,搭建由多个专用智能体组成的协作系统以优化审计流程。为评估LLM-SmartAudit的有效性,我们构建了两个不同的数据集:一个带标注数据集,用于与传统工具进行基准对比;一个真实场景数据集,用于评估实际应用效果。实验结果表明,我们的方案优于所有传统智能合约审计工具,具备更高的准确率与效率。此外,该框架能够检测出传统工具此前遗漏的复杂逻辑漏洞。研究结果证实,利用LLM智能体是实现自动化智能合约审计的一种高效方法。

英文摘要:

The immutable nature of blockchain technology, while revolutionary, introduces significant security challenges, particularly in smart contracts. These security issues can lead to substantial financial losses. Current tools and approaches often focus on specific types of vulnerabilities. However, a comprehensive tool capable of detecting a wide range of vulnerabilities with high accuracy is lacking. This paper introduces LLM-SmartAudit, a novel framework leveraging the advanced capabilities of Large Language Models (LLMs) to detect and analyze vulnerabilities in smart contracts. Using a multi-agent conversational approach, LLM-SmartAudit employs a collaborative system with specialized agents to enhance the audit process. To evaluate the effectiveness of LLM-SmartAudit, we compiled two distinct datasets: a labeled dataset for benchmarking against traditional tools and a real-world dataset for assessing practical applications. Experimental results indicate that our solution outperforms all traditional smart contract auditing tools, offering higher accuracy and greater efficiency. Furthermore, our framework can detect complex logic vulnerabilities that traditional tools have previously overlooked. Our findings demonstrate that leveraging LLM agents provides a highly effective method for automated smart contract auditing.

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

↑