Adaptive Ensemble Machine Learning Framework for Proactive Blockchain Security
Discuss this preprint
Start a discussion What are Sciety discussions?Listed in
This article is not in any list yet, why not save it to one of your lists.Abstract
Blockchain technology has rapidly evolved beyond cryptocurrencies, underpinning diverse applications such as supply chains, healthcare, and finances, yet its security vulnerabilities remain a critical barrier to safe adoption. However, attackers increasingly exploit weaknesses in consensus protocols, smart contracts, and network layers with threats such as Denial-of-Chain (DoC) and Black Bird attacks, posing serious challenges to blockchain ecosystems. We conducted anomaly detection using two independent datasets (A and B) generated from simulation attack scenarios including hash rate, Sybil, Eclipse, Finney, and Denial-of-Chain (DoC) attacks. Key blockchain metrics such as hash rate, transaction authorization status, and recorded attack consequences were collected for analysis. We compared both class-balanced and imbalanced datasets, applying Synthetic Minority Oversampling Technique (SMOTE) to improve representation of minority-class samples and enhance performance metrics. Supervised models such as Random Forest, Gradient Boosting, and Logistic Regression consistently outperformed unsupervised models, achieving high F1-scores (0.90), while balancing the training data had only a modest effect. The results are based on simulated environment and should be considered as preliminary until the experiment is performed in a real blockchain environment. Based on identified gaps, we recommend the exploration and development of multifaceted defense approaches that combine prevention, detection, and response to strengthen blockchain resilience.