arrow
返回

Multi-Granularity Detector for Vulnerability Fixes

delete2023-08-01
delete7
delete
OA
AI
T
Truong Giang Nguyen
T
Thanh Le-Cong
H
Hong Jin Kang
R
Ratnadira Widyasari
C
Chengran Yang
Z
Zhipeng Zhao
B
Bowen Xu *
J
Jiayuan Zhou
X
Xin Xia
A
Ahmed E. Hassan
X
Xuan-Bach D. Le
D
David Lo
DOI:10.1109/TSE.2023.3281275delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
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.
Keyword:
Vulnerability-fixing commit classification
machine learning
deep learning
software security

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

Q
queens university - canada
学者数:
1.8W
论文数: 1.7W
被引数: 29
S
Singapore Management University
学者数:
1.5K
论文数: 2.5K
被引数: 3.5K
U
university of melbourne
学者数:
5.7W
论文数: 5.4W
被引数: 69
学者 查看更多机构
引用论文

引用论文

Firefighting Acutely Increases Airway Responsiveness消防急性增加气道反应性
err1989-07-01
err0
PREAI
errCharles B. Sherman; Scott Barnhart; Mary F. Miller; Mark R. Segal; Moira Aitken; Robert Schoene; William Daniell; Linda Rosenstock
err分享
err收藏
err分享
err收藏
Assessment and comparison of three different air quality indices in China
err2017-07-04
err0
errOAAI
errYouping Li; Ya Tang; Zhongyu Fan; Hong Zhou; Zhengzheng Yang
err分享
err收藏
err分享
err收藏
学者 查看更多内容