ComfyUI for Security: Visual AI Pipelines for Threat Analysis
ComfyUI started as a node-based interface for Stable Diffusion. The security community has adapted it into something more interesting: a visual pipeline builder for AI-powered security workflows. If you think better in diagrams than code, this changes how you build automation.
Why a visual pipeline for security?
Complex multi-step security workflows are hard to reason about as code. A ComfyUI-style graph lets you see exactly how data flows — from raw log input through enrichment, analysis, and output.
[Log Source] → [Parser] → [Entity Extractor] → [Threat Intel Lookup]
↓
[Alert Output] ← [Risk Scorer] ← [LLM Analyst] ← [Context Aggregator]
Setting up a security-focused ComfyUI instance
# The Docker way (no host install needed)
docker run -p 8188:8188 \
-v ./workflows:/workflows \
-v ./models:/models \
security-comfyui:latest
The security fork adds nodes for:
- SIEM connectors (Splunk, Elastic, QRadar)
- Threat intel feeds (MISP, OTX, VirusTotal)
- LLM analysis (OpenAI, Anthropic, local models via Ollama)
- IOC extractors (IPs, hashes, domains, CVEs)
- Alert formatters (Slack, PagerDuty, JIRA)
Example: Automated phishing analysis pipeline
Build a visual workflow that:
- Receives raw email via webhook
- Extracts URLs, attachments, sender info
- Queries VirusTotal for each IOC
- Feeds everything to an LLM for triage summary
- Routes HIGH severity to PagerDuty, MEDIUM to JIRA
No code. Just nodes and connections. Shareable as a JSON workflow file.
The serious use case: collaborative threat hunting
Workflows are shareable JSON files. A threat hunter can build a hunt workflow, share it with the team, and everyone runs the same logic against their own data sources. This is how you standardize detection across a distributed SOC.
Defensive note
ComfyUI pipelines that call external LLMs process your data externally. For sensitive log analysis, run local models via Ollama or use on-premise deployments.
Get the next writeup in your inbox
New posts delivered when I publish. No spam.