phishing-detection-ml

Supervised machine learning classification pipeline for phishing URL detection.

Phishing Website Detection: Machine Learning Classification Pipeline

Supervised machine learning classification engine engineered to detect fraudulent and phishing URLs through lexical pattern recognition, statistical web feature extraction, and decision tree ensembles.

graph TD
    Raw[Raw URL / Webpage Record] --> FeatureExt[Lexical & Structural Feature Extractor]
    FeatureExt --> Clean[Preprocessing & Missing Value Imputation]
    Clean --> Train[Ensemble Model Training: Random Forest / Decision Trees]
    Train --> Eval[Performance Metrics & ROC Evaluation]
    Eval --> Inference[Production Classification Service]
    Inference --> Result{Classification: Legitimate vs Phishing}

Methodology & Feature Engineering

The detection system evaluates URLs across distinctive structural markers that differentiate legitimate web domains from deceptive credential harvesting sites:

Pipeline Architecture

Technology Stack

Setup and Execution

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install requirements
pip install -r requirements.txt

# Run inference service
python -m src.main