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 条
[21]   HGAT: smart contract vulnerability detection method based on hierarchical graph attention network [J].
Ma, Chuang ;
Liu, Shuaiwu ;
Xu, Guangxia .
JOURNAL OF CLOUD COMPUTING-ADVANCES SYSTEMS AND APPLICATIONS, 2023, 12 (01)
[22]   A Novel Smart Contract Vulnerability Detection Method Based on Information Graph and Ensemble Learning [J].
Zhang, Lejun ;
Wang, Jinlong ;
Wang, Weizheng ;
Jin, Zilong ;
Zhao, Chunhui ;
Cai, Zhennao ;
Chen, Huiling .
SENSORS, 2022, 22 (09)
[23]   Smart Contract Vulnerability Detection Using Code Representation Fusion [J].
Wang, Ben ;
Chu, Hanting ;
Zhang, Pengcheng ;
Dong, Hai .
2021 28TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2021), 2021, :564-565
[24]   DeepFusion: Smart Contract Vulnerability Detection Via Deep Learning and Data Fusion [J].
Chu, Hanting ;
Zhang, Pengcheng ;
Dong, Hai ;
Xiao, Yan ;
Ji, Shunhui .
IEEE TRANSACTIONS ON RELIABILITY, 2024,
[25]   Smart Contract Vulnerability Detection Based on Symbolic Execution Technology [J].
Liu, Yiping ;
Xu, Jie ;
Cui, Baojiang .
CYBER SECURITY, CNCERT 2021, 2022, 1506 :193-207
[26]   A smart contract vulnerability line detection method based on graph neural network and fusion of multidimensional code representation [J].
Xiong, Huanliang ;
Wu, Canghai ;
Chen, Jiaxin ;
Wang, Yinglong ;
Zhong, Yulin .
APPLIED SOFT COMPUTING, 2025, 180
[27]   HyWE: A Hybrid Word Embedding Method for Smart Contract Vulnerability Detection [J].
Chen, Jinfu ;
Li, Zhehao ;
Wang, Dongjie .
2024 IEEE 35TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS, ISSREW, 2024, :179-186
[28]   Smart Contract Vulnerability Detection Method Based on Edge-Deactivation Graph Convolutional Network [J].
Fan Dong ;
Cheng Jieren ;
Tang Xiangyan ;
Lu Kai .
8TH INTERNATIONAL CONFERENCE ON INFORMATION SCIENCE, COMMUNICATION AND COMPUTING, 2025, 434 :120-136
[29]   A Graph Neural Network-Based Smart Contract Vulnerability Detection Method with Artificial Rule [J].
Wei, Ziyue ;
Zheng, Weining ;
Su, Xiaohong ;
Tao, Wenxin ;
Wang, Tiantian .
ARTIFICIAL NEURAL NETWORKS AND MACHINE LEARNING, ICANN 2023, PT IV, 2023, 14257 :241-252
[30]   Smart Contract Vulnerability Detection Method Based on Capsule Network and Attention Mechanism [J].
Lu L. ;
Lai J. .
Huanan Ligong Daxue Xuebao/Journal of South China University of Technology (Natural Science), 2023, 51 (05) :36-44