TheHive 5 Slack alerts and case assignment n8n
This n8n workflow connects TheHive 5 incident response platform to Slack, posting alerts and letting analysts act on cases from Slack messages. It is for security operations teams who live in Slack and want case updates, task details and assignments handled there.
What it does
A TheHive trigger sends new events, which are formatted with dictionaries and posted to Slack. A second webhook receives Slack interactions through the Events API, extracts the payload and routes it with a switch, for example opening a task modal or updating the message with a new assignee.
How to use it
In TheHive settings add a webhook with this workflow's URL, and set up the Slack Subscription Events API pointing at the events webhook.
Requirements and limits
Needs admin access to TheHive and a Slack app.
More in Slack and the n8n workflow library.
Full text
Front matter
name: Thehiveprojecttrigger Workflow
description: Triggered by a webhook. Connects Condition, HTTP request, Respond To Webhook, Slack, Switch, The Hive Project, Webhook. 
- Sticky Note (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Edit Fields (set)
- Task Modal (httpRequest)
- HTTP Request (httpRequest)
- Formatting Dictionaries (set)
- Prep Fields For Slack (set)
- Update Message with new Assignee (httpRequest)
- Sticky Note4 (stickyNote)
- Sticky Note5 (stickyNote)
- Sticky Note7 (stickyNote)
- Check if Case Options (if)
- Case Slack Block Rebuild (set)
- Close Case Block Rebuild (set)
- Severity Case Block Rebuild1 (set)
- PAP Case Block Rebuild (set)
- Prep Fields For PAP Slack (set)
- Map Actions (set)
- Build Final Block (set)
- Prep Fields For TLP Slack (set)
- Prep Fields For Status Slack (set)
- Update Status in TheHive (theHiveProject)
- Close Case as False Positive (theHiveProject)
- Status Case Block Rebuild (set)
- TLP Case Block Rebuild (set)
- No Action Needed (noOp)
- Sticky Note11 (stickyNote)
- Sticky Note12 (stickyNote)
- Sticky Note13 (stickyNote)
- Sticky Note14 (stickyNote)
- Sticky Note15 (stickyNote)
- Post New Case To Slack (slack)
- Prep Fields For Slack - Close (set)
- Prep Fields For Slack - Assign (set)
- Prep Fields For Slack - Severity (set)
- Update Case Severity (theHiveProject)
- Update Case PAP (theHiveProject)
- Update Case TLP (theHiveProject)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source and license
Source: https://github.com/Zie619/n8n-workflows/blob/main/Webhook/0644_Webhook_Slack_Create_Webhook.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
- Venafitlsprotectcloud Workflow: Slack, n8n and Condition (n8n workflow collection) (Webhook) (20)
- Venafitlsprotectcloud Workflow: Slack, n8n and Condition (n8n workflow collection) (Webhook) (55)
- Set Workflow: Slack, n8n and Execute Workflow (n8n workflow collection) (Webhook) (23)
- Set Workflow: Slack, n8n and Execute Workflow (n8n workflow collection) (Webhook) (46)
- Set Workflow: Slack, AWS and n8n
- Respondtowebhook Workflow: Slack, Condition and Respond To Webhook
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.