EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Blockchain-integrated machine learning framework for transparent smart contract vulnerability detection

Ankit Vishnoi, Varun Sapra, Luxmi Sapra, Preeti Narooka, Deepak Panwar

Frontiers in Blockchain · 20.04.2026 · 9

DOI: 10.3389/fbloc.2026.1735510 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Frontiers in Blockchain, online erschienen am 20.04.2026. Verfasst von Ankit Vishnoi und 4 weiteren Autor:innen. Die Arbeit nennt 33 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Introduction

The proliferation of dApps is increasing the attack surface for exploitable vulnerabilities in smart contracts, and thus there is a need for verifiable detection methodologies.

Methods

In this work, we propose a machine learning framework with blockchain integration for explainable and note that “explainable” implies “verifiable” smart contract vulnerability detection. The SmartBugs-curated data was systematically pre-processed with metadata filtering, feature correlation analysis and encoding for model evaluation. Four ensemble learning methods, Random Forest, XGBoost, LightGBM and CatBoost were tested under identical experimental settings for comparison.

Results

The Random Forest classifier initially achieved the best balance in terms of stability and performance with an accuracy of 87.67%, successfully detecting important vulnerability classes such as re-entrancy, unchecked low-level calls, etc. To enhance the applicability of our blockchain-based machine learning framework for vulnerable smart contract analysis we extend it from the initial 143-contract dataset SmartBugs-Curated to evaluate it on on large-scale set, namely, SmartBugs-Wild which contains 47,398 real-world Ethereum contracts. Based on 29 static contract-level features, unsupervised clustering (k = 4, silhouette score = 0.3735) identifies discrete structural archetypes present in the dataset. Ensemble classifiers (such as XGBoost, CatBoost, Random Forest and LightGBM) can get excellent discriminative performance on these cluster labels: LightGBM achieves 99% accuracy and 0.98918 macro-F1.

Discussion

The additional results show that the approach scales, is robust and leads to stable models, even if interpretable. After injecting SHAP-based explainability, the interpretability and predictive power of CatBoost became similar to those of Random Forest. In order to guarantee end-to-end trust and traceability of our optimised classifier, this was linked to a blockchain oracle that independently store the outcomes as well as confidence scores for predictions directly onto an Ethereum-compatible ledger through a Vulnerability Registry smart contract. This integration provides the data is immutable, auditable and transparent in reporting.

Zitieren

APA

Vishnoi, A., Sapra, V., Sapra, L., Narooka, P., & Panwar, D. (2026). Blockchain-integrated machine learning framework for transparent smart contract vulnerability detection. Frontiers in Blockchain, 9. https://doi.org/10.3389/fbloc.2026.1735510

Vancouver

Vishnoi A, Sapra V, Sapra L, Narooka P, Panwar D. Blockchain-integrated machine learning framework for transparent smart contract vulnerability detection. Frontiers in Blockchain. 2026;9. doi:10.3389/fbloc.2026.1735510

BibTeX
@article{Vishnoi2026,
  author = {Vishnoi, Ankit and Sapra, Varun and Sapra, Luxmi and Narooka, Preeti and Panwar, Deepak},
  title = {Blockchain-integrated machine learning framework for transparent smart contract vulnerability detection},
  journal = {Frontiers in Blockchain},
  year = {2026},
  volume = {9},
  doi = {10.3389/fbloc.2026.1735510}
}
Kostenlos starten →