{"id":{"repo_id":"iastate","oai_identifier":"oai:dr.lib.iastate.edu:20.500.12876/8zn7D9Ww"},"canonical_url":"https://search.ndltd.org/etd/iastate/oai:dr.lib.iastate.edu:20.500.12876/8zn7D9Ww","repository":{"repo_id":"iastate","name":"Iowa State University","base_url":"https://dr.lib.iastate.edu/server/oai/request"},"display":{"title":"Evaluating AI for vulnerability detection","abstract":"The increasing complexity of software systems necessitates robust vulnerability detection mechanisms. This thesis explores Chain of Thought (CoT) reasoning, detecting line-level vulnerability using the LineVul model, and the generation of augmented data using the NatGen tool to evaluate the robustness of large language models (LLMs) for detecting vulnerabilities in code. CoT prompts are designed to elicit step-by-step reasoning in LLMs, aiding in vulnerability detection tasks that require complex code understanding. We explore the potential of LLMs in understanding, reasoning, and predicting code vulnerabilities through the usage of the CoT prompting technique and augmented dataset. Despite the demonstrated effectiveness of these models, our analysis reveals significant challenges in their robustness, particularly in distinguishing buggy from fixed code and accurately identifying vulnerability types. We introduce the LineVul model, a state-of-the-art transformer-based approach that improves line-level vulnerability detection using our cleaned datasets generated by the ActiveClean method. ActiveClean employs active learning to create high-quality line-level vulnerability data, significantly enhancing the detection capabilities of LineVul model. Our evaluations show that the integration of these models and techniques results in improved performance in identifying critical security vulnerabilities in software systems and advancing the field of software security. Our replication package is located at https://figshare.com/s/24819ff5706133596bee.","abstract_html":"The increasing complexity of software systems necessitates robust vulnerability detection mechanisms. This thesis explores Chain of Thought (CoT) reasoning, detecting line-level vulnerability using the LineVul model, and the generation of augmented data using the NatGen tool to evaluate the robustness of large language models (LLMs) for detecting vulnerabilities in code. CoT prompts are designed to elicit step-by-step reasoning in LLMs, aiding in vulnerability detection tasks that require complex code understanding. We explore the potential of LLMs in understanding, reasoning, and predicting code vulnerabilities through the usage of the CoT prompting technique and augmented dataset. Despite the demonstrated effectiveness of these models, our analysis reveals significant challenges in their robustness, particularly in distinguishing buggy from fixed code and accurately identifying vulnerability types. We introduce the LineVul model, a state-of-the-art transformer-based approach that improves line-level vulnerability detection using our cleaned datasets generated by the ActiveClean method. ActiveClean employs active learning to create high-quality line-level vulnerability data, significantly enhancing the detection capabilities of LineVul model. Our evaluations show that the integration of these models and techniques results in improved performance in identifying critical security vulnerabilities in software systems and advancing the field of software security. Our replication package is located at https://figshare.com/s/24819ff5706133596bee.","abstract_has_math":false,"creators":["Alam, Mirza Sanjida"],"institution":"Iowa State University","degree_name":"Master of Science","degree_level":"thesis","degree_discipline":"Computer science","degree_department":"Department of Computer Science","school":null,"contributors":[],"advisors":["Le, Wei","Li, Yang","Stevens, Clay"],"committee_chairs":[],"committee_members":[],"year":2024,"date_issued":"2024-08","date_published":"2024-08","updated_at":"2026-11-19T04:44:00Z","subjects":[],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/8zn7D9Ww"],"render_values":[{"text":"https://dr.lib.iastate.edu/handle/20.500.12876/8zn7D9Ww","href":"https://dr.lib.iastate.edu/handle/20.500.12876/8zn7D9Ww","code":true}]}],"person_identifier_entries":[{"key":"dc:identifier.orcid","label":"ORCID","values":["0000-0002-6174-1801"],"render_values":[{"text":"0000-0002-6174-1801","href":"https://orcid.org/0000-0002-6174-1801","code":true}]}]},"links":{"outbound_url":"https://doi.org/10.31274/td-20250502-182","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.31274/td-20250502-182","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","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%3Aiastate%3Aoai%3Adr.lib.iastate.edu%3A20.500.12876%2F8zn7D9Ww","prefix":"oai_dc"},"source_record":{"url":"https://dr.lib.iastate.edu/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adr.lib.iastate.edu%3A20.500.12876%2F8zn7D9Ww","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Le, Wei","Li, Yang","Stevens, Clay"]},{"key":"dc:contributor.department","label":"Department","values":["Department of Computer Science"]},{"key":"dc:creator","label":"Author","values":["Alam, Mirza Sanjida"]},{"key":"dc:identifier.orcid","label":"ORCID","values":["0000-0002-6174-1801"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2024-10-10T15:52:44Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2024-10-10T15:52:44Z"]},{"key":"dc:date.issued","label":"Date","values":["2024-08"]},{"key":"dc:date.updated","label":"Dc Date Updated","values":["2024-10-10T15:52:45Z"]},{"key":"dc:relation.orgunit","label":"Dc Relation Orgunit","values":["f7be4eb9-d1d0-4081-859b-b15cee251456"]},{"key":"dc:type","label":"Dc Type","values":["thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["thesis"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Iowa State University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.discipline","label":"Dc Subject Discipline","values":["Computer science"]},{"key":"dc:subject.keyword","label":"Dc Subject Keyword","values":["AI"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:language.rfc3066","label":"Language (RFC 3066)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.31274/td-20250502-182"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://dr.lib.iastate.edu/handle/20.500.12876/8zn7D9Ww"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["The increasing complexity of software systems necessitates robust vulnerability detection mechanisms. This thesis explores Chain of Thought (CoT) reasoning, detecting line-level vulnerability using the LineVul model, and the generation of augmented data using the NatGen tool to evaluate the robustness of large language models (LLMs) for detecting vulnerabilities in code. CoT prompts are designed to elicit step-by-step reasoning in LLMs, aiding in vulnerability detection tasks that require complex code understanding. We explore the potential of LLMs in understanding, reasoning, and predicting code vulnerabilities through the usage of the CoT prompting technique and augmented dataset. Despite the demonstrated effectiveness of these models, our analysis reveals significant challenges in their robustness, particularly in distinguishing buggy from fixed code and accurately identifying vulnerability types. We introduce the LineVul model, a state-of-the-art transformer-based approach that improves line-level vulnerability detection using our cleaned datasets generated by the ActiveClean method. ActiveClean employs active learning to create high-quality line-level vulnerability data, significantly enhancing the detection capabilities of LineVul model. Our evaluations show that the integration of these models and techniques results in improved performance in identifying critical security vulnerabilities in software systems and advancing the field of software security. Our replication package is located at https://figshare.com/s/24819ff5706133596bee."]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["PDF"]},{"key":"dc:title","label":"Title","values":["Evaluating AI for vulnerability detection"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]}]}],"canonical_facts":{"dc:contributor.advisor":["Le, Wei","Li, Yang","Stevens, Clay"],"dc:contributor.department":["Department of Computer Science"],"dc:creator":["Alam, Mirza Sanjida"],"dc:date.accessioned":["2024-10-10T15:52:44Z"],"dc:date.available":["2024-10-10T15:52:44Z"],"dc:date.issued":["2024-08"],"dc:date.updated":["2024-10-10T15:52:45Z"],"dc:description.abstract":["The increasing complexity of software systems necessitates robust vulnerability detection mechanisms. This thesis explores Chain of Thought (CoT) reasoning, detecting line-level vulnerability using the LineVul model, and the generation of augmented data using the NatGen tool to evaluate the robustness of large language models (LLMs) for detecting vulnerabilities in code. CoT prompts are designed to elicit step-by-step reasoning in LLMs, aiding in vulnerability detection tasks that require complex code understanding. We explore the potential of LLMs in understanding, reasoning, and predicting code vulnerabilities through the usage of the CoT prompting technique and augmented dataset. Despite the demonstrated effectiveness of these models, our analysis reveals significant challenges in their robustness, particularly in distinguishing buggy from fixed code and accurately identifying vulnerability types. We introduce the LineVul model, a state-of-the-art transformer-based approach that improves line-level vulnerability detection using our cleaned datasets generated by the ActiveClean method. ActiveClean employs active learning to create high-quality line-level vulnerability data, significantly enhancing the detection capabilities of LineVul model. Our evaluations show that the integration of these models and techniques results in improved performance in identifying critical security vulnerabilities in software systems and advancing the field of software security. Our replication package is located at https://figshare.com/s/24819ff5706133596bee."],"dc:format.mimetype":["PDF"],"dc:identifier.doi":["https://doi.org/10.31274/td-20250502-182"],"dc:identifier.orcid":["0000-0002-6174-1801"],"dc:identifier.uri":["https://dr.lib.iastate.edu/handle/20.500.12876/8zn7D9Ww"],"dc:language.iso":["en"],"dc:language.rfc3066":["en"],"dc:relation.orgunit":["f7be4eb9-d1d0-4081-859b-b15cee251456"],"dc:subject.discipline":["Computer science"],"dc:subject.keyword":["AI"],"dc:title":["Evaluating AI for vulnerability detection"],"dc:type":["thesis"],"dspace:entity.type":["Publication"],"thesis:degree_discipline":["Computer science"],"thesis:degree_level":["thesis"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["Iowa State University"]},"updated_at":"2026-11-19T04:44:00Z"}