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
deleteOriginal request for help
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

Journal

Knowledge and Information Systems cover
Knowledge and Information Systems
IF:
3.1
Papers:
568
Citations:
5.2K

Organization

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

Cited Papers

errShare
errSave
errShare
errSave
ORAN-B5G: A Next-Generation Open Radio Access Network Architecture With Machine Learning for Beyond 5G in Industrial 5.0
err2024-09-01
err3
PREAI
errKhan, Abdullah Ayub; Laghari, Asif Ali; Baqasah, Abdullah M.; Alroobaea, Roobaea; Gadekallu, Thippa Reddy; Sampedro, Gabriel Avelino; Zhu, Yaodong
errShare
errSave
Smart Contract Vulnerability Detection Based on Hybrid Attention Mechanism Model
err2023-01-05
err0
errOAAI
errHuaiguang Wu; Hanjie Dong; Yaqiong He; Qianheng Duan
errShare
errSave
A novel extended multimodal AI framework towards vulnerability detection in smart contracts
err2023-07-01
err0
PREAI
errWanqing Jie; Qi Chen; Jiaqi Wang; Arthur Sandor Voundi Koe; Jin Li; Pengfei Huang; Yaqi Wu; Yin Wang
errShare
errSave
researcher View more