Back to search

West Virginia University

UNG: A Diagnostic Standard C Library

Abstract

dc:description.abstract

Undefined behavior in C programs is a major source of unreliable software. Many of the most common exploitable software vulnerabilities can be traced directly to undefined behavior. In the increasingly connected world, a successful attack can cost the victim millions of dollars to recover from. While static program analysis aids in identifying undefined behavior, testing indicates that even the best static analysis tools correctly identifies about 35% of these defects. This dissertation introduces UNG’s Not GNU (UNG), a standard C library designed to mitigate undefined behavior. Where others have seen opportunities for optimization, UNG makes every effort to identify undefined behavior at run time and, when encountered, prevent it from becoming an exploit vector by terminating the program with a detailed diagnostic message. It can be used to protect and diagnose existing programs without recompilation, or it can provide more details by recompiling programs to use it directly. In tests, UNG reliably diagnoses 59 of the 110 types of undefined behavior related to the standard library. This is 14750% more than the average of 0.4 identified by existing implementations, or 5900% more than the next best result of 1. Compared to static analysis tools, UNG correctly identifies 55% more samples than the best performer (38), and 178% more than the average of 21.25. Testing against exploitable Common Vulnerabilities and Exposures (CVE)s also shows that UNG is capable of preventing known attacks from succeeding, providing confidence that it will also prevent future unknown attacks of a similar nature.

Degree

thesis:*
Name thesis:degree_name
PhD
Level thesis:degree_level
Dissertation
Discipline thesis:degree_discipline
Lane Department of Computer Science and Electrical Engineering

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Kaivo, Jakob Knute
Contributors dc:contributor
  • Thomas Devine
  • Katerina Goseva-Popstojanova
  • Brian Powell
  • Brian Woerner
  • Jesse Samluk

Subjects

dc:subject × 5

Identifiers

dc:identifier.*
Identifier
<p><p><a href="https://orcid.org/0009-0006-4673-065X">https://orcid.org/0009-0006-4673-065X</a></p></p>
https://researchrepository.wvu.edu/etd/12537

Chain of custody

source
Harvested from
West Virginia University
Base URL
researchrepository.wvu.edu/do/oai/
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Kaivo, Jakob Knute. UNG: A Diagnostic Standard C Library. Dissertation thesis, https://doi.org/10.33915/etd.12537