Every Character Counts: From Vulnerability to Defense in Phishing Detection
Not on the map. Why?
Abstract (arXiv)
Phishing attacks targeting both organizations and individuals are becoming an increasingly significant threat as technology advances. Current automatic detection methods often lack explainability and robustness in detecting new phishing attacks. In this work, we investigate the effectiveness of character-level deep learning models for phishing detection, which can provide both robustness and interpretability. We evaluate three neural architectures adapted to operate at the character level, namely CharCNN, CharGRU, and CharBiLSTM, on a custom-built email dataset, which combines data from multiple sources. Their performance is analyzed under three scenarios: (i) standard training and testing, (ii) standard training and testing under adversarial attacks, and (iii) training and testing with adversarial examples. Aiming to develop a tool that operates as a browser extension, we test all models under limited computational resources. In this constrained setup, CharGRU proves to be the best-performing model across all scenarios. All models show vulnerability to adversarial attacks, but adversarial training substantially improves their robustness. In addition, by adapting the Gradient-weighted Class Activation Mapping (Grad-CAM) technique to character-level inputs, we are able to visualize which parts of each email influence the decision of each model. Our open-source code and data is released at https://github.com/chipermaria/every-character-counts.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 31 of its 66 references that are in the map. First posted on arXiv 24 Sep 2025.
Builds on
31 of 66 references.
References · 31
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,733
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2017Squeeze-and-Excitation Networkscited by 4,789
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2019Attention is not Explanationcited by 929
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
19 more
- 2023Spear Phishing With Large Language Modelscited by 52
- 2020A Hierarchy of Limitations in Machine Learningcited by 20
- 2019MOROCO: The Moldavian and Romanian Dialectal Corpuscited by 15
- 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineeringcited by 15
- 2021SaRoCo: Detecting Satire in a Novel Romanian Corpus of News Articlescited by 12
- 2024An Explainable Transformer-based Model for Phishing Email Detection: A Large Language Model Approachcited by 9
- 2024A Modified Word Saliency-Based Adversarial Attack on Text Classification Modelscited by 9
- 2024Analysis and prevention of AI-based phishing email attackscited by 6
- 2025EXPLICATE: Enhancing Phishing Detection through Explainable AI and LLM-Powered Interpretabilitycited by 6
- 2022Phishing Attacks Detection -- A Machine Learning-Based Approachcited by 3
- 2014Analysis of Phishing Attacks and Countermeasurescited by 2
- 2021Analyzing Cyber-Attack Intention for Digital Forensics Using Case-Based Reasoningcited by 1
- 2021Detecting Phishing Sites -- An Overviewcited by 1
- 2023Targeted Attacks: Redefining Spear Phishing and Business Email Compromisecited by 1
- 2023A Quantitative Study of SMS Phishing Detectioncited by 1
- 2024Phishing Email Detection Using Inputs From Artificial Intelligencecited by 1
- 2024Comparative Analysis of Black-Box and White-Box Machine Learning Model in Phishing Detectioncited by 1
- 2025Web Phishing Net (WPN): A scalable machine learning approach for real-time phishing campaign detectioncited by 1
- 2025Evaluating Large Language Models for Phishing Detection, Self-Consistency, Faithfulness, and Explainabilitycited by 1
Built on by
Not cited yet.