Publication:
Detecting smart contract vulnerabilities with Explainable AI

Placeholder

School / College / Institute

Organizational Unit
Organizational Unit

Program

KU Authors

Co-Authors

Tahir, M. U.
Khalid, U.

Editor & Affiliation

Compiler & Affiliation

Translator

Other Contributor

Date

Language

eng

Embargo Status

N/A

Journal Title

Journal ISSN

Volume Title

Alternative Title

Abstract

The rapid adoption of blockchain technologies has intensified the need for robust security mechanisms in Ethereum smart contracts (SC). Due to immutability, vulnerabilities cannot be patched after deployment, leading to significant financial losses. While traditional static and dynamic analysis tools are widely used, recent research has explored Machine Learning (ML) and Deep Learning (DL) techniques for automated vulnerability detection. However, many existing approaches focus on single-vulnerability detection or suffer from high false positive rates and limited interpretability. To address these challenges, this study proposes an interpretable DL framework for multi-vulnerability detection in SC. The proposed model employs a lightweight One-Dimensional Convolutional Neural Network (1D-CNN) integrated with Integrated Gradients from Explainable AI (XAI) to provide transparent model decisions. SC opcode sequences are transformed into RGB-encoded sequential representations, preserving execution order while enabling efficient feature extraction. This study adopts a multi-class classification setting to evaluate generalization across diverse vulnerability types. The framework is evaluated using the publicly available Messi-Q dataset, containing labeled samples across multiple vulnerability types. Experimental results demonstrate effective multi-class detection, with performance varying across vulnerability types due to dataset imbalance and structural similarities. The model maintains efficiency while providing interpretable insights for selected vulnerability classes. The model provides opcode-level attribution, revealing localized patterns for certain vulnerabilities and more distributed attention for others. These findings demonstrate the practicality of lightweight and interpretable DL methods for scalable SC security analysis.

Source

Publisher

IEEE

Subject

Physical sciences, Computer science, Artificial intelligence

Citation

Has Part

Source

2026 8Th International Congress on Human-Computer Interaction, Optimization and Robotic Applications (Ichora)

Book Series Title

Edition

DOI

10.1109/ichora69329.2026.11537218

item.page.datauri

Link

Rights

N/A

Copyrights Note

Creative Commons license

Except where otherwised noted, this item's license is described as N/A

Endorsement

Review

Supplemented By

Referenced By

Related Goal

0

Views

0

Downloads

View PlumX Details