Document Type
Article
Source of Publication
Scientific Reports
Publication Date
12-1-2025
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.
DOI Link
ISSN
Volume
15
Issue
1
Disciplines
Computer Sciences
Keywords
Abstract syntax trees, BeautyChain (BEC) Token attack, Blockchain technology, Generative adversarial networks, Proof of weak hand, Smart contracts
Scopus ID
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-No Derivative Works 4.0 International License.
Recommended Citation
Murala, Dileep Kumar; Loucif, Samia; Rao, K. Vara Prasada; and Hamam, Habib, "Enhancing smart contract security using a code representation and GAN based methodology" (2025). All Works. 7294.
https://zuscholars.zu.ac.ae/works/7294
Indexed in Scopus
yes
Open Access
yes
Open Access Type
Gold: This publication is openly available in an open access journal/series