How radar-asm/radar-worker works
RADAR is a Bun CLI for authorized external asset reconnaissance. A target enters through the scan entry point; the orchestrator streams discovered subdomains through DNS/enrichment and, unless OSINT-only mode is enabled, service fingerprinting, then publishes scan events to a webhook. SQLite persistence is also present, though the README says webhook delivery is the primary way to consume results. The graph reflects documented capabilities and shown call sites; some probe internals and repository wiring are unsampled, so uncertain links are omitted.
Main entry points: orchestrator.ts Scan orchestrator · index.ts Scan entry · infraResolver.useCase.ts DNS enrichment · serverFingerPrintingProbe.ts Fingerprinting probe
Components 20
Scan control
- Scan entry
src/app/use-cases/index.ts - Scan orchestrator
src/app/orchestrator/orchestrator.ts - Event payload mapping
src/app/orchestrator/orchestrator.mapper.ts
Subdomain discovery
- Subdomain discovery
src/app/phase1Recon/domain/subdomain.useCase.ts - Discovery probes
src/app/phase1Recon/infra/recon.probes.ts - Discovery repository
src/app/phase1Recon/domain/phase1.repository.ts
DNS enrichment
- DNS enrichment
src/app/phase2Dns/domain/infraResolver.useCase.ts - Enrichment probes
src/app/phase2Dns/infraProbes.ts - DNS and HTTP adapters
src/app/phase2Dns/infra/adapters - CDN classification
src/app/phase2Dns/utils/cdnDetector.ts - Enrichment repository
src/app/phase2Dns/domain/phase2.repository.ts
Service profiling
- Fingerprinting stage
src/app/phase3Surface/domain/serverFingerprinting.useCase.ts - Fingerprinting probe
src/app/phase3Surface/serverFingerPrintingProbe.ts - Nmap and web probes
src/app/phase3Surface/infra/adapters - Probe result mappers
src/app/phase3Surface/infra/mappers - Fingerprint repository
src/app/phase3Surface/domain/phase3.repository.ts
Results and storage
- Event publisher
src/app/events/events.adapter.ts - SQLite repository
src/infra/db/repository.ts
Other components
- Scan operator
- Webhook receiver
Connections 19
- Scan operator → Scan entry: starts scan
- Scan entry → Scan orchestrator: starts
src/app/use-cases/index.ts - Scan orchestrator → Subdomain discovery: streams names
src/app/orchestrator/orchestrator.ts - Subdomain discovery → Discovery probes: runs discovery
src/app/phase1Recon/domain/subdomain.useCase.ts - Scan orchestrator → DNS enrichment: enriches hosts
src/app/orchestrator/orchestrator.ts - DNS enrichment → Enrichment probes: requests probes
src/app/phase2Dns/domain/infraResolver.useCase.ts - Enrichment probes → DNS and HTTP adapters: queries services
src/app/phase2Dns/infraProbes.ts - DNS enrichment → CDN classification: classifies CDN
src/app/phase2Dns/domain/infraResolver.useCase.ts - Scan orchestrator → Fingerprinting stage: runs profiling
src/app/orchestrator/orchestrator.ts - Fingerprinting stage → Fingerprinting probe: invokes probe
src/app/phase3Surface/domain/serverFingerprinting.useCase.ts - Fingerprinting probe → Nmap and web probes: runs scans
src/app/phase3Surface/serverFingerPrintingProbe.ts - Fingerprinting probe → Probe result mappers: parses results
src/app/phase3Surface/serverFingerPrintingProbe.ts - Scan entry → Event publisher: configures publisher
src/app/use-cases/index.ts - Scan orchestrator → Event publisher: publishes events
- Event publisher → Webhook receiver: posts results
- Scan orchestrator → Event payload mapping: normalizes payloads
src/app/orchestrator/orchestrator.ts - Discovery repository → SQLite repository: persists discovery
src/app/phase1Recon/domain/phase1.repository.ts - Enrichment repository → SQLite repository: persists enrichment
src/app/phase2Dns/domain/phase2.repository.ts - Fingerprint repository → SQLite repository: persists profiling
src/app/phase3Surface/domain/phase3.repository.ts