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 条
[31]   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
[32]   Smart Contract Vulnerability Detection Based on Multimodal Feature Fusion [J].
Yu, Jie ;
Yu, Xiao ;
Li, Jiale ;
Sun, Haoxin ;
Sun, Mengdi .
ADVANCED INTELLIGENT COMPUTING TECHNOLOGY AND APPLICATIONS, PT III, ICIC 2024, 2024, 14864 :344-355
[33]   Smart Contract Vulnerability Detection Based on Symbolic Execution Technology [J].
Liu, Yiping ;
Xu, Jie ;
Cui, Baojiang .
CYBER SECURITY, CNCERT 2021, 2022, 1506 :193-207
[34]   The Impact of Input Types on Smart Contract Vulnerability Detection Performance Based on Deep Learning: A Preliminary Study [J].
Aldyaflah, Izdehar M. ;
Zhao, Wenbing ;
Yang, Shunkun ;
Luo, Xiong .
INFORMATION, 2024, 15 (06)
[35]   Enhanced Smart Contract Vulnerability Detection via Graph Neural Networks: Achieving High Accuracy and Efficiency [J].
Xu, Chang ;
Xu, Huaiyu ;
Zhu, Liehuang ;
Shen, Xiaodong ;
Sharif, Kashif .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2025, 51 (06) :1854-1865
[36]   Extended Abstract of Combine Sliced Joint Graph with Graph Neural Networks for Smart Contract Vulnerability Detection [J].
Cai, Jie ;
Li, Bin ;
Zhang, Jiale ;
Sun, Xiaobing ;
Chen, Bing .
2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING, SANER, 2023, :851-852
[37]   Smart Contract Vulnerability Detection Model Based on Siamese Network (SCVSN): A Case Study of Reentrancy Vulnerability [J].
Guo, Ran ;
Chen, Weijie ;
Zhang, Lejun ;
Wang, Guopeng ;
Chen, Huiling .
ENERGIES, 2022, 15 (24)
[38]   NDLSC: A New Deep Learning-based Approach to Smart Contract Vulnerability Detection [J].
Xiong, Zenggang ;
Lou, Qiangqiang ;
Li, Youfeng ;
Chen, Hao ;
Zhang, Xuemin ;
Li, Yuan ;
Li, Jing .
JOURNAL OF SIGNAL PROCESSING SYSTEMS FOR SIGNAL IMAGE AND VIDEO TECHNOLOGY, 2025, 97 (01) :49-68
[39]   Automated Smart Contract Vulnerability Detection using Fine-tuned Large Language Models [J].
Yang, Zhiju ;
Man, Gaoyuan ;
Yue, Songqing .
6TH INTERNATIONAL CONFERENCE ON BLOCKCHAIN TECHNOLOGY AND APPLICATIONS, ICBTA 2023, 2023, :19-23
[40]   CrossFuzz: Cross-contract fuzzing for smart contract vulnerability detection [J].
Yang, Huiwen ;
Gu, Xiguo ;
Chen, Xiang ;
Zheng, Liwei ;
Cui, Zhanqi .
SCIENCE OF COMPUTER PROGRAMMING, 2024, 234