Phishing Email Detector (DistilRoBERTa)

distilroberta-base fine-tuned to classify an email body as safe or phishing.

Test-set results (1,751 held-out emails)

Model Accuracy F1 (phishing)
TF-IDF + Logistic Regression (baseline) 98.91% 0.9854
This model 98.63% 0.9816

Usage

from transformers import pipeline
clf = pipeline("text-classification", model="dravaya/phishing-email-detector", truncation=True, max_length=256)
clf("Your account has been suspended. Verify your identity at http://secure-login-update.com")

Limitations

The training data mixes Enron corporate mail and mid-2000s spam, so part of what the model learns is the source and era of an email rather than phishing intent. Expect lower accuracy on modern phishing. Inputs are truncated to 256 tokens. Research/learning project, not a production filter.

Downloads last month
4
Safetensors
Model size
82.1M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for dravyaaa/phishing-email-detector

Quantized
(28)
this model

Dataset used to train dravyaaa/phishing-email-detector

Space using dravyaaa/phishing-email-detector 1