arrow
返回

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
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

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.
Keyword:
Blockchain
smart contracts
unknown vulnerabilities
N-gram
opcode sequences

期刊

Connection Science 封面图
Connection Science
IF:
3.4
论文数:
854
被引数:
1.5K

机构

G
Guangzhou University
学者数:
1.8W
论文数: 1.3W
被引数: 1.8W
引用论文

引用论文

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
err分享
err收藏
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
err分享
err收藏
err分享
err收藏
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
err分享
err收藏
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
err分享
err收藏
xFuzz: Machine Learning Guided Cross-Contract FuzzingxFuzz: 机器学习引导的交叉合同模糊
err2024-03-01
err16
errOAAI
errXue, Yinxing; Ye, Jiaming; Zhang, Wei; Sun, Jun; Ma, Lei; Wang, Haijun; Zhao, Jianjun
err分享
err收藏
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
err分享
err收藏
学者 查看更多内容