Reentrancy vulnerability detection based on graph convolutional networks and expert patterns under subspace mapping

Longtao Guo,Huakun Huang,Lingjun Zhao,Peiliang Wang,Shan Jiang,Chunhua Su
DOI: https://doi.org/10.1016/j.cose.2024.103894
IF: 5.105
2024-05-11
Computers & Security
Abstract:Smart contracts with automatic execution capability provide a vast development space for transactions in Blockchain. However, due to the vulnerabilities in smart contracts, Blockchain has suffered huge economic losses, which greatly undermines people's trust in Blockchain and smart contracts. In this paper, we explore a vulnerability detection method based on graph neural networks and combine both contract source code and opcode. The structure of the method consists of four modules, i.e., preprocessing, subspace mapping, feature extraction, and detection modules. In the feature mapping module, we use a multi-subspace mapping approach to explore the impact of different subspace mappings on the detection method. For reentrancy vulnerability, we conducted extensive experiments. The experiments prove that our method achieves 95% accuracy and 94% F1-Score on average.
computer science, information systems
What problem does this paper attempt to address?