A Smart Contract Vulnerability Detection Model Based on Syntactic and Semantic Fusion Learning

被引:0
|
作者
Han D. [1 ]
Li Q. [2 ]
Zhang L. [1 ]
Xu T. [1 ]
机构
[1] Henan Engineering Research Center of Intelligent Technology and Application, Henan University, Kaifeng
[2] School of Computer and Information Engineering, Henan University, Kaifeng
关键词
D O I
10.1155/2023/9212269
中图分类号
学科分类号
摘要
As a trusted decentralized application, smart contracts manage a large number of digital assets on the blockchain. Vulnerability detection of smart contracts is an important part of ensuring the security of digital assets. At present, many researchers extract features of smart contract source code for vulnerability detection based on deep learning methods. However, the current research mainly focuses on the single representation form of the source code, which cannot fully obtain the rich semantic and structural information contained in the source code, so it is not conducive to the detection of various and complex smart contract vulnerabilities. Aiming at this problem, this paper proposes a vulnerability detection model based on the fusion of syntax and semantic features. The syntactic and semantic representation of the source code is obtained from the abstract syntax tree and control flow graph of the smart contract through TextCNN and Graph Neural Network. The syntactic and semantic features are fused, and the fused features are used to detect vulnerabilities. Experiments show that the detection accuracy and recall rate of this model have been improved on the detection tasks of five types of vulnerabilities, with an average precision of 96% and a recall rate of 90%, which can effectively identify smart contract vulnerabilities. © 2023 Daojun Han et al.
引用
下载
收藏
相关论文
共 50 条
  • [21] Smart Contract Vulnerability Detection Model Based on Siamese Network (SCVSN): A Case Study of Reentrancy Vulnerability
    Guo, Ran
    Chen, Weijie
    Zhang, Lejun
    Wang, Guopeng
    Chen, Huiling
    ENERGIES, 2022, 15 (24)
  • [22] Smart contract vulnerability detection based on semantic graph and residual graph convolutional networks with edge attention
    Chen, Da
    Feng, Lin
    Fan, Yuqi
    Shang, Siyuan
    Wei, Zhenchun
    JOURNAL OF SYSTEMS AND SOFTWARE, 2023, 202
  • [23] Smart contract vulnerability detection based on a semantic code structure and a self-designed neural network
    Ren, Xiaojun
    Wu, Yongtang
    Li, Jiaqing
    Hao, Dongmin
    Alam, Muhammad
    COMPUTERS & ELECTRICAL ENGINEERING, 2023, 109
  • [24] Vulnerability Detection for Smart Contract via Backward Bayesian Active Learning
    Zhang, Jiale
    Tu, Liangqiong
    Cai, Jie
    Su, Xiaobing
    Li, Bin
    Chen, Weitong
    Wang, Yu
    APPLIED CRYPTOGRAPHY AND NETWORK SECURITY WORKSHOPS, ACNS 2022, 2022, 13285 : 66 - 83
  • [25] A Survey on Ethereum Smart Contract Vulnerability Detection Using Machine Learning
    Surucu, Onur
    Yeprem, Uygar
    Wilkinson, Connor
    Hilal, Waleed
    Gadsden, S. Andrew
    Yawney, John
    Alsadi, Naseem
    Giuliano, Alessandro
    DISRUPTIVE TECHNOLOGIES IN INFORMATION SCIENCES VI, 2022, 12117
  • [26] FACT: A Fusion Architecture with Contract Templates for semantic and syntactic integration
    Gamble, R.
    Baird, R.
    Flagg, L.
    McClure, M.
    PROCEEDINGS OF THE 2008 IEEE INTERNATIONAL CONFERENCE ON INFORMATION REUSE AND INTEGRATION, 2008, : 380 - +
  • [27] Smart Contract Vulnerability Detection Based on Symbolic Execution Technology
    Liu, Yiping
    Xu, Jie
    Cui, Baojiang
    CYBER SECURITY, CNCERT 2021, 2022, 1506 : 193 - 207
  • [28] Smart contract vulnerability detection based on a bytecode critical path
    Yin, Guisheng
    Gao, Le
    Zhuang, Yuan
    Li, Jun
    Harbin Gongcheng Daxue Xuebao/Journal of Harbin Engineering University, 2022, 43 (02): : 255 - 261
  • [29] Smart Contract Timestamp Vulnerability Detection Based on Code Homogeneity
    Wang, Weizhi
    Xia, Lei
    Zhang, Zhuo
    Meng, Xiankai
    IEICE Transactions on Information and Systems, 2024, E107.D (10) : 1362 - 1366
  • [30] Small sample smart contract vulnerability detection method based on multi-layer feature fusion
    Jinlin Fan
    Yaqiong He
    Huaiguang Wu
    Complex & Intelligent Systems, 2025, 11 (4)