How abdullah00ashraf/hares works
Project Hares is a UAE-focused fraud and threat-triage platform with a citizen verification portal, WhatsApp intake, audio deepfake analysis, and a municipal threat-intelligence workbench. Citizens submit suspicious messages or voice notes; the backend processes WhatsApp jobs and returns verdicts, while analysts explore threat and model information in the portal. The README documents additional capabilities such as STIX feeds, homograph analysis, and escalation. Some backend modules and route wiring are unsampled, so uncertain connections are omitted.
Main entry points: page.tsx SOC Workbench · tasks.py Triage Worker · webhook.py Webhook Intake · whatsapp_client.py WhatsApp Reply
Components 20
User Entry
- Citizen Portal
frontend/src/components/CitizenTriagePortal.tsx - API Application
src/hares/main.py - Webhook Intake
src/hares/api/v1/webhook.py
Triage Processing
- Triage Worker
src/hares/workers/tasks.py - Audio Analysis
src/hares/ai/audio_pipeline.py - Verdict Engine
src/hares/engine/verdict.py - WhatsApp Reply
src/hares/services/whatsapp_client.py
Threat Intelligence
- Threat Repository
src/hares/db/repositories/threat_repo.py
Web Portal
- SOC Workbench
frontend/src/app/page.tsx - Campaign Analysis
frontend/src/components/CampaignWorkbench.tsx - IoC Analysis
frontend/src/components/IocWorkbench.tsx - Homograph Analysis
frontend/src/components/HomographWorkbench.tsx - Audio Forensics
frontend/src/components/AudioTriageWorkbench.tsx - Model Metrics
frontend/src/components/ModelMetricsWorkbench.tsx - SOC Overview
frontend/src/components/OverviewWorkbench.tsx - STIX Campaign Graph
frontend/src/components/StixCampaignGraph.tsx - Live Telemetry
frontend/src/components/LiveTelemetryFeed.tsx
Other components
- Citizen
- Municipal Analyst
- WhatsApp Client
Connections 18
- Citizen → Citizen Portal: submits evidence
README.md - WhatsApp Client → Webhook Intake: sends messages
README.md - Webhook Intake → Triage Worker: enqueues job
src/hares/api/v1/webhook.py - API Application → Webhook Intake: registers route
src/hares/main.py - Triage Worker → Audio Analysis: analyzes audio
src/hares/workers/tasks.py - Triage Worker → Verdict Engine: builds verdict
src/hares/workers/tasks.py - Triage Worker → WhatsApp Reply: sends verdict
src/hares/workers/tasks.py - Triage Worker → Threat Repository: persists indicators
src/hares/workers/tasks.py - WhatsApp Reply → WhatsApp Client: delivers reply
src/hares/services/whatsapp_client.py - Municipal Analyst → SOC Workbench: opens workbench
frontend/src/app/page.tsx - SOC Workbench → SOC Overview: selects view
frontend/src/app/page.tsx - SOC Workbench → Campaign Analysis: selects view
frontend/src/app/page.tsx - SOC Workbench → IoC Analysis: selects view
frontend/src/app/page.tsx - SOC Workbench → Homograph Analysis: selects view
frontend/src/app/page.tsx - SOC Workbench → Audio Forensics: selects view
frontend/src/app/page.tsx - SOC Workbench → Model Metrics: selects view
frontend/src/app/page.tsx - Campaign Analysis → STIX Campaign Graph: renders graph
- Model Metrics → Live Telemetry: shows feed