Litcius/Paper detail

A smart contract vulnerability detection model based on graph neural networks

Daojun Han, Qiuyue Li, Lei Zhang, Tao Xu

202213 citationsDOI

Abstract

In recent years, smart contract vulnerability detection methods mostly view smart contract source code as natural language for processing, which cannot fully capture the semantic and structural features of the source code and has a high rate of false positives and missing positives. To improve the accuracy of vulnerability detection, this paper uses Graph Neural Network to obtain the semantic and structural information of the source code and Convolutional Neural Network to assist learning. We propose a graph neural network-based vulnerability detection model for smart contracts, which transforms smart contracts into control flow graphs, learns graph embedding using graph neural networks, and introduces Convolutional Neural Networks to learn the node order information of control flow graphs, and finally performs vulnerability detection using graph embedding and node order information. Experimenting on real datasets, our accuracy and F1 values are improved and the model can effectively detect smart contract vulnerabilities.

Topics & Concepts

Computer scienceConvolutional neural networkControl flow graphEmbeddingGraphSource codeFalse positive paradoxVulnerability (computing)Artificial intelligenceNode (physics)Artificial neural networkData miningTheoretical computer scienceMachine learningComputer securityProgramming languageStructural engineeringEngineeringBlockchain Technology Applications and SecurityBig Data and Digital EconomySmart Grid Security and Resilience