EUVIMEDEUVIMED entdecken
Crossref

Multi-Granularity Detector for Vulnerability Fixes

Truong Giang Nguyen, Thanh Le-Cong, Hong Jin Kang, Ratnadira Widyasari, Chengran Yang, Zhipeng Zhao, Bowen Xu, Jiayuan Zhou, Xin Xia, Ahmed E. Hassan, Xuan-Bach D. Le, David Lo

IEEE Transactions on Software Engineering · 2023-08 · 49 (8) · 4035-4057

DOI: 10.1109/tse.2023.3281275 ↗

Kurz gefasst

Fachartikel in der Zeitschrift IEEE Transactions on Software Engineering, 2023-08. Verfasst von Truong Giang Nguyen und 11 weiteren Autor:innen. Die Arbeit wurde bisher 31-mal zitiert (Crossref) und nennt 106 Literaturangaben. Gefördert von: National Research Foundation Singapore, National University of Singapore, National Satellite of Excellence in Trustworthy Software Systems (NSOE-TSS) office.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

With the increasing reliance on Open Source Software, users are exposed to third-party library vulnerabilities. Software Composition Analysis (SCA) tools have been created to alert users of such vulnerabilities. SCA requires the identification of vulnerability-fixing commits. Prior works have proposed methods that can automatically identify such vulnerability-fixing commits. However, identifying such commits is highly challenging, as only a very small minority of commits are vulnerability fixing. Moreover, code changes can be noisy and difficult to analyze. We observe that noise can occur at different levels of detail, making it challenging to detect vulnerability fixes accurately. To address these challenges and boost the effectiveness of prior works, we propose MiDas (Multi-Granularity Detector for Vulnerability Fixes). Unique from prior works, MiDas constructs different neural networks for each level of code change granularity, corresponding to commit-level, file-level, hunk-level, and line-level, following their natural organization and then use an ensemble model combining all base models to output the final prediction. This design allows MiDas to better cope with the noisy and highly-imbalanced nature of vulnerability-fixing commit data. In addition, to reduce the human effort required to inspect code changes, we have designed an effort-aware adjustment for MiDas's outputs based on commit length. The evaluation result demonstrates that MiDas outperforms the current state-of-the-art baseline on both Java and Python-based datasets in terms of AUC by 4.9% and 13.7%, respectively. Furthermore, in terms of two effort-aware metrics, i.e., EffortCost@L and Popt@L, MiDas also performs better than the state-of-the-art baseline up to 28.2% and 15.9% on Java, 60% and 51.4% on Python, respectively.

Förderung

  • National Research Foundation Singapore
  • National University of Singapore
  • National Satellite of Excellence in Trustworthy Software Systems (NSOE-TSS) office
  • Trustworthy Computing for Secure Smart Nation Grant
  • Australian Research Council's Discovery Early Career Researcher Award

Zitieren

APA

Nguyen, T. G., Le-Cong, T., Kang, H. J., Widyasari, R., Yang, C., Zhao, Z., Xu, B., Zhou, J., Xia, X., Hassan, A. E., Le, X. D., & Lo, D. (2023). Multi-Granularity Detector for Vulnerability Fixes. IEEE Transactions on Software Engineering, 49(8), 4035-4057. https://doi.org/10.1109/tse.2023.3281275

Vancouver

Nguyen TG, Le-Cong T, Kang HJ, Widyasari R, Yang C, Zhao Z, et al. Multi-Granularity Detector for Vulnerability Fixes. IEEE Transactions on Software Engineering. 2023;49(8):4035-4057. doi:10.1109/tse.2023.3281275

BibTeX
@article{Nguyen2023,
  author = {Nguyen, Truong Giang and Le-Cong, Thanh and Kang, Hong Jin and Widyasari, Ratnadira and Yang, Chengran and Zhao, Zhipeng and Xu, Bowen and Zhou, Jiayuan and Xia, Xin and Hassan, Ahmed E. and Le, Xuan-Bach D. and Lo, David},
  title = {Multi-Granularity Detector for Vulnerability Fixes},
  journal = {IEEE Transactions on Software Engineering},
  year = {2023},
  volume = {49},
  number = {8},
  pages = {4035--4057},
  doi = {10.1109/tse.2023.3281275}
}
Kostenlos starten →