IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i23p4823-d1290729.html
   My bibliography  Save this article

A Smart Contract Vulnerability Detection Method Based on Multimodal Feature Fusion and Deep Learning

Author

Listed:
  • Jinggang Li

    (School of Information Science, Yunnan University, Kunming 650500, China)

  • Gehao Lu

    (School of Information Science, Yunnan University, Kunming 650500, China)

  • Yulian Gao

    (School of Information Science, Yunnan University, Kunming 650500, China)

  • Feng Gao

    (Yunnan Provincial Health and Medical Big Data Center, Kunming 650500, China)

Abstract

With the proliferation of blockchain technology in decentralized applications like decentralized finance and supply chain and identity management, smart contracts operating on a blockchain frequently encounter security issues such as reentrancy vulnerabilities, timestamp dependency vulnerabilities, tx.origin vulnerabilities, and integer overflow vulnerabilities. These security concerns pose a significant risk of causing substantial losses to user accounts. Consequently, the detection of vulnerabilities in smart contracts has become a prominent area of research. Existing research exhibits limitations, including low detection accuracy in traditional smart contract vulnerability detection approaches and the tendency of deep learning-based solutions to focus on a single type of vulnerability. To address these constraints, this paper introduces a smart contract vulnerability detection method founded on multimodal feature fusion. This method adopts a multimodal perspective to extract three modal features from the lifecycle of smart contracts, leveraging both static and dynamic features comprehensively. Through deep learning models like Graph Convolutional Networks (GCNs) and bidirectional Long Short-Term Memory networks (bi-LSTMs), effective detection of vulnerabilities in smart contracts is achieved. Experimental results demonstrate that the proposed method attains detection accuracies of 85.73% for reentrancy vulnerabilities, 85.41% for timestamp dependency vulnerabilities, 83.58% for tx.origin vulnerabilities, and 90.96% for integer Overflow vulnerabilities. Furthermore, ablation experiments confirm the efficacy of the newly introduced modal features, highlighting the significance of fusing dynamic and static features in enhancing detection accuracy.

Suggested Citation

  • Jinggang Li & Gehao Lu & Yulian Gao & Feng Gao, 2023. "A Smart Contract Vulnerability Detection Method Based on Multimodal Feature Fusion and Deep Learning," Mathematics, MDPI, vol. 11(23), pages 1-23, November.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:23:p:4823-:d:1290729
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/23/4823/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/23/4823/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Yujian Zhang & Daifu Liu, 2022. "Toward Vulnerability Detection for Ethereum Smart Contracts Using Graph-Matching Network," Future Internet, MDPI, vol. 14(11), pages 1-21, November.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.

      Corrections

      All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:11:y:2023:i:23:p:4823-:d:1290729. See general information about how to correct material in RePEc.

      If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

      If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

      If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

      For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

      Please note that corrections may take a couple of weeks to filter through the various RePEc services.

      IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.