Detect phishing websites by classifying engineered URL feature vectors. This project compares classical ML models against a small neural network baseline and emphasizes reproducibility, evaluation, and security relevance.
Phishing remains a common initial-access vector. This repo demonstrates an ML-based approach to flag suspicious websites using URL-derived indicators and standard evaluation metrics (AUC, ROC curves, confusion matrices).
Install dependencies using:
pip install -r requirements.txtThis project uses the UCI Phishing Website Dataset.
- Download the dataset (CSV format) from Kaggle or the UCI Repository.
- Save the file as
data/uci-ml-phishing-dataset.csv.
Note: If the dataset is not found, the script will generate dummy data for demonstration purposes. This ensures the pipeline runs out-of-the-box, but the results will be meaningless until real data is provided.
Run the main pipeline:
python main.pyThis will train the models, evaluate them, and save plots to docs/images/.
- Logistic Regression
- Random Forest
- k-Nearest Neighbors (k=5)
- Multilayer Perceptron (Keras)
├── main.py # Runs the training + evaluation pipeline (if present)
├── src/ # Optional CLI scripts (train/evaluate/predict)
├── models/ # Model training implementations
├── utils/ # Plotting and helper utilities
├── docs/ # Writeups + screenshots
├── reports/ # Metrics summaries and generated outputs
├── data/ # Local dataset (ignored by git by default)
└── artifacts/ # Saved models/outputs (ignored by git by default)

