Smart contract vulnerability detection using wide and deep neural network

被引:3
作者
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 条
[41]   Deep Smart Contract Intent Detection [J].
Huang, Youwei ;
Fang, Sen ;
Li, Jianwen ;
Hu, Bin ;
Tao, Jiachun ;
Zhang, Tao .
2025 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING, SANER, 2025, :124-135
[42]   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
[43]   Vulnerability Detection for Smart Contract via Backward Bayesian Active Learning [J].
Zhang, Jiale ;
Tu, Liangqiong ;
Cai, Jie ;
Su, Xiaobing ;
Li, Bin ;
Chen, Weitong ;
Wang, Yu .
APPLIED CRYPTOGRAPHY AND NETWORK SECURITY WORKSHOPS, ACNS 2022, 2022, 13285 :66-83
[44]   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
[45]   An interpretable model for large-scale smart contract vulnerability detection [J].
Feng, Xia ;
Liu, Haiyang ;
Wang, Liangmin ;
Zhu, Huijuan ;
Sheng, Victor S. .
BLOCKCHAIN-RESEARCH AND APPLICATIONS, 2024, 5 (03)
[46]   Smart contract: a survey towards extortionate vulnerability detection and security enhancement [J].
Porkodi, S. ;
Kesavaraja, D. .
WIRELESS NETWORKS, 2024, 30 (03) :1285-1304
[47]   SmartGuard: An LLM-enhanced framework for smart contract vulnerability detection [J].
Ding, Hao ;
Liu, Yizhou ;
Piao, Xuefeng ;
Song, Huihui ;
Ji, Zhenzhou .
EXPERT SYSTEMS WITH APPLICATIONS, 2025, 269
[48]   Smart Contract Vulnerability Detection Based on Multi-Scale Encoders [J].
Guo, Junjun ;
Lu, Long ;
Li, Jingkui .
ELECTRONICS, 2024, 13 (03)
[49]   Smart Contract Vulnerability Detection Based on Hybrid Attention Mechanism Model [J].
Wu, Huaiguang ;
Dong, Hanjie ;
He, Yaqiong ;
Duan, Qianheng .
APPLIED SCIENCES-BASEL, 2023, 13 (02)
[50]   CDRF: A Detection Method of Smart Contract Vulnerability Based on Random Forest [J].
Huang, Meng ;
Yang, Jia ;
Liu, Cong .
PROVABLE AND PRACTICAL SECURITY, PROVSEC 2023, 2023, 14217 :407-428