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 条
  • [21] HGAT: smart contract vulnerability detection method based on hierarchical graph attention network
    Chuang Ma
    Shuaiwu Liu
    Guangxia Xu
    Journal of Cloud Computing, 12
  • [22] Smart Contract Vulnerability Detection Technique: A Survey
    Qian P.
    Liu Z.-G.
    He Q.-M.
    Huang B.-T.
    Tian D.-Z.
    Wang X.
    Ruan Jian Xue Bao/Journal of Software, 2022, 33 (08): : 3059 - 3085
  • [23] GraBit: A Sequential Model-Based Framework for Smart Contract Vulnerability Detection
    Zhu, Huijuan
    Yang, Kaixuan
    Wang, Liangmin
    Xu, Zhicheng
    Sheng, Victor S.
    2023 IEEE 34TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING, ISSRE, 2023, : 568 - 577
  • [24] A Novel Smart Contract Vulnerability Detection Method Based on Information Graph and Ensemble Learning
    Zhang, Lejun
    Wang, Jinlong
    Wang, Weizheng
    Jin, Zilong
    Zhao, Chunhui
    Cai, Zhennao
    Chen, Huiling
    SENSORS, 2022, 22 (09)
  • [25] HGAT: smart contract vulnerability detection method based on hierarchical graph attention network
    Ma, Chuang
    Liu, Shuaiwu
    Xu, Guangxia
    JOURNAL OF CLOUD COMPUTING-ADVANCES SYSTEMS AND APPLICATIONS, 2023, 12 (01):
  • [26] Smart Contract Vulnerability Detection Based on Automated Feature Extraction and Feature Interaction
    Li, Lina
    Liu, Yang
    Sun, Guodong
    Li, Nianfeng
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2024, 36 (09) : 4916 - 4929
  • [27] A Smart Contract Vulnerability Detection Method Based on Multimodal Feature Fusion and Deep Learning
    Li, Jinggang
    Lu, Gehao
    Gao, Yulian
    Gao, Feng
    MATHEMATICS, 2023, 11 (23)
  • [28] Semantic-aware Graph Neural Network for Smart Contract Bytecode Vulnerability Detection
    Zhao B.
    Shangguan C.
    Peng X.
    An Y.
    Tong J.
    Yuan A.
    Gongcheng Kexue Yu Jishu/Advanced Engineering Sciences, 2022, 54 (02): : 49 - 55
  • [29] Contractsentry: a static analysis tool for smart contract vulnerability detection
    Wang, Shiji
    Zhao, Xiangfu
    AUTOMATED SOFTWARE ENGINEERING, 2025, 32 (01)
  • [30] Smart Contract Vulnerability Detection Based on Hybrid Attention Mechanism Model
    Wu, Huaiguang
    Dong, Hanjie
    He, Yaqiong
    Duan, Qianheng
    APPLIED SCIENCES-BASEL, 2023, 13 (02):