• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • Suppr Zotero 插件Zotero 插件
  • 邀请有礼
  • 套餐&价格
  • 历史记录
应用&插件
Suppr Zotero 插件Zotero 插件浏览器插件Mac 客户端Windows 客户端微信小程序
定价
高级版会员购买积分包购买API积分包
服务
文献检索文档翻译深度研究API 文档MCP 服务
关于我们
关于 Suppr公司介绍联系我们用户协议隐私条款
关注我们

Suppr 超能文献

核心技术专利:CN118964589B侵权必究
粤ICP备2023148730 号-1Suppr @ 2026

文献检索

告别复杂PubMed语法,用中文像聊天一样搜索,搜遍4000万医学文献。AI智能推荐,让科研检索更轻松。

立即免费搜索

文件翻译

保留排版,准确专业,支持PDF/Word/PPT等文件格式,支持 12+语言互译。

免费翻译文档

深度研究

AI帮你快速写综述,25分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

使用基于代码表示和生成对抗网络的方法增强智能合约安全性。

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

作者信息

Murala Dileep Kumar, Loucif Samia, Rao K Vara Prasada, Hamam Habib

机构信息

Department of Computer Science and Engineering, Faculty of Science and Technology, ICFAI Foundation for Higher Education, Hyderabad, 501203, Telangana, India.

College of Technological Innovation, Zayed University, P.O. Box 144534, Abu Dhabi, UAE.

出版信息

Sci Rep. 2025 May 3;15(1):15532. doi: 10.1038/s41598-025-99267-3.

DOI:10.1038/s41598-025-99267-3
PMID:40319132
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC12049511/
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.

摘要

智能合约正在通过区块链技术改变许多业务领域,但它们仍然存在可能导致重大财务损失的漏洞。由于已部署的智能合约一旦部署就不可逆转,因此在部署前修复这些漏洞至关重要。本研究引入了一种将代码嵌入与生成对抗网络(GAN)相结合的新方法,以发现智能合约中的整数溢出漏洞。使用抽象语法树,我们可以将智能合约的源代码向量化,同时保留所有重要的合约特征,并且超越传统文本或结构分析所能达到的效果。使用GAN合成合约向量数据可缓解数据稀缺问题,并便于获取用于训练我们检测系统的源代码。所提出的方法在发现漏洞方面非常出色,因为它同时使用了GAN判别器反馈以及基于余弦和相关系数的向量相似性度量。实验结果表明,我们基于GAN的主动分析方法在准确率上比诸如Oyente和sFuzz等基线工具提高了高达18.1%。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/ac59152b3fef/41598_2025_99267_Fig8_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/0dfe2fb4bf84/41598_2025_99267_Fig1_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/935c04ac7f41/41598_2025_99267_Fig2_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/473607584a4e/41598_2025_99267_Fig3_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/455f7acdf8d8/41598_2025_99267_Fig4_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/6cbfc1a87dd8/41598_2025_99267_Fig5_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/c3c1ebe18f94/41598_2025_99267_Fig6_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/0aaf0d48311f/41598_2025_99267_Fig7_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/ac59152b3fef/41598_2025_99267_Fig8_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/0dfe2fb4bf84/41598_2025_99267_Fig1_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/935c04ac7f41/41598_2025_99267_Fig2_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/473607584a4e/41598_2025_99267_Fig3_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/455f7acdf8d8/41598_2025_99267_Fig4_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/6cbfc1a87dd8/41598_2025_99267_Fig5_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/c3c1ebe18f94/41598_2025_99267_Fig6_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/0aaf0d48311f/41598_2025_99267_Fig7_HTML.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/5ba3/12049511/ac59152b3fef/41598_2025_99267_Fig8_HTML.jpg

相似文献

1
Enhancing smart contract security using a code representation and GAN based methodology.使用基于代码表示和生成对抗网络的方法增强智能合约安全性。
Sci Rep. 2025 May 3;15(1):15532. doi: 10.1038/s41598-025-99267-3.
2
Taxonomic insights into ethereum smart contracts by linking application categories to security vulnerabilities.通过将应用类别与安全漏洞相关联,深入了解以太坊智能合约的分类学。
Sci Rep. 2024 Oct 8;14(1):23433. doi: 10.1038/s41598-024-73454-0.
3
CBGRU: A Detection Method of Smart Contract Vulnerability Based on a Hybrid Model.CBGRU:一种基于混合模型的智能合约漏洞检测方法。
Sensors (Basel). 2022 May 7;22(9):3577. doi: 10.3390/s22093577.
4
Smart Contract Vulnerability Detection Based on Deep Learning and Multimodal Decision Fusion.基于深度学习和多模态决策融合的智能合约漏洞检测
Sensors (Basel). 2023 Aug 18;23(16):7246. doi: 10.3390/s23167246.
5
Deep learning-based solution for smart contract vulnerabilities detection.基于深度学习的智能合约漏洞检测解决方案。
Sci Rep. 2023 Nov 16;13(1):20106. doi: 10.1038/s41598-023-47219-0.
6
Improving Ponzi Scheme Contract Detection Using Multi-Channel TextCNN and Transformer.利用多通道 TextCNN 和 Transformer 改进庞氏骗局合同检测
Sensors (Basel). 2021 Sep 26;21(19):6417. doi: 10.3390/s21196417.
7
Automatic Recommender System of Development Platforms for Smart Contract-Based Health Care Insurance Fraud Detection Solutions: Taxonomy and Performance Evaluation.基于智能合约的医疗保险欺诈检测解决方案的开发平台自动推荐系统:分类法与性能评估。
J Med Internet Res. 2024 Oct 18;26:e50730. doi: 10.2196/50730.
8
Delegate contract signing mechanism based on smart contract.基于智能合约的委托签约机制。
PLoS One. 2022 Aug 19;17(8):e0273424. doi: 10.1371/journal.pone.0273424. eCollection 2022.
9
Financial investment trust mechanism based on smart contract.基于智能合约的金融投资信托机制。
PLoS One. 2023 Jul 28;18(7):e0287706. doi: 10.1371/journal.pone.0287706. eCollection 2023.
10
Blockchain smart contracts: Applications, challenges, and future trends.区块链智能合约:应用、挑战及未来趋势。
Peer Peer Netw Appl. 2021;14(5):2901-2925. doi: 10.1007/s12083-021-01127-0. Epub 2021 Apr 18.

本文引用的文献

1
The role of blockchain to secure internet of medical things.区块链在保障医疗物联网安全方面的作用。
Sci Rep. 2024 Aug 8;14(1):18422. doi: 10.1038/s41598-024-68529-x.