The goal of this code is to create a simple phishing detection tool.
N/A
This project is a phishing detection tool that analyzes user-provided email information (sender's email address and email body) to detect potential phishing attempts. It works by checking for suspicious patterns like keywords, unusual domains, and unsafe URLs.
- Checking for Phishing Keywords: Implemented a function to identify common phishing phrases (like "verify your account" or "urgent") in the email body.
- Identifying Suspicious URLs: Implemented URL scanning to flag links with suspicious domains or links using punycode or IP addresses instead of domain names.
- User Input: Modified the code to take input from users, allowing them to provide the sender's email address and the email content for dynamic analysis.
N/A
re
: This is the regular expressions library, used to search for URLs in the email body.urllib.parse
: Specifically, the urlparse function is used to parse URLs to check for suspicious domains and patterns.Levenshtein
: This library is used to calculate the Levenshtein distance between two domain names, which helps identify domains that are similar but slightly altered.
N/A.
N/A.
This phishing detection tool provides a straightforward way to analyze email content for phishing indicators by checking for suspicious keywords, untrusted or similar-looking domains, and risky URLs. By allowing users to input email details, it offers a flexible, user-friendly solution for identifying potential phishing attempts. With the integration of the Levenshtein distance for domain validation and regular expressions for URL scanning, it enhances the accuracy of detecting subtle phishing tactics.