arrow
Return

Deep learning-based solution for smart contract vulnerabilities detection

delete2023-11-16
delete11
delete
OA
AI
X
Xueyan Tang
Y
Yuying Du
A
Alan Lai
Z
Ze Zhang
L
Lingzhi Shi
DOI:10.1038/s41598-023-47219-0delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
This paper aims to explore the application of deep learning in smart contract vulnerabilities detection. Smart contracts are an essential part of blockchain technology and are crucial for developing decentralized applications. However, smart contract vulnerabilities can cause financial losses and system crashes. Static analysis tools are frequently used to detect vulnerabilities in smart contracts, but they often result in false positives and false negatives because of their high reliance on predefined rules and lack of semantic analysis capabilities. Furthermore, these predefined rules quickly become obsolete and fail to adapt or generalize to new data. In contrast, deep learning methods do not require predefined detection rules and can learn the features of vulnerabilities during the training process. In this paper, we introduce a solution called Lightning Cat which is based on deep learning techniques. We train three deep learning models for detecting vulnerabilities in smart contract: Optimized-CodeBERT, Optimized-LSTM, and Optimized-CNN. Experimental results show that, in the Lightning Cat we propose, Optimized-CodeBERT model surpasses other methods, achieving an f1-score of 93.53%. To precisely extract vulnerability features, we acquire segments of vulnerable code functions to retain critical vulnerability features. Using the CodeBERT pre-training model for data preprocessing, we could capture the syntax and semantics of the code more accurately. To demonstrate the feasibility of our proposed solution, we evaluate its performance using the SolidiFI-benchmark dataset, which consists of 9369 vulnerable contracts injected with vulnerabilities from seven different types.
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Scientific Reports cover
Scientific Reports
IF:
3.9
Papers:
27.9W
Citations:
83.5W

Organization

No organization information available
Cited Papers

Cited Papers

Genotoxicity studies on the organophosphorus insecticide chloracetophone
err1990-03-01
err0
PREAI
errA. Kappas; R. Vachkova; S. Lalchev; M. Tzoneva; M. Markaki
errShare
errSave
Ultrafast Absorption Changes of the Lhcii Carotenoids upon Selective Excitation of the Chlorophylls
err1998-01-01
err0
PREAI
errC. C. Gradinaru; I. H. M. van Stokkum; R. van Grondelle; H. van Amerongen
errShare
errSave
Motion of Scandium Ions in Sc2C84 Observed by 45Sc Solution NMR
err1996-06-06
err0
PREAI
errYoko Miyake; Shinzo Suzuki; Yasuhiko Kojima; Koichi Kikuchi; Kaoru Kobayashi; Shigeru Nagase; Masatsune Kainosho; Yohji Achiba; Yutaka Maniwa; Keith Fisher
errShare
errSave
Fibromyalgia (Japanese Version)
err2020-03-03
err0
PREAI
errMatthew J. Bair; Erin E. Krebs
errShare
errSave
SPCBIG-EC: A Robust Serial Hybrid Model for Smart Contract Vulnerability Detection
errSENSORS
IF3.5
err2022-06-19
err25
errOAAI
errZhang, Lejun; Li, Yuan; Jin, Tianxing; Wang, Weizheng; Jin, Zilong; Zhao, Chunhui; Cai, Zhennao; Chen, Huiling
errShare
errSave
DeleSmell: Code smell detection based on deep learning and latent semantic analysis
err2022-11-01
err14
PREAI
errZhang, Yang; Ge, Chuyan; Hong, Shuai; Tian, Ruili; Dong, Chunhao; Liu, Jingjing
errShare
errSave
Crystal structure of extracellular human BAFF, a TNF family member that stimulates B lymphocytes
err2002-02-01
err0
PREAI
errMichael Karpusas; Teresa G Cachero; Fang Qian; Ann Boriack-Sjodin; Colleen Mullen; Kathy Strauch; Yen-Ming Hsu; Susan L Kalled
errShare
errSave
errShare
errSave
researcher View more