Just-in-Time Security Patch Detection -- LLM At the Rescue for Data Augmentation
Preprint
Abstract
In the face of growing vulnerabilities found in open-source software, the need to identify {discreet} security patches has become paramount. The lack of consistency in how software providers handle maintenance often leads to the release of security patches without comprehensive advisories, leaving users vulnerable to unaddressed security risks. To address this pressing issue, we introduce a novel security patch detection system, LLMDA, which capitalizes on Large Language Models (LLMs) and code-text alignment methodologies for patch review, data enhancement, and feature combination. Within LLMDA, we initially utilize LLMs for examining patches and expanding data of PatchDB and SPI-DB, two security patch datasets from recent literature. We then use labeled instructions to direct our LLMDA, differentiating patches based on security relevance. Following this, we apply a PTFormer to merge patches with code, formulating hybrid attributes that encompass both the innate details and the interconnections between the patches and the code. This distinctive combination method allows our system to capture more insights from the combined context of patches and code, hence improving detection precision. Finally, we devise a probabilistic batch contrastive learning mechanism within batches to augment the capability of the our LLMDA in discerning security patches. The results reveal that LLMDA significantly surpasses the start of the art techniques in detecting security patches, underscoring its promise in fortifying software maintenance.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Semantic similarity loss for neural source code summarizationJournal of Software: Evolution and Process, 2024
- Why, How and Where of Delays in Software Security Patch Management: An Empirical Investigation in the Healthcare SectorProceedings of the ACM on Human-Computer Interaction, 2022
- SPI: Automated Identification of Security Patches via CommitsACM Transactions on Software Engineering and Methodology, 2021
- SySeVR: A Framework for Using Deep Learning to Detect Software VulnerabilitiesIEEE Transactions on Dependable and Secure Computing, 2021
- Automating Patching of Vulnerable Open-Source Software Versions in Application Binaries2019
- IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based Fuzzing2018
- A Review on Evaluation Metrics for Data Classification EvaluationsInternational Journal of Data Mining & Knowledge Management Process, 2015