# Score DNS threats with VirusTotal, Abuse.ch, HashiCorp Vault, Gemini and Pi-hole

> Quick overview Turns DNS traffic into threat verdicts. Each new domain/IP pair is checked with VirusTotal, ThreatFox and URLhaus, scored by deterministic rules in PostgreSQL, reviewed by a Gemini AI agent with pgvector memory, then stored, emailed and optionally blocked in Pi-hole. All secrets come from HashiCorp Vault. How it works 1. Every 3 minutes the workflow loads its configuration from PostgreSQL (thresholds, the active AI prompt and the 1–5 threat scale) and picks one pending observable: a domain and the IP it resolved to. 2. VirusTotal checks the IP. If detections are below the configured gate, the observable is stored as clean without further API calls or AI tokens. A failed lookup is never stored as clean; the observable stays in the queue. 3. Above the gate, ThreatFox (by IP) and URLhaus (by domain) add context such as malware families and online malicious URLs. 4. A PostgreSQL function computes a deterministic 1–5 rule score with a step-by-step trace, including a cap for t

- **Domain**: `n8n-workflow-14127.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/14127
- Page (HTML): https://agenstry.com/agents/n8n-workflow-14127.n8n.io
- Documentation: https://n8n.io/workflows/14127
