Just-in-Time Detection of Silent Security Patches
Top Cited Papers
Open Access
- 13 May 2026
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 35 (6) , 1-34
Abstract
Open source code is pervasive. In this setting, embedded vulnerabilities are spreading to downstream software at an alarming rate. Although such vulnerabilities are generally identified and addressed rapidly, inconsistent maintenance policies can cause security patches to go unnoticed. Indeed, security patches can be silent , i.e., they do not always come with comprehensive advisories such as CVEs. This lack of transparency leaves users oblivious to available security updates, providing ample opportunity for attackers to exploit unpatched vulnerabilities. Consequently, identifying silent security patches just in time when they are released is essential for preventing n-day attacks and for ensuring robust and secure maintenance practices. With llmda we propose to (1) leverage large language models (LLMs) to augment patch information with generated code change explanations, (2) design a representation learning approach that explores code-text alignment methodologies for feature combination, (3) implement a label-wise training with labeled instructions for guiding the embedding based on security relevance, and (4) rely on a probabilistic batch contrastive learning mechanism for building a high-precision identifier of security patches. We evaluate llmda on the PatchDB and SPI-DB literature datasets and show that our approach substantially improves over the state of the art, notably GraphSPD by 20% in terms of F-Measure on the SPI-DB benchmark.Keywords
All Related Versions
Funding Information
- NATURAL project, which has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant no. 949014)
This publication has 26 references indexed in Scilit:
- App review driven collaborative bug findingEmpirical Software Engineering, 2024
- AIBugHunter: A Practical tool for predicting, classifying and repairing software vulnerabilitiesEmpirical Software Engineering, 2023
- CCBERT: Self-Supervised Code Change Representation Learning2023
- CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back2023
- PatchRNN: A Deep Learning-Based System for Security Patch Identification2021
- Finding A Needle in a Haystack: Automated Mining of Silent Vulnerability Fixes2021
- SPI: Automated Identification of Security Patches via CommitsACM Transactions on Software Engineering and Methodology, 2021
- Multi-Modality Cross Attention Network for Image and Sentence Matching2020
- Automated Vulnerability Detection in Source Code Using Deep Representation Learning2018
- Identifying Linux bug fixing patches2012