How hritik3706/sih-1454-phishing-domain-detection works
PHISHEYE detects suspicious URLs and other scam inputs, combines technical, threat-intelligence, brand, and content signals into risk assessments, and presents explanations through its dashboard and browser extension. The backend also supports accounts, scan history, reports, feedback, reputation, and statistics. A separate RAG service retrieves curated threat knowledge for grounded explanations; its corpus, retrieval, and vector-store components are included. Relationships are limited to README statements and visible source-index references or excerpts; unsampled internals are not assumed.
Main entry points: app/main.py Backend application · threat_detection.py Threat-check routes · connection.py Application database · app/main.py Grounded explanation API
Components 25
User clients
- Web dashboard
frontend/src/pages - Web authentication
frontend/src/context/AuthContext.jsx - Web API client
frontend/src/services/api.js - Browser extension
extension/background/service-worker.js - Extension API client
extension/utils/api.js
Detection API
- Backend application
backend/app/main.py - Threat-check routes
backend/app/routes/threat_detection.py - Content-analysis routes
backend/app/routes/analyze.py - URL and threat checks
backend/app/services/url_checker.py - Content analysis
backend/app/services/content_analyzer.py - Risk assessment
backend/app/services/risk_engine.py - Scan explanation
backend/app/services/explanation.py - RAG connector
backend/app/services/rag_client.py
Threat knowledge
- Grounded explanation API
rag_service/app/main.py - Hybrid retrieval
rag_service/app/retrieval.py - Vector index
rag_service/app/chroma_store.py - Threat corpus
rag_service/app/corpus.py - Feed ingestion
rag_service/app/feed_ingestion.py
Accounts and records
- Application database
backend/app/database/connection.py - Account routes
backend/app/routes/user.py - Reports and reputation
backend/app/routes/reports.py - Scan history
backend/app/routes/scans.py - Statistics
backend/app/routes/stats.py - Visit records
backend/app/routes/visits.py
Other components
- User
Connections 33
- User → Web dashboard: uses
README.md - User → Browser extension: browses with
README.md - Web dashboard → Web API client: requests scans
- Web authentication → Web API client: requests profile
frontend/src/context/AuthContext.jsx - Browser extension → Extension API client: requests checks
extension/background/service-worker.js - Extension API client → Backend application: calls API
- Web API client → Backend application: calls API
- Backend application → Threat-check routes: registers routes
backend/app/main.py - Backend application → Content-analysis routes: registers routes
backend/app/main.py - Backend application → Account routes: registers routes
backend/app/main.py - Backend application → Reports and reputation: registers routes
backend/app/main.py - Backend application → Scan history: registers routes
backend/app/main.py - Backend application → Statistics: registers routes
backend/app/main.py - Backend application → Visit records: registers routes
backend/app/main.py - Threat-check routes → URL and threat checks: checks URLs
backend/app/routes/threat_detection.py - Threat-check routes → Content analysis: analyzes content
backend/app/routes/threat_detection.py - Threat-check routes → Scan explanation: builds explanation
backend/app/routes/threat_detection.py - Threat-check routes → Application database: records checks
backend/app/routes/threat_detection.py - Content-analysis routes → Content analysis: analyzes input
backend/app/routes/analyze.py - Content-analysis routes → Application database: stores results
backend/app/routes/analyze.py - Threat-check routes → RAG connector: requests RAG
- RAG connector → Grounded explanation API: posts explanation request
backend/app/services/rag_client.py - Grounded explanation API → Hybrid retrieval: retrieves evidence
rag_service/app/main.py - Grounded explanation API → Threat corpus: uses corpus
rag_service/app/main.py - Grounded explanation API → Vector index: checks index
rag_service/app/main.py - Hybrid retrieval → Vector index: searches vectors
rag_service/app/retrieval.py - Feed ingestion → Threat corpus: loads documents
rag_service/app/feed_ingestion.py - Feed ingestion → Vector index: indexes chunks
rag_service/app/feed_ingestion.py - Account routes → Application database: stores accounts
- Reports and reputation → Application database: reads and writes
backend/app/routes/reports.py - Scan history → Application database: reads and writes
backend/app/routes/scans.py - Statistics → Application database: aggregates records
- Visit records → Application database: records visits