{"id":{"repo_id":"queens","oai_identifier":"oai:queensu.scholaris.ca:1974/36382"},"canonical_url":"https://search.ndltd.org/etd/queens/oai:queensu.scholaris.ca:1974/36382","repository":{"repo_id":"queens","name":"Queens University","base_url":"https://qspace.library.queensu.ca/server/oai/request"},"display":{"title":"LLM-Based YARA Rule Generation for Malware Triage","abstract":"YARA rules are an important method for malware detection: they work via pattern matching, specifying a set of strings and conditions that a file must meet to be classified as belonging to a specific malware family. Writing YARA rules for a given malware family can be difficult, as it requires sifting through known malware instances to identify high quality signatures. For this reason, there is a growing body of work on the automation of YARA rule generation. At present, there are a number of tools available for automatically generating YARA rules; importantly, however, most of these tools predate the rise of Large Language Models. There is thus a need in the literature for work on the application of Large Language Models to the problem of YARA rule generation. The present thesis explores this space, developing a pipeline for intelligently generating YARA rules for malware families via Large Language Models. This pipeline is then used to benchmark several large Language Models –including GPT-4o, Llama 3.1, and Gemma 3 – in terms of their ability to generate high-quality YARA rules. We found that GPT-4o generates YARA rules with the best balance between coverage and false positive rates. Moreover, our GPT-4o-based pipeline achieves performance competitive with state-of-the-art benchmarks, thus demonstrating the utility of Large Language models in the context of static malware detection.","abstract_html":"YARA rules are an important method for malware detection: they work via pattern matching, specifying a set of strings and conditions that a file must meet to be classified as belonging to a specific malware family. Writing YARA rules for a given malware family can be difficult, as it requires sifting through known malware instances to identify high quality signatures. For this reason, there is a growing body of work on the automation of YARA rule generation. At present, there are a number of tools available for automatically generating YARA rules; importantly, however, most of these tools predate the rise of Large Language Models. There is thus a need in the literature for work on the application of Large Language Models to the problem of YARA rule generation. The present thesis explores this space, developing a pipeline for intelligently generating YARA rules for malware families via Large Language Models. This pipeline is then used to benchmark several large Language Models –including GPT-4o, Llama 3.1, and Gemma 3 – in terms of their ability to generate high-quality YARA rules. We found that GPT-4o generates YARA rules with the best balance between coverage and false positive rates. Moreover, our GPT-4o-based pipeline achieves performance competitive with state-of-the-art benchmarks, thus demonstrating the utility of Large Language models in the context of static malware detection.","abstract_has_math":false,"creators":["Beninger, Max"],"institution":"Queen's University at Kingston","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":"Computing","school":null,"contributors":[],"advisors":["Ding, Steven","Zulkernine, Mohammad"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026-04-30","date_published":"2026-04-30","updated_at":"2026-11-19T09:17:47Z","subjects":["YARA rules","malware detection","large language model","cybersecurity"],"languages":["eng"],"rights":["Attribution-NonCommercial 4.0 International"],"rights_urls":["http://creativecommons.org/licenses/by-nc/4.0/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/1974/36382","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/1974/36382","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%2F36382","prefix":"oai_dc"},"source_record":{"url":"https://qspace.library.queensu.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aqueensu.scholaris.ca%3A1974%2F36382","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","Zulkernine, Mohammad"]},{"key":"dc:creator","label":"Author","values":["Beninger, Max"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-04-30T20:15:03Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-04-30"]},{"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":["YARA rules","malware detection","large language model","cybersecurity"]}]},{"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 4.0 International"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://creativecommons.org/licenses/by-nc/4.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/1974/36382"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["YARA rules are an important method for malware detection: they work via pattern matching, specifying a set of strings and conditions that a file must meet to be classified as belonging to a specific malware family. Writing YARA rules for a given malware family can be difficult, as it requires sifting through known malware instances to identify high quality signatures. For this reason, there is a growing body of work on the automation of YARA rule generation. At present, there are a number of tools available for automatically generating YARA rules; importantly, however, most of these tools predate the rise of Large Language Models. There is thus a need in the literature for work on the application of Large Language Models to the problem of YARA rule generation. The present thesis explores this space, developing a pipeline for intelligently generating YARA rules for malware families via Large Language Models. This pipeline is then used to benchmark several large Language Models –including GPT-4o, Llama 3.1, and Gemma 3 – in terms of their ability to generate high-quality YARA rules. We found that GPT-4o generates YARA rules with the best balance between coverage and false positive rates. Moreover, our GPT-4o-based pipeline achieves performance competitive with state-of-the-art benchmarks, thus demonstrating the utility of Large Language models in the context of static malware detection."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["M.Sc."]},{"key":"dc:title","label":"Title","values":["LLM-Based YARA Rule Generation for Malware Triage"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.department":["Computing"],"dc:contributor.supervisor":["Ding, Steven","Zulkernine, Mohammad"],"dc:creator":["Beninger, Max"],"dc:date.accessioned":["2026-04-30T20:15:03Z"],"dc:date.issued":["2026-04-30"],"dc:description.abstract":["YARA rules are an important method for malware detection: they work via pattern matching, specifying a set of strings and conditions that a file must meet to be classified as belonging to a specific malware family. Writing YARA rules for a given malware family can be difficult, as it requires sifting through known malware instances to identify high quality signatures. For this reason, there is a growing body of work on the automation of YARA rule generation. At present, there are a number of tools available for automatically generating YARA rules; importantly, however, most of these tools predate the rise of Large Language Models. There is thus a need in the literature for work on the application of Large Language Models to the problem of YARA rule generation. The present thesis explores this space, developing a pipeline for intelligently generating YARA rules for malware families via Large Language Models. This pipeline is then used to benchmark several large Language Models –including GPT-4o, Llama 3.1, and Gemma 3 – in terms of their ability to generate high-quality YARA rules. We found that GPT-4o generates YARA rules with the best balance between coverage and false positive rates. Moreover, our GPT-4o-based pipeline achieves performance competitive with state-of-the-art benchmarks, thus demonstrating the utility of Large Language models in the context of static malware detection."],"dc:description.degree":["M.Sc."],"dc:identifier.uri":["https://hdl.handle.net/1974/36382"],"dc:language.iso":["eng"],"dc:relation.ispartofseries":["Canadian theses"],"dc:rights":["Attribution-NonCommercial 4.0 International"],"dc:rights.uri":["http://creativecommons.org/licenses/by-nc/4.0/"],"dc:subject":["YARA rules","malware detection","large language model","cybersecurity"],"dc:title":["LLM-Based YARA Rule Generation for Malware Triage"],"dc:type":["thesis"],"others:access_status":["open.access"],"thesis:institution_name":["Queen's University at Kingston"]},"updated_at":"2026-11-19T09:17:47Z"}