EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Neural Transfer Learning for Repairing Security Vulnerabilities in C Code

Zimin Chen, Steve Kommrusch, Martin Monperrus

IEEE Transactions on Software Engineering · 01.01.2023 · 49 (1) · 147-165

DOI: 10.1109/tse.2022.3147265 ↗

Kurz gefasst

Fachartikel in der Zeitschrift IEEE Transactions on Software Engineering, erschienen am 01.01.2023. Verfasst von Zimin Chen und 2 weiteren Autor:innen. Die Arbeit wurde bisher 157-mal zitiert (Crossref) und nennt 81 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Wallenberg Artificial Intelligence, Autonomous Systems and Software Program, Knut och Alice Wallenbergs Stiftelse, Swedish Foundation for Strategic Research.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

In this paper, we address the problem of automatic repair of software vulnerabilities with deep learning. The major problem with data-driven vulnerability repair is that the few existing datasets of known confirmed vulnerabilities consist of only a few thousand examples. However, training a deep learning model often requires hundreds of thousands of examples. In this work, we leverage the intuition that the bug fixing task and the vulnerability fixing task are related and that the knowledge learned from bug fixes can be transferred to fixing vulnerabilities. In the machine learning community, this technique is called transfer learning. In this paper, we propose an approach for repairing security vulnerabilities named VRepair which is based on transfer learning. VRepair is first trained on a large bug fix corpus and is then tuned on a vulnerability fix dataset, which is an order of magnitude smaller. In our experiments, we show that a model trained only on a bug fix corpus can already fix some vulnerabilities. Then, we demonstrate that transfer learning improves the ability to repair vulnerable C functions. We also show that the transfer learning model performs better than a model trained with a denoising task and fine-tuned on the vulnerability fixing task. To sum up, this paper shows that transfer learning works well for repairing security vulnerabilities in C compared to learning on a small dataset.

Förderung

  • Wallenberg Artificial Intelligence, Autonomous Systems and Software Program
  • Knut och Alice Wallenbergs Stiftelse
  • Swedish Foundation for Strategic Research
  • National Science Foundation
  • Vetenskapsrådet

Zitieren

APA

Chen, Z., Kommrusch, S., & Monperrus, M. (2023). Neural Transfer Learning for Repairing Security Vulnerabilities in C Code. IEEE Transactions on Software Engineering, 49(1), 147-165. https://doi.org/10.1109/tse.2022.3147265

Vancouver

Chen Z, Kommrusch S, Monperrus M. Neural Transfer Learning for Repairing Security Vulnerabilities in C Code. IEEE Transactions on Software Engineering. 2023;49(1):147-165. doi:10.1109/tse.2022.3147265

BibTeX
@article{Chen2023,
  author = {Chen, Zimin and Kommrusch, Steve and Monperrus, Martin},
  title = {Neural Transfer Learning for Repairing Security Vulnerabilities in C Code},
  journal = {IEEE Transactions on Software Engineering},
  year = {2023},
  volume = {49},
  number = {1},
  pages = {147--165},
  doi = {10.1109/tse.2022.3147265}
}
Kostenlos starten →