Skip to content

BandiAkarsh/Phishing-Guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

172 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Phishing Guard v2.0

Final Year IEEE Project | AI-Powered Phishing Detection System

Python License

AI-powered phishing detection with 93 ML features, IDN protection, and enterprise security.

πŸš€ Quick Start

Prerequisites

# Install Python dependencies
pip install -r requirements.txt

Run Detection

# CLI mode
python 04_inference/service.py https://example.com

# API server
python 04_inference/api.py

# Run tests
pytest tests/

πŸ“¦ Project Structure

phishing_detection_project/
β”œβ”€β”€ 01_data/              # Datasets & TLDs
β”œβ”€β”€ 02_models/            # ML models (joblib)
β”œβ”€β”€ 03_training/          # Training scripts + MLflow
β”œβ”€β”€ 04_inference/         # API + Service
β”œβ”€β”€ 05_utils/             # 93 feature extractors
β”œβ”€β”€ 06_notebooks/         # Jupyter notebooks
β”œβ”€β”€ 07_configs/           # Configuration files
β”œβ”€β”€ browser-extension/    # Chrome/Firefox extension
β”œβ”€β”€ tests/                # Test suite
β”‚
β”œβ”€β”€ Dockerfile            # Container deployment
β”œβ”€β”€ docker-compose.yml    # Docker orchestration
β”œβ”€β”€ requirements.txt      # Python dependencies
└── README.md             # This file

🎯 Features

  • 93 ML Features - Advanced feature engineering
  • 4-Category Classification - Legitimate, Phishing, AI-Generated, Phishing Kit
  • IDN Protection - Unicode homograph attack detection
  • Browser Extension - Real-time link protection
  • MLflow Integration - Model versioning & experiment tracking
  • API Server - RESTful endpoints with JWT authentication

πŸ§ͺ Testing

# Run test suite
pytest tests/ -v

# Run specific tests
python -m pytest tests/test_security.py
python -m pytest tests/test_comprehensive.py

πŸ“Š Detection Accuracy

Metric Value
F1 Score 99.82%
Precision 99.81%
Recall 99.83%
Features 93
Classification 4 categories

πŸ” Security Features

  • JWT Authentication (24hr tokens)
  • Rate Limiting (100 req/min)
  • SSRF Protection
  • TLS 1.3 Enforcement
  • Input Validation

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         User Interfaces                 β”‚
β”‚    CLI β€’ API β€’ Browser Extension        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚ Detection Core β”‚
        β”‚  93 Features   β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚             β”‚             β”‚
β”Œβ”€β”€β”€β”΄β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”   β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”
β”‚ Tier 1β”‚   β”‚ Tier 2  β”‚   β”‚ Tier 3  β”‚
β”‚ ML    β”‚   β”‚ Typosquatβ”‚   β”‚ MLLM   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ€– ML Models

  • Random Forest Classifier (200 estimators)
  • XGBoost Classifier (50 estimators)
  • Ensemble Method: Soft Voting
  • Optional: Qwen2.5-3B for AI-generated phishing detection

🌐 Browser Extension

See browser-extension/ for installation instructions.

cd browser-extension
npm install
npm run build

πŸ“š Documentation

πŸ“ž Support

πŸ“„ License

MIT License - See LICENSE file


πŸŽ“ Final Year IEEE Project

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors