πŸ”’ Detect and route cybersecurity threats with SIEM, Slack, email and PagerDuty

⚑ 50 views Β· πŸ”’ SecOps & Security Automation

Description

This n8n workflow proactively scans and aggregates threat intelligence, network logs, and vulnerability data every 15 minutes to detect emerging risks across the infrastructure. It analyzes anomalies, correlates indicators, assigns severity, triggers critical alerts, and generates executive-ready summariesβ€”enabling security teams to act before threats escalate.

How it works

  1. Collect β€” Fetches network logs from SIEM, vulnerability scan results, and external threat intel feeds in parallel
  2. Merge & analyze β€” Combines all data, then detects brute force attacks, malware, critical CVEs, suspicious traffic, and IOC matches
  3. Route by severity β€” Critical/High threats go to immediate alerting; Medium/Low are logged to the database
  4. Alert β€” Sends Slack alert, detailed email to SOC, creates a PagerDuty incident, and opens a ticket
  5. Log β€” Stores Medium/Low threats to SIEM and PostgreSQL for audit trail
  6. Report β€” Merges all paths and posts a scan summary to the Slack monitoring channel

Setup steps

  1. SIEM β€” Replace your-siem-system.com with your SIEM endpoint in both the log fetch and log write nodes
  2. Vulnerability scanner β€” Update the scanner URL and replace YOUR_API_KEY with your credentials
  3. Threat intel β€” Add your API key to the threat intelligence feed node header
  4. PagerDuty β€” Replace YOUR_PAGERDUTY_KEY and YOUR_SERVICE_ID in the PagerDuty node
  5. Ticketing β€” Update the ticket URL to your Jira or ServiceNow instance and add YOUR_TICKET_API_KEY
  6. Slack β€” Set the correct channel IDs in both Slack nodes (alerts channel and monitoring channel)
  7. Email β€” Configure SMTP credentials; update from and to addresses in the email node
  8. PostgreSQL β€” Ensure a threat_log table exists with columns: severity, type, description, timestamp, action_required

Industries That Benefit

Prerequisites

Modification Options

Explore More Proactive Security Automations:
Contact us to build AI-driven threat hunting, automated patching, and zero-trust enforcement workflows with n8n.

πŸ”— Nodes Used

Send Email, HTTP Request, Postgres, Slack, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup