Mining Frequency Features for On-Chain Smart Contract Vulnerability Multi-Class Classification

Due to the immutable nature of blockchain, vulnerability detection in on-chain smart contracts is imperative to ensure the security of blockchain transaction. As smart contracts automate significant financial and operational transactions, detecting vulnerabilities before they are exploited is critical. Recently, the application of machine learning techniques to this domain has increased, primarily due to their powerful feature extraction capabilities and operational efficiency in detecting anomalies. Considerable efforts in past research have focused on mining semantic and syntactic features from off-chain source code of smart contracts, typically written in high-level languages like Solidity. However, on-chain smart contracts, which are represented in the form of opcodes, lack these high-level semantic features. This absence necessitates different approaches for effective vulnerability detection. Although on-chain smart contracts lack high-level semantic features, the limited number of characters in opcodes results in more distinct frequency patterns of code. Therefore, in this paper, we explore a multi-class vulnerability detection approach based on the frequency features of smart contract opcodes. This paper provides a simple yet effective feature embedding method for on-chain opcode contract. Experiments on both binary and multi-class vulnerability detection tasks have been conducted to validate its scalability and effectiveness.

Authors

Institutions

Publication Details

Published
2025-06-20
DOI
https://doi.org/10.1109/gbc60041.2025.11134481
Primary Topic
Cybercrime and Law Enforcement Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Mining Frequency Features for On-Chain Smart Contract Vulnerability Multi-Class Classification

Shenao Wang, Chi Jiang, Yin Zhang⋆, Fan Wu
Cybercrime and Law Enforcement Studies
article

Mining Frequency Features for On-Chain Smart Contract Vulnerability Multi-Class Classification

Shenao Wang, Chi Jiang, Yin Zhang⋆, Fan Wu
article en

Abstract

Due to the immutable nature of blockchain, vulnerability detection in on-chain smart contracts is imperative to ensure the security of blockchain transaction. As smart contracts automate significant financial and operational transactions, detecting vulnerabilities before they are exploited is critical. Recently, the application of machine learning techniques to this domain has increased, primarily due to their powerful feature extraction capabilities and operational efficiency in detecting anomalies. Considerable efforts in past research have focused on mining semantic and syntactic features from off-chain source code of smart contracts, typically written in high-level languages like Solidity. However, on-chain smart contracts, which are represented in the form of opcodes, lack these high-level semantic features. This absence necessitates different approaches for effective vulnerability detection. Although on-chain smart contracts lack high-level semantic features, the limited number of characters in opcodes results in more distinct frequency patterns of code. Therefore, in this paper, we explore a multi-class vulnerability detection approach based on the frequency features of smart contract opcodes. This paper provides a simple yet effective feature embedding method for on-chain opcode contract. Experiments on both binary and multi-class vulnerability detection tasks have been conducted to validate its scalability and effectiveness.

University of Electronic Science and Technology of China (CN), Institute for Advanced Study (DE)
Decent work and economic growth
Openalex Percentile: Top 66%
Cybercrime and Law Enforcement Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.