How srineshreddy1/lexiguard-phishing-email-system works
LexiGuard is an email and URL threat-analysis gateway with a dashboard for scanning messages, reviewing verdicts, and managing incidents. The documented workflow ingests Gmail or simulated messages, inspects URLs, HTML, Unicode, and attachments, scores risk, records results, and presents findings; malicious verdicts can trigger quarantine and alerts. The map also preserves documented cloud-intelligence, reporting, and translation capabilities. Some implementation files were not sampled, so their connections are included only where the README or source index supports them.
Main entry points: app.py SecOps dashboard · gateway/gmail_client.py Gmail gateway · gateway/gmail_client.py Gateway simulation · database.py Threat ledger
Components 24
Ingestion
- SecOps dashboard
app.py - Gmail gateway
lexiguard/gateway/gmail_client.py - Gateway simulation
gateway/gmail_client.py
Threat inspection
- URL parser
lexiguard/parser.py - URL features
lexiguard/features.py - Risk scorer
lexiguard/core/scorer.py - HTML evasion guard
lexiguard/evasion/html_guard.py - Unicode guard
lexiguard/evasion/unicode_guard.py - Attachment scanner
lexiguard/gateway/attachments.py - Gateway attachments
gateway/attachments.py
Threat intelligence
- VirusTotal checks
lexiguard/intel/virustotal.py - Google Web Risk
lexiguard/intel/google_webrisk.py - Hybrid Analysis
lexiguard/intel/hybrid_analysis.py - Stego analysis
lexiguard/intel/stego_api.py
Operations and response
- Threat ledger
lexiguard/db/database.py - Threat bootstrap
lexiguard/db/seed_intel.py - Incident responder
lexiguard/response/responder.py - Alert webhooks
lexiguard/response/webhooks.py - Audit exporter
lexiguard/reports/exporter.py - Threat translator
lexiguard/ui/translator.py
Other components
- User / analyst
- Gmail API
- Cloud intel services
- Alert destinations
Connections 38
- User / analyst → SecOps dashboard: uses
README.md - SecOps dashboard → Gmail gateway: polls inbox
app.py - SecOps dashboard → Gateway simulation: offers gateway
app.py - Gmail gateway → Gmail API: fetches messages
README.md - Gateway simulation → Gmail API: polls inbox
gateway/gmail_client.py - Gmail gateway → URL parser: parses URLs
lexiguard/gateway/gmail_client.py - Gmail gateway → URL features: extracts features
lexiguard/gateway/gmail_client.py - Gmail gateway → Risk scorer: scores risk
lexiguard/gateway/gmail_client.py - Gmail gateway → HTML evasion guard: checks HTML
lexiguard/gateway/gmail_client.py - Gmail gateway → Unicode guard: sanitizes text
lexiguard/gateway/gmail_client.py - Gmail gateway → Attachment scanner: scans files
lexiguard/gateway/gmail_client.py - Gmail gateway → Threat ledger: persists scans
lexiguard/gateway/gmail_client.py - Gateway simulation → URL parser: parses URLs
gateway/gmail_client.py - Gateway simulation → URL features: extracts features
gateway/gmail_client.py - Gateway simulation → Risk scorer: scores risk
gateway/gmail_client.py - Gateway simulation → Threat ledger: logs results
gateway/gmail_client.py - Gateway attachments → Threat ledger: checks hashes
gateway/attachments.py - SecOps dashboard → URL parser: parses URLs
app.py - SecOps dashboard → URL features: extracts features
app.py - SecOps dashboard → Risk scorer: scores risk
app.py - SecOps dashboard → HTML evasion guard: inspects HTML
README.md - SecOps dashboard → Attachment scanner: scans files
app.py - SecOps dashboard → VirusTotal checks: checks URLs
app.py - SecOps dashboard → Google Web Risk: checks URLs
app.py - SecOps dashboard → Hybrid Analysis: queries sandbox
app.py - SecOps dashboard → Stego analysis: checks payloads
app.py - VirusTotal checks → Cloud intel services: queries
README.md - Google Web Risk → Cloud intel services: queries
README.md - Hybrid Analysis → Cloud intel services: queries
README.md - SecOps dashboard → Threat ledger: records scans
app.py - Threat bootstrap → Threat ledger: seeds indicators
lexiguard/db/seed_intel.py - SecOps dashboard → Incident responder: handles verdicts
app.py - Incident responder → Alert webhooks: dispatches alerts
lexiguard/response/responder.py - Alert webhooks → Alert destinations: sends alerts
README.md - Incident responder → Gmail API: quarantines messages
README.md - SecOps dashboard → Audit exporter: exports reports
app.py - Audit exporter → Threat ledger: reads scans
lexiguard/reports/exporter.py - SecOps dashboard → Threat translator: explains verdicts
app.py