Multi-Endpoint Setup
In a distributed deployment, multiple Guard agents on different machines report to a centralized Manager server. The Manager provides fleet-wide visibility, cross-agent threat correlation, and centralized policy distribution.Architecture
Deploy the Manager
Start the Manager Server
- Agent Registry — Tracks up to 500 registered agents
- Threat Aggregator — Correlates threats across agents by source IP, malware hash, and attack pattern
- Policy Engine — Distributes centralized rules and configuration
- SSE Stream — Real-time event stream for the admin dashboard
Deploy Guard Agents
On each endpoint machine:Agent Lifecycle
| Phase | Endpoint | Interval | Description |
|---|---|---|---|
| Registration | POST /api/agents/register | Once (startup) | Agent sends hostname, OS, version; receives unique agentId |
| Heartbeat | POST /api/agents/:id/heartbeat | Every 30s | CPU/memory usage, events processed, mode, uptime |
| Threat Report | POST /api/agents/:id/events | Real-time | Detected threats sent immediately |
| Policy Poll | GET /api/policy/agent/:id | Every 5 min | Agent checks for updated policies |
| Stale Detection | — | Every 30s (server) | Agents without heartbeat for 90s are flagged stale |
| Deregistration | DELETE /api/agents/:id | Manual | Removes agent from fleet |
Cross-Agent Threat Correlation
The Manager’s Threat Aggregator correlates threats across all agents in real-time:- Source IP correlation — Same attacker IP seen on multiple endpoints triggers escalation
- Malware hash correlation — Same malware fingerprint across agents indicates an active campaign
- Attack pattern correlation — Related MITRE ATT&CK patterns within a 5-minute window
Cross-agent correlation uses a 5-minute sliding window with 24-hour data retention. Threats correlated across 3+ agents are automatically elevated to CRITICAL severity.
Policy Distribution
The Policy Engine allows centralized control over all Guard agents:Real-Time Monitoring
SSE Event Stream
Stream events from all agents in real-time:Fleet Overview
Manager Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
MANAGER_PORT | 8443 | HTTP server port |
MANAGER_AUTH_TOKEN | (none) | Bearer token for API authentication |
MANAGER_MAX_AGENTS | 500 | Maximum registered agents |
MANAGER_HEARTBEAT_TIMEOUT_MS | 90000 | Heartbeat timeout before marking agent stale |
MANAGER_HEARTBEAT_INTERVAL_MS | 30000 | Interval for stale agent checks |
MANAGER_CORRELATION_WINDOW_MS | 300000 | Cross-agent threat correlation window (5 min) |
MANAGER_THREAT_RETENTION_MS | 86400000 | Threat data retention (24 hours) |
CORS_ALLOWED_ORIGINS | (none) | Comma-separated allowed CORS origins |
Optional SQLite Persistence
For large deployments, enable SQLite for persistent storage:Production Deployment
Security Checklist
- Generate a strong authentication token (
openssl rand -hex 32) - Use TLS termination (nginx/Caddy reverse proxy)
- Restrict Manager port (8443) to Guard agent networks only
- Run as a non-root system user
- Set
NODE_ENV=productionfor hardened mode - Store secrets in environment files with
chmod 600