Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ PhishGuard

AI-Powered Phishing URL Detection System using Machine Learning

PhishGuard is an intelligent phishing URL detection system that analyzes website URLs and predicts whether they are Safe or Phishing using Machine Learning. The application extracts meaningful URL-based features, evaluates potential security risks, and provides an intuitive dashboard for users.


📌 Features

  • 🔍 Detects phishing URLs in real time
  • 🤖 Machine Learning based prediction
  • 📊 Displays phishing probability
  • 📈 Interactive dashboard
  • 📋 Recent scan history
  • 🌐 Supports single and multiple URL analysis
  • 🛡️ Highlights suspicious URL characteristics
  • 📉 Displays extracted URL features
  • ⚡ Fast and lightweight Streamlit application

🖼️ Screenshots

Home Dashboard

Dashboard


Safe URL Prediction

Safe


Phishing URL Prediction

Phishing


Recent Scans

History


⚙️ Tech Stack

  • Python
  • Streamlit
  • Scikit-learn
  • Pandas
  • NumPy
  • Imbalanced-learn

📂 Project Structure

PhishGuard/
│
├── app.py
├── train_model.py
├── model.pkl
├── dataset.csv
├── requirements.txt
├── README.md
├── screenshots/
└── venv (ignored)

🚀 Installation

Clone the repository

git clone https://github.com/Harini-Nagireddy/PhishGuard.git

Move into the project

cd PhishGuard

Create a virtual environment

python -m venv venv

Activate it

Windows

venv\Scripts\activate

Install dependencies

pip install -r requirements.txt

▶️ Run the Application

streamlit run app.py

The application opens automatically at

http://localhost:8501

🧠 Machine Learning Workflow

  1. Load phishing URL dataset
  2. Extract URL features
  3. Train Random Forest classifier
  4. Save trained model
  5. Predict URL legitimacy
  6. Display prediction and phishing probability

📊 Features Extracted

  • URL Length
  • Domain Length
  • Number of Subdomains
  • HTTPS Usage
  • Presence of IP Address
  • Special Characters
  • Suspicious Keywords
  • Query Parameters
  • Shortened URLs

🎯 Future Enhancements

  • Browser Extension
  • Real-time URL reputation lookup
  • VirusTotal API integration
  • Email phishing detection
  • QR code scanning
  • Deep Learning model
  • Live threat intelligence

👩‍💻 Author

Harini Nagireddy

Final Year B.Tech (CSE - Data Science)


⭐ If you like this project

Give it a ⭐ on GitHub!

About

AI-powered phishing URL detection system using Machine Learning and Streamlit that analyzes website URLs and predicts whether they are safe or phishing.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages