SagarBiswas-MultiHAT/PhishGuard-AI
À propos
PhishGuard is a fast-paced web game that trains your instincts against email phishing. Powered by a Dual-AI Consensus Engine (OpenRouter & Groq), it generates and verifies highly realistic, unique phishing scenarios in real-time. Can you spot the scam before the 10-second timer runs out?
SécuritéWhat you can do
- Real-time AI Generation: Every email you see is uniquely generated on the spot by powerful AI. You'll never see the exact same scam twice!
- High-Stakes Timer: You only get 10 seconds to make a call. This trains you to spot red flags quickly. Need a break? Just hit the "Pause Timer" button.
- Zero-Downtime Rate-Limit Circuit Breaker: OpenRouter free tier rate limits (HTTP 429) automatically trigger a 60-second cooldown with instant Groq failover, guaranteeing uninterrupted gameplay.
- Instant Feedback Email Notifications: Player feedback is saved to local backup files and optionally dispatched directly to your personal email inbox via background SMTP delivery.
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
Original🛡️ PhishGuard: Your Personal Phishing Radar Trainer
Welcome to PhishGuard! This is a fast-paced, interactive web game designed to help anyone train their instincts against email phishing attacks.
Instead of sitting through boring cybersecurity slideshows, PhishGuard throws you right into the deep end: you are shown realistic, AI-generated emails and you have 10 seconds to decide if it's a safe message or a dangerous scam.

🌟 What is it?
Phishing is a type of online scam where criminals send fake emails to trick you into clicking malicious links or giving away passwords. It is still the #1 way hackers break into systems today.
PhishGuard turns learning how to spot these scams into a quick, repeatable game. By practicing with our tool, you will build a stronger, natural instinct for what looks right and what looks suspicious in your inbox.
✨ Key Features
- Real-time AI Generation: Every email you see is uniquely generated on the spot by powerful AI. You'll never see the exact same scam twice!
- High-Stakes Timer: You only get 10 seconds to make a call. This trains you to spot red flags quickly. Need a break? Just hit the "Pause Timer" button.
- Dual-AI Verification: To make sure the game is always accurate, we use two separate AI models. One creates the email, and the second one independently verifies it. You'll see a "Dual-AI Verified" badge when they both agree!
- Zero-Downtime Rate-Limit Circuit Breaker: OpenRouter free tier rate limits (HTTP 429) automatically trigger a 60-second cooldown with instant Groq failover, guaranteeing uninterrupted gameplay.
- Instant Feedback Email Notifications: Player feedback is saved to local backup files and optionally dispatched directly to your personal email inbox via background SMTP delivery.
- Track Your Instincts: Keep an eye on your live score and attempt tracker to see how your phishing radar improves over time.
- Beautiful 2050 Cyberpunk Design: A sleek, futuristic interface featuring dynamic particle networks, smooth animations, and automatic Light/Dark mode support.
🎮 How to Play
- Read the Message: An email will appear on your screen.
- Beat the Clock: You have 10 seconds to read it and look for clues (weird urgency, strange requests, or unusual formatting).
- Make Your Call: Click Phishing if you think it's a scam, or Legitimate if you think it's safe.
- Get Instant Feedback: The screen will glow green if you were right, and shake red if you were tricked!
- Keep Going: A brand new, uniquely generated email will load automatically for the next round.
⚙️ How to Run PhishGuard on Your Computer
Getting PhishGuard running locally is simple. You need Python and free API keys from OpenRouter and Groq (no credit cards required).
1. What You Need
- Python 3.11+: Download from python.org.
- A Free OpenRouter Key: Used to generate realistic scenarios across open-weight models. Get yours at openrouter.ai/keys - no credit card required.
- A Free Groq Key: Used for ultra-fast inference and dual-AI verification. Get yours at console.groq.com/keys - no credit card required.
2. Simple Setup
Open PowerShell in the project folder and run:
# 1. Create a virtual environment
python -m venv .venv
# 2. Activate it
& ".venv/Scripts/Activate.ps1"
# 3. Install dependencies
pip install -r requirements.txt
3. Start the Game!
Create a .env file (or copy .env.example) in the root directory:
# ── Core AI Keys (Free) ──────────────────────────────────────────────────────
OPENROUTER_API_KEY=sk-or-v1-your-key-here
GROQ_API_KEY=gsk_your-key-here
# ── Optional: Direct Feedback Email Notifications (e.g. Gmail) ──────────────
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# [email protected]
# SMTP_PASS=your_16_char_app_password
# [email protected]
Then launch the server:
.\start.ps1
(Alternatively, you can set keys inline in PowerShell without creating a .env file:)
$env:OPENROUTER_API_KEY = "sk-or-v1-your-key-here"
$env:GROQ_API_KEY = "gsk_your-key-here"
.\start.ps1
Then open your browser and go to: http://127.0.0.1:5000
4. Running Tests
PhishGuard includes a complete unit and integration test suite:
pytest -q
# 61 passed
🧠 Behind the Scenes: The Consensus Engine
For the curious minds, here is how PhishGuard ensures emails are always creative, authentic, and correctly labeled:
Instead of relying on a single AI, PhishGuard uses a resilient hybrid Consensus Engine:
- Dynamic Threat Taxonomy - Every round draws from an extensive catalog of 30+ workplace and consumer scenarios (CEO fraud, OAuth consent phishing, MFA fatigue, fake SaaS renewals, vendor invoice fraud, and legitimate internal memos).
- The Writer - High-capacity models (e.g.
google/gemma-4-26b,nvidia/nemotron-3-super-120b,qwen/qwen3.8-27b) generate realistic email drafts with realistic headers and details. - The Reviewer - A completely independent model via Groq (e.g.
openai/gpt-oss-120b,openai/gpt-oss-20b) evaluates the draft without knowing the intended label, scoring quality from 1 to 5. - Consensus & Quality Gate - If both models agree on the classification and the quality score meets or exceeds 3, the scenario is accepted with a Dual-AI Verified badge.
- Disagreement & Quality Filtering - Ambiguous emails or low-quality drafts (scores 1 or 2) are automatically discarded and regenerated.
- Circuit Breaker & Groq Generator Fallback - If OpenRouter free tier hits its 20 req/min rate limit, an automated 60-second circuit breaker seamlessly routes generation through Groq, guaranteeing uninterrupted gameplay.
- Zero-Latency Prefetching - While you analyze the current question, an asynchronous background worker prepares the next scenario in cache for instantaneous loading.
💖 Support MultiHAT Open-Source
If you find this project useful in your workflow, development, or security research, consider supporting SagarBiswas-MultiHAT in its ongoing maintenance and future updates (supports both One-Time and Monthly backing):
License
This project is open-source and available under the MIT License. Feel free to use it, learn from it, and modify it!
Explorer des projets similaires
Chargement…