Smart Contract Vulnerability Detection Model Based on Multi-Task Learning

被引:29
|
作者
Huang, Jing [1 ,2 ]
Zhou, Kuo [1 ,2 ]
Xiong, Ao [3 ]
Li, Dongmeng [1 ,2 ]
机构
[1] Beijing Univ Technol, Fac Informat Technol, Beijing 100124, Peoples R China
[2] Beijing Key Lab Computat Intelligence & Intellige, Beijing 100124, Peoples R China
[3] Beijing Univ Posts & Telecommunicat, State Key Lab Networking & Switching Technol, Beijing 100876, Peoples R China
基金
国家重点研发计划;
关键词
smart contract; security; vulnerability detection; multi-task learning;
D O I
10.3390/s22051829
中图分类号
O65 [分析化学];
学科分类号
070302 ; 081704 ;
摘要
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.
引用
收藏
页数:24
相关论文
共 50 条
  • [1] Smart contracts vulnerability detection model based on adversarial multi-task learning
    Zhou, Kuo
    Huang, Jing
    Han, Honggui
    Gong, Bei
    Xiong, Ao
    Wang, Wei
    Wu, Qihui
    [J]. JOURNAL OF INFORMATION SECURITY AND APPLICATIONS, 2023, 77
  • [2] A Smart Contract Vulnerability Detection Model Based on Syntactic and Semantic Fusion Learning
    Han D.
    Li Q.
    Zhang L.
    Xu T.
    [J]. Wireless Communications and Mobile Computing, 2023, 2023
  • [3] A Trusted Multi-Task Distribution Mechanism for Internet of Vehicles Based on Smart Contract
    Xujie Li
    Yuan Xu
    Jing Tang
    Ying Sun
    Shaoshuai Fan
    Fei Shen
    [J]. China Communications, 2023, 20 (04) : 212 - 226
  • [4] A Trusted Multi-Task Distribution Mechanism for Internet of Vehicles Based on Smart Contract
    Li, Xujie
    Xu, Yuan
    Tang, Jing
    Sun, Ying
    Fan, Shaoshuai
    Shen, Fei
    [J]. CHINA COMMUNICATIONS, 2023, 20 (04) : 212 - 226
  • [5] An integrated deep learning model for Ethereum smart contract vulnerability detection
    Jain, Vikas Kumar
    Tripathi, Meenakshi
    [J]. INTERNATIONAL JOURNAL OF INFORMATION SECURITY, 2024, 23 (01) : 557 - 575
  • [6] An integrated deep learning model for Ethereum smart contract vulnerability detection
    Vikas Kumar Jain
    Meenakshi Tripathi
    [J]. International Journal of Information Security, 2024, 23 : 557 - 575
  • [7] Hateful Memes Detection Based on Multi-Task Learning
    Ma, Zhiyu
    Yao, Shaowen
    Wu, Liwen
    Gao, Song
    Zhang, Yunqi
    [J]. MATHEMATICS, 2022, 10 (23)
  • [8] A multi-task deep learning based vulnerability severity prediction method
    Shan, Chun
    Zhang, Ziyi
    Zhou, Siyi
    [J]. 2023 IEEE 12TH INTERNATIONAL CONFERENCE ON CLOUD NETWORKING, CLOUDNET, 2023, : 307 - 315
  • [9] Smart Contract Vulnerability Detection Based on Multi-Scale Encoders
    Guo, Junjun
    Lu, Long
    Li, Jingkui
    [J]. ELECTRONICS, 2024, 13 (03)
  • [10] Survey on Multi-Task Learning in Smart Transportation
    Alzahrani, Mohammed
    Wang, Qianlong
    Liao, Weixian
    Chen, Xuhui
    Yu, Wei
    [J]. IEEE ACCESS, 2024, 12 : 17023 - 17044