Exploring Early Vulnerability Analysis via Automatic Identification of Vulnerability-Introducing Commits
Weiliang Qi, Shu Wang, Youpeng Li, Ela Guo, Xinda Wang
Abstract
Developing effective vulnerability analysis techniques requires high-quality datasets that capture how vulnerabilities appear and evolve in real software codebase. Existing datasets, however, typically label as vulnerable only the code immediately preceding vulnerability-fixing commits (VFCs), overlooking the earlier versions in which vulnerabilities were first introduced and subsequently evolved. This practice limits both dataset coverage and our understanding of whether current detectors can identify vulnerabilities during their early, latent stages. In this paper, we present three manually annotated datasets of vulnerability-introducing commits (VICs) based on recent CVEs and widely used open-source projects. We further propose D-SZZ, a data state-aware VIC identification framework that analyzes security-fixing patterns and performs vulnerability scope slicing to recover the semantics implied by a fix. Experimental results demonstrate that D-SZZ outperforms existing SZZ and LLM-based baselines in identifying VICs. In addition, we evaluate six representative vulnerability detectors and find that models trained only on pre-VFC code struggle with original vulnerabilities, while incorporating early-stage samples improves detection performance. We also show that D-SZZ improves downstream vulnerable-version identification, and use it to uncover 16 inaccurate affected-version records in the NVD, all of which were officially confirmed and updated.
Create a lesson
Related papers
Too Fast to Doubt? Skipping Reasoning Leaves Jev-like Models Vulnerable
Shared title terminology · Yue Li, Hao Wu, Zenan Fu et al.
Mjolnir: Finding and Reproducing Vulnerabilities in Root-of-Trust Firmware and RTL with Project-Grounded Agents
Shared title terminology · Collin MacDonald, Carl Lundin, Stephen Herwig et al.
SoK: Assessing the Evolution of LLM Capability in Software Vulnerability Research
Shared title terminology · Amine Lbath, Manan Suri, Aurelien Delaitre et al.
Question, Then Affirm: Restoring Commitment Does Not Restore Refusal
Shared title terminology · Haoyang Xu, Qirui Wang, Liuwan Zhu
Hardening JavaScript Programs against LLM-Based Vulnerability Detection
Shared title terminology · Zhenhao Tian, Jintong Yu, Jingwei Feng et al.
ChainAgent: Automated Chainable Vulnerability Discovery in PHP Web Applications
Shared title terminology · Xinyi Wang, Yeting Li, Shizhe Cui et al.