Back to Search Start Over

Smart contract vulnerability detection method based on pre-training and novel timing graph neural network

Authors :
ZHUANG Yuan
FAN Zekai
WANG Cheng
SUN Jianguo
LI Yaolin
Source :
Tongxin xuebao, Vol 45, Pp 101-114 (2024)
Publication Year :
2024
Publisher :
Editorial Department of Journal on Communications, 2024.

Abstract

To address the limitations of current deep learning-based methods in extracting contract bytecode features and representing vulnerability semantics, as well as the shortcomings of the traditional graph neural networks in learning temporal information from contract statements, a method for detecting vulnerabilities in contracts was proposed based on pre-trained and temporal graph neural network. Firstly, the pre-trained model was used to transform smart contract bytecode into a vulnerability semantics-aware contract graph structure. Then, combined with a self-attention mechanism, the event-driven temporal graph neural network was designed to extract temporal information during contract execution. Finally, focusing on reentrant vulnerabilities, timestamp dependency vulnerabilities, and Tx.origin authentication vulnerabilities, extensive experiments were conducted on a dataset of 120 932 actual contracts. The results show that the proposed method significantly outperforms existing approaches.

Details

Language :
Chinese
ISSN :
1000436X
Volume :
45
Database :
Directory of Open Access Journals
Journal :
Tongxin xuebao
Publication Type :
Academic Journal
Accession number :
edsdoj.fcb835e5a8904ff286559029ffdd8fed
Document Type :
article
Full Text :
https://doi.org/10.11959/j.issn.1000-436x.2024163