Smart contract vulnerability detection using wide and deep neural network

被引:1
作者
Osei, Samuel Banning [1 ]
Ma, Zhongchen [1 ]
Huang, Rubing [2 ]
机构
[1] Jiangsu Univ, Sch Comp Sci & Commun Engn, Zhenjiang 212013, Jiangsu, Peoples R China
[2] Macau Univ Sci & Technol, Sch Comp Sci & Engn, Taipa 999078, Macau, Peoples R China
基金
中国国家自然科学基金;
关键词
Smart contract; Vulnerability detection; Reentrancy; Timestamp; Wide and deep neural network;
D O I
10.1016/j.scico.2024.103172
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Smart contracts, integral to blockchain technology, automate agreements without intermediaries, ensuring transparency and security across various sectors. However, the immutable nature of blockchain exposes deployed contracts to potential risks if they contain vulnerabilities. Current approaches, including symbolic execution and graph-based machine learning, aim to ensure smart contract security. However, these methods suffer from limitations such as high false positive rates, heavy reliance on trained data, and over-generalization. The goal of this paper is to investigate the application of Wide and Deep Neural Networks in identifying vulnerabilities within smart contracts. We introduce WIDENNET, a method based on deep neural networks, designed to detect reentrancy and timestamp dependence vulnerabilities in smart contracts. Our approach involves extracting bytecodes from the contracts and converting them into Operational Codes (OPCODES), which are then transformed into distinct vector representations. These vectors are subsequently fed into the neural network to extract both complex and simple patterns for vulnerability detection. Testing on real-world datasets yielded an average accuracy of 83.07% and a precision of 83.13%. Our method offers a potential solution to mitigate vulnerabilities in blockchain applications.
引用
收藏
页数:11
相关论文
共 50 条
[1]   An Attention-based Wide and Deep Neural Network for Reentrancy Vulnerability Detection in Smart Contracts [J].
Osei, Samuel Banning ;
Huang, Rubing ;
Ma, Zhongchen .
JOURNAL OF SYSTEMS AND SOFTWARE, 2025, 223
[2]   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
[3]   CodeNet: Code-Targeted Convolutional Neural Network Architecture for Smart Contract Vulnerability Detection [J].
Hwang, Seon-Jin ;
Choi, Seok-Hwan ;
Shin, Jinmyeong ;
Choi, Yoon-Ho .
IEEE ACCESS, 2022, 10 :32595-32607
[4]   An integrated deep learning model for Ethereum smart contract vulnerability detection [J].
Jain, Vikas Kumar ;
Tripathi, Meenakshi .
INTERNATIONAL JOURNAL OF INFORMATION SECURITY, 2024, 23 (01) :557-575
[5]   An integrated deep learning model for Ethereum smart contract vulnerability detection [J].
Vikas Kumar Jain ;
Meenakshi Tripathi .
International Journal of Information Security, 2024, 23 :557-575
[6]   Semantic-aware Graph Neural Network for Smart Contract Bytecode Vulnerability Detection [J].
Zhao B. ;
Shangguan C. ;
Peng X. ;
An Y. ;
Tong J. ;
Yuan A. .
Gongcheng Kexue Yu Jishu/Advanced Engineering Sciences, 2022, 54 (02) :49-55
[7]   A Smart Contract Vulnerability Detection Mechanism Based on Deep Learning and Expert Rules [J].
Liu, Zhenpeng ;
Jiang, Mingxiao ;
Zhang, Shengcong ;
Zhang, Jialiang ;
Liu, Yi .
IEEE ACCESS, 2023, 11 :77990-77999
[8]   Smart Contract Vulnerability Detection Based on Deep Learning and Multimodal Decision Fusion [J].
Deng, Weichu ;
Wei, Huanchun ;
Huang, Teng ;
Cao, Cong ;
Peng, Yun ;
Hu, Xuan .
SENSORS, 2023, 23 (16)
[9]   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,
[10]   Smart contract vulnerability detection method based on pre-training and novel timing graph neural network [J].
Zhuang, Yuan ;
Fan, Zekai ;
Wang, Cheng ;
Sun, Jianguo ;
Li, Yaolin .
Tongxin Xuebao/Journal on Communications, 2024, 45 (09) :101-114