Abstract
dc:description.abstractVulnerabilities are a particularly dangerous subset of defects as their exploitation can cause serious harm to a system and its users. However, vulnerabilities are difficult to detect and repair. It is crucial to detect and repair vulnerabilities quickly to limit the time they can be exploited. In this thesis, I investigate improvements to the vulnerability life cycle, i.e., from introduction to patch adoption, specifically focussing on vulnerability detection and patch creation to assist developers. I first investigate improvements to vulnerability detection and prevention. Static application Security Testing (SAST) tools are an established means to detect and even prevent vulnerabilities early in development. To understand the needs of developers using SAST tools and identify weaknesses in them I perform a number of studies. I perform a large scale survey involving 1,003 professional developers, an evaluation of four SAST tools on a manually curated set of software projects with a known vulnerability and conduct an exploratory industry case study to gain qualitative feedback from industry collaborators. I report a large number of developers do not use multiple SAST tools (59%), do not configure tools (54%) or do either (40%). I also report a configured SAST tool detected 181\% more vulnerabilities than its standard configuration. Which suggests more work is needed to assist developers in combining and configuring SAST tools. Following my survey and industry case study, I report developers want suggested fixes from their static analysis tools. In this regard I research Automatic Program Repair (APR) tools and their relation to repairing security vulnerabilities. I perform a review of 19 different defect APR tools and use statistical analyses to identify their weaknesses and viability for repairing vulnerabilities. I report existing APR tools are more likely to correctly repair defects repaired with smaller patches, making them suitable for repairing vulnerabilities. I also report the best performing tools use commonly occurring fix patterns to guide generated patches. To aid in automatic vulnerability repair, I follow an existing approach to cluster similar fixing commits to identify specific generalisable fix patterns. I highlight six new fix patterns not previously mentioned in the taxonomy which can be used to improve APR performance for repairing vulnerabilities. My main contributions include: survey responses from 1,003 professional developers and recommendations for optimal SAST tool usage, 29 new standardised rules for improved SAST tool performance, a manually curated set of vulnerability fixing commits with build commands and six new fix patterns for improved vulnerability repair performance.
Degree
thesis:*- Name dc:type.qualificationname
- Ph.D.
- Level dc:type.qualificationlevel
- doctoral
- Grantor dc:publisher.institution
- Lancaster University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Authors dc:creator
-
- Bennett, Gaz
- Hall, Tracy
- Winter, Emily
- Bowes, David
- Counsell, Steve
Rights
- Language dc:language.dcterms_iso639_2
- eng