{"id":{"repo_id":"vt","oai_identifier":"oai:vtechworks.lib.vt.edu:10919/143222"},"canonical_url":"https://search.ndltd.org/etd/vt/oai:vtechworks.lib.vt.edu:10919/143222","repository":{"repo_id":"vt","name":"Virginia Tech","base_url":"https://vtechworks.lib.vt.edu/oai/request"},"display":{"title":"Generative AI for Hardening Security: From Training Data Augmentation, Language Alignment, to Code Vulnerability Demonstration","abstract":"Machine learning-based cybersecurity systems face fundamental data limitations that constrain their effectiveness across diverse threat environments. Training data for security classifiers is inherently scarce, imbalanced, and subject to distributional shift, degrading generalization under evolving threat landscapes. Foundation model customization pipelines are vulnerable to data poisoning that induces harmful behavioral outputs. Vulnerability detection tools identify risks in software dependencies but provide no mechanism for determining whether reported vulnerabilities are concretely exploitable within a specific application context. This dissertation presents three contributions that leverage generative AI to address these challenges across training data augmentation, language alignment, and code vulnerability demonstration. First, we characterize the data challenges most commonly degrading ML-based security classifier performance through a measurement study of 35 papers published in top security venues. Building on this, we propose Nimai, a controlled synthetic data generation framework based on a Vector-Quantized Variational Autoencoder, designed to augment underrepresented regions of security feature spaces. Evaluated across seven security classification tasks, Nimai improves classifier performance in four of seven tasks, achieving up to 32 percent accuracy improvement under severe data constraints, and recovers up to 60.4 percent of performance degraded by concept drift. Second, we investigate the security of foundation model customization pipelines under toxicity injection attacks. We propose a healing data approach that employs a safety-aligned large language model to generate contextually relevant, prosocial replacements for identified toxic samples, actively instilling desirable behavioral alignment rather than discarding harmful content. Fine-tuning on the healed dataset achieves near-zero Response Toxicity Rates across three model architectures while preserving conversational quality, degrading gracefully under imperfect toxicity classifiers. Third, we address the challenge of bridging vulnerability detection and real-world exploitability assessment in software supply chains. We propose PoVSmith, an agent-based framework for automated proof-of-vulnerability test generation in Java applications. PoVSmith identifies application-level entry points to vulnerable library APIs through agent-based call path analysis, then iteratively generates, executes, and refines JUnit test cases guided by exemplar tests and execution feedback. Evaluated on 33 Java application-library pairs, PoVSmith reveals 158 unique application-level entry points to vulnerable library APIs and correctly identifies 152 of them with their call paths, achieving 96 percent precision. Using this call information, PoVSmith generates 152 PoV tests, of which 84, or 55 percent, demonstrate feasible ways of exploiting library vulnerabilities through application code. Collectively, these contributions demonstrate that generative AI can systematically strengthen cybersecurity pipelines by augmenting scarce training data to improve classifier generalization, curating conversational fine-tuning data to enforce safe model behavior, and producing executable evidence of real-world vulnerability exploitability, establishing generative AI as a unifying instrument for hardening security systems across data, model, and system layers.","abstract_html":"Machine learning-based cybersecurity systems face fundamental data limitations that constrain their effectiveness across diverse threat environments. Training data for security classifiers is inherently scarce, imbalanced, and subject to distributional shift, degrading generalization under evolving threat landscapes. Foundation model customization pipelines are vulnerable to data poisoning that induces harmful behavioral outputs. Vulnerability detection tools identify risks in software dependencies but provide no mechanism for determining whether reported vulnerabilities are concretely exploitable within a specific application context. This dissertation presents three contributions that leverage generative AI to address these challenges across training data augmentation, language alignment, and code vulnerability demonstration. First, we characterize the data challenges most commonly degrading ML-based security classifier performance through a measurement study of 35 papers published in top security venues. Building on this, we propose Nimai, a controlled synthetic data generation framework based on a Vector-Quantized Variational Autoencoder, designed to augment underrepresented regions of security feature spaces. Evaluated across seven security classification tasks, Nimai improves classifier performance in four of seven tasks, achieving up to 32 percent accuracy improvement under severe data constraints, and recovers up to 60.4 percent of performance degraded by concept drift. Second, we investigate the security of foundation model customization pipelines under toxicity injection attacks. We propose a healing data approach that employs a safety-aligned large language model to generate contextually relevant, prosocial replacements for identified toxic samples, actively instilling desirable behavioral alignment rather than discarding harmful content. Fine-tuning on the healed dataset achieves near-zero Response Toxicity Rates across three model architectures while preserving conversational quality, degrading gracefully under imperfect toxicity classifiers. Third, we address the challenge of bridging vulnerability detection and real-world exploitability assessment in software supply chains. We propose PoVSmith, an agent-based framework for automated proof-of-vulnerability test generation in Java applications. PoVSmith identifies application-level entry points to vulnerable library APIs through agent-based call path analysis, then iteratively generates, executes, and refines JUnit test cases guided by exemplar tests and execution feedback. Evaluated on 33 Java application-library pairs, PoVSmith reveals 158 unique application-level entry points to vulnerable library APIs and correctly identifies 152 of them with their call paths, achieving 96 percent precision. Using this call information, PoVSmith generates 152 PoV tests, of which 84, or 55 percent, demonstrate feasible ways of exploiting library vulnerabilities through application code. Collectively, these contributions demonstrate that generative AI can systematically strengthen cybersecurity pipelines by augmenting scarce training data to improve classifier generalization, curating conversational fine-tuning data to enforce safe model behavior, and producing executable evidence of real-world vulnerability exploitability, establishing generative AI as a unifying instrument for hardening security systems across data, model, and system layers.","abstract_has_math":false,"creators":["Kanchi, Shravya"],"institution":"Virginia Tech","degree_name":"Doctor of Philosophy","degree_level":"doctoral","degree_discipline":"Computer Science & Applications","degree_department":"Computer Science and#38; Applications","school":null,"contributors":[],"advisors":[],"committee_chairs":["Yao, Danfeng"],"committee_members":["Nilizadeh, Shirin","Chung, Taejoong Tijay","Meng, Na","Hoang, Thang"],"year":2026,"date_issued":"2026-06-01","date_published":"2026-06-01","updated_at":"2026-11-18T20:16:54Z","subjects":["Generative AI Security","Synthetic Data Augmentation","Language Model Alignment","Proof-of-Vulnerability Generation","Software Supply Chain Security"],"languages":["en"],"rights":["In Copyright"],"rights_urls":["http://rightsstatements.org/vocab/InC/1.0/"],"identifier_entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["vt_gsexam:46694"],"render_values":[{"text":"vt_gsexam:46694","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10919/143222","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10919/143222","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","download_url":null,"download_label":null,"download_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://vtechworks.lib.vt.edu/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Avtechworks.lib.vt.edu%3A10919%2F143222","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeechair","label":"Committee Chair","values":["Yao, Danfeng"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Nilizadeh, Shirin","Chung, Taejoong Tijay","Meng, Na","Hoang, Thang"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science and#38; Applications"]},{"key":"dc:creator","label":"Author","values":["Kanchi, Shravya"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-06-02T08:00:27Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-06-02T08:00:27Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-06-01"]},{"key":"dc:publisher","label":"Institution","values":["Virginia Tech"]},{"key":"dc:type","label":"Dc Type","values":["Dissertation"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science & Applications"]},{"key":"thesis:degree_level","label":"Degree Level","values":["doctoral"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Virginia Polytechnic Institute and State University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Generative AI Security","Synthetic Data Augmentation","Language Model Alignment","Proof-of-Vulnerability Generation","Software Supply Chain Security"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["In Copyright"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://rightsstatements.org/vocab/InC/1.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["vt_gsexam:46694"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10919/143222"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Machine learning-based cybersecurity systems face fundamental data limitations that constrain their effectiveness across diverse threat environments. Training data for security classifiers is inherently scarce, imbalanced, and subject to distributional shift, degrading generalization under evolving threat landscapes. Foundation model customization pipelines are vulnerable to data poisoning that induces harmful behavioral outputs. Vulnerability detection tools identify risks in software dependencies but provide no mechanism for determining whether reported vulnerabilities are concretely exploitable within a specific application context. This dissertation presents three contributions that leverage generative AI to address these challenges across training data augmentation, language alignment, and code vulnerability demonstration. First, we characterize the data challenges most commonly degrading ML-based security classifier performance through a measurement study of 35 papers published in top security venues. Building on this, we propose Nimai, a controlled synthetic data generation framework based on a Vector-Quantized Variational Autoencoder, designed to augment underrepresented regions of security feature spaces. Evaluated across seven security classification tasks, Nimai improves classifier performance in four of seven tasks, achieving up to 32 percent accuracy improvement under severe data constraints, and recovers up to 60.4 percent of performance degraded by concept drift. Second, we investigate the security of foundation model customization pipelines under toxicity injection attacks. We propose a healing data approach that employs a safety-aligned large language model to generate contextually relevant, prosocial replacements for identified toxic samples, actively instilling desirable behavioral alignment rather than discarding harmful content. Fine-tuning on the healed dataset achieves near-zero Response Toxicity Rates across three model architectures while preserving conversational quality, degrading gracefully under imperfect toxicity classifiers. Third, we address the challenge of bridging vulnerability detection and real-world exploitability assessment in software supply chains. We propose PoVSmith, an agent-based framework for automated proof-of-vulnerability test generation in Java applications. PoVSmith identifies application-level entry points to vulnerable library APIs through agent-based call path analysis, then iteratively generates, executes, and refines JUnit test cases guided by exemplar tests and execution feedback. Evaluated on 33 Java application-library pairs, PoVSmith reveals 158 unique application-level entry points to vulnerable library APIs and correctly identifies 152 of them with their call paths, achieving 96 percent precision. Using this call information, PoVSmith generates 152 PoV tests, of which 84, or 55 percent, demonstrate feasible ways of exploiting library vulnerabilities through application code. Collectively, these contributions demonstrate that generative AI can systematically strengthen cybersecurity pipelines by augmenting scarce training data to improve classifier generalization, curating conversational fine-tuning data to enforce safe model behavior, and producing executable evidence of real-world vulnerability exploitability, establishing generative AI as a unifying instrument for hardening security systems across data, model, and system layers."]},{"key":"dc:description.abstractgeneral","label":"General Abstract","values":["Artificial intelligence systems are increasingly used to defend against cybersecurity threats. This dissertation investigates how generative AI, a class of AI that produces new data, text, and code, can improve how cybersecurity systems are built and validated across three interconnected challenges. Security models built on machine learning struggle when training data is scarce and imbalanced. To address this, we develop a method for generating realistic synthetic training data tailored to security tasks, focusing on producing artificial examples in the areas where real data is most limited. Experiments across seven security tasks show improvements of up to 32 percent in model accuracy under severe data constraints, and recovery of up to 60.4 percent of performance lost as threats evolve over time. AI chatbots customized on untrusted conversational data can be manipulated to produce harmful responses. Rather than simply removing harmful training examples, we introduce a healing data technique that uses a safety-trained AI model to generate clean, contextually appropriate replacements. Models trained on this repaired data exhibit near-zero rates of harmful output while maintaining coherent and useful conversations across multiple architectures. Existing tools can identify that a software library contains a vulnerability but cannot determine whether a real attacker could exploit it in a specific application. We present a framework that automatically generates executable test cases demonstrating whether a reported vulnerability can be triggered. Tested on 33 real software application-library pairs, the framework identifies 158 application entry points to vulnerable library APIs, correctly recognizes 152 of them with their call paths, and produces 84 working exploit demonstrations. Together, these contributions establish generative AI as a unifying instrument for hardening cybersecurity systems by augmenting training data, aligning model behavior, and validating real-world exploitability, producing systems that are more accurate, trustworthy, and grounded in real-world conditions."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Doctor of Philosophy"]},{"key":"dc:format.medium","label":"Dc Format Medium","values":["ETD"]},{"key":"dc:title","label":"Title","values":["Generative AI for Hardening Security: From Training Data Augmentation, Language Alignment, to Code Vulnerability Demonstration"]}]}],"canonical_facts":{"dc:contributor.committeechair":["Yao, Danfeng"],"dc:contributor.committeemember":["Nilizadeh, Shirin","Chung, Taejoong Tijay","Meng, Na","Hoang, Thang"],"dc:contributor.department":["Computer Science and#38; Applications"],"dc:creator":["Kanchi, Shravya"],"dc:date.accessioned":["2026-06-02T08:00:27Z"],"dc:date.available":["2026-06-02T08:00:27Z"],"dc:date.issued":["2026-06-01"],"dc:description.abstract":["Machine learning-based cybersecurity systems face fundamental data limitations that constrain their effectiveness across diverse threat environments. Training data for security classifiers is inherently scarce, imbalanced, and subject to distributional shift, degrading generalization under evolving threat landscapes. Foundation model customization pipelines are vulnerable to data poisoning that induces harmful behavioral outputs. Vulnerability detection tools identify risks in software dependencies but provide no mechanism for determining whether reported vulnerabilities are concretely exploitable within a specific application context. This dissertation presents three contributions that leverage generative AI to address these challenges across training data augmentation, language alignment, and code vulnerability demonstration. First, we characterize the data challenges most commonly degrading ML-based security classifier performance through a measurement study of 35 papers published in top security venues. Building on this, we propose Nimai, a controlled synthetic data generation framework based on a Vector-Quantized Variational Autoencoder, designed to augment underrepresented regions of security feature spaces. Evaluated across seven security classification tasks, Nimai improves classifier performance in four of seven tasks, achieving up to 32 percent accuracy improvement under severe data constraints, and recovers up to 60.4 percent of performance degraded by concept drift. Second, we investigate the security of foundation model customization pipelines under toxicity injection attacks. We propose a healing data approach that employs a safety-aligned large language model to generate contextually relevant, prosocial replacements for identified toxic samples, actively instilling desirable behavioral alignment rather than discarding harmful content. Fine-tuning on the healed dataset achieves near-zero Response Toxicity Rates across three model architectures while preserving conversational quality, degrading gracefully under imperfect toxicity classifiers. Third, we address the challenge of bridging vulnerability detection and real-world exploitability assessment in software supply chains. We propose PoVSmith, an agent-based framework for automated proof-of-vulnerability test generation in Java applications. PoVSmith identifies application-level entry points to vulnerable library APIs through agent-based call path analysis, then iteratively generates, executes, and refines JUnit test cases guided by exemplar tests and execution feedback. Evaluated on 33 Java application-library pairs, PoVSmith reveals 158 unique application-level entry points to vulnerable library APIs and correctly identifies 152 of them with their call paths, achieving 96 percent precision. Using this call information, PoVSmith generates 152 PoV tests, of which 84, or 55 percent, demonstrate feasible ways of exploiting library vulnerabilities through application code. Collectively, these contributions demonstrate that generative AI can systematically strengthen cybersecurity pipelines by augmenting scarce training data to improve classifier generalization, curating conversational fine-tuning data to enforce safe model behavior, and producing executable evidence of real-world vulnerability exploitability, establishing generative AI as a unifying instrument for hardening security systems across data, model, and system layers."],"dc:description.abstractgeneral":["Artificial intelligence systems are increasingly used to defend against cybersecurity threats. This dissertation investigates how generative AI, a class of AI that produces new data, text, and code, can improve how cybersecurity systems are built and validated across three interconnected challenges. Security models built on machine learning struggle when training data is scarce and imbalanced. To address this, we develop a method for generating realistic synthetic training data tailored to security tasks, focusing on producing artificial examples in the areas where real data is most limited. Experiments across seven security tasks show improvements of up to 32 percent in model accuracy under severe data constraints, and recovery of up to 60.4 percent of performance lost as threats evolve over time. AI chatbots customized on untrusted conversational data can be manipulated to produce harmful responses. Rather than simply removing harmful training examples, we introduce a healing data technique that uses a safety-trained AI model to generate clean, contextually appropriate replacements. Models trained on this repaired data exhibit near-zero rates of harmful output while maintaining coherent and useful conversations across multiple architectures. Existing tools can identify that a software library contains a vulnerability but cannot determine whether a real attacker could exploit it in a specific application. We present a framework that automatically generates executable test cases demonstrating whether a reported vulnerability can be triggered. Tested on 33 real software application-library pairs, the framework identifies 158 application entry points to vulnerable library APIs, correctly recognizes 152 of them with their call paths, and produces 84 working exploit demonstrations. Together, these contributions establish generative AI as a unifying instrument for hardening cybersecurity systems by augmenting training data, aligning model behavior, and validating real-world exploitability, producing systems that are more accurate, trustworthy, and grounded in real-world conditions."],"dc:description.degree":["Doctor of Philosophy"],"dc:format.medium":["ETD"],"dc:identifier.other":["vt_gsexam:46694"],"dc:identifier.uri":["https://hdl.handle.net/10919/143222"],"dc:language.iso":["en"],"dc:publisher":["Virginia Tech"],"dc:rights":["In Copyright"],"dc:rights.uri":["http://rightsstatements.org/vocab/InC/1.0/"],"dc:subject":["Generative AI Security","Synthetic Data Augmentation","Language Model Alignment","Proof-of-Vulnerability Generation","Software Supply Chain Security"],"dc:title":["Generative AI for Hardening Security: From Training Data Augmentation, Language Alignment, to Code Vulnerability Demonstration"],"dc:type":["Dissertation"],"thesis:degree_discipline":["Computer Science & Applications"],"thesis:degree_level":["doctoral"],"thesis:degree_name":["Doctor of Philosophy"],"thesis:institution_name":["Virginia Polytechnic Institute and State University"]},"updated_at":"2026-11-18T20:16:54Z"}