一句话:提出基于T5的漏洞修复方法VulRepair,利用预训练和BPE提升自动修复准确率。
软件漏洞数量与复杂度不断增长,现有AI方法多用于发现和定位漏洞,但漏洞函数的手工修复仍耗费大量安全分析师精力。已有基于NMT的自动漏洞修复效果有限。本文提出VulRepair,一种基于T5的自动化软件漏洞修复方法,借助预训练和BPE组件克服前人技术限制。作者在来自1,754个真实软件项目的8,482个漏洞修复上开展实验,取得44%的Perfect Prediction,比竞争基线高13%–21%;并在1,706个知名真实漏洞中成功修复745个(如Use After Free、Improper Input Validation、OS Command Injection),表明其可生成有效漏洞修复,减轻安全分析师负担。
As software vulnerabilities grow in volume and complexity, researchers proposed various Artificial Intelligence (AI)-based approaches to help under-resourced security analysts to find, detect, and localize vulnerabilities. However, security analysts still have to spend a huge amount of effort to manually fix or repair such vulnerable functions. Recent work proposed an NMT-based Automated Vulnerability Repair, but it is still far from perfect due to various limitations. In this paper, we propose VulRepair, a T5-based automated software vulnerability repair approach that leverages the pre-training and BPE components to address various technical limitations of prior work. Through an extensive experiment with over 8,482 vulnerability fixes from 1,754 real-world software projects, we find that our VulRepair achieves a Perfect Prediction of 44%, which is 13%-21% more accurate than competitive baseline approaches. These results lead us to conclude that our VulRepair is considerably more accurate than two baseline approaches, highlighting the substantial advancement of NMT-based Automated Vulnerability Repairs. Our additional investigation also shows that our VulRepair can accurately repair as many as 745 out of 1,706 real-world well-known vulnerabilities (e.g., Use After Free, Improper Input Validation, OS Command Injection), demonstrating the practicality and significance of our VulRepair for generating vulnerability repairs, helping under-resourced security analysts on fixing vulnerabilities.
DOI 原文 ·
@inproceedings{paperbot7050,
title = {VulRepair: a T5-based automated software vulnerability repair},
author = {Michael Fu and Chakkrit Tantithamthavorn and Trung Le and Van Nguyen and Dinh Phung},
booktitle = {FSE},
year = {2022},
doi = {10.1145/3540250.3549098}
}