How khan123-code/gmail-phishing-detector-2.0 works
Gmail Phishing Detector is a Chrome extension backed by a local FastAPI service. In Gmail, the extension extracts an open email and submits it for multi-layer phishing analysis; the backend combines sender-domain, URL, credential, authentication, and semantic signals into a risk result that the extension displays. Users can separately request an AI summary, which uses Gemini, and view the latest detection status in the extension popup. The README documents these capabilities; unsampled extension and detector code limits some implementation detail.
Main entry points: smart_predict.py Risk scoring · content.js Email analysis UI · app.py FastAPI endpoints · summarizer.py Summary generation
Components 12
Gmail Extension
- Email analysis UI
extension/content.js - Result popup
extension/popup.js
Local API
- FastAPI endpoints
backend/app.py
Detection Engine
- Risk scoring
backend/smart_predict.py - Sender domain checks
backend/domain_checker.py - URL analysis
backend/url_analyzer.py - Credential detection
backend/credential_detector.py - Email authentication
backend/email_auth_checker.py - Semantic analysis
backend/semantic_analyzer.py
Email Summary
- Summary generation
backend/summarizer.py
Other components
- Gmail email
- Google Gemini API
Connections 13
- Gmail email → Email analysis UI: provides email
README.md - Email analysis UI → FastAPI endpoints: posts analysis
extension/content.js - FastAPI endpoints → Risk scoring: calls prediction
backend/app.py - Risk scoring → Sender domain checks: checks sender
backend/smart_predict.py - Risk scoring → URL analysis: analyzes links
backend/smart_predict.py - Risk scoring → Credential detection: detects requests
backend/smart_predict.py - Risk scoring → Email authentication: checks records
backend/smart_predict.py - Risk scoring → Semantic analysis: analyzes meaning
backend/smart_predict.py - FastAPI endpoints → Email analysis UI: returns result
extension/content.js - Email analysis UI → Result popup: stores result
extension/popup.js - Email analysis UI → FastAPI endpoints: requests summary
README.md - FastAPI endpoints → Summary generation: calls summary
backend/app.py - Summary generation → Google Gemini API: generates summary
backend/summarizer.py