{"id":{"repo_id":"manitoba","oai_identifier":"oai:mspace.lib.umanitoba.ca:1993/38932"},"canonical_url":"https://search.ndltd.org/etd/manitoba/oai:mspace.lib.umanitoba.ca:1993/38932","repository":{"repo_id":"manitoba","name":"University of Manitoba","base_url":"https://mspace.lib.umanitoba.ca/oai/request"},"display":{"title":"Exploring representation-level augmentation and RAG-based vulnerability augmentation with LLMs for vulnerability detection","abstract":"Using deep learning (DL) for detecting software vulnerabilities has become commonplace. However, data shortage remains a significant challenge due to the scarce nature of vulnerabilities. A few papers have attempted to address the data scarcity issue through oversampling, creating specific types of vulnerabilities, or generating code with single-statement vulnerabilities. In this thesis, we aim to find a general-purpose methodology that covers various types of vulnerabilities and multiple-statement ones while beating previous methods. Specifically, we first explore traditional mixup-inspired augmentation methods that work at the representation level and show that these methods can be useful, although they cannot beat random oversampling. One possible reason is that mixing samples heavily degrades the integrity of the code. Hence, we introduce VulScribeR, a RAG-based vulnerability augmentation pipeline that leverages LLMs and maintains code integrity, unlike mixup-based methods. We show that VulScribeR outperforms the state-of-the-art (SOTA), oversampling, and representation-level augmentation methods.","abstract_html":"Using deep learning (DL) for detecting software vulnerabilities has become commonplace. However, data shortage remains a significant challenge due to the scarce nature of vulnerabilities. A few papers have attempted to address the data scarcity issue through oversampling, creating specific types of vulnerabilities, or generating code with single-statement vulnerabilities. In this thesis, we aim to find a general-purpose methodology that covers various types of vulnerabilities and multiple-statement ones while beating previous methods. Specifically, we first explore traditional mixup-inspired augmentation methods that work at the representation level and show that these methods can be useful, although they cannot beat random oversampling. One possible reason is that mixing samples heavily degrades the integrity of the code. Hence, we introduce VulScribeR, a RAG-based vulnerability augmentation pipeline that leverages LLMs and maintains code integrity, unlike mixup-based methods. We show that VulScribeR outperforms the state-of-the-art (SOTA), oversampling, and representation-level augmentation methods.","abstract_has_math":false,"creators":["Daneshvar, Seyed Shayan"],"institution":null,"degree_name":null,"degree_level":"Master of Science (M.Sc.)","degree_discipline":"Computer Science","degree_department":null,"school":null,"contributors":[],"advisors":["Wang, Shaowei"],"committee_chairs":[],"committee_members":["Carson, Leung (Computer Science)","Chowdhury, Shaiful (Computer Science)"],"year":2025,"date_issued":"2025-01-23","date_published":"2025-01-23","updated_at":"2026-11-19T09:11:22Z","subjects":["Vulnerability Augmentation","Vulnerability Generation","Vulnerability Injection","Deep learning","Program Generation","Vulnerability Detection","Software Vulnerability"],"languages":["eng"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1993/38932","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1993/38932","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Amanitoba%3Aoai%3Amspace.lib.umanitoba.ca%3A1993%2F38932","prefix":"oai_dc"},"source_record":{"url":"https://mspace.lib.umanitoba.ca/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Amspace.lib.umanitoba.ca%3A1993%2F38932","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Carson, Leung (Computer Science)","Chowdhury, Shaiful (Computer Science)"]},{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Wang, Shaowei"]},{"key":"dc:creator","label":"Author","values":["Daneshvar, Seyed Shayan"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-03-18T21:06:07Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-03-18T21:06:07Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-01-23"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["2025-03-04T22:57:32Z"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master of Science (M.Sc.)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Vulnerability Augmentation","Vulnerability Generation","Vulnerability Injection","Deep learning","Program Generation","Vulnerability Detection","Software Vulnerability"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["eng"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://hdl.handle.net/1993/38932"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"crisitem:project.awardurl","label":"Crisitem Project Awardurl","values":["https://umanitoba.ca/graduate-studies/funding-awards-and-financial-aid/university-manitoba-graduate-fellowship-umgf"]},{"key":"crisitem:project.funder","label":"Crisitem Project Funder","values":["University of Manitoba"]},{"key":"crisitem:project.funderid","label":"Crisitem Project Funderid","values":["100010318"]},{"key":"crisitem:project.grantno","label":"Crisitem Project Grantno","values":["44872"]},{"key":"crisitem:project.title","label":"Crisitem Project Title","values":["University of Manitoba Graduate Fellowship (UMGF)"]},{"key":"dc:description.abstract","label":"Abstract","values":["Using deep learning (DL) for detecting software vulnerabilities has become commonplace. However, data shortage remains a significant challenge due to the scarce nature of vulnerabilities. A few papers have attempted to address the data scarcity issue through oversampling, creating specific types of vulnerabilities, or generating code with single-statement vulnerabilities. In this thesis, we aim to find a general-purpose methodology that covers various types of vulnerabilities and multiple-statement ones while beating previous methods. Specifically, we first explore traditional mixup-inspired augmentation methods that work at the representation level and show that these methods can be useful, although they cannot beat random oversampling. One possible reason is that mixing samples heavily degrades the integrity of the code. Hence, we introduce VulScribeR, a RAG-based vulnerability augmentation pipeline that leverages LLMs and maintains code integrity, unlike mixup-based methods. We show that VulScribeR outperforms the state-of-the-art (SOTA), oversampling, and representation-level augmentation methods."]},{"key":"dc:description.note","label":"Dc Description Note","values":["May 2025"]},{"key":"dc:description.sponsorship","label":"Dc Description Sponsorship","values":["- Dr. Lorenzo Livi's Support (Initial Supervisor fund) - FGS Research Completion Scholarship - Award Number: 47255 - International Graduate Student Entrance Scholarship - Mitacs Accelerate Internship"]},{"key":"dc:title","label":"Title","values":["Exploring representation-level augmentation and RAG-based vulnerability augmentation with LLMs for vulnerability detection"]},{"key":"local:admin","label":"Local Admin","values":["yes"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"crisitem:project.awardurl":["https://umanitoba.ca/graduate-studies/funding-awards-and-financial-aid/university-manitoba-graduate-fellowship-umgf"],"crisitem:project.funder":["University of Manitoba"],"crisitem:project.funderid":["100010318"],"crisitem:project.grantno":["44872"],"crisitem:project.title":["University of Manitoba Graduate Fellowship (UMGF)"],"dc:contributor.committeemember":["Carson, Leung (Computer Science)","Chowdhury, Shaiful (Computer Science)"],"dc:contributor.supervisor":["Wang, Shaowei"],"dc:creator":["Daneshvar, Seyed Shayan"],"dc:date.accessioned":["2025-03-18T21:06:07Z"],"dc:date.available":["2025-03-18T21:06:07Z"],"dc:date.issued":["2025-01-23"],"dc:date.submitted":["2025-03-04T22:57:32Z"],"dc:description.abstract":["Using deep learning (DL) for detecting software vulnerabilities has become commonplace. However, data shortage remains a significant challenge due to the scarce nature of vulnerabilities. A few papers have attempted to address the data scarcity issue through oversampling, creating specific types of vulnerabilities, or generating code with single-statement vulnerabilities. In this thesis, we aim to find a general-purpose methodology that covers various types of vulnerabilities and multiple-statement ones while beating previous methods. Specifically, we first explore traditional mixup-inspired augmentation methods that work at the representation level and show that these methods can be useful, although they cannot beat random oversampling. One possible reason is that mixing samples heavily degrades the integrity of the code. Hence, we introduce VulScribeR, a RAG-based vulnerability augmentation pipeline that leverages LLMs and maintains code integrity, unlike mixup-based methods. We show that VulScribeR outperforms the state-of-the-art (SOTA), oversampling, and representation-level augmentation methods."],"dc:description.note":["May 2025"],"dc:description.sponsorship":["- Dr. Lorenzo Livi's Support (Initial Supervisor fund) - FGS Research Completion Scholarship - Award Number: 47255 - International Graduate Student Entrance Scholarship - Mitacs Accelerate Internship"],"dc:identifier.uri":["http://hdl.handle.net/1993/38932"],"dc:language.iso":["eng"],"dc:subject":["Vulnerability Augmentation","Vulnerability Generation","Vulnerability Injection","Deep learning","Program Generation","Vulnerability Detection","Software Vulnerability"],"dc:title":["Exploring representation-level augmentation and RAG-based vulnerability augmentation with LLMs for vulnerability detection"],"local:admin":["yes"],"others:access_status":["open.access"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_level":["Master of Science (M.Sc.)"]},"updated_at":"2026-11-19T09:11:22Z"}