arXiv:2509.20589cs.CRcs.AI2025-09中稿 · ICTAI 2025被引 1

用字符级模型提升钓鱼邮件检测的准确率与可解释性。

Every Character Counts: From Vulnerability to Defense in Phishing Detection

  • 采用字符级CNN、GRU和双向LSTM模型,直接分析邮件字符。
  • 在有限资源下CharGRU表现最佳,对抗训练显著提升鲁棒性。
  • 通过梯度可视化定位关键字符,帮助理解模型决策过程。

随着技术进步,针对企业和个人的钓鱼攻击日益严重。现有自动检测方法常缺乏可解释性与对新型攻击的鲁棒性。本文研究字符级深度学习模型在钓鱼邮件检测中的有效性,评估了CharCNN、CharGRU和CharBiLSTM三种架构在自建邮件数据集上的表现,该数据集整合了多个来源的数据。实验覆盖三种场景:标准训练测试、标准训练测试下对抗攻击,以及含对抗样本的训练测试。为适配浏览器插件部署,所有模型均在计算资源受限环境下测试。结果显示,在约束条件下CharGRU性能最优。所有模型均易受对抗攻击影响,但对抗训练可显著增强其鲁棒性。此外,通过将梯度加权类激活映射(Grad-CAM)适配至字符输入,实现了对每封邮件中影响判断的关键字符可视化。代码与数据已开源。

原文摘要 · Abstract (English)

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.

钓鱼检测字符级模型对抗鲁棒性可解释性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。