PhishGuard AI is an open-source, AI-powered phishing detection system hosted on Hugging Face with a lightweight browser extension for real-time protection. It uses cloud-based AI analysis to detect phishing attempts in emails, URLs, and websites before harm occurs.
- 56-Feature Analysis – Evaluates URLs using 56 parameters like domain age, entropy, URL length, SSL validity, suspicious keywords, and more.
- AI-Enhanced Threat Detection – Goes beyond blacklists with ML-based risk analysis.
- Cloud-Powered Processing – Performs computations on secure cloud servers for fast detection.
- Seamless Browser Integration – Lightweight extension with minimal performance impact.
- Adaptive Learning – Continuously improves with new threat data.
- The browser extension captures the URL or web content.
- 56 features are extracted for risk assessment.
- Data is sent securely to the Hugging Face-hosted AI model.
- The model predicts phishing probability and returns a response.
- The extension blocks or warns users accordingly.
The model uses structural, lexical, and security-based features such as:
- URL length, domain age, entropy of URL
- Presence of IP address in URL
- HTTPS/SSL certificate validity
- Number of dots, hyphens, suspicious patterns
- WHOIS registration info (age, validity)
- Presence of phishing keywords (e.g., "login", "verify")
- Redirect count and presence of shortened URLs
- And 48+ additional attributes for fine-grained detection
- Frontend (Extension): JavaScript, HTML, CSS
- Backend (Cloud): Python, FastAPI/Flask
- AI Models: PyTorch / TensorFlow hosted on Hugging Face Spaces
The AI model is deployed on Hugging Face Spaces for real-time inference.
import requests
API_URL = "https://huggingface.co/spaces/ascend-x/phishing_detector"
data = {"url": "http://suspicious-site.com"}
response = requests.post(API_URL, json=data)
print(response.json())