BugSweeper: Function-Level Detection of Smart Contract Vulnerabilities Using Graph Neural Networks
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 13 of its 23 references that are in the map. First posted on arXiv 10 Dec 2025.
Builds on
13 of 23 references.
References · 13
- 2014Adam: A Method for Stochastic Optimizationcited by 37,093
- 2017Graph Attention Networkscited by 8,888
- 2017Inductive Representation Learning on Large Graphscited by 6,303
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,910
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2019Graph U-Netscited by 492
- 2019Self-Attention Graph Poolingcited by 421
- 2019ASAP: Adaptive Structure Aware Pooling for Learning Hierarchical Graph Representationscited by 156
- 2019Slither: A Static Analysis Framework For Smart Contractscited by 88
- 2020Detecting Code Clones with Graph Neural Networkand Flow-Augmented Abstract Syntax Treecited by 69
- 2019Manticore: A User-Friendly Symbolic Execution Framework for Binaries and Smart Contractscited by 36
- 2021Smart Contract Vulnerability Detection: From Pure Neural Network to Interpretable Graph Feature and Expert Pattern Fusioncited by 24
1 more
Built on by
Citing papers per year: 2026: 1.
1 paper.