Identify Vulnerability Fix Commits Automatically Using Hierarchical Attention Network

Authors

  • Mingxin Sun University of Chinese Academy of Sciences
  • Wenjie Wang University of Chinese Academy of Sciences
  • Hantao Feng Xidian University
  • Hongu Sun Xidian University
  • Yuqing Zhang University of Chinese Academy of Sciences

DOI:

https://doi.org/10.4108/eai.13-7-2018.164552

Keywords:

vulnerability detection, GitHub Commits, deep learning, vulnerability patch

Abstract

The application of machine learning and deep learning in the field of vulnerability detection is a hot topic in security research, but currently it faces the problem of lack of dataset. Considering vulnerable code can be obtained from vulnerability fix commits, we propose an automatic vulnerability commit identification tool based on hierarchical attention network (HAN) to expand existing vulnerability dataset. HAN can model the input data at the word and sentence levels respectively and pay attention to the changes in the characteristics of different words in different categories, which improves the classification performance. Experimental results show that the accuracy and F1 of our model both achieve 92%. Through the vulnerability fix commit, researchers can quickly locate the vulnerable code. And extracting vulnerable code from open-source software can effectively expand the current dataset due to the enormous number of open-source software.

Downloads

Published

12-05-2020

How to Cite

1.
Sun M, Wang W, Feng H, Sun H, Zhang Y. Identify Vulnerability Fix Commits Automatically Using Hierarchical Attention Network. EAI Endorsed Trans Sec Saf [Internet]. 2020 May 12 [cited 2025 Nov. 21];7(23):e2. Available from: https://publications.eai.eu/index.php/sesa/article/view/80

Most read articles by the same author(s)