An elegant intellectual engine towards automation of blockchain smart contract vulnerability detection

Abstract To prevent vulnerabilities and ensure app security, smart contract vulnerability detection identifies flaws in blockchain code. To overcome the limitations of traditional detection methods, this study introduces a novel approach that combines Explainable Artificial Intelligence (XAI) with D...

Full description

Saved in:
Bibliographic Details
Main Authors: Balachandar Raju, Gayathri Devi K
Format: Article
Language:English
Published: Nature Portfolio 2025-07-01
Series:Scientific Reports
Subjects:
Online Access:https://doi.org/10.1038/s41598-025-08870-x
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:Abstract To prevent vulnerabilities and ensure app security, smart contract vulnerability detection identifies flaws in blockchain code. To overcome the limitations of traditional detection methods, this study introduces a novel approach that combines Explainable Artificial Intelligence (XAI) with Deep Learning (DL) to detect vulnerabilities in smart contracts. The proposed intellectual engine operates in multiple stages. First, a smart contract is created, and the user provides a value during the runtime phase. XAI and DL then analyze the opcodes in high-value contracts to detect potentially risky processes. If violations such as security protocol failures, insufficient funds, or account restrictions are found, the engine halts the transaction and generates an error report. If the contract passes this vulnerability assessment, it continues executing without interruption. This ensures flagged transactions remain functional while being assessed. Our proposed Hybrid Boot Branch and Bound Long Short-Term Memory (HB3LSTM) approach achieves outstanding performance, with an accuracy of 99.68%, precision of 99.43%, recall of 99.54%, and an F1-score of 99.40%, which surpasses the performance of existing methods.
ISSN:2045-2322