{"id":{"repo_id":"queens","oai_identifier":"oai:queensu.scholaris.ca:1974/35084"},"canonical_url":"https://search.ndltd.org/etd/queens/oai:queensu.scholaris.ca:1974/35084","repository":{"repo_id":"queens","name":"Queens University","base_url":"https://qspace.library.queensu.ca/server/oai/request"},"display":{"title":"Semantic-Aware Fuzzing: A Reasoning-Driven Framework for LLM-Guided Input Mutation","abstract":"Security vulnerabilities in Internet-of-Things (IoT) devices, mobile platforms, and autonomous systems continue to pose significant risks, yet traditional mutation-based fuzzers—while effective at exploring code paths—primarily perform byte- or bit-level edits without true semantic reasoning. Even coverage-guided tools such as AFL++ rely on dictionaries, grammars, and splicing heuristics to impose only shallow structural constraints, leaving deeper protocol logic, inter-field dependencies, and domain-specific semantics unaddressed. In contrast, reasoning-capable large language models (LLMs) have the potentials to leverage human knowledge embedded during pretraining to understand input formats, respect complex constraints, and propose targeted mutations much like an experienced reverse engineer or testing expert would. However, because there is no ground truth for “correct” reasoning in mutation generation, supervised fine-tuning methods fall short, motivating an investigation of whether off-the-shelf LLMs—using prompt-based few-shot learning alone—can meaningfully enhance fuzzing efficiency and coverage. To bridge this gap and to address the asynchronous pacing and divergent hardware demands (GPU- vs. CPU-intensive) of LLMs and fuzzers, we present an open-source framework built on microservices that integrates reasoning LLMs with AFL++ on Google’s FuzzBench. We evaluate it to answer four core research questions: (RQ1) How can reasoning-based LLMs be integrated into the fuzzing mutation loop? (RQ2) Do few-shot prompts yield higher-quality mutations than zero-shot? (RQ3) Are off-the-shelf reasoning models capable of improving fuzzing directly via prompt engineering? and (RQ4) Which open-source reasoning LLMs perform best under prompt-only conditions? Our experiments with Llama3.3, Deepseek-r1-Distill-Llama-70B, QwQ-32B, and Gemma3 reveal that Deepseek-r1-Distill-Llama-70B shows the most promise. Mutation effectiveness depends on balancing prompt complexity with model choice rather than shot count alone. Response latency and throughput bottlenecks remain key obstacles. We release our framework as open-source to promote reproducibility and community extension, and we outline future directions for dynamic scheduling, lightweight feedback integration, and scalable deployment in LLM-guided fuzzing.","abstract_html":"Security vulnerabilities in Internet-of-Things (IoT) devices, mobile platforms, and autonomous systems continue to pose significant risks, yet traditional mutation-based fuzzers—while effective at exploring code paths—primarily perform byte- or bit-level edits without true semantic reasoning. Even coverage-guided tools such as AFL++ rely on dictionaries, grammars, and splicing heuristics to impose only shallow structural constraints, leaving deeper protocol logic, inter-field dependencies, and domain-specific semantics unaddressed. In contrast, reasoning-capable large language models (LLMs) have the potentials to leverage human knowledge embedded during pretraining to understand input formats, respect complex constraints, and propose targeted mutations much like an experienced reverse engineer or testing expert would. However, because there is no ground truth for “correct” reasoning in mutation generation, supervised fine-tuning methods fall short, motivating an investigation of whether off-the-shelf LLMs—using prompt-based few-shot learning alone—can meaningfully enhance fuzzing efficiency and coverage. To bridge this gap and to address the asynchronous pacing and divergent hardware demands (GPU- vs. CPU-intensive) of LLMs and fuzzers, we present an open-source framework built on microservices that integrates reasoning LLMs with AFL++ on Google’s FuzzBench. We evaluate it to answer four core research questions: (RQ1) How can reasoning-based LLMs be integrated into the fuzzing mutation loop? (RQ2) Do few-shot prompts yield higher-quality mutations than zero-shot? (RQ3) Are off-the-shelf reasoning models capable of improving fuzzing directly via prompt engineering? and (RQ4) Which open-source reasoning LLMs perform best under prompt-only conditions? Our experiments with Llama3.3, Deepseek-r1-Distill-Llama-70B, QwQ-32B, and Gemma3 reveal that Deepseek-r1-Distill-Llama-70B shows the most promise. Mutation effectiveness depends on balancing prompt complexity with model choice rather than shot count alone. Response latency and throughput bottlenecks remain key obstacles. We release our framework as open-source to promote reproducibility and community extension, and we outline future directions for dynamic scheduling, lightweight feedback integration, and scalable deployment in LLM-guided fuzzing.","abstract_has_math":false,"creators":["Lu, Mengdi"],"institution":"Queen's University at Kingston","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":"Computing","school":null,"contributors":[],"advisors":["Ding, Steven","Alaca, Furkan"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025-09-11","date_published":"2025-09-11","updated_at":"2026-11-19T09:16:14Z","subjects":["Cybersecurity","Vulnerability detection","Fuzzing","Machine learning","Large language models (LLMs)","Prompt engineering","Reasoning models"],"languages":["eng"],"rights":["Attribution-NonCommercial-NoDerivatives 4.0 International"],"rights_urls":["http://creativecommons.org/licenses/by-nc-nd/4.0/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1974/35084","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1974/35084","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%3Aqueens%3Aoai%3Aqueensu.scholaris.ca%3A1974%2F35084","prefix":"oai_dc"},"source_record":{"url":"https://qspace.library.queensu.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aqueensu.scholaris.ca%3A1974%2F35084","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.department","label":"Department","values":["Computing"]},{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Ding, Steven","Alaca, Furkan"]},{"key":"dc:creator","label":"Author","values":["Lu, Mengdi"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-09-11T14:52:16Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-09-11T14:52:16Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-09-11"]},{"key":"dc:relation.ispartofseries","label":"Dc Relation Ispartofseries","values":["Canadian theses"]},{"key":"dc:type","label":"Dc Type","values":["thesis"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Queen's University at Kingston"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Cybersecurity","Vulnerability detection","Fuzzing","Machine learning","Large language models (LLMs)","Prompt engineering","Reasoning models"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["Attribution-NonCommercial-NoDerivatives 4.0 International"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://creativecommons.org/licenses/by-nc-nd/4.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1974/35084"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Security vulnerabilities in Internet-of-Things (IoT) devices, mobile platforms, and autonomous systems continue to pose significant risks, yet traditional mutation-based fuzzers—while effective at exploring code paths—primarily perform byte- or bit-level edits without true semantic reasoning. Even coverage-guided tools such as AFL++ rely on dictionaries, grammars, and splicing heuristics to impose only shallow structural constraints, leaving deeper protocol logic, inter-field dependencies, and domain-specific semantics unaddressed. In contrast, reasoning-capable large language models (LLMs) have the potentials to leverage human knowledge embedded during pretraining to understand input formats, respect complex constraints, and propose targeted mutations much like an experienced reverse engineer or testing expert would. However, because there is no ground truth for “correct” reasoning in mutation generation, supervised fine-tuning methods fall short, motivating an investigation of whether off-the-shelf LLMs—using prompt-based few-shot learning alone—can meaningfully enhance fuzzing efficiency and coverage. To bridge this gap and to address the asynchronous pacing and divergent hardware demands (GPU- vs. CPU-intensive) of LLMs and fuzzers, we present an open-source framework built on microservices that integrates reasoning LLMs with AFL++ on Google’s FuzzBench. We evaluate it to answer four core research questions: (RQ1) How can reasoning-based LLMs be integrated into the fuzzing mutation loop? (RQ2) Do few-shot prompts yield higher-quality mutations than zero-shot? (RQ3) Are off-the-shelf reasoning models capable of improving fuzzing directly via prompt engineering? and (RQ4) Which open-source reasoning LLMs perform best under prompt-only conditions? Our experiments with Llama3.3, Deepseek-r1-Distill-Llama-70B, QwQ-32B, and Gemma3 reveal that Deepseek-r1-Distill-Llama-70B shows the most promise. Mutation effectiveness depends on balancing prompt complexity with model choice rather than shot count alone. Response latency and throughput bottlenecks remain key obstacles. We release our framework as open-source to promote reproducibility and community extension, and we outline future directions for dynamic scheduling, lightweight feedback integration, and scalable deployment in LLM-guided fuzzing."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["M.Sc."]},{"key":"dc:title","label":"Title","values":["Semantic-Aware Fuzzing: A Reasoning-Driven Framework for LLM-Guided Input Mutation"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.department":["Computing"],"dc:contributor.supervisor":["Ding, Steven","Alaca, Furkan"],"dc:creator":["Lu, Mengdi"],"dc:date.accessioned":["2025-09-11T14:52:16Z"],"dc:date.available":["2025-09-11T14:52:16Z"],"dc:date.issued":["2025-09-11"],"dc:description.abstract":["Security vulnerabilities in Internet-of-Things (IoT) devices, mobile platforms, and autonomous systems continue to pose significant risks, yet traditional mutation-based fuzzers—while effective at exploring code paths—primarily perform byte- or bit-level edits without true semantic reasoning. Even coverage-guided tools such as AFL++ rely on dictionaries, grammars, and splicing heuristics to impose only shallow structural constraints, leaving deeper protocol logic, inter-field dependencies, and domain-specific semantics unaddressed. In contrast, reasoning-capable large language models (LLMs) have the potentials to leverage human knowledge embedded during pretraining to understand input formats, respect complex constraints, and propose targeted mutations much like an experienced reverse engineer or testing expert would. However, because there is no ground truth for “correct” reasoning in mutation generation, supervised fine-tuning methods fall short, motivating an investigation of whether off-the-shelf LLMs—using prompt-based few-shot learning alone—can meaningfully enhance fuzzing efficiency and coverage. To bridge this gap and to address the asynchronous pacing and divergent hardware demands (GPU- vs. CPU-intensive) of LLMs and fuzzers, we present an open-source framework built on microservices that integrates reasoning LLMs with AFL++ on Google’s FuzzBench. We evaluate it to answer four core research questions: (RQ1) How can reasoning-based LLMs be integrated into the fuzzing mutation loop? (RQ2) Do few-shot prompts yield higher-quality mutations than zero-shot? (RQ3) Are off-the-shelf reasoning models capable of improving fuzzing directly via prompt engineering? and (RQ4) Which open-source reasoning LLMs perform best under prompt-only conditions? Our experiments with Llama3.3, Deepseek-r1-Distill-Llama-70B, QwQ-32B, and Gemma3 reveal that Deepseek-r1-Distill-Llama-70B shows the most promise. Mutation effectiveness depends on balancing prompt complexity with model choice rather than shot count alone. Response latency and throughput bottlenecks remain key obstacles. We release our framework as open-source to promote reproducibility and community extension, and we outline future directions for dynamic scheduling, lightweight feedback integration, and scalable deployment in LLM-guided fuzzing."],"dc:description.degree":["M.Sc."],"dc:identifier.uri":["https://hdl.handle.net/1974/35084"],"dc:language.iso":["eng"],"dc:relation.ispartofseries":["Canadian theses"],"dc:rights":["Attribution-NonCommercial-NoDerivatives 4.0 International"],"dc:rights.uri":["http://creativecommons.org/licenses/by-nc-nd/4.0/"],"dc:subject":["Cybersecurity","Vulnerability detection","Fuzzing","Machine learning","Large language models (LLMs)","Prompt engineering","Reasoning models"],"dc:title":["Semantic-Aware Fuzzing: A Reasoning-Driven Framework for LLM-Guided Input Mutation"],"dc:type":["thesis"],"others:access_status":["open.access"],"thesis:institution_name":["Queen's University at Kingston"]},"updated_at":"2026-11-19T09:16:14Z"}