arrow
Return

Smart contract vulnerability detection using opcode sequences with variable length

delete2026-08-31
delete0
PRE
AI
P
Peiqiang Li
G
Guojun Wang *
X
Xuelei Liu
M
Mingfei Chen
J
Jinyao Zhu
Y
Yuheng Zhang
DOI:10.1007/s10115-026-02867-2delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Smart contracts represent a cornerstone of blockchain technology, enabling key applications in cryptocurrencies and decentralized finance (DeFi). Nevertheless, the inherent complexity in developing smart contracts frequently introduces severe security vulnerabilities. Compounding this issue, smart contracts become immutable upon deployment, exposing users and participants to substantial financial losses and risks. Consequently, vulnerability detection and security auditing emerge as imperative tasks. Existing deep learning-based vulnerability detection approaches are constrained to fixed-length input sequences, offering no effective mechanism for handling the variable-length opcode sequences derived from transaction executions. This limitation often results in data truncation, which compromises detection accuracy by discarding critical information. To overcome this challenge, a novel neural network model is proposed that accommodates variable-length input sequences. Opcode sequences are acquired through transaction replay as the dataset. Variable-length opcode sequences are processed using the ChordMixer architecture to preserve complete sequence information and extract global features. Additionally, a retention mechanism is integrated into the network to identify salient local features. This combined emphasis on global and local sequence information facilitates more precise security analysis and vulnerability prediction in smart contracts. Extensive experimental validation confirms the model’s efficacy, attaining 93.5% accuracy and 90.6% F1-score across seven vulnerability types. The approach advances the state-of-the-art by enabling truncation-free processing of long sequences, demonstrating superior performance over baselines reliant on fixed inputs.
Keywords:
Blockchain
Vulnerability detection
Smart contracts
Opcode sequences
Deep learning
Detecting unknown vulnerabilities in smart contracts using opcode sequences
err2024-02-14
err3
errOAAI
errLi, Peiqiang; Wang, Guojun; Xing, Xiaofei; Li, Xiangbin; Zhu, Jinyao
errShare
errSave
A smart contract vulnerability detection method based on deep learning with opcode sequences
err2024-06-27
err2
PREAI
errLi, Peiqiang; Wang, Guojun; Xing, Xiaofei; Zhu, Jinyao; Gu, Wanyi; Zhai, Guangxin
errShare
errSave
Effective combining source code and opcode for accurate vulnerability detection of smart contracts in edge AI systems
err2024-06-01
err1
PREAI
errHuang, Huakun; Guo, Longtao; Zhao, Lingjun; Wang, Haoda; Xu, Chenkai; Jiang, Shan
errShare
errSave
Detection of Vulnerabilities of Blockchain Smart Contracts
err2023-07-15
err32
PREAI
errHe, Daojing; Wu, Rui; Li, Xinji; Chan, Sammy; Guizani, Mohsen
errShare
errSave
Explainable DNN for smart contract vulnerability detection in the Metaverse
err2026-09-01
err2
errOAAI
errNkoro, Ebuka Chinaechetam; Ahakonye, Love Allen Chijioke; Kim, Dong-Seong
errShare
errSave
OSEL: boosting vulnerability detection with opcode slicing-enhanced feature learning
err2025-12-20
err0
PREAI
errTong, Yanxiang; Gao, Shengkai; Zhang, Mingyue; Wang, Ben; Ji, Shunhui; Zhang, Pengcheng
errShare
errSave
An interpretable model for large-scale smart contract vulnerability detection
err2024-09-01
err0
errOAAI
errFeng, Xia; Liu, Haiyang; Wang, Liangmin; Zhu, Huijuan; Sheng, Victor S.
errShare
errSave

Journal

Knowledge and Information Systems cover
Knowledge and Information Systems
IF:
3.1
Papers:
605
Citations:
5.6K

Organization

S
School of Computer Science and Cyber Engineering
Scholars:
20
Papers: 9
Citations: 9
Cited Papers

Cited Papers

SHO-CNN: A Metaheuristic Optimization of a Convolutional Neural Network for Multi-Label News Classification
err2022-12-27
err0
errOAAI
errMuhammad Imran Nadeem; Kanwal Ahmed; Dun Li; Zhiyun Zheng; Hafsa Naheed; Abdullah Y. Muaad; Abdulrahman Alqarafi; Hala Abdel Hameed
errShare
errSave
A Long-Text Classification Method of Chinese News Based on BERT and CNN
err2022-01-01
err53
errOAAI
errChen, Xinying; Cong, Peimin; Lv, Shuo
errShare
errSave
Reliable and Controllable Data Sharing Based on Blockchain
err2022-02-26
err0
PREAI
errYipeng Zou; Tao Peng; Wentao Zhong; Kejian Guan; Guojun Wang
errShare
errSave
Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit
err2021-10-23
err0
PREAI
errKaihua Qin; Liyi Zhou; Benjamin Livshits; Arthur Gervais
errShare
errSave
errShare
errSave
researcher View more