Machine Learning Based Attack Detection and Prevention in Blockchain

Blockchain systems are increasingly deployed in finance, healthcare, supply chains, and IoT, but their open and decentralized nature exposes them to evolving security threats such as Sybil, eclipse, selfish mining, double-spending, and smart contract exploits. Traditional cryptographic safeguards and policy centered intrusion recognition approaches commonly fail to generalize against new strike variants, suffer from severe class imbalance, and struggle under real-time limitations. To examine these limitations, we present a hybrid deep learning framework that combines three complementary temporal encoders: a 1D Convolutional Neural Network (CNN) for short-term pattern extraction, a Bidirectional Long Short-Term Memory (Bi-LSTM) network for long-range dependencies, and a Transformer encoder for capturing global temporal context. Their outputs are fused with an attention mechanism and integrated into a unified classifier capable of both attack detection and automated prevention actions, such as quarantining suspicious transactions and sandboxing malicious contracts. Using the Cryptojacking Attack Timeseries dataset, the model achieves 97.21% accuracy, 99.16% Precision, 97.21%Recall, 97.98% F1-score, and an ROC-AUC of 0.9526, outperforming state-of-the-art baselines. The results demonstrate that multi-scale temporal fusion significantly enhances robustness and generalization under real-world blockchain conditions. This work contributes a scalable and adaptive detection–prevention pipeline, offering a practical pathway toward more secure decentralized ecosystems.

Authors

Institutions

Publication Details

Journal
Asian Journal of Research in Computer Science
Published
2026-03-31
DOI
https://doi.org/10.9734/ajrcos/2026/v19i3844
Primary Topic
Blockchain Technology Applications and Security
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Machine Learning Based Attack Detection and Prevention in Blockchain

Richard Essah, Augustine Danquah Yeboah, Kenneth Broni
Asian Journal of Research in Computer Science
Blockchain Technology Applications and Security
article

Machine Learning Based Attack Detection and Prevention in Blockchain

Richard Essah, Augustine Danquah Yeboah, Kenneth Broni
article en

Abstract

Blockchain systems are increasingly deployed in finance, healthcare, supply chains, and IoT, but their open and decentralized nature exposes them to evolving security threats such as Sybil, eclipse, selfish mining, double-spending, and smart contract exploits. Traditional cryptographic safeguards and policy centered intrusion recognition approaches commonly fail to generalize against new strike variants, suffer from severe class imbalance, and struggle under real-time limitations. To examine these limitations, we present a hybrid deep learning framework that combines three complementary temporal encoders: a 1D Convolutional Neural Network (CNN) for short-term pattern extraction, a Bidirectional Long Short-Term Memory (Bi-LSTM) network for long-range dependencies, and a Transformer encoder for capturing global temporal context. Their outputs are fused with an attention mechanism and integrated into a unified classifier capable of both attack detection and automated prevention actions, such as quarantining suspicious transactions and sandboxing malicious contracts. Using the Cryptojacking Attack Timeseries dataset, the model achieves 97.21% accuracy, 99.16% Precision, 97.21%Recall, 97.98% F1-score, and an ROC-AUC of 0.9526, outperforming state-of-the-art baselines. The results demonstrate that multi-scale temporal fusion significantly enhances robustness and generalization under real-world blockchain conditions. This work contributes a scalable and adaptive detection–prevention pipeline, offering a practical pathway toward more secure decentralized ecosystems.

Asian Journal of Research in Computer ScienceVol. 19(3)
Takoradi Technical University (GH)
Openalex Percentile: Top 31%
Blockchain Technology Applications and Security
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.

Machine Learning Based Attack Detection and Prevention in Blockchain — Richard Essah, Augustine Danquah Yeboah, et al. · Asian Journal of Research in Computer Science (2026) | TGRS Research Map | TGRS