Skip to content
Open access

Explainable Machine Learning for Smart Contract Vulnerability Detection in Ethereum Blockchain

Aug 2026 · Journal of Current Research in Blockchain · Vol 3, pp. 216-232 · 0 citations

TL;DR

The results demonstrate that the proposed framework provides accurate, interpretable, and transparent vulnerability detection for Ethereum smart contracts and can assist blockchain developers and security auditors in improving blockchain security analysis.

Abstract

Smart contracts play an important role in Ethereum blockchain systems by enabling decentralized and automated transactions without intermediaries. However, vulnerabilities in Solidity smart contracts remain a major security issue because attackers can exploit coding weaknesses such as reentrancy attacks, unsafe external calls, and insecure access control mechanisms. Traditional vulnerability detection methods, including manual auditing and static analysis, often require high expertise and lack interpretability. Therefore, this study proposes an Explainable Machine Learning framework for smart contract vulnerability detection using Solidity source code analysis. The proposed framework integrates TF-IDF feature extraction, XGBoost classification, and SHAP (SHapley Additive Explanations) to provide high detection performance and transparent model interpretability. A dataset consisting of 691 Ethereum smart contracts, including 346 safe contracts and 345 vulnerable contracts, was used in this study. The experimental results show that the proposed model achieved an accuracy of 97.84%, with precision, recall, and F1-score values above 97%. The ROC analysis produced an AUC score of 0.9946, indicating excellent classification capability between vulnerable and safe smart contracts. The SHAP analysis revealed that features such as success, staticcall, gas, and origin significantly influenced vulnerability prediction, while security mitigation features such as nonreentrant and reentrancyguard were also identified as important indicators. The results demonstrate that the proposed framework provides accurate, interpretable, and transparent vulnerability detection for Ethereum smart contracts and can assist blockchain developers and security auditors in improving blockchain security analysis.

Read PDF

Similar papers

Open access Aug 2026

Hybrid Feature Engineering and Explainable Ensemble Learning for Ethereum Smart Contract Vulnerability Detection

The findings indicate that hybrid feature engineering combined with explainable ensemble learning provides an effective and lightweight solution for Ethereum smart contract vulnerability detection and blockchain security analysis.

Hushalictmy Paliyanny · 0 citations
Conference Aug 2026

Active Learning-Based Smart Contract Vulnerability Detection Using Ensemble Classifiers

Smart contract vulnerabilities continue to threaten the security and reliability of blockchain-based applications, especially as blockchain systems are increasingly integrated into digital finance, supply chains, identity management, and other intelligent service environments. In these convergent digital systems, depen...

G. A. Sampedro, Arlene R. Caballero · 0 citations
Open access Aug 2026

Adaptive Multi-Agent Explainable Smart Contract Auditing Framework (AMESCAF): A Hybrid Approach Integrating Static Analysis, Symbolic Execution, Formal Verification, and Explainable Artificial Intelligence for Next-Generation Blockchain Security

 Smart contracts are a crucial element in blockchain technology, enabling the decentralisation and automation of digital transactions. However, re-entrancy, access control, integer overflows and logic errors all pose a danger to their security and reliability. Previously available audit solutions rely on a single analy...

Alfiya Sayyad, Tushar H. Ghorpade, Vanita Mane et al. · 0 citations
Aug 2026

Smart contract vulnerability detection using opcode sequences with variable length

A novel neural network model is proposed that accommodates variable-length input sequences and advances the state-of-the-art by enabling truncation-free processing of long sequences, demonstrating superior performance over baselines reliant on fixed inputs.

Pei-Qian Li, Guo-Jun Wang, Xuelei Liu et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.