IDEAS home Printed from https://ideas.repec.org/a/wly/intnem/v33y2023i3ne2198.html
   My bibliography  Save this article

Intelligent detection of vulnerable functions in software through neural embedding‐based code analysis

Author

Listed:
  • Peng Zeng
  • Guanjun Lin
  • Jun Zhang
  • Ying Zhang

Abstract

Software vulnerability is a fundamental problem in cybersecurity, which poses severe threats to the secure operation of devices and systems. In this paper, we propose a new vulnerability detection framework of employing advanced neural embedding. For example, CodeBERT is a large‐scale pre‐trained embedding model for natural language and programming language. It achieves state‐of‐the‐art performance on various natural language processing and code analysis tasks, demonstrating improved generalization ability compared with conventional models. The proposed framework encapsulates CodeBERT as a code representation generator and combines it with transfer learning to conduct cross‐project vulnerability detection. Considering the problem of lacking code embedding models on C source code, we extract the knowledge from C source code to fine‐tune the pre‐trained embedding model, so as to better facilitate the detection of function‐level vulnerabilities in C open‐source projects. To address the severe data imbalance issue in real‐world scenarios, we introduce code argumentation idea and use a large number of synthetic vulnerability data to further improve the robustness of the detection method. Experimental results show that the proposed vulnerability detection framework achieves better performance than existing methods.

Suggested Citation

  • Peng Zeng & Guanjun Lin & Jun Zhang & Ying Zhang, 2023. "Intelligent detection of vulnerable functions in software through neural embedding‐based code analysis," International Journal of Network Management, John Wiley & Sons, vol. 33(3), May.
  • Handle: RePEc:wly:intnem:v:33:y:2023:i:3:n:e2198
    DOI: 10.1002/nem.2198
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/nem.2198
    Download Restriction: no

    File URL: https://libkey.io/10.1002/nem.2198?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Tjaša Heričko & Boštjan Šumak & Sašo Karakatič, 2024. "Commit-Level Software Change Intent Classification Using a Pre-Trained Transformer-Based Code Model," Mathematics, MDPI, vol. 12(7), pages 1-38, March.

    More about this item

    Statistics

    Access and download statistics

    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:wly:intnem:v:33:y:2023:i:3:n:e2198. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: Wiley Content Delivery (email available below). General contact details of provider: https://doi.org/10.1002/(ISSN)1099-1190 .

    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.