Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering · 2022 · 180 citations · 33 references
ComputingComputer ScienceCybersecurityArtificial IntelligenceComputer SecuritySoftware EngineeringSoftware Security EngineeringSoftware Vulnerability DiscoveryStatic Vulnerability AnalysisVulnerability ManagementAutomated Vulnerability DetectionMachine Learning For Vulnerability DetectionVulnerabilityVulnerability DiscoveryVulnerability Discovery Automation
Software vulnerabilities are increasing in volume and complexity, prompting AI-based methods to aid analysts in detection, yet manual repair remains laborious and existing NMT-based repair systems still fall short. The paper proposes VulRepair, a T5-based automated vulnerability repair system that uses pre‑training and BPE to overcome limitations of prior NMT approaches. VulRepair is trained and evaluated on 8,482 fixes from 1,754 real‑world projects, achieving 44 % perfect predictions, 13–21 % higher than baselines. VulRepair outperforms two baselines, accurately fixing 745 of 1,706 well‑known vulnerabilities and demonstrating a significant advance in automated vulnerability repair.
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.
33
Transformers: State-of-the-Art Natural Language Processing
Thomas Wolf, Lysandre Debut, Victor Sanh et al. · 2020 · 8K citations · Full text
CodeBERT: A Pre-Trained Model for Programming and Natural Languages
Zhangyin Feng, Daya Guo, Duyu Tang et al. · 2020 · 2.4K citations · Full text
Yue Wang, Weishi Wang, Shafiq Joty et al. · Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · 2021 · 1.3K citations · Full text