How pranith-jain/dfir-threat-intel-platform works
This is a Cloudflare Workers security platform with three product surfaces: DFIR analyst tools, live threat intelligence, and an MCP interface for agents; the portfolio is a secondary front door. A typical analyst workflow enters through the web app, reaches the API for lookups or intelligence, and receives results or generated reports. The README documents broad capabilities not represented by sampled code, so those appear as subsystem nodes. Edges are limited to documented relationships or visible imports/calls; unsampled implementations and wiring are not asserted.
Main entry points: src/index.ts API routes · pipeline.ts Intel reports · worker/index.ts Worker router · routes Live intel feeds
Components 22
User surfaces
- Web application
src/App.tsx - DFIR toolkit
src/pages/dfir - Threat intel UI
src/pages/threatintel
Edge runtime
- Worker router
worker/index.ts - API routes
api/src/index.ts - Runtime bindings
api/src/env.ts - MCP tools
worker/mcp-tools - D1 / KV storage
api/src/infrastructure/persistence
Threat intelligence
- Live intel feeds
api/src/routes - Social feed ingestion
api/src/routes/cyberpulse-ingest.ts - Watch alerts
api/src/lib/watch-engine.ts - Threat data providers
api/src/providers - Intel briefings
api/src/lib/briefing-builder
Analysis services
- Intel reports
api/src/lib/report/pipeline.ts - Evidence gathering
api/src/lib/report/gatherer.ts - Source planning
api/src/lib/report/source-planner.ts - Evidence ranking
api/src/lib/report/ranker.ts - Report writing
api/src/lib/report/writer.ts - IP geolocation lookup
api/src/controllers/ip-geo-controller.ts
Automation
- Investigator agent
worker/durable-objects/investigator-agent.ts - Case-study publishing
api/src/case-study
Other components
- Analyst / user
Connections 23
- Analyst / user → Web application: uses
README.md - Web application → DFIR toolkit: opens tools
src/App.tsx - Web application → Threat intel UI: opens intel
README.md - Analyst / user → Worker router: requests services
README.md - Worker router → API routes: dispatches requests
worker/index.ts - API routes → Runtime bindings: uses bindings
api/src/index.ts - API routes → Live intel feeds: routes requests
api/src/index.ts - API routes → IP geolocation lookup: serves lookup
- IP geolocation lookup → Threat data providers: queries providers
api/src/controllers/ip-geo-controller.ts - Worker router → MCP tools: dispatches MCP
worker/index.ts - Worker router → Investigator agent: routes investigation
worker/index.ts - Investigator agent → MCP tools: uses tools
worker/durable-objects/investigator-agent.ts - Social feed ingestion → Live intel feeds: fetches feeds
api/src/routes/cyberpulse-ingest.ts - Watch alerts → Live intel feeds: reads live data
api/src/lib/watch-engine.ts - API routes → Intel reports: builds reports
- Intel reports → Source planning: plans sources
api/src/lib/report/pipeline.ts - Intel reports → Evidence gathering: gathers evidence
api/src/lib/report/pipeline.ts - Intel reports → Evidence ranking: ranks evidence
api/src/lib/report/pipeline.ts - Intel reports → Report writing: writes report
api/src/lib/report/pipeline.ts - API routes → Intel briefings: serves briefings
- API routes → Case-study publishing: serves blog
- Evidence gathering → Live intel feeds: collects intel
api/src/lib/report/gatherer.ts - IP geolocation lookup → D1 / KV storage: caches response
api/src/controllers/ip-geo-controller.ts