Back to search

Wright State University

Understanding and Enhancing the Efficiency and Efficacy of Machine Learning–Assisted Software Vulnerability Detection

Abstract

dc:description

As our world has become dependent upon software for nearly every aspect of modern society, software security has followed as an essential feature. The first line of defense against vulnerabilities is secure coding. While today’s programmers are carefully taught secure coding best practices, they can make mistakes or intentionally introduce vulnerable code. The traditional backstop to human errors and insider threats is the adoption of automated security analysis tools. These analysis tools have limitations. Static analysis suffers from high false positive rates that may cause annoyance and complacency among developers. Dynamic analysis can be difficult to set up and very computationally expensive. As a result of these shortcomings, researchers have turned to Machine Learning as a way to improve the performance of automated security analysis tools. Recent Machine Learning–Assisted Software Vulnerability Detection (MLAVD) research has focused on large-scale models with hundreds of millions of parameters powered by expensive attention- or graph-based architectures. Despite increased model capacity, current models have limited accuracy and struggle to generalize to unseen data.This dissertation presents systematic research to understand and enhance the efficiency and efficacy of MLAVD models. First, we explore 7 C/C++ datasets and evaluate their suitability for the task. During this, we present a new dataset, named Wild C, containing over 10.3 million individual open-source C/C++ files. We find that the datasets are not representative of typical C/C++ code, diverging in file length, token frequency, vocabulary, etc. Additionally, all the datasets contain duplication, with the Juliet dataset containing pre-split code augmentations making it susceptible to data leakage.Second, we consider how 5 different deep learning architectures perform on 5 tests designed to simulate tasks that are prerequisites for software vulnerability detection. We demonstrate how commonly used MLAVD architectures struggle to learn from these tasks, indicating a gap between true semantic vulnerability detection and the apparent syntactic methods of existing approaches.Finally, we perform the first study of resource-efficient MLAVD, showing that such models can be competitive with strong MLAVD baselines. We design Vul-Mixer, a resource-efficient architecture inspired by how the human brain processes code. Through extensive experimentation, we demonstrate that Vul-Mixer enhances efficiency and efficacy by improving state-of-the-art generalization while using only 0.2% of the baseline’s parameters.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy (PhD)
Level thesis:degree_level
doctoral
Discipline thesis:degree_discipline
Computer Science and Engineering PhD
Grantor dc:publisher
Wright State University
Year dc:date
2023

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Grahn, Daniel J.
Contributors dc:contributor
  • Zhang, Junjie
  • Chen, Lingwei

Subjects

dc:subject × 6

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: some rights reserved. It is licensed for use under a Creative Commons license. Specific terms and permissions are available from this document's record in the OhioLINK ETD Center.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Grahn, Daniel J.. Understanding and Enhancing the Efficiency and Efficacy of Machine Learning–Assisted Software Vulnerability Detection. doctoral thesis, Wright State University, 2023. http://rave.ohiolink.edu/etdc/view?acc_num=wright170263434269593