Skip to content

Enhances email security by detecting phishing URLs and content

License

Notifications You must be signed in to change notification settings

karandomguy/PhishGuard

Repository files navigation

PhishGuard: One-Stop Phishing Email Detection Solution

Overview

PhishGuard is a comprehensive phishing email detection solution designed to enhance email security by employing two distinct models. The first model focuses on detecting phishing URLs, while the second model checks for phishing content within the email body. By combining these approaches, PhishGuard provides a robust defense against phishing attacks in a single, unified solution.

Features

  • URL-based Phishing Detection: PhishGuard scans emails for existing URLs, extracts features from them, and leverages a Random Forest model to predict whether the URLs are phishing or benign.

  • Content-based Phishing Detection: In cases where no URLs are found, PhishGuard directly analyzes the email content using a TF-IDF and SVM pipeline to identify phishing attempts.

  • Unified Solution: PhishGuard streamlines the phishing detection process by seamlessly integrating both URL and content-based models, ensuring a comprehensive defense against phishing threats.

  • Web Platform: You can use the application through our website phish-guard.streamlit.app

Installation

  1. Clone the PhishGuard repository:

    git clone https://github.com/karandomguy/PhishGuard.git
    cd PhishGuard
  2. Install the required dependencies:

    pip install -r requirements.txt

Usage

  1. First, add this chrome extension Copy as Markdown
Screenshot 2023-11-16 at 12 06 05 AM
  1. Select the content of your email and right-click

  2. Select "Copy selection as Markdown"

Screenshot 2023-11-16 at 12 04 21 AM
  1. Run the PhishGuard application, paste the content and hit the "Submit" button. Screenshot 2023-12-24 at 2 51 24 AM

Models

  • URL-based Phishing Detection Model:

    • Algorithm: Random Forest
    • Features: Extracted from URLs found in the email
  • Content-based Phishing Detection Model:

    • Algorithm: TF-IDF and SVM pipeline

    • Features: Analyzes the content of the email

Contribution

We welcome contributions to enhance the capabilities and efficiency of PhishGuard. To contribute, please follow these steps:

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Submit a pull request

License

PhishGuard is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Feel free to reach out for any questions or concerns. Happy phishing detection!

Note: This readme assumes you have Python and Git installed on your system. Adjust installation commands based on your environment.

About

Enhances email security by detecting phishing URLs and content

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published