This is a fine-tuned DistilBERT model for phishing email detection. The model identifies whether an email is a phishing attempt based on its text. Phishing emails are malicious messages designed to deceive recipients into revealing sensitive information or taking unsafe actions. This model aims to assist in automatically detecting such emails to enhance cybersecurity.
Dataset
The model was fine-tuned on the Phishing Emails Dataset available on Kaggle:
Phishing Emails Dataset
Description: The dataset contains legitimate and phishing email samples with their corresponding labels.
Size: The dataset includes a comprehensive range of phishing and non-phishing emails.
The model exhibits strong performance, with consistent improvements in validation accuracy and loss across epochs, indicating effective fine-tuning.
How to Use
python
1from transformers import pipeline
23# Load the pipeline with your model4pipe = pipeline("text-classification", model="rahulkothuri/phishing-email-disilBERT")56# Input: Email content7email_content ="'Why do employees leave companies — analysis of IBM employee data"8output = pipe(email_content, top_k=None)910print(output)11
Limitations
Biases in the Dataset: The dataset may not cover all variations of phishing emails, potentially leading to lower accuracy on unseen types of phishing attacks.
Language Limitations: This model is trained on English emails and may not perform well with emails in other languages.
Context Understanding: The model relies solely on text and cannot account for contextual cues (e.g., links, attachments).
Ethical Considerations
False Positives: Legitimate emails classified as phishing could lead to inconvenience.
False Negatives: Failure to detect a phishing email could lead to security risks.
Users are encouraged to use this model in conjunction with other security measures.
Citation
If you use this model, please cite the dataset:
@dataset{kaggle_phishing_emails,
author = {Subha Journal},
title = {Phishing Emails Dataset},
year = {2022},
url = {https://www.kaggle.com/datasets/subhajournal/phishingemails}
}