Enhancing smart contract security using a code representation and GAN based methodology

Smart contracts are changing many business areas with blockchain technology, but they still have vulnerabilities that can cause major financial losses. Because deployed smart contracts (SCs) are irreversible once deployed, fixing these vulnerabilities before deployment is critical. This research introduces a new method that combines code embedding with Generative Adversarial Networks (GANs) to find integer overflow vulnerabilities in smart contracts. Using Abstract Syntax Trees, we can vectorize the source code of smart contracts while keeping all of the important contract characteristics and going beyond what can be achieved with conventional textual or structural analysis. Synthesizing contract vector data using GANs alleviates data scarcity and facilitates source code acquisition for training our detection system. The proposed method is very good at finding vulnerabilities because it uses both GAN discriminator feedback and vector similarity measures based on cosine and correlation coefficients. Experimental results show that our GAN-based proactive analysis method achieves up to 18.1% improvement in accuracy over baseline tools such as Oyente and sFuzz.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-05-03
DOI
https://doi.org/10.1038/s41598-025-99267-3
Citations
9
Primary Topic
Blockchain Technology Applications and Security
Type
article
Field-Weighted Citation Impact
29.22
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing smart contract security using a code representation and GAN based methodology

Dileep Kumar Murala, Habib Hamam, Kanishka Rao, Samia Loucif
9 citations
Scientific Reports
Blockchain Technology Applications and Security
29.22
article

Enhancing smart contract security using a code representation and GAN based methodology

Dileep Kumar Murala, Habib Hamam, Kanishka Rao, Samia Loucif
article en
9 citations

Abstract

Smart contracts are changing many business areas with blockchain technology, but they still have vulnerabilities that can cause major financial losses. Because deployed smart contracts (SCs) are irreversible once deployed, fixing these vulnerabilities before deployment is critical. This research introduces a new method that combines code embedding with Generative Adversarial Networks (GANs) to find integer overflow vulnerabilities in smart contracts. Using Abstract Syntax Trees, we can vectorize the source code of smart contracts while keeping all of the important contract characteristics and going beyond what can be achieved with conventional textual or structural analysis. Synthesizing contract vector data using GANs alleviates data scarcity and facilitates source code acquisition for training our detection system. The proposed method is very good at finding vulnerabilities because it uses both GAN discriminator feedback and vector similarity measures based on cosine and correlation coefficients. Experimental results show that our GAN-based proactive analysis method achieves up to 18.1% improvement in accuracy over baseline tools such as Oyente and sFuzz.

Scientific ReportsVol. 15(1)
Université de Moncton (CA), University of Johannesburg (ZA), Omar Bongo University (GA), ICFAI Foundation for Higher Education (IN)
Openalex Percentile: Top 0%
Blockchain Technology Applications and Security
29.22
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Enhancing smart contract security using a code representation and GAN based methodology — Dileep Kumar Murala, Habib Hamam, et al. · Scientific Reports (2025) | TGRS Research Map | TGRS