Back to search

University of Manitoba

Towards automatic vulnerability management in open-source software

Abstract

dc:description.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.

Degree

thesis:*
Level thesis:degree_level
Doctor of Philosophy (Ph.D.)
Discipline thesis:degree_discipline
Computer Science
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Yang, Xu
Advisor dc:contributor.supervisor
  • Wang, Shaowei
Committee members dc:contributor.committeemember
  • Mohammed, Noman (Computer Science)
  • Rouhani, Sara (Computer Science)
  • Shang, Weiyi (University of Waterloo)

Subjects

dc:subject × 4

Rights

Language dc:language.iso
eng

Identifiers

dc:identifier.*
Handle dc:identifier.uri
http://hdl.handle.net/1993/39275

Chain of custody

source
Harvested from
University of Manitoba
Base URL
mspace.lib.umanitoba.ca/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Yang, Xu. Towards automatic vulnerability management in open-source software. Doctor of Philosophy (Ph.D.) thesis, 2026. http://hdl.handle.net/1993/39275