Year: 2025
Type: article
Abstract: Open-source software (OSS) is the foundation of the digital world, yet its transparent development model exposes systems to security vulnerabilities. Effective OSS vulnerability management requires two fundamental capabilities: vulnerability detection (VD), which identifies vulnerable code in repositories before exploitation, and vulnerability-fix detection (VFD), which monitors upstream commits to identify security patches. While VD prevents vulnerable code from reaching production, VFD enables downstream organizations to proactively apply critical patches before public disclosure. However, data challenges limit current approaches. This thesis addresses four critical data-centric challenges through targeted studies. First challenge is extreme class imbalance. Vulnerability code comprising less than 5% repositories, data imbalance causing detection models to lose up to 73% effectiveness. We systematically evaluated sampling strategies on vulnerability detection models, demonstrating that random oversampling on raw code improves both VD model's performance and interpretability. Second, long-tail vulnerability distributions leave rare but critical vulnerability types underrepresented in training data, yet these edge cases often matter most for safety-critical systems. We developed MoEVD, a mixture-of-experts architecture that routes input to specialized experts, achieving 12.8% higher F1 while improving detection of underrepresented categories. Third, security-critical code changes are often subtle, only a small part of code changes are security related. Existing work often overlook such distinctive patterns. We created VFDelta using fine-grained delta embeddings to capture nuanced changes, improving F1 by 77.4%. Fourth, vulnerability fixes hide within tangled commits combining security patches with unrelated changes, while crucial context resides in scattered artifacts. We introduced LLM4VFD, which uses large language models to integrate code changes with development artifacts and vulnerability history, achieving 68-145% F1 improvements while providing explanations. This thesis provides novel techniques and practical guidance for improving automated vulnerability and vulnerability-fix detection in OSS. The presented approaches address four critical limitations in existing tools through data-centric solutions, offering both enhanced detection accuracy and explanations to bridges the gap between academic prototypes and real-world deployment.
Source: Mspace (University of Manitoba)
Author: Yang, Xu
Institution: University of Manitoba
Language: English
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7137469091
