Skip to content

Repository files navigation

🛡️ PhishGuard – AI Phishing Detection API

Python FastAPI ML

PhishGuard is a lightweight FastAPI-based API that detects phishing attempts using both URL structure and email content, powered by a trained machine learning model.


🚀 Features

  • 🔍 Detect phishing using:
    • URL features (length, digits, suspicious keywords, etc.)
    • Natural Language Processing (TF-IDF) on email content
  • ⚙️ FastAPI backend
  • 🤖 Trained RandomForest model (41 input features)
  • 🌐 Public API endpoint (deployed via Render)

🧠 How it Works

🧾 Input (JSON):

{
  "url": "http://secure-login-paypal.com",
  "email_text": "URGENT! Your account is locked! Click here to unlock."
}

📤 Output (JSON):

{
  "label": "phishing",
  "confidence": 0.78
}

🌐 Live Demo & API Access

Use the following hosted links to explore and test PhishGuard in real-time:


📦 GitHub Repository

Feel free to ⭐️ star the project or fork it!


🧪 Example Request (Using Swagger or Postman)

Use this sample JSON to test phishing detection:

{
  "url": "http://secure-login-paypal.com",
  "email_text": "URGENT! Your account is locked! Click to unlock now."
}

About

AI phishing detection API using FastAPI

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages