即时检测静默安全补丁
Just-in-Time Detection of Silent Security Patches
AI总结:
针对开源代码中静默安全补丁易被忽视的问题,提出LLMDA方法,通过LLM增强补丁信息、代码-文本对齐特征组合等技术,在基准数据集上F值较GraphSPD提升20%,可即时识别静默安全补丁以防范n天攻击。
摘要:
开源代码无处不在。在这种环境下,嵌入式漏洞正以惊人的速度扩散到下游软件中。虽然此类漏洞通常能被快速识别和解决,但不一致的维护策略可能导致安全补丁被忽视。实际上,安全补丁可能是“静默”的,即它们并不总是附带如CVE等全面的公告。这种透明度的缺失使用户对可用的安全更新一无所知,为攻击者利用未修补的漏洞提供了充足机会。因此,在静默安全补丁发布时即时识别它们,对于防止n天攻击以及确保稳健安全的维护实践至关重要。我们提出LLMDA方法:(1)利用大型语言模型(LLMs)通过生成代码变更解释来增强补丁信息;(2)设计一种表示学习方法,探索代码-文本对齐方法以进行特征组合;(3)实施带标签指令的逐标签训练,基于安全相关性指导嵌入;(4)依赖概率批次对比学习机制构建高精度的安全补丁识别器。我们在PatchDB和SPI-DB文献数据集上评估LLMDA,结果表明我们的方法显著优于现有技术,特别是在SPI-DB基准上,F值比GraphSPD提高了20%。
英文摘要:
Open-source code is pervasive. In this setting, embedded vulnerabilities are spreading to downstream software at an alarming rate. While such vulnerabilities are generally identified and addressed rapidly, inconsistent maintenance policies may lead security patches to go unnoticed. Indeed, security patches can be {\em 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 labelled 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。