Skip to main content

AI-powered phishing detector for URLs and emails

Project description

Phishing Detector

Detecteur de phishing base sur le Machine Learning et la Programmation Orientee Objet en Python. Detecte les URLs et emails de phishing en temps reel depuis nimporte ou dans le terminal.

Installation rapide

Linux / Mac

git clone https://github.com/f3d4yn/phishing-detector.git
cd phishing-detector
chmod +x install.sh
./install.sh
source ~/.bashrc

Windows

git clone https://github.com/f3d4yn/phishing-detector.git
cd phishing-detector
install.bat

Redemarre le terminal apres installation puis tape : isphishing

Performance du modele

Metrique Score
Exactitude 95.52%
Precision 95.79%
Rappel 95.54%
F1 Score 95.66%
ROC AUC 98.76%

Entraine sur 93 916 echantillons (11 430 URLs + 82 486 Emails)

Architecture POO

  • BaseInput : Classe abstraite (ABC)
  • EmailInput : Heritage + validate()
  • URLInput : Heritage + extract_domain()
  • FeatureExtractor : Extraction de 12 features
  • MLModel : Random Forest (100 arbres)
  • PhishingDetector : Orchestrateur principal
  • ThreatReport : Score + Label + Raisons
  • AlertSystem : Alertes + Logs

Lancer les tests

source venv/bin/activate
python -m unittest discover tests/

Note sur les datasets

Les datasets et le modele entraine ne sont pas inclus (trop lourds). Pour entrainer le modele :

  1. Telecharge les datasets sur Kaggle :

    • URLs : Web Page Phishing Detection Dataset
    • Emails: Phishing Email Dataset
  2. Place-les dans data/ :

    • data/phishing_dataset.csv
    • data/email_dataset.csv
  3. Lance l entrainement : python train.py

Auteurs

Habib Ilyas et Boukyod Abdessamad Module : Programmation Avancee (Python POO)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isphishing-1.0.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isphishing-1.0.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file isphishing-1.0.1.tar.gz.

File metadata

  • Download URL: isphishing-1.0.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for isphishing-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a420ee9d3915cd1f22546c83911848b738d76390ffb9473561740e313766a53a
MD5 b4532631d5ee19ef04ff214939070e12
BLAKE2b-256 b1c08b7fe1b8c6001c8c8c5a92b307164e9642e4114ff1ef69172ab3c6f3f93c

See more details on using hashes here.

File details

Details for the file isphishing-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: isphishing-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for isphishing-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e15e21bc02ead229b6a1200f49a58b2557f97576bd37b8b4b0d717161e5e4084
MD5 f82887010900a80fec7cdaf40a5f242a
BLAKE2b-256 f515d21eda5eb54b65426b53fa1b9e35ab33a4b24485865979cad207e837ecd9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page