Known vulnerabilities in software are solved through security patches; thus, applying such patches as soon as they are released is crucial to protect from cyber-attacks. The diffusion of open source software allowed to inspect the patches to understand whether they are security related or not. In this paper, we propose some solutions based on state-of-the-art deep learn- ing technologies for Natural Language Process- ing for security patches detection. In the exper- iments, we benchmarked our solutions on two data sets for Java security patches detection. Our models showed promising results, outper- forming all the others we used for comparison. Interestingly, we achieved better results train- ing the classifiers from scratch than fine tuning existing models.

Detecting Security Patches in Java Projects Using NLP Technology

Andrea Stefanoni;Licia Sbattella;Vincenzo Scotti;
2022-01-01

Abstract

Known vulnerabilities in software are solved through security patches; thus, applying such patches as soon as they are released is crucial to protect from cyber-attacks. The diffusion of open source software allowed to inspect the patches to understand whether they are security related or not. In this paper, we propose some solutions based on state-of-the-art deep learn- ing technologies for Natural Language Process- ing for security patches detection. In the exper- iments, we benchmarked our solutions on two data sets for Java security patches detection. Our models showed promising results, outper- forming all the others we used for comparison. Interestingly, we achieved better results train- ing the classifiers from scratch than fine tuning existing models.
2022
Proceedings of the 5th International Conference on Natural Language and Speech Processing (ICNLSP 2022)
Natural Language Processing; Security; Code analysis; Java; Transformer; LSTM
File in questo prodotto:
File Dimensione Formato  
paper_sgj+.pdf

accesso aperto

: Pre-Print (o Pre-Refereeing)
Dimensione 162.69 kB
Formato Adobe PDF
162.69 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11311/1223328
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact