Skip to content

About

“Our project shows how Machine Learning and simple code can work together to stop phishing before it stops us.” “This solution is fast, accurate, and practical — ready to be deployed in browsers, emails, and company firewalls.”

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🛡️ Phishing Attack Detection using Machine Learning & Java

About

Phishing is the most common social engineering attack where fake websites trick people into sharing sensitive information.
In this project we built:

  • 🧠 A Machine Learning model to classify phishing vs. safe websites
  • 💻 A simple Java program to quickly flag suspicious URLs with heuristic rules

Dataset

We used publicly available datasets:

How to Run

1. Train ML Model

cd ml_model python train_and_save.py Output:

model.pkl → saved ML model

plots/ → ROC curve, Feature Importance, Class Distribution charts

  1. Run Java Demo bash Copy code cd java_demo javac SimplePhishingCheck.java java SimplePhishingCheck Example:

sql Copy code Enter URL: http://login-free-bank-secure.com ----- Analysis for: http://login-free-bank-secure.com Risk score: 6.0 Risk level: HIGH Reasons: Contains suspicious word: 'login'. Contains suspicious word: 'bank'. 🚨 Recommendation: Treat as PHISHING. Results Random Forest Accuracy ≈ 95%

Precision ≈ 94%

Recall ≈ 96%

ROC AUC ≈ 0.92

Future Scope Deploy ML model as REST API for real-time detection

Build browser extension / email filter

Add QR-code and mobile phishing detection

Contributors Bharath Jella

About

“Our project shows how Machine Learning and simple code can work together to stop phishing before it stops us.” “This solution is fast, accurate, and practical — ready to be deployed in browsers, emails, and company firewalls.”

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages