{"id":{"repo_id":"vt","oai_identifier":"oai:vtechworks.lib.vt.edu:10919/143986"},"canonical_url":"https://search.ndltd.org/etd/vt/oai:vtechworks.lib.vt.edu:10919/143986","repository":{"repo_id":"vt","name":"Virginia Tech","base_url":"https://vtechworks.lib.vt.edu/oai/request"},"display":{"title":"Scam Shield: A Hierarchical Framework for Robust and Efficient Adversarial Scam Detection","abstract":"Can we trust large language models (LLMs) to accurately detect scams? This thesis investigates the vulnerabilities of LLMs when facing adversarial scam messages. We created a dataset with fine-grained labels, including original scam messages, adversarial scam messages, and non-scam messages. These labels allow us to examine detection performance across different scam types in addition to the binary classification task. We evaluated GPT, Claude, and LLaMA on this dataset. Under the selected rewriting conditions, the evaluated models miss scam messages even when the deceptive intent is preserved. To address this problem, we propose a Hierarchical Scam Detection System (HSDS). The system combines four lightweight classifiers, Decision Tree, XGBoost, Random Forest, and K-Nearest Neighbors, with a fine-tuned LLaMA 3.1 8B Instruct model. The classifiers first predict whether each message is a scam. When all four agree, the system returns their prediction. When they disagree, the message is sent to the language model. We fine-tuned this model with Low-Rank Adaptation (LoRA) using a domain-specific adversarial dataset. The fine-tuned model achieved higher detection scores with zero-shot prompting than the evaluated few-shot baselines. The full HSDS achieved an accuracy of 0.90 and an F1-score of 0.90, with higher scores than the evaluated proprietary LLM baselines. It also reduced average inference time by approximately 56.7% compared with the fine-tuned model alone. Romance scams remained difficult to detect. Further work could examine whether semantic and contextual features improve detection of these emotionally manipulative messages.","abstract_html":"Can we trust large language models (LLMs) to accurately detect scams? This thesis investigates the vulnerabilities of LLMs when facing adversarial scam messages. We created a dataset with fine-grained labels, including original scam messages, adversarial scam messages, and non-scam messages. These labels allow us to examine detection performance across different scam types in addition to the binary classification task. We evaluated GPT, Claude, and LLaMA on this dataset. Under the selected rewriting conditions, the evaluated models miss scam messages even when the deceptive intent is preserved. To address this problem, we propose a Hierarchical Scam Detection System (HSDS). The system combines four lightweight classifiers, Decision Tree, XGBoost, Random Forest, and K-Nearest Neighbors, with a fine-tuned LLaMA 3.1 8B Instruct model. The classifiers first predict whether each message is a scam. When all four agree, the system returns their prediction. When they disagree, the message is sent to the language model. We fine-tuned this model with Low-Rank Adaptation (LoRA) using a domain-specific adversarial dataset. The fine-tuned model achieved higher detection scores with zero-shot prompting than the evaluated few-shot baselines. The full HSDS achieved an accuracy of 0.90 and an F1-score of 0.90, with higher scores than the evaluated proprietary LLM baselines. It also reduced average inference time by approximately 56.7% compared with the fine-tuned model alone. Romance scams remained difficult to detect. Further work could examine whether semantic and contextual features improve detection of these emotionally manipulative messages.","abstract_has_math":false,"creators":["Chang, Chen-Wei"],"institution":"Virginia Tech","degree_name":"Master of Science","degree_level":"masters","degree_discipline":"Computer Science & Applications","degree_department":"Computer Science and#38; Applications","school":null,"contributors":[],"advisors":[],"committee_chairs":["Lu, Chang Tien"],"committee_members":["Cho, Jin-Hee","Purohit, Hemant"],"year":2026,"date_issued":"2026-11-05","date_published":"2026-11-05","updated_at":"2026-11-18T20:22:37Z","subjects":["Large Language Models","Scam Detection","Adversarial Attacks","Fine-Tuning","Multi-Model Voting"],"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:48066"],"render_values":[{"text":"vt_gsexam:48066","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10919/143986","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10919/143986","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%2F143986","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeechair","label":"Committee Chair","values":["Lu, Chang Tien"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Cho, Jin-Hee","Purohit, Hemant"]},{"key":"dc:contributor.department","label":"Department","values":["Computer Science and#38; Applications"]},{"key":"dc:creator","label":"Author","values":["Chang, Chen-Wei"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-11-06T09:00:25Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-11-06T09:00:25Z"]},{"key":"dc:date.issued","label":"Date","values":["2026-11-05"]},{"key":"dc:publisher","label":"Institution","values":["Virginia Tech"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science & Applications"]},{"key":"thesis:degree_level","label":"Degree Level","values":["masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"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":["Large Language Models","Scam Detection","Adversarial Attacks","Fine-Tuning","Multi-Model Voting"]}]},{"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:48066"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10919/143986"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Can we trust large language models (LLMs) to accurately detect scams? This thesis investigates the vulnerabilities of LLMs when facing adversarial scam messages. We created a dataset with fine-grained labels, including original scam messages, adversarial scam messages, and non-scam messages. These labels allow us to examine detection performance across different scam types in addition to the binary classification task. We evaluated GPT, Claude, and LLaMA on this dataset. Under the selected rewriting conditions, the evaluated models miss scam messages even when the deceptive intent is preserved. To address this problem, we propose a Hierarchical Scam Detection System (HSDS). The system combines four lightweight classifiers, Decision Tree, XGBoost, Random Forest, and K-Nearest Neighbors, with a fine-tuned LLaMA 3.1 8B Instruct model. The classifiers first predict whether each message is a scam. When all four agree, the system returns their prediction. When they disagree, the message is sent to the language model. We fine-tuned this model with Low-Rank Adaptation (LoRA) using a domain-specific adversarial dataset. The fine-tuned model achieved higher detection scores with zero-shot prompting than the evaluated few-shot baselines. The full HSDS achieved an accuracy of 0.90 and an F1-score of 0.90, with higher scores than the evaluated proprietary LLM baselines. It also reduced average inference time by approximately 56.7% compared with the fine-tuned model alone. Romance scams remained difficult to detect. Further work could examine whether semantic and contextual features improve detection of these emotionally manipulative messages."]},{"key":"dc:description.abstractgeneral","label":"General Abstract","values":["Online scams are becoming harder to recognize because criminals can rewrite messages to sound polite, professional, and trustworthy. By replacing suspicious words, softening urgent language, or removing familiar warning phrases, they can preserve the same deceptive goal while avoiding detection. This thesis examines how these small changes can fool widely used artificial intelligence systems that otherwise perform well on more obvious scams. To address this weakness, this thesis introduces the Hierarchical Scam Detection System (HSDS). In this two-stage system, several fast and lightweight machine-learning models first review each message. When the models agree, their shared decision is returned immediately; when they disagree, the message is sent to a specialized language model trained to recognize both original and deliberately modified scams. This design reserves the more powerful analysis for difficult cases and improves the overall speed and reliability of scam detection. Emotionally manipulative scams remain challenging. Even so, the results show that efficient detectors combined with a specialized language model provide a practical foundation for tools that help people and online services respond to evolving digital fraud."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Master of Science"]},{"key":"dc:format.medium","label":"Dc Format Medium","values":["ETD"]},{"key":"dc:title","label":"Title","values":["Scam Shield: A Hierarchical Framework for Robust and Efficient Adversarial Scam Detection"]}]}],"canonical_facts":{"dc:contributor.committeechair":["Lu, Chang Tien"],"dc:contributor.committeemember":["Cho, Jin-Hee","Purohit, Hemant"],"dc:contributor.department":["Computer Science and#38; Applications"],"dc:creator":["Chang, Chen-Wei"],"dc:date.accessioned":["2026-11-06T09:00:25Z"],"dc:date.available":["2026-11-06T09:00:25Z"],"dc:date.issued":["2026-11-05"],"dc:description.abstract":["Can we trust large language models (LLMs) to accurately detect scams? This thesis investigates the vulnerabilities of LLMs when facing adversarial scam messages. We created a dataset with fine-grained labels, including original scam messages, adversarial scam messages, and non-scam messages. These labels allow us to examine detection performance across different scam types in addition to the binary classification task. We evaluated GPT, Claude, and LLaMA on this dataset. Under the selected rewriting conditions, the evaluated models miss scam messages even when the deceptive intent is preserved. To address this problem, we propose a Hierarchical Scam Detection System (HSDS). The system combines four lightweight classifiers, Decision Tree, XGBoost, Random Forest, and K-Nearest Neighbors, with a fine-tuned LLaMA 3.1 8B Instruct model. The classifiers first predict whether each message is a scam. When all four agree, the system returns their prediction. When they disagree, the message is sent to the language model. We fine-tuned this model with Low-Rank Adaptation (LoRA) using a domain-specific adversarial dataset. The fine-tuned model achieved higher detection scores with zero-shot prompting than the evaluated few-shot baselines. The full HSDS achieved an accuracy of 0.90 and an F1-score of 0.90, with higher scores than the evaluated proprietary LLM baselines. It also reduced average inference time by approximately 56.7% compared with the fine-tuned model alone. Romance scams remained difficult to detect. Further work could examine whether semantic and contextual features improve detection of these emotionally manipulative messages."],"dc:description.abstractgeneral":["Online scams are becoming harder to recognize because criminals can rewrite messages to sound polite, professional, and trustworthy. By replacing suspicious words, softening urgent language, or removing familiar warning phrases, they can preserve the same deceptive goal while avoiding detection. This thesis examines how these small changes can fool widely used artificial intelligence systems that otherwise perform well on more obvious scams. To address this weakness, this thesis introduces the Hierarchical Scam Detection System (HSDS). In this two-stage system, several fast and lightweight machine-learning models first review each message. When the models agree, their shared decision is returned immediately; when they disagree, the message is sent to a specialized language model trained to recognize both original and deliberately modified scams. This design reserves the more powerful analysis for difficult cases and improves the overall speed and reliability of scam detection. Emotionally manipulative scams remain challenging. Even so, the results show that efficient detectors combined with a specialized language model provide a practical foundation for tools that help people and online services respond to evolving digital fraud."],"dc:description.degree":["Master of Science"],"dc:format.medium":["ETD"],"dc:identifier.other":["vt_gsexam:48066"],"dc:identifier.uri":["https://hdl.handle.net/10919/143986"],"dc:language.iso":["en"],"dc:publisher":["Virginia Tech"],"dc:rights":["In Copyright"],"dc:rights.uri":["http://rightsstatements.org/vocab/InC/1.0/"],"dc:subject":["Large Language Models","Scam Detection","Adversarial Attacks","Fine-Tuning","Multi-Model Voting"],"dc:title":["Scam Shield: A Hierarchical Framework for Robust and Efficient Adversarial Scam Detection"],"dc:type":["Thesis"],"thesis:degree_discipline":["Computer Science & Applications"],"thesis:degree_level":["masters"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["Virginia Polytechnic Institute and State University"]},"updated_at":"2026-11-18T20:22:37Z"}