How auvalabs/threatwatch works
ThreatWatch collects public cyber reporting, turns it into classified and correlated intelligence, and presents evidence-backed operational decisions through a dashboard and integrations. The principal workflow runs from feed and threat-data collection through deduplication, enrichment, and analysis into briefings, a threat ledger, and evidence-gated hunts. The dashboard exposes these products via a JSON API. Several internal relationships are documented or indexed, but unsampled implementations are not assumed to call one another; the graph omits uncertain links.
Main entry points: threatdigest_main.py Pipeline runner · serve_threatwatch.py HTTP API server · hunt_engine.py Evidence-gated hunts · feed_fetcher.py Feed collection
Components 25
Collection and processing
- Pipeline runner
threatdigest_main.py - Feed collection
modules/feed_fetcher.py - Threat data feeds
modules/darkweb_monitor.py - Article deduplication
modules/deduplicator.py - Classification and regions
modules/hybrid_classifier.py - Runtime configuration
modules/config.py - Deduplication index
modules/deduplicator.py
Intelligence analysis
- Briefings and stories
modules/briefing_generator.py - AI enrichment
modules/ai_enrichment.py - Provider failover
modules/llm_client.py - KEV enrichment
modules/kev_enricher.py - Trend detection
modules/trend_detector.py
Operations workspace
- Threat ledger
modules/threat_ledger.py - Evidence-gated hunts
modules/hunt_engine.py - Observable validation
modules/ioc_quality.py - Watchlist monitoring
modules/watchlist_monitor.py
API and delivery
- HTTP API server
serve_threatwatch.py - STIX export
modules/stix_output.py - Alert dispatch
modules/webhook.py
Dashboard
- Route selection
frontend/src/router.ts - Dashboard app
frontend/src/App.tsx - Resource loading
frontend/src/hooks/useResource.ts - API client
frontend/src/services/api.ts - Workspace views
frontend/src/views
Other components
- Analyst
Connections 27
- Analyst → Pipeline runner: initiates
- Pipeline runner → Feed collection: fetches reports
threatdigest_main.py - Pipeline runner → Threat data feeds: collects threat data
threatdigest_main.py - Pipeline runner → Article deduplication: deduplicates
threatdigest_main.py - Pipeline runner → Classification and regions: classifies articles
threatdigest_main.py - Feed collection → Article deduplication: supplies articles
- Pipeline runner → Briefings and stories: generates intelligence
- Briefings and stories → Provider failover: requests generation
modules/briefing_generator.py - AI enrichment → Provider failover: requests enrichment
- Pipeline runner → KEV enrichment: enriches vulnerabilities
threatdigest_main.py - Pipeline runner → Trend detection: detects trends
threatdigest_main.py - Pipeline runner → Threat ledger: builds ledger
threatdigest_main.py - Pipeline runner → Evidence-gated hunts: builds hunt packages
threatdigest_main.py - Evidence-gated hunts → Observable validation: validates observables
modules/hunt_engine.py - Pipeline runner → Watchlist monitoring: monitors watchlists
threatdigest_main.py - Watchlist monitoring → Deduplication index: checks duplicates
modules/watchlist_monitor.py - HTTP API server → Threat ledger: loads records
serve_threatwatch.py - HTTP API server → Evidence-gated hunts: loads hunts
serve_threatwatch.py - HTTP API server → Trend detection: serves trend data
serve_threatwatch.py - HTTP API server → STIX export: exports bundles
serve_threatwatch.py - HTTP API server → Alert dispatch: dispatches alerts
- Analyst → Route selection: selects workspace
frontend/src/router.ts - Route selection → Dashboard app: provides route
frontend/src/App.tsx - Dashboard app → Workspace views: renders view
frontend/src/App.tsx - Workspace views → Resource loading: loads resources
frontend/src/views/ExposureView.tsx - Resource loading → API client: invokes loader
frontend/src/views/ExposureView.tsx - API client → HTTP API server: requests JSON
frontend/src/services/api.ts