How lextesorero/phishingdetector works
This is a full-stack phishing URL detector. The primary workflow is a user submitting a URL in the React interface; the API delegates prediction to the backend-selected model, which extracts URL and domain features and returns a phishing probability for display. A separate Streamlit dashboard uses the same backend model logic. The README documents dataset-snapshot lookup behavior, but its implementation is absent from the supplied tree. Edges reflect shown calls or README-documented API behavior; unsampled integrations are not inferred.
Main entry points: model.py Stacked ensemble · features.py Feature extraction · App.jsx App workflow · UrlForm.jsx URL form
Components 20
React interface
- URL form
frontend/src/components/UrlForm.jsx - App workflow
frontend/src/App.jsx - API client
frontend/src/api.js - Result display
frontend/src/components/ResultCard.jsx
API and dashboard
- FastAPI routes
backend/main.py - Streamlit dashboard
backend/streamlit_app.py
Prediction pipeline
- Model selection
backend/model.py - Baseline model
backend/model.py - Stacked ensemble
backend/model.py - XGBoost learner
backend/model.py - Random Forest learner
backend/model.py - Character TF-IDF LR
backend/model.py - Character CNN
backend/model.py - Meta learner
backend/model.py - XGBoost compatibility
backend/xgb_compat.py
Feature signals
- Feature extraction
backend/features.py - DNS resolver
- WHOIS lookup
- RDAP fallback
Other components
- User
Connections 19
- User → URL form: enters URL
frontend/src/components/UrlForm.jsx - URL form → App workflow: submits URL
frontend/src/App.jsx - App workflow → API client: checks URL
frontend/src/App.jsx - API client → FastAPI routes: posts URL
README.md - FastAPI routes → Model selection: loads and predicts
backend/main.py - Model selection → Feature extraction: extracts features
backend/model.py - Feature extraction → DNS resolver: queries records
backend/features.py - Feature extraction → WHOIS lookup: requests domain age
backend/features.py - Feature extraction → RDAP fallback: falls back
backend/features.py - Model selection → Baseline model: predicts with
backend/model.py - Model selection → Stacked ensemble: predicts with
backend/model.py - Stacked ensemble → XGBoost learner: scores features
backend/model.py - Stacked ensemble → Random Forest learner: scores features
backend/model.py - Stacked ensemble → Character TF-IDF LR: scores URL text
backend/model.py - Stacked ensemble → Character CNN: scores encoded text
backend/model.py - Stacked ensemble → Meta learner: combines scores
backend/model.py - Model selection → XGBoost compatibility: installs shim
backend/model.py - Streamlit dashboard → Model selection: uses predictions
README.md - App workflow → Result display: renders result
frontend/src/App.jsx