arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.09385cs.CRcs.AIcs.LG
收藏

BugSweeper: 使用图神经网络进行智能合约漏洞的函数级检测

BugSweeper: Function-Level Detection of Smart Contract Vulnerabilities Using Graph Neural Networks

Uisang Lee, Changhoon Chung, Junmo Lee, Soo-Mook Moon

AI总结:

BugSweeper通过图神经网络实现智能合约漏洞的自动检测,无需人工规则,提升检测效率和适应性。

摘要:

以太坊的快速发展使其更重要迅速且准确地检测智能合约漏洞。虽然基于机器学习的方法已经展现了一些潜力,但许多仍然依赖于由领域专家设计的规则基于预处理。规则基于预处理方法往往丢弃了源代码中的关键上下文,可能导致某些漏洞被忽视,并限制了对新出现威胁的适应性。我们介绍了BugSweeper,一个端到端的深度学习框架,能够直接从源代码中检测漏洞,而无需手动工程。BugSweeper将每个Solidity函数表示为函数级抽象语法图(FLAG),这是一种新的图,结合了其抽象语法树(AST)和增强的控制流和数据流语义。然后,我们的两阶段图神经网络(GNN)分析这些图。第一阶段的GNN从语法图中过滤噪声,而第二阶段的GNN进行高层次推理以检测多种漏洞。广泛的实验表明,BugSweeper在实际合同上显著优于所有最先进的检测方法。通过去除对手工规则的依赖,我们的方法提供了一种稳健、自动且可扩展的解决方案,用于安全智能合约,而无需依赖安全专家。

英文摘要:

The rapid growth of Ethereum has made it more important to quickly and accurately detect smart contract vulnerabilities. While machine-learning-based methods have shown some promise, many still rely on rule-based preprocessing designed by domain experts. Rule-based preprocessing methods often discard crucial context from the source code, potentially causing certain vulnerabilities to be overlooked and limiting adaptability to newly emerging threats. We introduce BugSweeper, an end-to-end deep learning framework that detects vulnerabilities directly from the source code without manual engineering. BugSweeper represents each Solidity function as a Function-Level Abstract Syntax Graph (FLAG), a novel graph that combines its Abstract Syntax Tree (AST) with enriched control-flow and data-flow semantics. Then, our two-stage Graph Neural Network (GNN) analyzes these graphs. The first-stage GNN filters noise from the syntax graphs, while the second-stage GNN conducts high-level reasoning to detect diverse vulnerabilities. Extensive experiments on real-world contracts show that BugSweeper significantly outperforms all state-of-the-art detection methods. By removing the need for handcrafted rules, our approach offers a robust, automated, and scalable solution for securing smart contracts without any dependence on security experts.

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

↑