How soundar-codes/cyber_shield_ai-final works
CyberShield AI is a browser-based scam and phishing protection system. Its principal workflow monitors WhatsApp Web and Gmail messages, checks them locally for suspicious patterns and through a Flask machine-learning API, then presents warnings in the page. The extension also provides user controls and can log detected threats to Firebase. The README documents the platform workflow; excerpts show the extension-to-API and background-to-Firebase calls. Model internals and some URL-blocking behavior are only partially evidenced, so those links are omitted.
Main entry points: content.js Message scanning · background.js Detection coordinator · app.py Scam detection API · firebase-config.js Threat log client
Components 13
Browser protection
- Message scanning
extension/content.js - Local pattern checks
extension/content.js - Page warnings
extension/content.js - Detection coordinator
extension/background.js - Settings and status
extension/popup.js - URL click blocking
backend/url_blocking_script.js
Detection services
- Scam detection API
backend/app.py - Text classification
backend/app.py - Alternate prediction API
extension/app.py
Threat logging
- Threat log client
extension/firebase-config.js - Threat log store
Other components
- WhatsApp Web
- Gmail
Connections 12
- WhatsApp Web → Message scanning: provides messages
README.md - Gmail → Message scanning: provides messages
README.md - Message scanning → Local pattern checks: checks locally
extension/content.js - Message scanning → Detection coordinator: requests analysis
README.md - Detection coordinator → Scam detection API: sends message
extension/background.js - Scam detection API → Text classification: vectorizes and predicts
backend/app.py - Text classification → Scam detection API: returns prediction
backend/app.py - Message scanning → Page warnings: highlights threats
extension/content.js - Detection coordinator → Page warnings: sends alert
extension/background.js - Settings and status → Detection coordinator: requests status
extension/popup.js - Detection coordinator → Threat log client: logs threat
extension/background.js - Threat log client → Threat log store: queries and writes
extension/firebase-config.js