基于混合风格迁移的智能合约漏洞检测方法
CSTR:
作者:
作者单位:

1.广汽埃安新能源汽车股份有限公司,广州 510440;2.广州汽车集团股份有限公司,广州 511458;3.星河智联汽车科技有限公司,广州 510335;4.广汽能源科技有限公司,广州 511453;5.广州城市理工学院 机械工程学院与机器人工程学院, 广州 510800;6.华南理工大学 机械与汽车工程学院,广州 510641

作者简介:

李敏(1984—)男,工程师,主要从事智能网联汽车方向研究,(E-mail)11109493@qq.com。

通讯作者:

姜立标,男,副教授,(E-mail)jlb620620@163.com。

中图分类号:

基金项目:

国家自然科学基金(61602345)。


Smart contract vulnerability detection method based on MixStyle transfer
Author:
Affiliation:

1.GAC AION New Energy Automobile CO. LTD., Guangzhou511400, P. R. China;2.GAC R&D Center, Guangzhou511458, P. R. China;3.Syncore Autotech Co., Ltd., Guangzhou510335, P. R. China;4.GAC Energy Technology Co., LTD., Guangzhou511453, P. R. China;5.School of Mechanical Engineering and School of Robotics Engineering, Guangzhou City University of Technology, Guangzhou 510800, P.R.China;6.School of Mechanical and Automotive Engineering , South China University of Technology, Guangzhou510641, P.R.China

Fund Project:

Supported by National Natural Science Foundation of China(61602345).

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    研究提出了一种基于混合风格迁移的智能合约漏洞检测方法,旨在解决智能合约新漏洞出现时数据集不足和无法有效检测未知漏洞问题。首先,从智能合约源代码中提取抽象语法树,使用图注意力网络捕获节点间的依赖关系和信息流;然后,采用最大均值差异实现从旧漏洞到新漏洞的有效知识迁移,从而增加深度学习模型训练的数据量;最后,在分类器中融入MixStyle技术增强模型的泛化能力并提高对新型漏洞类型的识别准确度。实验结果表明,在4种漏洞类型的检测上,该方法在F1、ACC、MCC指标上优于BLSTM-ATT、BiGAS、Peculiar方法。

    Abstract:

    This study presents a smart contract vulnerability detection method using MixStyle transfer to address challenges related to limited datasets and the detection of unknown vulnerabilities when new ones arise in smart contracts. The method first extracts the abstract syntax tree from the smart contract source code and uses a graph attention network to capture dependencies and information flow between nodes. Then, maximum mean discrepancy(MMD) is used to facilitate effective knowledge transfer from known vulnerabilities to emerging ones, thus expanding the dataset available for deep learning model training. Finally, the MixStyle technique is incorporated into the classifier to enhance model generalization and improve the accuracy of identifying novel vulnerability types. Experimental results show that this method outperforms BLSTM-ATT, BiGAS, and Peculiar methods in F1, ACC, and MCC metrics for detecting four types of vulnerabilities.

    参考文献
    相似文献
    引证文献
引用本文

李敏,时瑞浩,张莹,袁海兵,姜立标,缪丹云.基于混合风格迁移的智能合约漏洞检测方法[J].重庆大学学报,2024,47(12):70-82.

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2024-05-08
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2025-01-06
  • 出版日期:
文章二维码