A Smart Contract Vulnerability Detection Method Based on Heterogeneous Contract Semantic Graphs and Pre-Training Techniques

被引:0
作者
Zhang, Jie [1 ]
Lu, Gehao [1 ]
Yu, Jia [1 ]
机构
[1] Yunnan Univ, Sch Informat Sci & Engn, Kunming 650500, Peoples R China
关键词
smartcontracts; vulnerability detection; heterogeneous contract semantic graphs; pre-training techniques;
D O I
10.3390/electronics13183786
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
The use of smart contracts in areas such as finance, supply chain management, and the Internet of Things has significantly advanced blockchain technology. However, once deployed on the blockchain, smart contracts cannot be modified or revoked. Any vulnerabilities can lead to severe economic losses and data breaches, making pre-deployment vulnerability detection critically important. Traditional smart contract vulnerability detection methods suffer from low accuracy and limited reusability across different scenarios. To enhance detection capabilities, this paper proposes a smart contract vulnerability detection method based on heterogeneous contract semantic graphs and pre-training techniques. Compared to the conventional graph structures used in existing methods, heterogeneous contract semantic graphs contain richer contract information. By integrating these with pre-trained models, our method exhibits stronger vulnerability capture and generalization capabilities. Experimental results show that this method has improved the accuracy, recall, precision, and F1 value in the detection of four widely existing and harmful smart contract vulnerabilities compared with existing methods, which greatly improves the detection ability of smart contract vulnerabilities.
引用
收藏
页数:22
相关论文
共 50 条
  • [41] Research on smart contract vulnerability detection method based on domain features of solidity contracts and attention mechanism
    Wang, Changjing
    Jiang, Huiwen
    Wang, Yuxin
    Huang, Qing
    Zuo, Zhengkang
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2023, 45 (01) : 1513 - 1525
  • [42] A Smart Contract Vulnerability Detection Mechanism Based on Deep Learning and Expert Rules
    Liu, Zhenpeng
    Jiang, Mingxiao
    Zhang, Shengcong
    Zhang, Jialiang
    Liu, Yi
    IEEE ACCESS, 2023, 11 : 77990 - 77999
  • [43] Smart contract vulnerability detection combined with multi-objective detection
    Zhang, Lejun
    Wang, Jinlong
    Wang, Weizheng
    Jin, Zilong
    Su, Yansen
    Chen, Huiling
    COMPUTER NETWORKS, 2022, 217
  • [44] Smart Contract Vulnerability Detection with Self-ensemble Pre-trained Language Models
    Dai, Chaofan
    Ding, Huahua
    Ma, Wubin
    Wu, Yahui
    2024 INTERNATIONAL CONFERENCE ON COMPUTER, INFORMATION AND TELECOMMUNICATION SYSTEMS, CITS 2024, 2024, : 118 - 125
  • [45] Small sample smart contract vulnerability detection method based on multi-layer feature fusion
    Fan, Jinlin
    He, Yaqiong
    Wu, Huaiguang
    COMPLEX & INTELLIGENT SYSTEMS, 2025, 11 (04)
  • [46] Smart Contract Vulnerability Detection Using Code Representation Fusion
    Wang, Ben
    Chu, Hanting
    Zhang, Pengcheng
    Dong, Hai
    2021 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2021), 2021, : 564 - 565
  • [47] Combining Graph Neural Networks With Expert Knowledge for Smart Contract Vulnerability Detection
    Liu, Zhenguang
    Qian, Peng
    Wang, Xiaoyang
    Zhuang, Yuan
    Qiu, Lin
    Wang, Xun
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2023, 35 (02) : 1296 - 1310
  • [48] Intelligent Contract Vulnerability Detection Method Based on Bic-RL
    Zhang, Shuhui
    Hu, Changdong
    Lan, Tian
    Wang, LianHai
    Xu, Shujiang
    Shao, Wei
    2023 INTERNATIONAL CONFERENCE ON DATA SECURITY AND PRIVACY PROTECTION, DSPP, 2023, : 128 - 135
  • [49] DeepFusion: Smart Contract Vulnerability Detection Via Deep Learning and Data Fusion
    Chu, Hanting
    Zhang, Pengcheng
    Dong, Hai
    Xiao, Yan
    Ji, Shunhui
    IEEE TRANSACTIONS ON RELIABILITY, 2024,
  • [50] Smart Contract Vulnerability Detection Based on Multi Graph Convolutional Neural Networks with Self-attention
    Li, Jiale
    Yu, Xiao
    Yu, Jie
    Sun, Haoxin
    Sun, Mengdi
    ADVANCED INTELLIGENT COMPUTING TECHNOLOGY AND APPLICATIONS, PT III, ICIC 2024, 2024, 14864 : 319 - 330