Skip to main content

Automate cybersecurity threat analysis with GPT-4o, CVSS scoring and risk routing

Workflow preview

Workflow preview
100%
Automate cybersecurity threat analysis with GPT-4o, CVSS scoring and risk routing preview
Open on n8n.io

1. Workflow Overview

How It Works This workflow automates end to end cybersecurity threat analysis using a multi agent AI architecture, targeting Security Operations Centre (SOC) analysts, security engineers, and IT ri...

Best for

  • SecOps automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.agenttool, n8n-nodes-base.httprequesttool, @n8n/n8n-nodes-langchain.toolcalculator, @n8n/n8n-nodes-langchain.toolcode

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Cheng Siong Chin.

Original n8n.io source

1.1 Workflow description

Title
Automate cybersecurity threat analysis with GPT-4o, CVSS scoring and risk routing
Workflow name
Automate cybersecurity threat analysis with GPT-4o, CVSS scoring and risk routing

How It Works

This workflow automates end-to-end cybersecurity threat analysis using a multi-agent AI architecture, targeting Security Operations Centre (SOC) analysts, security engineers, and IT risk teams responsible for continuous threat monitoring and incident response. The core problem it solves is the slow, fragmented process of manually correlating threat intelligence, scoring vulnerabilities, and producing actionable reports, tasks that demand both speed and consistency under pressure. A manual trigger initiates the Cybersecurity Orchestrator Agent, which coordinates two specialist sub-agents: a Threat Intelligence Agent (backed by security log fetching and risk scoring tools) and an Attack Surface Mapping Agent (leveraging STRIDE analysis and CVSS scoring tools). Each agent operates with its own chat model and memory. Outputs are parsed by a Structured Threat Report Parser, then routed by a Rules-based Risk Severity router into three report formats such as SOC Alert, Executive Report, or Standard Report, ensuring every threat is communicated at the right level of urgency to the right audience.

Setup Steps

  1. Connect your LLM API credentials to all Chat Model nodes (Orchestrator, Threat Intelligence, Attack Surface).
  2. Configure the Fetch Security Logs Tool with your SIEM or log source API credentials.
  3. Set risk threshold rules in the Risk Score Calculator node.
  4. Define STRIDE and CVSS parameters in their respective tool nodes.
  5. Set routing thresholds (e.g., CVSS ≥9 → SOC Alert, ≥6 → Executive, <6 → Standard) in Route by Risk Severity.

Prerequisites

  • LLM API key (OpenAI or compatible)
  • SIEM or security log source with API access
  • CVSS and STRIDE configuration parameters
  • Report template definitions for each severity tier

Use Cases

  • Auto-triage incoming vulnerability disclosures into severity-ranked reports.

Customisation

  • Add more routing branches (e.g., Critical, Zero-Day).

Benefits

  • Accelerates threat triage from hours to minutes.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Start Threat Analysis

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Cybersecurity Orchestrator Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 3 - Orchestrator Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 4 - Structured Threat Report Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 5 - Threat Intelligence Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 3

Block 6 - Threat Intelligence Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 7 - Fetch Security Logs Tool

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.4

Block 8 - Risk Score Calculator

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 9 - Attack Surface Mapping Agent

Type / Role
@n8n/n8n-nodes-langchain.agentTool - agentTool
Config choices
Version 3

Block 10 - Attack Surface Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 11 - STRIDE Analysis Tool

Type / Role
@n8n/n8n-nodes-langchain.toolCode - toolCode
Config choices
Version 1.3

Block 12 - CVSS Scoring Tool

Type / Role
@n8n/n8n-nodes-langchain.toolCode - toolCode
Config choices
Version 1.3

Block 13 - Route by Risk Severity

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 14 - Format SOC Alert

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Format Executive Report

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Format Standard Report

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate cybersecurity threat analysis with GPT-4o, CVSS scoring and risk routing
Complexity advanced
Nodes 23
Categories SecOps, AI Chatbot
Author Cheng Siong Chin
Published 28 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14410/14410.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate cybersecurity threat analysis with GPT-4o, CVSS scoring and risk routing do?

How It Works This workflow automates end to end cybersecurity threat analysis using a multi agent AI architecture, targeting Security Operations Centre (SOC) analysts, security engineers, and IT ri...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your SecOps, AI Chatbot use case.