Small sample smart contract vulnerability detection method based on multi-layer feature fusion

被引:0
|
作者
Fan, Jinlin [1 ]
He, Yaqiong [1 ]
Wu, Huaiguang [1 ]
机构
[1] Zhengzhou Univ Light Ind, Zhengzhou 450001, Peoples R China
基金
中国国家自然科学基金;
关键词
Smart contract; BERT model; Vulnerability detection; Small sample; Data enhancement;
D O I
10.1007/s40747-025-01782-3
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The identification of vulnerabilities in smart contracts is necessary for ensuring their security. As a pre-trained language model, BERT has been employed in the detection of smart contract vulnerabilities, exhibiting high accuracy in tasks. However, it has certain limitations. Existing methods solely depend on features extracted from the final layer, thereby disregarding the potential contribution of features from other layers. To address these issues, this paper proposes a novel method, which is named multi-layer feature fusion (MULF). Experiments investigate the impact of utilizing features from other layers on performance improvement. To the best of our knowledge, this is the first instance of multi-layer feature sequence fusion in the field of smart contract vulnerability detection. Furthermore, there is a special type of patched contract code that contains vulnerability features which need to be studied. Therefore, to overcome the challenges posed by limited smart contract vulnerability datasets and high false positive rates, we introduce a data augmentation technique that incorporates function feature screening with those special smart contracts into the training set. To date, this method has not been reported in the literature. The experimental results demonstrate that the MULF model significantly enhances the performance of smart contract vulnerability identification compared to other models. The MULF model achieved accuracies of 98.95% for reentrancy vulnerabilities, 96.27% for timestamp dependency vulnerabilities, and 87.40% for overflow vulnerabilities, which are significantly higher than those achieved by existing methods.
引用
收藏
页数:26
相关论文
共 50 条
  • [1] RTMS: A Smart Contract Vulnerability Detection Method Based on Feature Fusion and Vulnerability Correlations
    Gao, Gaimei
    Li, Zilu
    Jin, Lizhong
    Liu, Chunxia
    Li, Junji
    Meng, Xiangqi
    ELECTRONICS, 2025, 14 (04):
  • [2] Smart Contract Vulnerability Detection Based on Multimodal Feature Fusion
    Yu, Jie
    Yu, Xiao
    Li, Jiale
    Sun, Haoxin
    Sun, Mengdi
    ADVANCED INTELLIGENT COMPUTING TECHNOLOGY AND APPLICATIONS, PT III, ICIC 2024, 2024, 14864 : 344 - 355
  • [3] 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)
  • [4] Detection and Segmentation of Breast Masses Based on Multi-Layer Feature Fusion
    An, Jiancheng
    Yu, Hui
    Bai, Ru
    Li, Jintong
    Wang, Yue
    Cao, Rui
    METHODS, 2022, 202 : 54 - 61
  • [5] A Novel Descriptor for Pedestrian Detection Based on Multi-layer Feature Fusion
    Xie, Zijie
    Yang, Rong
    Guan, Wang
    Niu, Junyu
    Wang, Yun
    2020 IEEE INTERNATIONAL CONFERENCE ON REAL-TIME COMPUTING AND ROBOTICS (IEEE-RCAR 2020), 2020, : 146 - 151
  • [6] Smart Contract Vulnerability Detection Method Based on Feature Graph and Multiple Attention Mechanisms
    He, Zhenxiang
    Zhao, Zhenyu
    Chen, Ke
    Liu, Yanlin
    CMC-COMPUTERS MATERIALS & CONTINUA, 2024, 79 (02): : 3023 - 3045
  • [7] 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
  • [8] Small infrared target detection based on multi-layer data fusion
    School of Electronics and Information Engineering, Hebei University of Technology, Tianjin, China
    J. Inf. Comput. Sci., 9 (3505-3517):
  • [9] An Integrated Smart Contract Vulnerability Detection Tool Using Multi-Layer Perceptron on Real-Time Solidity Smart Contracts
    Colin, Lee Song Haw
    Mohan, Purnima Murali
    Pan, Jonathan
    Keong, Peter Loh Kok
    IEEE ACCESS, 2024, 12 : 23549 - 23567
  • [10] VulTR: Software vulnerability detection model based on multi-layer key feature enhancement
    He, Haitao
    Wang, Sheng
    Wang, Yanmin
    Liu, Ke
    Yu, Lu
    COMPUTERS & SECURITY, 2025, 148