Production-ready phishing email detector with BERT Transformer + Bidirectional LSTM deep learning models. Features live UI with model agreement, confidence comparison, final verdict, risk indicator, and processing time.
🤖 BERT Prediction
🧠 LSTM Prediction
📊 Model Agreement Status (✅ Agree / ⚠️ Disagree)
📈 Average Confidence Score
🎯 Final Combined Verdict
🟢 Risk Level Indicator
git clone https://github.com/kasmya/phising-detector-dl.git
cd phising-detector-dl
pip install -r requirements.txtpython app.pyOpen: http://localhost:5001
Legitimate Invoice:
Invoice #1234
Dear Customer,
Your invoice #1234 is ready. Download: invoice1234.pdf
Questions? support@company.com
Thanks, Billing Dept
Expected: LEGITIMATE ✅ | Low Risk | Models Agree
Phishing Alert:
URGENT: Your account is LOCKED! Verify immediately:
http://fake-bank-security.com/verify-account
24hrs or PERMANENT loss!
Expected: PHISHING 🔴 | High Risk | Models Agree
- BERT: Fine-tuned on phishing emails (HuggingFace)
- LSTM: Custom bidirectional RNN with class weights
- Vocab: 8K tokens (
lstm_vocab_fixed.json) - Max Len: 80 tokens
phising-detector-dl/
├── app.py # Flask backend + models
├── templates/index.html # Responsive UI
├── requirements.txt # Dependencies
├── lstm_phishing_fixed.pth # LSTM model (91% acc)
├── lstm_vocab_fixed.json # LSTM vocab
├── phishing_model/ # BERT model files
├── README.md # This file