arrow
返回

A smart contract vulnerability detection method based on deep learning with opcode sequences

delete2024-06-27
delete2
PRE
AI
P
Peiqiang Li
G
Guojun Wang *
X
Xiaofei Xing
J
Jinyao Zhu
W
Wanyi Gu
G
Guangxin Zhai
DOI:10.1007/s12083-024-01750-7delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Ethereum is a blockchain network that allows developers to create smart contracts and programs that run on the blockchain. Smart contracts contain logic to transfer assets based on pre-defined conditions. With over 100,000 new smart contracts being deployed every day, the potential for coding errors is high, making the contracts vulnerable to exploits. A key limitation is that once deployed, smart contracts are immutable and cannot be updated, even if flaws are found. This inflexibility puts funds at risk of theft and loss. The rapid pace of deployment outpaces security audits, increasing vulnerabilities that put users' cryptocurrency at risk. To reduce the risk caused by smart contract vulnerabilities, we applied deep learning techniques. To develop a deep learning model capable of detecting vulnerabilities, we first created a dataset by replaying real transactions on the Ethereum Mainnet, collecting opcode sequences from real Ethereum contracts, and labeling them using the SODA plugin. We pre-processed this opcode data by removing duplicates, normalizing sequence lengths, simplifying opcodes into representative groups, and converting sequences into numerical vectors to ultimately obtain an optimal representation of the data. We then trained and evaluated three different neural network architectures on this dataset. Our best-performing model achieved an average accuracy of 88% in detecting seven types of vulnerabilities. Further analysis showed that the model was effective at identifying potential problems in smart contracts, which was an important capability for securing funds and executing logic in live contracts.
Keyword:
Smart contracts
Vulnerabilities detection
Opcode sequences
Deep learning
LSTM

期刊

Peer-to-Peer Networking and Applications 封面图
Peer-to-Peer Networking and Applications
IF:
2.6
论文数:
2.2K
被引数:
2.9K

机构

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

引用论文

Cytolytic Activity (CYT) Score Is a Prognostic Biomarker Reflecting Host Immune Status in Hepatocellular Carcinoma (HCC)
err2018-11-30
err0
errOAAI
errHIROAKI WAKIYAMA; TAKAAKI MASUDA; YUSHI MOTOMURA; QINGJIANG HU; TARO TOBO; HIDETOSHI EGUCHI; KATSUMI SAKAMOTO; MASAKAZU HIRAKAWA; HIROSHI HONDA; KOSHI MIMORI
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收藏
In vivo and in vitro studies of Chlamydia trachomatis TrpR:DNA interactions
err2006-01-30
err0
errOAAI
errJohn H. Carlson; Heidi Wood; Christine Roshick; Harlan D. Caldwell; Grant McClarty
err分享
err收藏
Towards Automated Reentrancy Detection for Smart Contracts Based on Sequential Models
err2020-01-01
err109
errOAAI
errQian, Peng; Liu, Zhenguang; He, Qinming; Zimmermann, Roger; Wang, Xun
err分享
err收藏
Motion of Scandium Ions in Sc2C84 Observed by 45Sc Solution NMR通过 45Sc溶液NMR观察到的Sc2C84 中Sc离子的运动
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
err分享
err收藏
学者 查看更多内容