How manishpradhan50/netarmor-ai works
NetArmor AI is a phishing-detection product spanning browser and web interfaces, a FastAPI service, and ML/domain-analysis logic. The main workflow is a user submitting a URL, email, message, or PDF through a scanner; the API analyzes it and returns a risk assessment for display. The web application also provides accounts, scan history, dashboards, and administrator operations backed by Firebase. The graph reflects README-documented capabilities where frontend/API implementation excerpts were not available; those links are cited to the README.
Main entry points: app.py FastAPI Service · login.js Authentication UI · detect.js Scanner Hub · popup.js Chrome Scanner
Components 20
User Interfaces
- Scanner Hub
frontend/detect.js - Chrome Scanner
chrome_extension/popup.js - User Dashboard
frontend/dashboard.js - Admin Console
frontend/admin-dashboard.js
Detection Service
- FastAPI Service
backend/app.py - URL Scanner
backend/app.py - Email Scanner
backend/app.py - Message Scanner
backend/app.py - PDF Scanner
backend/app.py - ArmorBot
backend/app.py
Analysis Engines
- URL Features
ml_pipeline/url_features.py - Domain Intelligence
ml_pipeline/domain_analysis.py - Email Classifier
ml_pipeline/saved_models/email_model.pkl - TF-IDF Vectorizer
ml_pipeline/saved_models/tfidf_vectorizer.pkl - URL Classifier
ml_pipeline/saved_models/url_model.pkl
Accounts and Operations
- Authentication UI
frontend/login.js - Firebase Auth
- Cloud Firestore
Other components
- User
- Gemini API
Connections 21
- User → Scanner Hub: submits scans
README.md - User → Chrome Scanner: scans content
README.md - Scanner Hub → FastAPI Service: requests analysis
README.md - Chrome Scanner → FastAPI Service: posts scans
chrome_extension/popup.js - FastAPI Service → URL Scanner: routes URL
backend/app.py - FastAPI Service → Email Scanner: routes email
backend/app.py - FastAPI Service → Message Scanner: routes message
backend/app.py - FastAPI Service → PDF Scanner: routes PDF
backend/app.py - FastAPI Service → ArmorBot: routes chat
backend/app.py - URL Scanner → URL Features: extracts features
backend/app.py - URL Scanner → Domain Intelligence: assesses domains
backend/app.py - URL Scanner → URL Classifier: predicts risk
- Email Scanner → TF-IDF Vectorizer: vectorizes text
backend/app.py - Email Scanner → Email Classifier: classifies text
backend/app.py - ArmorBot → Gemini API: requests response
backend/app.py - User → Authentication UI: signs in
README.md - Authentication UI → Firebase Auth: authenticates
README.md - Authentication UI → Cloud Firestore: reads profiles
frontend/login.js - User Dashboard → Cloud Firestore: reads scan history
frontend/dashboard.js - Admin Console → Cloud Firestore: manages operations
frontend/admin-dashboard.js - User → User Dashboard: views results
README.md