• 文献检索
  • 文档翻译
  • 深度研究
  • 学术资讯
  • 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分钟生成高质量综述,智能提取关键信息,辅助科研写作。

立即免费体验

基于多任务学习的智能合约漏洞检测模型。

Smart Contract Vulnerability Detection Model Based on Multi-Task Learning.

机构信息

Faculty of Information Technology, Beijing University of Technology, Beijing 100124, China.

Beijing Key Laboratory of Computational Intelligence and Intelligence System, Beijing 100124, China.

出版信息

Sensors (Basel). 2022 Feb 25;22(5):1829. doi: 10.3390/s22051829.

DOI:10.3390/s22051829
PMID:35270976
原文链接:https://pmc.ncbi.nlm.nih.gov/articles/PMC8914670/
Abstract

The key issue in the field of smart contract security is efficient and rapid vulnerability detection in smart contracts. Most of the existing detection methods can only detect the presence of vulnerabilities in the contract and can hardly identify their type. Furthermore, they have poor scalability. To resolve these issues, in this study, we developed a smart contract vulnerability detection model based on multi-task learning. By setting auxiliary tasks to learn more directional vulnerability features, the detection capability of the model was improved to realize the detection and recognition of vulnerabilities. The model is based on a hard-sharing design, which consists of two parts. First, the bottom sharing layer is mainly used to learn the semantic information of the input contract. The text representation is first transformed into a new vector by word and positional embedding, and then the neural network, based on an attention mechanism, is used to learn and extract the feature vector of the contract. Second, the task-specific layer is mainly employed to realize the functions of each task. A classical convolutional neural network was used to construct a classification model for each task that learns and extracts features from the shared layer for training to achieve their respective task objectives. The experimental results show that the model can better identify the types of vulnerabilities after adding the auxiliary vulnerability detection task. This model realizes the detection of vulnerabilities and recognizes three types of vulnerabilities. The multi-task model was observed to perform better and is less expensive than a single-task model in terms of time, computation, and storage.

摘要

智能合约安全领域的关键问题是在智能合约中高效快速地发现漏洞。现有的大多数检测方法只能检测到合约中存在漏洞,而很难识别其类型。此外,它们的可扩展性较差。为了解决这些问题,在本研究中,我们开发了一种基于多任务学习的智能合约漏洞检测模型。通过设置辅助任务来学习更有针对性的漏洞特征,提高了模型的检测能力,从而实现漏洞的检测和识别。该模型基于硬共享设计,由两部分组成。首先,底层共享层主要用于学习输入合约的语义信息。首先将文本表示通过词和位置嵌入转换为新向量,然后基于注意力机制的神经网络用于学习和提取合约的特征向量。其次,特定于任务的层主要用于实现每个任务的功能。使用经典的卷积神经网络为每个任务构建分类模型,从共享层中学习和提取特征进行训练,以实现各自的任务目标。实验结果表明,在添加辅助漏洞检测任务后,该模型可以更好地识别漏洞类型。该模型实现了漏洞的检测,并识别了三种类型的漏洞。与单任务模型相比,多任务模型在时间、计算和存储方面的性能更好,成本更低。

https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/8bc3507e64fe/sensors-22-01829-g018.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/34352ec03db8/sensors-22-01829-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/3c501707d31c/sensors-22-01829-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/e8573a3fea59/sensors-22-01829-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/92c032605e92/sensors-22-01829-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/386ec30f1a41/sensors-22-01829-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/1310e8c6bfc1/sensors-22-01829-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/38d3bd344026/sensors-22-01829-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/7518cb6f38ca/sensors-22-01829-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/a623e7b02b75/sensors-22-01829-g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/bb10a919af39/sensors-22-01829-g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/e3a14b15b6cb/sensors-22-01829-g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/74bb017fc744/sensors-22-01829-g012.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/75f08adb15d6/sensors-22-01829-g013.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/ef6252899d1e/sensors-22-01829-g014.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/f522545c7a35/sensors-22-01829-g015.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/a7addb6a3b91/sensors-22-01829-g016.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/3b7502edb4e6/sensors-22-01829-g017.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/8bc3507e64fe/sensors-22-01829-g018.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/34352ec03db8/sensors-22-01829-g001.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/3c501707d31c/sensors-22-01829-g002.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/e8573a3fea59/sensors-22-01829-g003.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/92c032605e92/sensors-22-01829-g004.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/386ec30f1a41/sensors-22-01829-g005.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/1310e8c6bfc1/sensors-22-01829-g006.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/38d3bd344026/sensors-22-01829-g007.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/7518cb6f38ca/sensors-22-01829-g008.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/a623e7b02b75/sensors-22-01829-g009.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/bb10a919af39/sensors-22-01829-g010.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/e3a14b15b6cb/sensors-22-01829-g011.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/74bb017fc744/sensors-22-01829-g012.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/75f08adb15d6/sensors-22-01829-g013.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/ef6252899d1e/sensors-22-01829-g014.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/f522545c7a35/sensors-22-01829-g015.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/a7addb6a3b91/sensors-22-01829-g016.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/3b7502edb4e6/sensors-22-01829-g017.jpg
https://cdn.ncbi.nlm.nih.gov/pmc/blobs/da46/8914670/8bc3507e64fe/sensors-22-01829-g018.jpg

相似文献

1
Smart Contract Vulnerability Detection Model Based on Multi-Task Learning.基于多任务学习的智能合约漏洞检测模型。
Sensors (Basel). 2022 Feb 25;22(5):1829. doi: 10.3390/s22051829.
2
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.
3
A Novel Smart Contract Vulnerability Detection Method Based on Information Graph and Ensemble Learning.基于信息图和集成学习的新型智能合约漏洞检测方法。
Sensors (Basel). 2022 May 8;22(9):3581. doi: 10.3390/s22093581.
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
SPCBIG-EC: A Robust Serial Hybrid Model for Smart Contract Vulnerability Detection.SPCBIG-EC:一种用于智能合约漏洞检测的健壮串行混合模型。
Sensors (Basel). 2022 Jun 19;22(12):4621. doi: 10.3390/s22124621.
8
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.
9
Construction and Research on Chinese Semantic Mapping Based on Linguistic Features and Sparse Self-Learning Neural Networks.基于语言特征和稀疏自学习神经网络的中文语义映射构建与研究。
Comput Intell Neurosci. 2022 Jun 20;2022:2315802. doi: 10.1155/2022/2315802. eCollection 2022.
10
Biomedical semantic indexing by deep neural network with multi-task learning.基于多任务学习的深度神经网络生物医学语义索引
BMC Bioinformatics. 2018 Dec 21;19(Suppl 20):502. doi: 10.1186/s12859-018-2534-2.

引用本文的文献

1
A lightweight transformer based multi task learning model with dynamic weight allocation for improved vulnerability prediction.一种基于轻量级变压器的多任务学习模型,具有动态权重分配以改进漏洞预测。
Sci Rep. 2025 Aug 1;15(1):28176. doi: 10.1038/s41598-025-10650-6.
2
Deep learning-based methodology for vulnerability detection in smart contracts.基于深度学习的智能合约漏洞检测方法。
PeerJ Comput Sci. 2024 Sep 26;10:e2320. doi: 10.7717/peerj-cs.2320. eCollection 2024.
3
Smart Contract Vulnerability Detection Based on Deep Learning and Multimodal Decision Fusion.

本文引用的文献

1
Deep learning.深度学习。
Nature. 2015 May 28;521(7553):436-44. doi: 10.1038/nature14539.
基于深度学习和多模态决策融合的智能合约漏洞检测
Sensors (Basel). 2023 Aug 18;23(16):7246. doi: 10.3390/s23167246.
4
A Research on the Sharing Platform of Wild Bird Data in Yunnan Province Based on Blockchain and Interstellar File System.基于区块链和星际文件系统的云南省野生鸟类数据共享平台研究。
Sensors (Basel). 2022 Sep 14;22(18):6961. doi: 10.3390/s22186961.
5
SPCBIG-EC: A Robust Serial Hybrid Model for Smart Contract Vulnerability Detection.SPCBIG-EC:一种用于智能合约漏洞检测的健壮串行混合模型。
Sensors (Basel). 2022 Jun 19;22(12):4621. doi: 10.3390/s22124621.
6
A Novel Smart Contract Vulnerability Detection Method Based on Information Graph and Ensemble Learning.基于信息图和集成学习的新型智能合约漏洞检测方法。
Sensors (Basel). 2022 May 8;22(9):3581. doi: 10.3390/s22093581.
7
Improving Agricultural Product Traceability Using Blockchain.利用区块链提高农产品可追溯性。
Sensors (Basel). 2022 Apr 28;22(9):3388. doi: 10.3390/s22093388.
8
The Blockchain Technology Applied in the Development of Real Economy in Jiangsu under Deep Learning.区块链技术在深度学习下江苏实体经济发展中的应用。
Comput Intell Neurosci. 2022 May 6;2022:3088043. doi: 10.1155/2022/3088043. eCollection 2022.