A Novel Smart Contract Vulnerability Detection Method Based on Information Graph and Ensemble Learning

被引:32
|
作者
Zhang, Lejun [1 ,2 ,3 ]
Wang, Jinlong [1 ]
Wang, Weizheng [4 ]
Jin, Zilong [5 ]
Zhao, Chunhui [6 ]
Cai, Zhennao [7 ]
Chen, Huiling [7 ]
机构
[1] Yangzhou Univ, Coll Informat Engn, Yangzhou 225127, Jiangsu, Peoples R China
[2] Minist Educ, Res & Dev Ctr E Learning, Beijing 100039, Peoples R China
[3] Guangzhou Univ, Cyberspace Inst Adv Technol, Guangzhou 510006, Peoples R China
[4] City Univ Hong Kong, Comp Sci Dept, Kowloon Tong, Hong Kong, Peoples R China
[5] Nanjing Univ Informat Sci & Technol, Sch Comp & Software, Nanjing 210044, Peoples R China
[6] Harbin Engn Univ, Coll Comp Sci & Technol, Harbin 150001, Peoples R China
[7] Wenzhou Univ, Dept Comp Sci & Artificial Intelligence, Wenzhou 325035, Peoples R China
基金
中国国家自然科学基金;
关键词
smart contract; vulnerability detection; blockchain security; operation flow; Ensemble Learning; information graph; DIAGNOSIS; MODEL;
D O I
10.3390/s22093581
中图分类号
O65 [分析化学];
学科分类号
070302 ; 081704 ;
摘要
Blockchain presents a chance to address the security and privacy issues of the Internet of Things; however, blockchain itself has certain security issues. How to accurately identify smart contract vulnerabilities is one of the key issues at hand. Most existing methods require large-scale data support to avoid overfitting; machine learning (ML) models trained on small-scale vulnerability data are often difficult to produce satisfactory results in smart contract vulnerability prediction. However, in the real world, collecting contractual vulnerability data requires huge human and time costs. To alleviate these problems, this paper proposed an ensemble learning (EL)-based contract vulnerability prediction method, which is based on seven different neural networks using contract vulnerability data for contract-level vulnerability detection. Seven neural network (NN) models were first pretrained using an information graph (IG) consisting of source datasets, which then were integrated into an ensemble model called Smart Contract Vulnerability Detection method based on Information Graph and Ensemble Learning (SCVDIE). The effectiveness of the SCVDIE model was verified using a target dataset composed of IG, and then its performances were compared with static tools and seven independent data-driven methods. The verification and comparison results show that the proposed SCVDIE method has higher accuracy and robustness than other data-driven methods in the target task of predicting smart contract vulnerabilities.
引用
收藏
页数:25
相关论文
共 50 条
  • [1] Smart Contract Vulnerability Detection Method Based on Feature Graph and Multiple Attention Mechanisms
    He, Zhenxiang
    Zhao, Zhenyu
    Chen, Ke
    Liu, Yanlin
    [J]. CMC-COMPUTERS MATERIALS & CONTINUA, 2024, 79 (02): : 3023 - 3045
  • [2] HGAT: smart contract vulnerability detection method based on hierarchical graph attention network
    Chuang Ma
    Shuaiwu Liu
    Guangxia Xu
    [J]. Journal of Cloud Computing, 12
  • [3] HGAT: smart contract vulnerability detection method based on hierarchical graph attention network
    Ma, Chuang
    Liu, Shuaiwu
    Xu, Guangxia
    [J]. JOURNAL OF CLOUD COMPUTING-ADVANCES SYSTEMS AND APPLICATIONS, 2023, 12 (01):
  • [4] A smart contract vulnerability detection method based on deep learning with opcode sequences
    Li, Peiqiang
    Wang, Guojun
    Xing, Xiaofei
    Zhu, Jinyao
    Gu, Wanyi
    Zhai, Guangxin
    [J]. PEER-TO-PEER NETWORKING AND APPLICATIONS, 2024,
  • [5] Towards Auto Contract Generation and Ensemble-based Smart Contract Vulnerability Detection
    Puducherry, K. Lakshminarayana
    Puducherry, K. Sathiyamurthy
    [J]. INTERNATIONAL JOURNAL OF ELECTRICAL AND COMPUTER ENGINEERING SYSTEMS, 2022, 13 (09) : 747 - 757
  • [6] A Graph Neural Network-Based Smart Contract Vulnerability Detection Method with Artificial Rule
    Wei, Ziyue
    Zheng, Weining
    Su, Xiaohong
    Tao, Wenxin
    Wang, Tiantian
    [J]. ARTIFICIAL NEURAL NETWORKS AND MACHINE LEARNING, ICANN 2023, PT IV, 2023, 14257 : 241 - 252
  • [7] A Smart Contract Vulnerability Detection Method Based on Multimodal Feature Fusion and Deep Learning
    Li, Jinggang
    Lu, Gehao
    Gao, Yulian
    Gao, Feng
    [J]. MATHEMATICS, 2023, 11 (23)
  • [8] SCGformer: Smart contract vulnerability detection based on control flow graph and transformer
    Gong, KeXin
    Song, Xiangmei
    Wang, Na
    Wang, Chunyang
    Zhu, Huijuan
    [J]. IET Blockchain, 2023, 3 (04): : 213 - 221
  • [9] Smart Contract Vulnerability Detection Using Graph Neural Networks
    Zhuang, Yuan
    Liu, Zhenguang
    Qian, Peng
    Liu, Qi
    Wang, Xiang
    He, Qinming
    [J]. PROCEEDINGS OF THE TWENTY-NINTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2020, : 3283 - 3290
  • [10] A Novel Smart Contract Reentrancy Vulnerability Detection Model based on BiGAS
    Zhang, Lejun
    Li, Yuan
    Guo, Ran
    Wang, Guopeng
    Qiu, Jing
    Su, Shen
    Liu, Yuan
    Xu, Guangxia
    Chen, Huiling
    Tian, Zhihong
    [J]. JOURNAL OF SIGNAL PROCESSING SYSTEMS FOR SIGNAL IMAGE AND VIDEO TECHNOLOGY, 2024, 96 (03): : 215 - 237