Smart contract vulnerability detection method based on MixStyle transfer
CSTR:
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

Clc Number:

Fund Project:

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

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • |
  • Materials
  • |
  • Comments
    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.

    Reference
    Related
    Cited by
Get Citation

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

Copy
Related Videos

Share
Article Metrics
  • Abstract:
  • PDF:
  • HTML:
  • Cited by:
History
  • Received:May 08,2024
  • Revised:
  • Adopted:
  • Online: January 06,2025
  • Published:
Article QR Code