Machine learning classifier that detects phishing emails using NLP feature extraction and Random Forest algorithm. Achieves 92% precision and 90% recall on validation data.
Status: Production Ready
| Metric | Value |
|---|---|
| ROC-AUC Score | 0.92+ |
| F1-Score | 0.91 |
| Precision | 92% |
| Recall | 90% |
phishing_detector.py- Main ML classifierrequirements.txt- Python dependenciessample_data.csv- Training datasetREADME.md- This file
pip install -r requirements.txtpython phishing_detector.py- Uses Random Forest classifier (100 trees)
- Extracts text statistics (character count, uppercase ratio)
- Applies TF-IDF vectorization (1000 features)
- 5-fold cross-validation for validation
Edit phishing_detector.py and change:
test_email = "Your email text here"Author: Bhaavya Seeta Pradhani Status: Production Ready