arrow
Return

Detecting unknown vulnerabilities in smart contracts using opcode sequences

delete2024-02-14
delete3
delete
OA
AI
李
李培强 (Peiqiang Li)
G
Guojun Wang *
X
Xiaofei Xing
X
Xiangbin Li
J
Jinyao Zhu
DOI:10.1080/09540091.2024.2313853delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Unknown vulnerabilities, also known as zero-day vulnerabilities, are vulnerabilities in software, systems, or networks that have not yet been publicly disclosed or fixed. If these vulnerabilities are ever discovered by hackers, intentionally or unintentionally, they pose a major threat to network security. This is particularly true in the blockchain field, as smart contracts hold a lot of money, and if they are discovered and exploited by hackers, the financial losses to users will be even greater. However, the current research on smart contract vulnerabilities mainly focuses on known vulnerabilities, and the research on unknown vulnerabilities has been limited. Based on this, we introduce a machine learning-based method for detecting unknown vulnerabilities in smart contracts. First, the method obtains the opcode sequences executed by smart contract transactions in the EVM by instrumenting Geth and replaying the Ethereum transactions. Next, we employ an n-gram model and a vector weight penalty mechanism to extract the opcode sequence features. We then use machine learning algorithms to detect unknown vulnerabilities based on the similarity principle. Finally, we test the effectiveness of our method with four machine learning models: the K-Nearest Neighbor algorithm (KNN), Support Vector Machine (SVM), Logistic Regression (LR), and Decision Tree (DT). The SVM model performs best at detecting unknown vulnerabilities, with an accuracy of 96%, a precision of 91%, a recall of 100%, and an F1-score of 95%. We also discuss the benefits of the method: timely detection of attacks due to unknown vulnerabilities, thus reducing user losses.
Keywords:
Blockchain
smart contracts
unknown vulnerabilities
N-gram
opcode sequences

Journal

Connection Science cover
Connection Science
IF:
3.4
Papers:
854
Citations:
1.5K

Organization

G
Guangzhou University
Scholars:
1.8W
Papers: 1.3W
Citations: 1.8W
Cited Papers

Cited Papers

Orientational Dynamics of theSc3Trimer inC82: An EPR Study
err1994-12-19
err0
errOAAI
errP. H. M. van Loosdrecht; R. D. Johnson; M. S. de Vries; C. -H. Kiang; D. S. Bethune; H. C. Dorn; P. Burbank; S. Stevenson
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
SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilities
err2022-07-01
err261
errOAAI
errLi, Zhen; Zou, Deqing; Xu, Shouhuai; Jin, Hai; Zhu, Yawei; Chen, Zhaoxuan
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
Genetic polymorphisms at 19q13.33 are associated with [−2]proPSA (p2PSA) levels and provide additional predictive value to prostate health index for prostate cancer
err2021-07-12
err0
errOAAI
errDa Huang; Xiaohao Ruan; Yishuo Wu; Xiaoling Lin; Jingyi Huang; Dingwei Ye; Yi Gao; Qiang Ding; Danfeng Xu; Rong Na
errShare
errSave
A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction models
err2019-06-01
err1.0K
errOAAI
errChristodoulou, Evangelia; Ma, Jie; Collins, Gary S.; Steyerberg, Ewout W.; Verbakel, Jan Y.; Van Calster, Ben
errShare
errSave
xFuzz: Machine Learning Guided Cross-Contract Fuzzing
err2024-03-01
err16
errOAAI
errXue, Yinxing; Ye, Jiaming; Zhang, Wei; Sun, Jun; Ma, Lei; Wang, Haijun; Zhao, Jianjun
errShare
errSave
It takes two for chronic wounds to heal: dispersing bacterial biofilm and modulating inflammation with dual action plasma coatings
err2020-01-01
err0
errOAAI
errThomas Danny Michl; Dung Thuy Thi Tran; Hannah Frederike Kuckling; Aigerim Zhalgasbaikyzy; Barbora Ivanovská; Laura Elena González García; Rahul Madathiparambil Visalakshan; Krasimir Vasilev
errShare
errSave
researcher View more