Combining Graph Neural Networks with Expert Knowledge for Smart Contract Vulnerability Detection
Not on the map. Why?
Abstract (arXiv)
Smart contract vulnerability detection draws extensive attention in recent years due to the substantial losses caused by hacker attacks. Existing efforts for contract security analysis heavily rely on rigid rules defined by experts, which are labor-intensive and non-scalable. More importantly, expert-defined rules tend to be error-prone and suffer the inherent risk of being cheated by crafty attackers. Recent researches focus on the symbolic execution and formal analysis of smart contracts for vulnerability detection, yet to achieve a precise and scalable solution. Although several methods have been proposed to detect vulnerabilities in smart contracts, there is still a lack of effort that considers combining expert-defined security patterns with deep neural networks. In this paper, we explore using graph neural networks and expert knowledge for smart contract vulnerability detection. Specifically, we cast the rich control- and data- flow semantics of the source code into a contract graph. To highlight the critical nodes in the graph, we further design a node elimination phase to normalize the graph. Then, we propose a novel temporal message propagation network to extract the graph feature from the normalized graph, and combine the graph feature with designed expert patterns to yield a final detection system. Extensive experiments are conducted on all the smart contracts that have source code in Ethereum and VNT Chain platforms. Empirical results show significant accuracy improvements over the state-of-the-art methods on three types of vulnerabilities, where the detection accuracy of our method reaches 89.15%, 89.02%, and 83.21% for reentrancy, timestamp dependence, and infinite loop vulnerabilities, respectively.
Key facts. Cited by 34 papers in the map (data through 14 Oct 2026). Builds on 24 of its 64 references that are in the map. First posted on arXiv 24 Jul 2021.
Builds on
24 of 64 references.
References · 24
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2017Graph Attention Networkscited by 8,923
- 2017Neural Message Passing for Quantum Chemistrycited by 3,487
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,367
- 2016Convolutional Neural Networks on Graphs with Fast Localized Spectral Filteringcited by 2,089
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
- 2017A Comprehensive Survey of Graph Embedding: Problems, Techniques and Applicationscited by 260
- 2017Learning to Represent Programs with Graphscited by 220
- 2018GaAN: Gated Attention Networks for Learning on Large and Spatiotemporal Graphscited by 165
- 2018Adaptive Graph Convolutional Neural Networkscited by 155
- 2019Slither: A Static Analysis Framework For Smart Contractscited by 89
- 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
12 more
- 2018Securify: Practical Security Analysis of Smart Contractscited by 61
- 2018ContractFuzzer: Fuzzing Smart Contracts for Vulnerability Detectioncited by 32
- 2018Finding The Greedy, Prodigal, and Suicidal Contracts at Scalecited by 19
- 2018Sereum: Protecting Existing Smart Contracts Against Re-Entrancy Attackscited by 17
- 2018A Semantic Framework for the Security Analysis of Ethereum smart contractscited by 16
- 2019Blockchain Technology Overviewcited by 12
- 2020Learning to map source code to software vulnerability using code-as-a-graphcited by 9
- 2017Untangling Blockchain: A Data Processing View of Blockchain Systemscited by 8
- 2018Convolutional Neural Networks over Control Flow Graphs for Software Defect Predictioncited by 8
- 2017BLOCKBENCH: A Framework for Analyzing Private Blockchainscited by 5
- 2018Towards Safer Smart Contracts: A Sequence Learning Approach to Detecting Security Threatscited by 4
- 2019PD-ML-Lite: Private Distributed Machine Learning from Lighweight Cryptographycited by 1
Built on by
Citing papers per year: 2021: 1; 2022: 10; 2023: 8; 2024: 10; 2025: 2; 2026: 3.
34 papers.
Sort:
By area:
- 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 20222D Human Pose Estimation: A Surveycited by 21
- 2022FedRecAttack: Model Poisoning Attack to Federated Recommendationcited by 20
- 2021Causal Incremental Graph Convolution for Recommender System Retrainingcited by 14
- 2025Uncertainty-Aware Graph Neural Networks: A Multi-Hop Evidence Fusion Approachcited by 14
- 2022Poison Attack and Defense on Deep Source Code Processing Modelscited by 11
- 2022Link-Backdoor: Backdoor Attack on Link Prediction via Node Injectioncited by 10
- 2024Use of Graph Neural Networks in Aiding Defensive Cyber Operationscited by 7
- 2023Graph Mining for Cybersecurity: A Surveycited by 5
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 5
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
22 more
- 2022MANDO: Multi-Level Heterogeneous Graph Embeddings for Fine-Grained Detection of Smart Contract Vulnerabilitiescited by 4
- 2023Knowledge-guided Causal Intervention for Weakly-supervised Object Localizationcited by 4
- 2023VulnSense: Efficient Vulnerability Detection in Ethereum Smart Contracts by Multimodal Learning with Graph Neural Network and Language Modelcited by 4
- 2024The Role of Transformer Models in Advancing Blockchain Technology: A Systematic Surveycited by 3
- 2022Demystifying Bitcoin Address Behavior via Graph Neural Networkscited by 2
- 2024Machine Learning for Blockchain Data Analysis: Progress and Opportunitiescited by 2
- 2024Vulnerability Detection in Ethereum Smart Contracts via Machine Learning: A Qualitative Analysiscited by 2
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilitiescited by 2
- 2022Deep Smart Contract Intent Detectioncited by 1
- 2022FastPacket: Towards Pre-trained Packets Embedding based on FastText for next-generation NIDScited by 0
- 2022Who is Gambling? Finding Cryptocurrency Gamblers Using Multi-modal Retrieval Methodscited by 0
- 2023An experimental study in Real-time Facial Emotion Recognition on new 3RL datasetcited by 0
- 2023Vulnerability Detection Using Two-Stage Deep Learning Modelscited by 0
- 2023Sequential Graph Neural Networks for Source Code Vulnerability Identificationcited by 0
- 2024CONCORD: Towards a DSL for Configurable Graph Code Representationcited by 0
- 2024Vulnerability Detection in Smart Contracts: A Comprehensive Surveycited by 0
- 2024JANUS: A Difference-Oriented Analyzer For Financial Centralization Risks in Smart Contractscited by 0
- 2024Knowledge Migration Framework for Smart Contract Vulnerability Detectioncited by 0
- 2025Poisoned Source Code Detection in Code Modelscited by 0
- 2026ORACAL: A Robust and Explainable Multimodal Framework for Smart Contract Vulnerability Detection with Causal Graph Enrichmentcited by 0
- 2026CHAINTRIX: A multi-pipeline LLM-augmented framework for automated smart-contract security auditingcited by 0
- 2026AttackPathGNN: Cross-function vulnerability detection in smart contracts using state interference graphs and conjunction poolingcited by 0
- 2026AttackPathGNN: Cross-function vulnerability detection in smart contracts using state interference graphs and conjunction pooling4 Jun 2026
- 2026CHAINTRIX: A multi-pipeline LLM-augmented framework for automated smart-contract security auditing10 May 2026
- 2026ORACAL: A Robust and Explainable Multimodal Framework for Smart Contract Vulnerability Detection with Causal Graph Enrichment30 Mar 2026
- 2025Uncertainty-Aware Graph Neural Networks: A Multi-Hop Evidence Fusion Approach16 Jun 2025
- 2025Poisoned Source Code Detection in Code Models19 Feb 2025
- 2024Knowledge Migration Framework for Smart Contract Vulnerability Detection15 Dec 2024
- 2024JANUS: A Difference-Oriented Analyzer For Financial Centralization Risks in Smart Contracts5 Dec 2024
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilities15 Sep 2024
- 2024The Role of Transformer Models in Advancing Blockchain Technology: A Systematic Survey2 Sep 2024
- 2024Vulnerability Detection in Ethereum Smart Contracts via Machine Learning: A Qualitative Analysis26 Jul 2024
- 2024Vulnerability Detection in Smart Contracts: A Comprehensive Survey8 Jul 2024
- 2024Machine Learning for Blockchain Data Analysis: Progress and Opportunities28 Apr 2024
22 more
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Tasks15 Mar 2024
- 2024CONCORD: Towards a DSL for Configurable Graph Code Representation31 Jan 2024
- 2024Use of Graph Neural Networks in Aiding Defensive Cyber Operations11 Jan 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectives2 Oct 2023
- 2023VulnSense: Efficient Vulnerability Detection in Ethereum Smart Contracts by Multimodal Learning with Graph Neural Network and Language Model15 Sep 2023
- 2023Sequential Graph Neural Networks for Source Code Vulnerability Identification23 May 2023
- 2023Vulnerability Detection Using Two-Stage Deep Learning Models8 May 2023
- 2023An experimental study in Real-time Facial Emotion Recognition on new 3RL dataset6 Apr 2023
- 2023Graph Mining for Cybersecurity: A Survey2 Apr 2023
- 2023Knowledge-guided Causal Intervention for Weakly-supervised Object Localization3 Jan 2023
- 2022Who is Gambling? Finding Cryptocurrency Gamblers Using Multi-modal Retrieval Methods27 Nov 2022
- 2022Demystifying Bitcoin Address Behavior via Graph Neural Networks26 Nov 2022
- 2022Deep Smart Contract Intent Detection19 Nov 2022
- 2022Poison Attack and Defense on Deep Source Code Processing Models31 Oct 2022
- 2022FastPacket: Towards Pre-trained Packets Embedding based on FastText for next-generation NIDS29 Sep 2022
- 2022MANDO: Multi-Level Heterogeneous Graph Embeddings for Fine-Grained Detection of Smart Contract Vulnerabilities28 Aug 2022
- 2022Link-Backdoor: Backdoor Attack on Link Prediction via Node Injection14 Aug 2022
- 2022A Survey of Deep Learning Models for Structural Code Understanding3 May 2022
- 20222D Human Pose Estimation: A Survey15 Apr 2022
- 2022FedRecAttack: Model Poisoning Attack to Federated Recommendation1 Apr 2022
- 2021Causal Incremental Graph Convolution for Recommender System Retraining16 Aug 2021
- 2023Large Language Model-Powered Smart Contract Vulnerability Detection: New Perspectivescited by 48
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 20222D Human Pose Estimation: A Surveycited by 21
- 2022FedRecAttack: Model Poisoning Attack to Federated Recommendationcited by 20
- 2021Causal Incremental Graph Convolution for Recommender System Retrainingcited by 14
- 2025Uncertainty-Aware Graph Neural Networks: A Multi-Hop Evidence Fusion Approachcited by 14
- 2022Link-Backdoor: Backdoor Attack on Link Prediction via Node Injectioncited by 10
- 2024Use of Graph Neural Networks in Aiding Defensive Cyber Operationscited by 7
- 2023Graph Mining for Cybersecurity: A Surveycited by 5
- 2024A Survey of Source Code Representations for Machine Learning-Based Cybersecurity Taskscited by 5
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
- 2022MANDO: Multi-Level Heterogeneous Graph Embeddings for Fine-Grained Detection of Smart Contract Vulnerabilitiescited by 4
12 most cited of 33 All 33 (JSON)
- 2026AttackPathGNN: Cross-function vulnerability detection in smart contracts using state interference graphs and conjunction pooling4 Jun 2026
- 2026CHAINTRIX: A multi-pipeline LLM-augmented framework for automated smart-contract security auditing10 May 2026
- 2026ORACAL: A Robust and Explainable Multimodal Framework for Smart Contract Vulnerability Detection with Causal Graph Enrichment30 Mar 2026
- 2025Uncertainty-Aware Graph Neural Networks: A Multi-Hop Evidence Fusion Approach16 Jun 2025
- 2025Poisoned Source Code Detection in Code Models19 Feb 2025
- 2024Knowledge Migration Framework for Smart Contract Vulnerability Detection15 Dec 2024
- 2024JANUS: A Difference-Oriented Analyzer For Financial Centralization Risks in Smart Contracts5 Dec 2024
- 2024Detection Made Easy: Potentials of Large Language Models for Solidity Vulnerabilities15 Sep 2024
- 2024The Role of Transformer Models in Advancing Blockchain Technology: A Systematic Survey2 Sep 2024
- 2024Vulnerability Detection in Ethereum Smart Contracts via Machine Learning: A Qualitative Analysis26 Jul 2024
- 2024Vulnerability Detection in Smart Contracts: A Comprehensive Survey8 Jul 2024
- 2024Machine Learning for Blockchain Data Analysis: Progress and Opportunities28 Apr 2024
12 newest of 33 All 33 (JSON)