# shreyagopal/phishing-website-detection-by-machine-learning-techniques architecture

> Architecture diagram of the GitHub repository shreyagopal/phishing-website-detection-by-machine-learning-techniques, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques
- Repository: https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques

## Overview

This repository is a research workflow for classifying URLs as phishing or legitimate. Public URL datasets feed feature extraction; the resulting 17-feature dataset is used to train and compare classifiers, with the best-performing XGBoost model saved as an artifact. The map follows the README and the sampled extractor; notebook internals and dataset contents were not inspected, so their detailed wiring is not inferred.

Main entry points: [`URLFeatureExtraction.py`](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/URLFeatureExtraction.py) (URL Feature Extraction), [`DataFiles`](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/tree/master/DataFiles) (Source CSVs), [`Phishing Website Detection_Models & Training.ipynb`](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/Phishing%20Website%20Detection_Models%20%26%20Training.ipynb) (Model Training), [`DataFiles/5.urldata.csv`](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/DataFiles/5.urldata.csv) (Extracted URL Features)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["URL Data"]
  node_source_data["Source CSVs"]
  node_feature_data["Extracted URL Features<br/>[5.urldata.csv]"]
end

subgraph group_features["Feature Engineering"]
  node_feature_extraction["URL Feature Extraction"]
  node_external_checks["Web and Domain Checks"]
end

subgraph group_modeling["Modeling"]
  node_training["Model Training"]
  node_model_comparison["Classifier Evaluation"]
  node_xgboost_model[("XGBoost Classifier")]
end

node_phishtank(("PhishTank URLs"))
node_unb(("UNB URL Data"))
node_researcher(("Project User"))

node_phishtank -->|"provides URLs"| node_source_data
node_unb -->|"provides URLs"| node_source_data
node_source_data -->|"extracts features"| node_feature_extraction
node_feature_extraction -->|"performs checks"| node_external_checks
node_feature_extraction -->|"stores features"| node_feature_data
node_feature_data -->|"trains on"| node_training
node_training -->|"evaluates models"| node_model_comparison
node_model_comparison -->|"saves best model"| node_xgboost_model
node_researcher -.->|"runs notebook"| node_training

click node_source_data "https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/tree/master/DataFiles"
click node_feature_extraction "https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/URLFeatureExtraction.py"
click node_external_checks "https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/URLFeatureExtraction.py"
click node_feature_data "https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/DataFiles/5.urldata.csv"
click node_training "https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/Phishing%20Website%20Detection_Models%20%26%20Training.ipynb"
click node_model_comparison "https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/Phishing%20Website%20Detection_Models%20%26%20Training.ipynb"
click node_xgboost_model "https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/XGBoostClassifier.pickle.dat"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_source_data,node_feature_data,node_researcher toneBlue
class node_feature_extraction,node_external_checks toneAmber
class node_training,node_model_comparison,node_xgboost_model toneMint
class node_phishtank,node_unb toneIndigo
```

## Components

### URL Data

- [Source CSVs](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/tree/master/DataFiles): `DataFiles`
- [Extracted URL Features](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/DataFiles/5.urldata.csv): `DataFiles/5.urldata.csv`

### Feature Engineering

- [URL Feature Extraction](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/URLFeatureExtraction.py): `URLFeatureExtraction.py`
- [Web and Domain Checks](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/URLFeatureExtraction.py): `URLFeatureExtraction.py`

### Modeling

- [Model Training](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/Phishing%20Website%20Detection_Models%20%26%20Training.ipynb): `Phishing Website Detection_Models & Training.ipynb`
- [Classifier Evaluation](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/Phishing%20Website%20Detection_Models%20%26%20Training.ipynb): `Phishing Website Detection_Models & Training.ipynb`
- [XGBoost Classifier](https://github.com/shreyagopal/phishing-website-detection-by-machine-learning-techniques/blob/master/XGBoostClassifier.pickle.dat): `XGBoostClassifier.pickle.dat`

### Other components

- **PhishTank URLs**
- **UNB URL Data**
- **Project User**

## Connections

- PhishTank URLs → Source CSVs: provides URLs (evidence: `README.md`)
- UNB URL Data → Source CSVs: provides URLs (evidence: `README.md`)
- Source CSVs → URL Feature Extraction: extracts features (evidence: `README.md`)
- URL Feature Extraction → Web and Domain Checks: performs checks (evidence: `URLFeatureExtraction.py`)
- URL Feature Extraction → Extracted URL Features: stores features (evidence: `README.md`)
- Extracted URL Features → Model Training: trains on (evidence: `README.md`)
- Model Training → Classifier Evaluation: evaluates models (evidence: `README.md`)
- Classifier Evaluation → XGBoost Classifier: saves best model (evidence: `README.md`)
- Project User → Model Training: runs notebook
