Skip to content
Open access

Towards Trustworthy Smart Contract Security: Explainable Multi-Class Vulnerability Detection Using Machine Learning

Aug 2026 · Journal of Current Research in Blockchain · 0 citations

TL;DR

Findings demonstrate that the proposed framework provides a transparent and effective approach for smart contract vulnerability detection, supporting the development of trustworthy blockchain security analysis systems.

Abstract

Smart contracts have become a fundamental component of blockchain ecosystems, enabling decentralized applications and automated transactions without intermediaries. However, vulnerabilities in smart contracts can lead to severe financial losses and security breaches, highlighting the need for effective automated vulnerability detection mechanisms. This study proposes an explainable machine learning framework for multi-class smart contract vulnerability detection using TF-IDF feature extraction, XGBoost classification, and SHAP (SHapley Additive exPlanations) analysis. The proposed approach was evaluated on a dataset containing 6,387 Solidity smart contracts categorized into eight vulnerability classes: Block Dependency (BD), Dangerous Delegatecall (DC), Front Running Exposure (FE), Integer Overflow/Underflow (IOU), Reentrancy (RE), Selfdestruct Exposure (SE), Timestamp Dependency (TD), and Unchecked Call (UC). Experimental results show that the XGBoost model achieved an average accuracy of 65.15% and a macro-F1 score of 65.14% under 5-fold stratified cross-validation, outperforming the Random Forest baseline across all evaluation metrics. Class-level analysis revealed strong detection performance for Dangerous Delegatecall, Integer Overflow/Underflow, and Timestamp Dependency vulnerabilities, while Reentrancy and Unchecked Call remained challenging due to their similar behavioral characteristics. Furthermore, SHAP-based explainability identified security-relevant Solidity tokens such as call, delegatecall, block number, and now as the most influential features contributing to vulnerability classification. These findings demonstrate that the proposed framework provides a transparent and effective approach for smart contract vulnerability detection, supporting the development of trustworthy blockchain security analysis systems.

Read PDF

Similar papers

Open access Aug 2026

Explainable Machine Learning for Smart Contract Vulnerability Detection in Ethereum Blockchain

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.

SR Vasantakumaren · 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

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 Open access 2026

Smart Contract-Based Automated Response System for IoT Attacks in Web3 Ecosystems

Experimental evaluation demonstrates up to 95% detection accuracy, a 50% reduction in response latency, and scalability to over 100,000 IoT devices without performance degradation, highlighting the suitability of SC-ARS for deployment in smart cities, industrial IoT, and decentralized critical infrastructures where tru...

S. Bassey, B. Stephen, Emediong Bassey Obot et al. · 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

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