Abstract
The advances of deep learning (DL) have paved the way for automatic software vulnerability repair approaches, which effectively learn the mapping from the vulnerable code to the fixed code. Nevertheless, existing DL-based vulnerability repair methods face notable limitations: 1) they struggle to handle lengthy vulnerable code, 2) they treat code as natural language texts, neglecting its inherent structure, and 3) they do not tap into the valuable expert knowledge present in the expert system. To address this, we propose VulMaster, a Transformer-based neural network model that excels at generating vulnerability repairs by comprehensively understanding the entire vulnerable code, irrespective of its length. This model also integrates diverse information, encompassing vulnerable code structures and expert knowledge from the CWE system. We evaluated VulMaster on a real-world C/C++ vulnerability repair dataset comprising 1,754 projects with 5,800 vulnerable functions. The experimental results demonstrated that VulMaster exhibits substantial improvements compared to the learning-based state-of-the-art vulnerability repair approach. Specifically, VulMaster improves the EM, BLEU, and CodeBLEU scores from 10.2% to 20.0%, 21.3% to 29.3%, and 32.5% to 40.9%, respectively.
Original language | English |
---|---|
Title of host publication | ICSE '24: Proceedings of the IEEE/ACM 46th International Conference on Software Engineering |
Place of Publication | New York |
Publisher | Association for Computing Machinery (ACM) |
Pages | 1-13 |
Number of pages | 13 |
ISBN (Print) | 979-8-4007-0217-4 |
DOIs | |
Publication status | Published - 20 May 2024 |
Event | ICSE: International Conference on Software Engineering, ICSE 2024 - Lisbon, Portugal Duration: 14 Apr 2024 → 20 Apr 2024 |
Conference
Conference | ICSE: International Conference on Software Engineering, ICSE 2024 |
---|---|
Country/Territory | Portugal |
City | Lisbon |
Period | 14/04/24 → 20/04/24 |