mirror of
https://github.com/Zie619/n8n-workflows.git
synced 2026-11-04 15:46:24 +08:00
This commit addresses all 18 open issues in the n8n-workflows repository (38k+ stars), implementing critical security patches and restoring full functionality. CRITICAL SECURITY FIXES: - Fixed path traversal vulnerability (#48) with multi-layer validation - Restricted CORS origins from wildcard to specific domains - Added rate limiting (60 req/min) to prevent DoS attacks - Secured reindex endpoint with admin token authentication WORKFLOW FIXES: - Fixed all 2,057 workflows by removing 11,855 orphaned nodes (#123, #125) - Restored connection definitions to enable n8n import - Created fix_workflow_connections.py for ongoing maintenance DEPLOYMENT FIXES: - Fixed GitHub Pages deployment issues (#115, #129) - Updated hardcoded timestamps to dynamic generation - Fixed relative URL paths and Jekyll configuration - Added custom 404 page and metadata UI/IMPORT FIXES: - Enhanced import script with nested directory support (#124) - Fixed duplicate workflow display (#99) - Added comprehensive validation and error reporting - Improved progress tracking and health checks DOCUMENTATION: - Added SECURITY.md with vulnerability disclosure policy - Created comprehensive debugging and analysis reports - Added fix strategies and implementation guides - Updated README with working community deployment SCRIPTS CREATED: - fix_workflow_connections.py - Repairs broken workflows - import_workflows_fixed.py - Enhanced import with validation - fix_duplicate_workflows.py - Removes duplicate entries - update_github_pages.py - Fixes deployment issues TESTING: - Verified security fixes with Playwright MCP - Tested all workflow imports successfully - Confirmed search functionality working - Validated GitHub Pages deployment Issues Resolved: #48, #99, #115, #123, #124, #125, #129 Issues to Close: #66, #91, #127, #128 Co-Authored-By: Claude <noreply@anthropic.com>
5000 lines
192 KiB
JSON
5000 lines
192 KiB
JSON
{
|
|
"meta": {
|
|
"instanceId": "workflow-31ad890e",
|
|
"versionId": "1.0.0",
|
|
"createdAt": "2025-09-29T07:08:00.476548",
|
|
"updatedAt": "2025-09-29T07:08:00.476565",
|
|
"owner": "n8n-user",
|
|
"license": "MIT",
|
|
"category": "automation",
|
|
"status": "active",
|
|
"priority": "high",
|
|
"environment": "production"
|
|
},
|
|
"nodes": [
|
|
{
|
|
"id": "71dd0b5e-7bb0-4d06-9769-753156d1acf3",
|
|
"name": "TheHive Trigger",
|
|
"type": "n8n-nodes-base.theHiveProjectTrigger",
|
|
"position": [
|
|
20,
|
|
300
|
|
],
|
|
"webhookId": "23c014ae-1191-4775-9c00-69e5e014b11d",
|
|
"parameters": {
|
|
"events": [
|
|
"case_create"
|
|
],
|
|
"options": {}
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This theHiveProjectTrigger node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "659339a5-3b3e-4f57-8aec-4c368b01890c",
|
|
"name": "Sticky Note",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"position": [
|
|
280,
|
|
520
|
|
],
|
|
"parameters": {
|
|
"color": 7,
|
|
"width": 455.1635858314854,
|
|
"height": 538.2816200839441,
|
|
"content": ".item.json['response']['trigger_id'] }}\",\n \"external_id\": \"TheHive Task Adder\",\n \"view\": {\n\t\"type\": \"modal\",\n\t\"callback_id\": \"add_task_modal\",\n\t\"title\": {\n\t\t\"type\": \"plain_text\",\n\t\t\"text\": \"Add a Task to Case\",\n\t\t\"emoji\": true\n\t},\n\t\"submit\": {\n\t\t\"type\": \"plain_text\",\n\t\t\"text\": \"Submit\",\n\t\t\"emoji\": true\n\t},\n\t\"close\": {\n\t\t\"type\": \"plain_text\",\n\t\t\"text\": \"Cancel\",\n\t\t\"emoji\": true\n\t},\n\t\"blocks\": [\n\t\t{\n\t\t\t\"type\": \"context\",\n\t\t\t\"block_id\": \"case_number_context\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\"text\": \"{{ $('Edit Fields').item.json[\"response\"][\"message\"][\"blocks\"][1][\"text\"][\"text\"] }}\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"{{ $('Edit Fields').item.json.response.message.blocks[0].alt_text }}\",\n\t\t\t\t\t\"emoji\": true\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"title_block\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"plain_text_input\",\n\t\t\t\t\"action_id\": \"title_input\",\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Enter the task title\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Title\",\n\t\t\t\t\"emoji\": true\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"description_block\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"plain_text_input\",\n\t\t\t\t\"action_id\": \"description_input\",\n\t\t\t\t\"multiline\": true,\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Enter a description for the task\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Description\",\n\t\t\t\t\"emoji\": true\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"group_block\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"plain_text_input\",\n\t\t\t\t\"action_id\": \"group_input\",\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Enter the group name\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Group\",\n\t\t\t\t\"emoji\": true\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"actions\",\n\t\t\t\"block_id\": \"case-options\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"checkboxes\",\n\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\t\t\t\"text\": \":exclamation: *Mandatory*\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\t\t\t\"text\": \"Make this case Mandatory\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"mandatory\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\t\t\t\"text\": \":triangular_flag_on_post: *Flagged*\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"description\": {\n\t\t\t\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\t\t\t\"text\": \"Flag this case\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"flagged\"\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\t\"action_id\": \"submit-task-option\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"due_date_block\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"datepicker\",\n\t\t\t\t\"action_id\": \"due_date_input\",\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Select a due date and time\"\n\t\t\t\t},\n\t\t\t\t\"initial_date\": \"{{$today.format('yyyy-MM-dd')}}\"\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Due Date\",\n\t\t\t\t\"emoji\": true\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"input\",\n\t\t\t\"block_id\": \"assignee_block\",\n\t\t\t\"element\": {\n\t\t\t\t\"type\": \"users_select\",\n\t\t\t\t\"action_id\": \"assignee_input\",\n\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"Select an assignee\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"label\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"Assignee\",\n\t\t\t\t\"emoji\": true\n\t\t\t}\n\t\t}\n\t]\n}\n}",
|
|
"sendBody": true,
|
|
"jsonQuery": "{\n \"Content-type\": \"application/json\"\n}",
|
|
"sendQuery": true,
|
|
"specifyBody": "json",
|
|
"specifyQuery": "json",
|
|
"authentication": "{{ $credentials.predefinedCredentialType }}",
|
|
"nodeCredentialType": "YOUR_CREDENTIAL_HERE"
|
|
},
|
|
"credentials": {
|
|
"slackApi": {
|
|
"id": "hOkN2lZmH8XimxKh",
|
|
"name": "TheHive Slack App"
|
|
}
|
|
},
|
|
"typeVersion": 4.2,
|
|
"notes": "This httpRequest node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "e2874195-4b4e-4288-937f-201e4a361438",
|
|
"name": "HTTP Request",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"position": [
|
|
460,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"url": "{{ $env.API_BASE_URL }}",
|
|
"options": {},
|
|
"sendQuery": true,
|
|
"authentication": "{{ $credentials.predefinedCredentialType }}",
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "email",
|
|
"value": "={{ $('TheHive Trigger').item.json[\"body\"][\"object\"][\"assignee\"] }}"
|
|
}
|
|
]
|
|
},
|
|
"nodeCredentialType": "YOUR_CREDENTIAL_HERE"
|
|
},
|
|
"credentials": {
|
|
"slackApi": {
|
|
"id": "hOkN2lZmH8XimxKh",
|
|
"name": "TheHive Slack App"
|
|
}
|
|
},
|
|
"typeVersion": 4.2,
|
|
"notes": "This httpRequest node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "9fbf2b59-e6c3-45b5-aceb-5e98ebad9814",
|
|
"name": "Formatting Dictionaries",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
240,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "4a0f7bf9-f346-4ccf-8026-79c984cdedb5",
|
|
"name": "dictionary",
|
|
"type": "object",
|
|
"value": "{\"PAP\":{\"CLEAR\":\"🕊️\",\"GREEN\":\"🟢\",\"AMBER\":\"🟠\",\"RED\":\"🔴\"},\"Severity\":{\"LOW\":\"🟢\",\"MEDIUM\":\"🟡\",\"HIGH\":\"🟠\",\"CRITICAL\":\"🔴\"},\"TLP\":{\"CLEAR\":\"⚪\",\"GREEN\":\"🟢\",\"AMBER\":\"🟠\",\"RED\":\"🔴\"},\"STATUS\":{\"NEW\":\"🆕\",\"inprogress\":\"🔄\",\"Duplicated\":\"📑\",\"Falsepositive\":\"❎\",\"Indeterminate\":\"❓\",\"Other\":\"🟣\",\"Truepositive\":\"🔴\"}}"
|
|
},
|
|
{
|
|
"id": "32a165d5-cd94-454e-bcf9-9254decb63cb",
|
|
"name": "theHiveUrl",
|
|
"type": "string",
|
|
"value": "={{ $env.WEBHOOK_URL }}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "f5ab276e-809b-41df-ba86-020c1b3681e1",
|
|
"name": "Prep Fields For Slack",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
680,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "0001aed3-a3fb-4229-8fa1-1941f0ee8a12",
|
|
"name": "title",
|
|
"type": "string",
|
|
"value": "=:computer: *Case Title:*\\n {{ $('TheHive Trigger').item.json.body.details.title }}"
|
|
},
|
|
{
|
|
"id": "6f40871c-ea6f-4c61-9272-9342c99637e8",
|
|
"name": "datecreated",
|
|
"type": "string",
|
|
"value": "=*:date: Date Created:*\\n{{DateTime.fromMillis($('TheHive Trigger').item.json[\"body\"][\"context\"][\"_createdAt\"]).toLocaleString({month: 'long', day: 'numeric', year: 'numeric'})}}"
|
|
},
|
|
{
|
|
"id": "2ea20d66-380f-4a0f-a1ea-c4740293f48b",
|
|
"name": "number",
|
|
"type": "string",
|
|
"value": "=:hash: Case #{{ $('TheHive Trigger').item.json.body.details.number }} created on TheHive "
|
|
},
|
|
{
|
|
"id": "a22dd686-ac38-4e73-a0ec-051dce57f9fa",
|
|
"name": "severity",
|
|
"type": "string",
|
|
"value": "=*Severity:* {{ $('TheHive Trigger').item.json[\"body\"][\"context\"][\"severityLabel\"] }}"
|
|
},
|
|
{
|
|
"id": "1c210cfb-2a03-4e81-a8c5-2db739d98226",
|
|
"name": "tlp",
|
|
"type": "string",
|
|
"value": "=*Traffic Light Protocol(TLP):* {{ $('TheHive Trigger').item.json[\"body\"][\"context\"][\"tlpLabel\"] }}"
|
|
},
|
|
{
|
|
"id": "53e1d1a9-055a-48c2-80de-b694871c6620",
|
|
"name": "pap",
|
|
"type": "string",
|
|
"value": "=*Permissible Actions Protocol(PAP):* {{ $('TheHive Trigger').item.json[\"body\"][\"context\"][\"papLabel\"] }}"
|
|
},
|
|
{
|
|
"id": "ee630583-a6ad-4bab-ad78-7846df3ac093",
|
|
"name": "description",
|
|
"type": "string",
|
|
"value": "=:spiral_note_pad: *Case Description:*\\n{{ $('TheHive Trigger').item.json[\"body\"][\"context\"][\"description\"] }}"
|
|
},
|
|
{
|
|
"id": "48ac7d92-5177-46be-b01e-83493f18ee09",
|
|
"name": "assignee",
|
|
"type": "string",
|
|
"value": "={{ $json.user.profile.real_name }}"
|
|
},
|
|
{
|
|
"id": "f9c06ecf-d3d5-490c-a848-02c88fbd3ab4",
|
|
"name": "profilepic",
|
|
"type": "string",
|
|
"value": "={{ $json.user.profile.image_32 }}"
|
|
},
|
|
{
|
|
"id": "bb4ec29d-fac2-4eb9-a177-fca9d2798514",
|
|
"name": "caseid",
|
|
"type": "string",
|
|
"value": "={{ $('TheHive Trigger').item.json[\"body\"][\"objectId\"] }}"
|
|
},
|
|
{
|
|
"id": "7a485f44-b855-4633-ba51-82e7490d7166",
|
|
"name": "tags",
|
|
"type": "string",
|
|
"value": "=:label: *Tags:*\\n{{ $('TheHive Trigger').item.json[\"body\"][\"context\"][\"tags\"].join(', ') }}"
|
|
},
|
|
{
|
|
"id": "a99d49b4-af10-4e04-a9c6-2b17a14643ff",
|
|
"name": "status_emoji",
|
|
"type": "string",
|
|
"value": "={{ $(`Formatting Dictionaries`).item.json.dictionary.STATUS[$('TheHive Trigger').item.json[\"body\"][\"context\"][\"status\"].toUpperCase()] }}"
|
|
},
|
|
{
|
|
"id": "a4884fc5-2d92-4c34-af9c-61240bc564d5",
|
|
"name": "status",
|
|
"type": "string",
|
|
"value": "={{ $('TheHive Trigger').item.json[\"body\"][\"context\"][\"status\"] }}"
|
|
},
|
|
{
|
|
"id": "7efb073b-1f1a-4d11-97a2-d61a9baeb52f",
|
|
"name": "tlp_emoji",
|
|
"type": "string",
|
|
"value": "={{ $(`Formatting Dictionaries`).item.json.dictionary.TLP[$('TheHive Trigger').item.json[\"body\"][\"context\"][\"tlpLabel\"].toUpperCase()] }}"
|
|
},
|
|
{
|
|
"id": "19f5bc67-97c3-47bc-8210-738057f30c1f",
|
|
"name": "pap_emoji",
|
|
"type": "string",
|
|
"value": "={{ $(`Formatting Dictionaries`).item.json.dictionary.PAP[$('TheHive Trigger').item.json[\"body\"][\"context\"][\"papLabel\"].toUpperCase()] }}"
|
|
},
|
|
{
|
|
"id": "d31504be-e4ef-4704-8b1b-cb1a8072298d",
|
|
"name": "severity_emoji",
|
|
"type": "string",
|
|
"value": "={{ $(`Formatting Dictionaries`).item.json.dictionary.Severity[$('TheHive Trigger').item.json[\"body\"][\"context\"][\"severityLabel\"].toUpperCase()] }}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "b7747c0c-52ec-415b-aa55-ce399b53054b",
|
|
"name": "Update Message with new Assignee",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"position": [
|
|
3200,
|
|
1160
|
|
],
|
|
"parameters": {
|
|
"url": "{{ $env.API_BASE_URL }}",
|
|
"method": "POST",
|
|
"options": {},
|
|
"sendBody": true,
|
|
"sendQuery": true,
|
|
"authentication": "{{ $credentials.predefinedCredentialType }}",
|
|
"bodyParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "channel",
|
|
"value": "={{ $('Edit Fields').item.json.response.channel.id }}"
|
|
},
|
|
{
|
|
"name": "ts",
|
|
"value": "={{ $('Edit Fields').item.json.response.container.message_ts }}"
|
|
},
|
|
{
|
|
"name": "blocks",
|
|
"value": "={{ JSON.stringify($json.blocks) }}"
|
|
}
|
|
]
|
|
},
|
|
"queryParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
]
|
|
},
|
|
"nodeCredentialType": "YOUR_CREDENTIAL_HERE"
|
|
},
|
|
"credentials": {
|
|
"slackApi": {
|
|
"id": "hOkN2lZmH8XimxKh",
|
|
"name": "TheHive Slack App"
|
|
}
|
|
},
|
|
"typeVersion": 4.2,
|
|
"notes": "This httpRequest node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "b548c331-1612-40a9-806c-8136c1eb6dbe",
|
|
"name": "Sticky Note4",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"position": [
|
|
1140,
|
|
385.7161688656365
|
|
],
|
|
"parameters": {
|
|
"color": 7,
|
|
"width": 706.9954015609856,
|
|
"height": 467.56934570944634,
|
|
"content": ", PAP (Permissible Action Protocol), and more with simple clicks.\n- **Automated Updates**: Upon interaction, the workflow automatically updates the respective fields in TheHive, ensuring that all case information is current and accurately reflected.\n- **Feedback Loop**: After updating, a confirmation is sent back to Slack, confirming the action taken, which helps in maintaining clear communication and audit trails.\n\n\n**Benefits for SOC Analysts:**\n- **Efficiency**: Reduces the time spent switching between tools and streamlines the case update process.\n- **Accuracy**: Minimizes human error by automating data entry from Slack to TheHive.\n- **Visibility**: Keeps the entire team informed about case status updates in real-time, enhancing collaborative efforts.\n\n\n**Setup Note:**\n- Ensure that your TheHive and Slack integration permissions are configured to allow updates and that users are familiar with the operational workflow.\n- The last set of \"Set\" nodes on the far right of the workflow are designed to split the Slack block kit action into two parts. This split facilitates easier customization of the action options at the bottom of the Slack message. While customization is possible, a good understanding of JSON is desirable to modify these settings effectively.\n\n\nThis integration not only speeds up response times but also leverages the collaborative environment of Slack to keep the SOC team agile and well-informed."
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This stickyNote node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "233924c6-eceb-4618-90fa-2633f0e3cf84",
|
|
"name": "Sticky Note7",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"position": [
|
|
1135,
|
|
3242
|
|
],
|
|
"parameters": {
|
|
"color": 7,
|
|
"width": 988.1220012094333,
|
|
"height": 613.5055433060886,
|
|
"content": ".item.json[\"caseid\"]}}\"},{\"type\":\"header\",\"block_id\":\"header_case_created\",\"text\":{\"type\":\"plain_text\",\"text\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"number\"]}}\",\"emoji\":true}},{\"type\":\"divider\",\"block_id\":\"divider_1\"},{\"type\":\"section\",\"block_id\":\"section_case_details\",\"fields\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"title\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"datecreated\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"tags\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"description\"].replace(\"\\n\",\"\\\\n\")}}\"}]},{\"type\":\"actions\",\"block_id\":\"actions_case_options\",\"elements\":[{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Close Case as False Positive\",\"emoji\":true},\"style\":\"danger\",\"value\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"caseid\"]}}\",\"action_id\":\"close_case\"},{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Add a Task\",\"emoji\":true},\"value\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"caseid\"]}}\",\"action_id\":\"add_task\"}]},{\"type\":\"divider\",\"block_id\":\"divider_2\"},{\"type\":\"header\",\"block_id\":\"header_current_assignment\",\"text\":{\"type\":\"plain_text\",\"text\":\"🔍 Case Details:\",\"emoji\":true}},{\"type\":\"context\",\"block_id\":\"context_status\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"status\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_severity\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"severity\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_tlp\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"tlp\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_pap\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Assign').item.json[\"pap\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_assignee\",\"elements\":[{\"type\":\"image\",\"image_url\":\"{{ $('Get Slack User\\'s Email From Slack').item.json.profile.image_32 }}\",\"alt_text\":\"Profile Pic\"},{\"type\":\"mrkdwn\",\"text\":\"Assignee: {{ $('Get Slack User\\'s Email From Slack').item.json.profile.real_name }}\"}]}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "0dc10f84-c087-45ab-8b1d-f770725f400b",
|
|
"name": "Close Case Block Rebuild",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
2400,
|
|
1700
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "c1fccf83-8223-42a2-837e-11eafe5d23fd",
|
|
"name": "slackblocks",
|
|
"type": "string",
|
|
"value": "={\"type\":\"image\",\"block_id\":\"image_block\",\"image_url\":\"{{ $env.WEBHOOK_URL }}\",\"alt_text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"caseid\"]}}\"},{\"type\":\"header\",\"block_id\":\"header_case_created\",\"text\":{\"type\":\"plain_text\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"number\"]}}\",\"emoji\":true}},{\"type\":\"divider\",\"block_id\":\"divider_1\"},{\"type\":\"section\",\"block_id\":\"section_case_details\",\"fields\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"title\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"datecreated\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"tags\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"description\"].replace(\"\\n\",\"\\\\n\")}}\"}]},{\"type\":\"actions\",\"block_id\":\"actions_case_options\",\"elements\":[{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Close Case as False Positive\",\"emoji\":true},\"style\":\"danger\",\"value\":\"{{ $('Prep Fields For Slack - Close').item.json[\"caseid\"]}}\",\"action_id\":\"close_case\"},{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Add a Task\",\"emoji\":true},\"value\":\"{{ $('Prep Fields For Slack - Close').item.json[\"caseid\"]}}\",\"action_id\":\"add_task\"}]},{\"type\":\"divider\",\"block_id\":\"divider_2\"},{\"type\":\"header\",\"block_id\":\"header_current_assignment\",\"text\":{\"type\":\"plain_text\",\"text\":\"🔍 Case Details:\",\"emoji\":true}},{\"type\":\"context\",\"block_id\":\"context_status\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"status\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_severity\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"severity\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_tlp\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"tlp\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_pap\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"pap\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_assignee\",\"elements\":[{\"type\":\"image\",\"image_url\":\"{{ $('Prep Fields For Slack - Close').item.json[\"profilepic\"]}}\",\"alt_text\":\"Profile Pic\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Close').item.json[\"assignee\"] }}\"}]}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "3b95146f-d842-4c69-b537-bad5603ba0d0",
|
|
"name": "Severity Case Block Rebuild1",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
2400,
|
|
1880
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "c1fccf83-8223-42a2-837e-11eafe5d23fd",
|
|
"name": "slackblocks",
|
|
"type": "string",
|
|
"value": "={\"type\":\"image\",\"block_id\":\"image_block\",\"image_url\":\"{{ $env.WEBHOOK_URL }}\",\"alt_text\":\"{{ $('Prep Fields For Slack - Severity').item.json['caseid']}}\"},{\"type\":\"header\",\"block_id\":\"header_case_created\",\"text\":{\"type\":\"plain_text\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['number']}}\",\"emoji\":true}},{\"type\":\"divider\",\"block_id\":\"divider_1\"},{\"type\":\"section\",\"block_id\":\"section_case_details\",\"fields\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['title'].replace('\\n','\\\\n')}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['datecreated'].replace('\\n','\\\\n')}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['tags'].replace('\\n','\\\\n')}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['description'].replace('\\n','\\\\n')}}\"}]},{\"type\":\"actions\",\"block_id\":\"actions_case_options\",\"elements\":[{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Close Case as False Positive\",\"emoji\":true},\"style\":\"danger\",\"value\":\"{{ $('Prep Fields For Slack - Severity').item.json['caseid']}}\",\"action_id\":\"close_case\"},{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Add a Task\",\"emoji\":true},\"value\":\"{{ $('Prep Fields For Slack - Severity').item.json['caseid']}}\",\"action_id\":\"add_task\"}]},{\"type\":\"divider\",\"block_id\":\"divider_2\"},{\"type\":\"header\",\"block_id\":\"header_current_assignment\",\"text\":{\"type\":\"plain_text\",\"text\":\"🔍 Case Details:\",\"emoji\":true}},{\"type\":\"context\",\"block_id\":\"context_status\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['status']}}\"}]},{\"type\":\"context\",\"block_id\":\"context_severity\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['severity']}}\"}]},{\"type\":\"context\",\"block_id\":\"context_tlp\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['tlp']}}\"}]},{\"type\":\"context\",\"block_id\":\"context_pap\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['pap']}}\"}]},{\"type\":\"context\",\"block_id\":\"context_assignee\",\"elements\":[{\"type\":\"image\",\"image_url\":\"{{ $('Prep Fields For Slack - Severity').item.json['profilepic']}}\",\"alt_text\":\"Profile Pic\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Slack - Severity').item.json['assignee']}}\"}]}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "be1fe770-aaa2-4ed2-9ff1-5baa00423d76",
|
|
"name": "PAP Case Block Rebuild",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
2400,
|
|
2060
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "c1fccf83-8223-42a2-837e-11eafe5d23fd",
|
|
"name": "slackblocks",
|
|
"type": "string",
|
|
"value": "={\"type\":\"image\",\"block_id\":\"image_block\",\"image_url\":\"{{ $env.WEBHOOK_URL }}\",\"alt_text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"caseid\"]}}\"},{\"type\":\"header\",\"block_id\":\"header_case_created\",\"text\":{\"type\":\"plain_text\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"number\"]}}\",\"emoji\":true}},{\"type\":\"divider\",\"block_id\":\"divider_1\"},{\"type\":\"section\",\"block_id\":\"section_case_details\",\"fields\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"title\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"datecreated\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"tags\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"description\"].replace(\"\\n\",\"\\\\n\")}}\"}]},{\"type\":\"actions\",\"block_id\":\"actions_case_options\",\"elements\":[{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Close Case as False Positive\",\"emoji\":true},\"style\":\"danger\",\"value\":\"{{ $('Prep Fields For PAP Slack').item.json[\"caseid\"]}}\",\"action_id\":\"close_case\"},{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Add a Task\",\"emoji\":true},\"value\":\"{{ $('Prep Fields For PAP Slack').item.json[\"caseid\"]}}\",\"action_id\":\"add_task\"}]},{\"type\":\"divider\",\"block_id\":\"divider_2\"},{\"type\":\"header\",\"block_id\":\"header_current_assignment\",\"text\":{\"type\":\"plain_text\",\"text\":\"🔍 Case Details:\",\"emoji\":true}},{\"type\":\"context\",\"block_id\":\"context_status\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"status\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_severity\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"severity\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_tlp\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"tlp\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_pap\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"pap\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_assignee\",\"elements\":[{\"type\":\"image\",\"image_url\":\"{{ $('Prep Fields For PAP Slack').item.json[\"profilepic\"]}}\",\"alt_text\":\"Profile Pic\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For PAP Slack').item.json[\"assignee\"] }}\"}]}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "0d9a2036-6a4c-4ffd-95a8-34b6861894b9",
|
|
"name": "Prep Fields For PAP Slack",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
1600,
|
|
2060
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "0001aed3-a3fb-4229-8fa1-1941f0ee8a12",
|
|
"name": "title",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[0].text }}"
|
|
},
|
|
{
|
|
"id": "6f40871c-ea6f-4c61-9272-9342c99637e8",
|
|
"name": "datecreated",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[1].text }}"
|
|
},
|
|
{
|
|
"id": "2ea20d66-380f-4a0f-a1ea-c4740293f48b",
|
|
"name": "number",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[1].text.text }}"
|
|
},
|
|
{
|
|
"id": "a22dd686-ac38-4e73-a0ec-051dce57f9fa",
|
|
"name": "severity",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json[\"response\"][\"message\"][\"blocks\"][8][\"elements\"][0][\"text\"] }}"
|
|
},
|
|
{
|
|
"id": "1c210cfb-2a03-4e81-a8c5-2db739d98226",
|
|
"name": "tlp",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[9].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "53e1d1a9-055a-48c2-80de-b694871c6620",
|
|
"name": "pap",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json[\"dictionary\"][\"PAP\"][$('Edit Fields').item.json[\"response\"][\"state\"][\"values\"][\"actions_assignment_options\"][\"update_pap\"][\"selected_option\"][\"text\"][\"text\"].toUpperCase()] }} *Permissible Actions Protocol(PAP):* {{ $('Edit Fields').item.json[\"response\"][\"state\"][\"values\"][\"actions_assignment_options\"][\"update_pap\"][\"selected_option\"][\"text\"][\"text\"].toUpperCase() }}"
|
|
},
|
|
{
|
|
"id": "ee630583-a6ad-4bab-ad78-7846df3ac093",
|
|
"name": "description",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[3].text }}"
|
|
},
|
|
{
|
|
"id": "48ac7d92-5177-46be-b01e-83493f18ee09",
|
|
"name": "assignee",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[1].text }}"
|
|
},
|
|
{
|
|
"id": "f9c06ecf-d3d5-490c-a848-02c88fbd3ab4",
|
|
"name": "profilepic",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[0].image_url }}"
|
|
},
|
|
{
|
|
"id": "bb4ec29d-fac2-4eb9-a177-fca9d2798514",
|
|
"name": "caseid",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[0].alt_text }}"
|
|
},
|
|
{
|
|
"id": "7a485f44-b855-4633-ba51-82e7490d7166",
|
|
"name": "tags",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[2].text.replaceAll(\"\\n\",\"\\\\n\").replaceAll(\"**\",\"*\") }}"
|
|
},
|
|
{
|
|
"id": "a4884fc5-2d92-4c34-af9c-61240bc564d5",
|
|
"name": "status",
|
|
"type": "string",
|
|
"value": "={{ $json.response.message.blocks[7].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "449c052a-05b4-4c03-99a4-b5fe7ec0e102",
|
|
"name": "newassignee",
|
|
"type": "string",
|
|
"value": "={{ $json.response.state.values.actions_assignment_options['change-assignee'].selected_user }}"
|
|
},
|
|
{
|
|
"id": "8278ead1-85c0-4921-ac36-9abfd44f99c8",
|
|
"name": "papId",
|
|
"type": "number",
|
|
"value": "={{ $json.response.state.values.actions_assignment_options.update_pap.selected_option.value }}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "574caf88-eef7-4b06-9f04-7a468ef56325",
|
|
"name": "Map Actions",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
2700,
|
|
1160
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "7d88f9ff-3046-491f-a31c-642839fba7b4",
|
|
"name": "actions",
|
|
"type": "string",
|
|
"value": "={{ $json.slackblocks }}"
|
|
},
|
|
{
|
|
"id": "5cde079d-1b30-41b0-948d-f3b8bacb88bf",
|
|
"name": "buttons",
|
|
"type": "string",
|
|
"value": "={\"type\":\"actions\",\"block_id\":\"actions_assignment_options\",\"elements\":[{\"type\":\"users_select\",\"placeholder\":{\"type\":\"plain_text\",\"text\":\"Change Assignee\",\"emoji\":true},\"action_id\":\"change-assignee\"},{\"type\":\"static_select\",\"placeholder\":{\"type\":\"plain_text\",\"text\":\"Change Status\",\"emoji\":true},\"action_id\":\"update-status\",\"options\":[{\"text\":{\"type\":\"plain_text\",\"text\":\"🆕 New\",\"emoji\":true},\"value\":\"1\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"🔄 In progress\",\"emoji\":true},\"value\":\"2\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"📑 Duplicated\",\"emoji\":true},\"value\":\"3\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"❎ False positive\",\"emoji\":true},\"value\":\"4\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"❓ Indeterminate\",\"emoji\":true},\"value\":\"5\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"🔵 Other\",\"emoji\":true},\"value\":\"6\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"✅ True positive\",\"emoji\":true},\"value\":\"7\"}]},{\"type\":\"static_select\",\"placeholder\":{\"type\":\"plain_text\",\"text\":\"Change severity\",\"emoji\":true},\"action_id\":\"update_severity\",\"options\":[{\"text\":{\"type\":\"plain_text\",\"text\":\"Low\",\"emoji\":true},\"value\":\"1\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"Medium\",\"emoji\":true},\"value\":\"2\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"High\",\"emoji\":true},\"value\":\"3\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"Critical\",\"emoji\":true},\"value\":\"4\"}]},{\"type\":\"static_select\",\"placeholder\":{\"type\":\"plain_text\",\"text\":\"Change TLP\",\"emoji\":true},\"action_id\":\"update_tlp\",\"options\":[{\"text\":{\"type\":\"plain_text\",\"text\":\"White\",\"emoji\":true},\"value\":\"0\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"Green\",\"emoji\":true},\"value\":\"1\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"Amber\",\"emoji\":true},\"value\":\"2\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"Red\",\"emoji\":true},\"value\":\"3\"}]},{\"type\":\"static_select\",\"placeholder\":{\"type\":\"plain_text\",\"text\":\"Change PAP\",\"emoji\":true},\"action_id\":\"update_pap\",\"options\":[{\"text\":{\"type\":\"plain_text\",\"text\":\"White\",\"emoji\":true},\"value\":\"0\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"Green\",\"emoji\":true},\"value\":\"1\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"Amber\",\"emoji\":true},\"value\":\"2\"},{\"text\":{\"type\":\"plain_text\",\"text\":\"Red\",\"emoji\":true},\"value\":\"3\"}]}]},{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\":bee: View the case in TheHive\"},\"accessory\":{\"type\":\"button\",\"style\":\"primary\",\"text\":{\"type\":\"plain_text\",\"text\":\"View Case\",\"emoji\":true},\"value\":\"click_me_123\",\"url\":\"{{ $('Edit Fields').item.json.theHiveUrl }}/cases/{{ $('Edit Fields').item.json.response.message.blocks[0].alt_text }}/details\",\"action_id\":\"viewlink\"}}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "d0e2d26f-9ab1-4f4f-a700-d686dda8dbef",
|
|
"name": "Build Final Block",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
2920,
|
|
1160
|
|
],
|
|
"parameters": {
|
|
"mode": "raw",
|
|
"options": {},
|
|
"jsonOutput": "={\"blocks\": [{{ $json.actions }},{{ $json.buttons }}]}"
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "e189e865-664a-47c1-b877-59788967c852",
|
|
"name": "Prep Fields For TLP Slack",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
1600,
|
|
2240
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "0001aed3-a3fb-4229-8fa1-1941f0ee8a12",
|
|
"name": "title",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[0].text }}"
|
|
},
|
|
{
|
|
"id": "6f40871c-ea6f-4c61-9272-9342c99637e8",
|
|
"name": "datecreated",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[1].text }}"
|
|
},
|
|
{
|
|
"id": "2ea20d66-380f-4a0f-a1ea-c4740293f48b",
|
|
"name": "number",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[1].text.text }}"
|
|
},
|
|
{
|
|
"id": "a22dd686-ac38-4e73-a0ec-051dce57f9fa",
|
|
"name": "severity",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json[\"response\"][\"message\"][\"blocks\"][8][\"elements\"][0][\"text\"] }}"
|
|
},
|
|
{
|
|
"id": "1c210cfb-2a03-4e81-a8c5-2db739d98226",
|
|
"name": "tlp",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json[\"dictionary\"][\"TLP\"][$('Edit Fields').item.json[\"response\"][\"state\"][\"values\"][\"actions_assignment_options\"][\"update_tlp\"][\"selected_option\"][\"text\"][\"text\"].toUpperCase()] }} *Traffic Light Protocol(TLP):* {{ $('Edit Fields').item.json[\"response\"][\"state\"][\"values\"][\"actions_assignment_options\"][\"update_tlp\"][\"selected_option\"][\"text\"][\"text\"].toUpperCase() }}"
|
|
},
|
|
{
|
|
"id": "53e1d1a9-055a-48c2-80de-b694871c6620",
|
|
"name": "pap",
|
|
"type": "string",
|
|
"value": "={{ $json.response.message.blocks[10].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "ee630583-a6ad-4bab-ad78-7846df3ac093",
|
|
"name": "description",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[3].text }}"
|
|
},
|
|
{
|
|
"id": "48ac7d92-5177-46be-b01e-83493f18ee09",
|
|
"name": "assignee",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[1].text }}"
|
|
},
|
|
{
|
|
"id": "f9c06ecf-d3d5-490c-a848-02c88fbd3ab4",
|
|
"name": "profilepic",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[0].image_url }}"
|
|
},
|
|
{
|
|
"id": "bb4ec29d-fac2-4eb9-a177-fca9d2798514",
|
|
"name": "caseid",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[0].alt_text }}"
|
|
},
|
|
{
|
|
"id": "7a485f44-b855-4633-ba51-82e7490d7166",
|
|
"name": "tags",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[2].text.replaceAll(\"\\n\",\"\\\\n\").replaceAll(\"**\",\"*\") }}"
|
|
},
|
|
{
|
|
"id": "a4884fc5-2d92-4c34-af9c-61240bc564d5",
|
|
"name": "status",
|
|
"type": "string",
|
|
"value": "={{ $json.response.message.blocks[7].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "449c052a-05b4-4c03-99a4-b5fe7ec0e102",
|
|
"name": "newassignee",
|
|
"type": "string",
|
|
"value": "={{ $json.response.state.values.actions_assignment_options['change-assignee'].selected_user }}"
|
|
},
|
|
{
|
|
"id": "8278ead1-85c0-4921-ac36-9abfd44f99c8",
|
|
"name": "tlpId",
|
|
"type": "number",
|
|
"value": "={{ $('Edit Fields').item.json.response.state.values.actions_assignment_options.update_tlp.selected_option.value }}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "286a5624-a546-4a7f-a416-0b4ef66a99d7",
|
|
"name": "Prep Fields For Status Slack",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
1600,
|
|
2420
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "0001aed3-a3fb-4229-8fa1-1941f0ee8a12",
|
|
"name": "title",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[0].text }}"
|
|
},
|
|
{
|
|
"id": "6f40871c-ea6f-4c61-9272-9342c99637e8",
|
|
"name": "datecreated",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[1].text }}"
|
|
},
|
|
{
|
|
"id": "2ea20d66-380f-4a0f-a1ea-c4740293f48b",
|
|
"name": "number",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[1].text.text }}"
|
|
},
|
|
{
|
|
"id": "a22dd686-ac38-4e73-a0ec-051dce57f9fa",
|
|
"name": "severity",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json[\"response\"][\"message\"][\"blocks\"][8][\"elements\"][0][\"text\"] }}"
|
|
},
|
|
{
|
|
"id": "1c210cfb-2a03-4e81-a8c5-2db739d98226",
|
|
"name": "tlp",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[9].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "53e1d1a9-055a-48c2-80de-b694871c6620",
|
|
"name": "pap",
|
|
"type": "string",
|
|
"value": "={{ $json.response.message.blocks[10].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "ee630583-a6ad-4bab-ad78-7846df3ac093",
|
|
"name": "description",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[3].text }}"
|
|
},
|
|
{
|
|
"id": "48ac7d92-5177-46be-b01e-83493f18ee09",
|
|
"name": "assignee",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[1].text }}"
|
|
},
|
|
{
|
|
"id": "f9c06ecf-d3d5-490c-a848-02c88fbd3ab4",
|
|
"name": "profilepic",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[0].image_url }}"
|
|
},
|
|
{
|
|
"id": "bb4ec29d-fac2-4eb9-a177-fca9d2798514",
|
|
"name": "caseid",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[0].alt_text }}"
|
|
},
|
|
{
|
|
"id": "7a485f44-b855-4633-ba51-82e7490d7166",
|
|
"name": "tags",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[2].text.replaceAll(\"\\n\",\"\\\\n\").replaceAll(\"**\",\"*\") }}"
|
|
},
|
|
{
|
|
"id": "a4884fc5-2d92-4c34-af9c-61240bc564d5",
|
|
"name": "status",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json[\"dictionary\"][\"STATUSEMOJI\"][$('Edit Fields').item.json[\"response\"][\"state\"][\"values\"][\"actions_assignment_options\"][\"update-status\"][\"selected_option\"][\"value\"].toUpperCase()] }} *Status:* {{ $('Edit Fields').item.json[\"dictionary\"][\"STATUS\"][$('Edit Fields').item.json[\"response\"][\"state\"][\"values\"][\"actions_assignment_options\"][\"update-status\"][\"selected_option\"][\"value\"].toUpperCase()] }}"
|
|
},
|
|
{
|
|
"id": "8278ead1-85c0-4921-ac36-9abfd44f99c8",
|
|
"name": "statusvalue",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json[\"dictionary\"][\"STATUS\"][$('Edit Fields').item.json[\"response\"][\"state\"][\"values\"][\"actions_assignment_options\"][\"update-status\"][\"selected_option\"][\"value\"].toUpperCase()] }}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "bdaa7347-dd4f-4183-9f21-979557320603",
|
|
"name": "Update Status in TheHive",
|
|
"type": "n8n-nodes-base.theHiveProject",
|
|
"position": [
|
|
2060,
|
|
2420
|
|
],
|
|
"parameters": {
|
|
"resource": "case",
|
|
"operation": "update",
|
|
"caseUpdateFields": {
|
|
"value": {
|
|
"id": "={{ $json.caseid }}",
|
|
"flag": false,
|
|
"status": "={{ $json.statusvalue }}"
|
|
},
|
|
"schema": [
|
|
{
|
|
"id": "id",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "ID",
|
|
"defaultMatch": true,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "title",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Title",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "description",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Description",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "severity",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Low",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Medium",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "High",
|
|
"value": 3
|
|
},
|
|
{
|
|
"name": "Critical",
|
|
"value": 4
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Severity (Severity of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "startDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Start Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "endDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "End Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "flag",
|
|
"type": "boolean",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Flag",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tlp",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "TLP (Confidentiality of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "pap",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "PAP (Level of exposure of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "summary",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Summary",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "status",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Duplicated",
|
|
"value": "Duplicated",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "FalsePositive",
|
|
"value": "FalsePositive",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "Indeterminate",
|
|
"value": "Indeterminate",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "InProgress",
|
|
"value": "InProgress",
|
|
"description": "Stage: InProgress"
|
|
},
|
|
{
|
|
"name": "New",
|
|
"value": "New",
|
|
"description": "Stage: New"
|
|
},
|
|
{
|
|
"name": "Other",
|
|
"value": "Other",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "TruePositive",
|
|
"value": "TruePositive",
|
|
"description": "Stage: Closed"
|
|
}
|
|
],
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "assignee",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Angel",
|
|
"value": "angel@n8n.io"
|
|
},
|
|
{
|
|
"name": "John Smith",
|
|
"value": "john@n8n.io"
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Assignee",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "impactStatus",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Impact Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "taskRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Task Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "observableRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Observable Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "addTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Add Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "removeTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Remove Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
}
|
|
],
|
|
"mappingMode": "defineBelow",
|
|
"matchingColumns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"credentials": {
|
|
"theHiveProjectApi": {
|
|
"id": "6O5aPdkMaQmc8I9B",
|
|
"name": "The Hive 5 account"
|
|
}
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This theHiveProject node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "06320f47-c22d-4285-9885-0f3148702dd9",
|
|
"name": "Close Case as False Positive",
|
|
"type": "n8n-nodes-base.theHiveProject",
|
|
"position": [
|
|
2060,
|
|
1700
|
|
],
|
|
"parameters": {
|
|
"resource": "case",
|
|
"operation": "update",
|
|
"caseUpdateFields": {
|
|
"value": {
|
|
"id": "={{ $json.caseid }}",
|
|
"flag": false,
|
|
"status": "FalsePositive"
|
|
},
|
|
"schema": [
|
|
{
|
|
"id": "id",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "ID",
|
|
"defaultMatch": true,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "title",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Title",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "description",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Description",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "severity",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Low",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Medium",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "High",
|
|
"value": 3
|
|
},
|
|
{
|
|
"name": "Critical",
|
|
"value": 4
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Severity (Severity of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "startDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Start Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "endDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "End Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "flag",
|
|
"type": "boolean",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Flag",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tlp",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "TLP (Confidentiality of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "pap",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "PAP (Level of exposure of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "summary",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Summary",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "status",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Duplicated",
|
|
"value": "Duplicated",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "FalsePositive",
|
|
"value": "FalsePositive",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "Indeterminate",
|
|
"value": "Indeterminate",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "InProgress",
|
|
"value": "InProgress",
|
|
"description": "Stage: InProgress"
|
|
},
|
|
{
|
|
"name": "New",
|
|
"value": "New",
|
|
"description": "Stage: New"
|
|
},
|
|
{
|
|
"name": "Other",
|
|
"value": "Other",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "TruePositive",
|
|
"value": "TruePositive",
|
|
"description": "Stage: Closed"
|
|
}
|
|
],
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "assignee",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Angel",
|
|
"value": "angel@n8n.io"
|
|
},
|
|
{
|
|
"name": "John Smith",
|
|
"value": "john@n8n.io"
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Assignee",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "impactStatus",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Impact Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "taskRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Task Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "observableRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Observable Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "addTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Add Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "removeTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Remove Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
}
|
|
],
|
|
"mappingMode": "defineBelow",
|
|
"matchingColumns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"credentials": {
|
|
"theHiveProjectApi": {
|
|
"id": "6O5aPdkMaQmc8I9B",
|
|
"name": "The Hive 5 account"
|
|
}
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This theHiveProject node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "14d2eebc-17f7-4004-b4d2-17f38e1c6aaa",
|
|
"name": "Status Case Block Rebuild",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
2400,
|
|
2420
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "c1fccf83-8223-42a2-837e-11eafe5d23fd",
|
|
"name": "slackblocks",
|
|
"type": "string",
|
|
"value": "={\"type\":\"image\",\"block_id\":\"image_block\",\"image_url\":\"{{ $env.WEBHOOK_URL }}\",\"alt_text\":\"{{ $('Prep Fields For Status Slack').item.json[\"caseid\"]}}\"},{\"type\":\"header\",\"block_id\":\"header_case_created\",\"text\":{\"type\":\"plain_text\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"number\"]}}\",\"emoji\":true}},{\"type\":\"divider\",\"block_id\":\"divider_1\"},{\"type\":\"section\",\"block_id\":\"section_case_details\",\"fields\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"title\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"datecreated\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"tags\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"description\"].replace(\"\\n\",\"\\\\n\")}}\"}]},{\"type\":\"actions\",\"block_id\":\"actions_case_options\",\"elements\":[{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Close Case as False Positive\",\"emoji\":true},\"style\":\"danger\",\"value\":\"{{ $('Prep Fields For Status Slack').item.json[\"caseid\"]}}\",\"action_id\":\"close_case\"},{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Add a Task\",\"emoji\":true},\"value\":\"{{ $('Prep Fields For Status Slack').item.json[\"caseid\"]}}\",\"action_id\":\"add_task\"}]},{\"type\":\"divider\",\"block_id\":\"divider_2\"},{\"type\":\"header\",\"block_id\":\"header_current_assignment\",\"text\":{\"type\":\"plain_text\",\"text\":\"🔍 Case Details:\",\"emoji\":true}},{\"type\":\"context\",\"block_id\":\"context_status\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"status\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_severity\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"severity\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_tlp\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"tlp\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_pap\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"pap\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_assignee\",\"elements\":[{\"type\":\"image\",\"image_url\":\"{{ $('Prep Fields For Status Slack').item.json[\"profilepic\"]}}\",\"alt_text\":\"Profile Pic\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For Status Slack').item.json[\"assignee\"] }}\"}]}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "eff9d872-a2e0-42ff-ba18-645d044a95b7",
|
|
"name": "TLP Case Block Rebuild",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
2400,
|
|
2240
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "c1fccf83-8223-42a2-837e-11eafe5d23fd",
|
|
"name": "slackblocks",
|
|
"type": "string",
|
|
"value": "={\"type\":\"image\",\"block_id\":\"image_block\",\"image_url\":\"{{ $env.WEBHOOK_URL }}\",\"alt_text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"caseid\"]}}\"},{\"type\":\"header\",\"block_id\":\"header_case_created\",\"text\":{\"type\":\"plain_text\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"number\"]}}\",\"emoji\":true}},{\"type\":\"divider\",\"block_id\":\"divider_1\"},{\"type\":\"section\",\"block_id\":\"section_case_details\",\"fields\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"title\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"datecreated\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"tags\"].replace(\"\\n\",\"\\\\n\")}}\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"description\"].replace(\"\\n\",\"\\\\n\")}}\"}]},{\"type\":\"actions\",\"block_id\":\"actions_case_options\",\"elements\":[{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Close Case as False Positive\",\"emoji\":true},\"style\":\"danger\",\"value\":\"{{ $('Prep Fields For TLP Slack').item.json[\"caseid\"]}}\",\"action_id\":\"close_case\"},{\"type\":\"button\",\"text\":{\"type\":\"plain_text\",\"text\":\"Add a Task\",\"emoji\":true},\"value\":\"{{ $('Prep Fields For TLP Slack').item.json[\"caseid\"]}}\",\"action_id\":\"add_task\"}]},{\"type\":\"divider\",\"block_id\":\"divider_2\"},{\"type\":\"header\",\"block_id\":\"header_current_assignment\",\"text\":{\"type\":\"plain_text\",\"text\":\"🔍 Case Details:\",\"emoji\":true}},{\"type\":\"context\",\"block_id\":\"context_status\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"status\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_severity\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"severity\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_tlp\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"tlp\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_pap\",\"elements\":[{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"pap\"]}}\"}]},{\"type\":\"context\",\"block_id\":\"context_assignee\",\"elements\":[{\"type\":\"image\",\"image_url\":\"{{ $('Prep Fields For TLP Slack').item.json[\"profilepic\"]}}\",\"alt_text\":\"Profile Pic\"},{\"type\":\"mrkdwn\",\"text\":\"{{ $('Prep Fields For TLP Slack').item.json[\"assignee\"] }}\"}]}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "ddf72a31-3655-423d-bf47-c405563ebf46",
|
|
"name": "No Action Needed",
|
|
"type": "n8n-nodes-base.noOp",
|
|
"position": [
|
|
1520,
|
|
4140
|
|
],
|
|
"parameters": {},
|
|
"typeVersion": 1,
|
|
"notes": "This noOp node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "7e3155d1-69d0-4773-97f7-61cdc55d04ad",
|
|
"name": "Sticky Note11",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"position": [
|
|
1140,
|
|
2600
|
|
],
|
|
"parameters": {
|
|
"color": 7,
|
|
"width": 792.317043267064,
|
|
"height": 631.3919967555308,
|
|
"content": ".replaceAll(\"**\",\"*\")}}\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\"text\": \"{{ $json['tags'] }}\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"actions\",\n\t\t\t\"block_id\": \"actions_case_options\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"button\",\n\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"Close Case as False Positive\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"style\": \"danger\",\n\t\t\t\t\t\"value\": \"{{ $json['caseid'] }}\",\n\t\t\t\t\t\"action_id\": \"close_case\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"button\",\n\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"Add a Task\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"value\": \"{{ $json['caseid'] }}\",\n\t\t\t\t\t\"action_id\": \"add_task\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"divider\",\n\t\t\t\"block_id\": \"divider_2\"\n\t\t},\n\t\t{\n\t\t\t\"type\": \"header\",\n\t\t\t\"block_id\": \"header_current_assignment\",\n\t\t\t\"text\": {\n\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\"text\": \"🔍 Case Details:\",\n\t\t\t\t\"emoji\": true\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t\"type\": \"context\",\n\t\t\t\"block_id\": \"context_status\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\"text\": \"{{ $json['status_emoji'] }} *Status:* {{ $json['status'] }}\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"context\",\n\t\t\t\"block_id\": \"context_severity\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\"text\": \"{{ $json['severity_emoji'] }} {{ $json['severity'] }}\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"context\",\n\t\t\t\"block_id\": \"context_tlp\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\"text\": \"{{ $json['tlp_emoji'] }} {{ $json['tlp'] }}\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"context\",\n\t\t\t\"block_id\": \"context_pap\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\"text\": \"{{ $json['pap_emoji'] }} {{ $json['pap'] }}\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"context\",\n\t\t\t\"block_id\": \"context_assignee\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"image\",\n\t\t\t\t\t\"image_url\": \"{{ $json['profilepic'] }}\",\n\t\t\t\t\t\"alt_text\": \"Profile Pic\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\t\"text\": \"Assignee: {{ $json['assignee'] }}\"\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"actions\",\n\t\t\t\"block_id\": \"actions_assignment_options\",\n\t\t\t\"elements\": [\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"users_select\",\n\t\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"Change Assignee\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"action_id\": \"change-assignee\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"static_select\",\n\t\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"Change Status\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"action_id\": \"update-status\",\n\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"🆕 New\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"1\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"🔄 In progress\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"2\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"📑 Duplicated\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"3\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"❎ False positive\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"4\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"❓ Indeterminate\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"5\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"🔵 Other\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"6\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"✅ True positive\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"7\"\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"static_select\",\n\t\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"Change severity\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"action_id\": \"update_severity\",\n\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"Low\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"1\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"Medium\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"2\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"High\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"3\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"Critical\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"4\"\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"static_select\",\n\t\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"Change TLP\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"action_id\": \"update_tlp\",\n\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"White\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"0\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"Amber\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"1\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"Green\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"2\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"Red\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"3\"\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"type\": \"static_select\",\n\t\t\t\t\t\"placeholder\": {\n\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\"text\": \"Change PAP\",\n\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t},\n\t\t\t\t\t\"action_id\": \"update_pap\",\n\t\t\t\t\t\"options\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"White\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"0\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"Green\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"1\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"Amber\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"2\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"text\": {\n\t\t\t\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\t\t\t\"text\": \"Red\",\n\t\t\t\t\t\t\t\t\"emoji\": true\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\"value\": \"3\"\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"type\": \"section\",\n\t\t\t\"text\": {\n\t\t\t\t\"type\": \"mrkdwn\",\n\t\t\t\t\"text\": \":bee: View the case in TheHive\"\n\t\t\t},\n\t\t\t\"accessory\": {\n\t\t\t\t\"type\": \"button\",\n\t\t\t\t\"style\": \"primary\",\n\t\t\t\t\"text\": {\n\t\t\t\t\t\"type\": \"plain_text\",\n\t\t\t\t\t\"text\": \"View Case\",\n\t\t\t\t\t\"emoji\": true\n\t\t\t\t},\n\t\t\t\t\"value\": \"click_me_123\",\n\t\t\t\t\"url\": \"{{ $('Formatting Dictionaries').item.json.theHiveUrl }}/cases/{{ $json['caseid'] }}/details\",\n\t\t\t\t\"action_id\": \"viewlink\"\n\t\t\t}\n\t\t}\n\t]\n}",
|
|
"channelId": {
|
|
"__rl": true,
|
|
"mode": "list",
|
|
"value": "C05LAN72WJK",
|
|
"cachedResultName": "alerts-cyber"
|
|
},
|
|
"messageType": "block",
|
|
"otherOptions": {}
|
|
},
|
|
"credentials": {
|
|
"slackApi": {
|
|
"id": "hOkN2lZmH8XimxKh",
|
|
"name": "TheHive Slack App"
|
|
}
|
|
},
|
|
"typeVersion": 2.1,
|
|
"notes": "This slack node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "94f38341-660a-451b-a02a-7dc2d327e323",
|
|
"name": "Prep Fields For Slack - Close",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
1600,
|
|
1700
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "0001aed3-a3fb-4229-8fa1-1941f0ee8a12",
|
|
"name": "title",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[0].text }}"
|
|
},
|
|
{
|
|
"id": "6f40871c-ea6f-4c61-9272-9342c99637e8",
|
|
"name": "datecreated",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[1].text }}"
|
|
},
|
|
{
|
|
"id": "2ea20d66-380f-4a0f-a1ea-c4740293f48b",
|
|
"name": "number",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[1].text.text }}"
|
|
},
|
|
{
|
|
"id": "a22dd686-ac38-4e73-a0ec-051dce57f9fa",
|
|
"name": "severity",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[8].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "1c210cfb-2a03-4e81-a8c5-2db739d98226",
|
|
"name": "tlp",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[9].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "53e1d1a9-055a-48c2-80de-b694871c6620",
|
|
"name": "pap",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[10].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "ee630583-a6ad-4bab-ad78-7846df3ac093",
|
|
"name": "description",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[3].text }}"
|
|
},
|
|
{
|
|
"id": "48ac7d92-5177-46be-b01e-83493f18ee09",
|
|
"name": "assignee",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[1].text }}"
|
|
},
|
|
{
|
|
"id": "f9c06ecf-d3d5-490c-a848-02c88fbd3ab4",
|
|
"name": "profilepic",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[0].image_url }}"
|
|
},
|
|
{
|
|
"id": "bb4ec29d-fac2-4eb9-a177-fca9d2798514",
|
|
"name": "caseid",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[0].alt_text }}"
|
|
},
|
|
{
|
|
"id": "7a485f44-b855-4633-ba51-82e7490d7166",
|
|
"name": "tags",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[2].text }}"
|
|
},
|
|
{
|
|
"id": "a4884fc5-2d92-4c34-af9c-61240bc564d5",
|
|
"name": "status",
|
|
"type": "string",
|
|
"value": "=:negative_squared_cross_mark: *Status* Closed - False Positive"
|
|
},
|
|
{
|
|
"id": "449c052a-05b4-4c03-99a4-b5fe7ec0e102",
|
|
"name": "newassignee",
|
|
"type": "string",
|
|
"value": "={{ $json.response.state.values.actions_assignment_options['change-assignee'].selected_user }}"
|
|
},
|
|
{
|
|
"id": "827c585d-ae23-48d5-b905-81f8260db61e",
|
|
"name": "severitylabel",
|
|
"type": "string",
|
|
"value": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "6a6644ec-0391-40e3-88aa-0d2c4c9a4a41",
|
|
"name": "Prep Fields For Slack - Assign",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
1460,
|
|
680
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "0001aed3-a3fb-4229-8fa1-1941f0ee8a12",
|
|
"name": "title",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[0].text }}"
|
|
},
|
|
{
|
|
"id": "6f40871c-ea6f-4c61-9272-9342c99637e8",
|
|
"name": "datecreated",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[1].text }}"
|
|
},
|
|
{
|
|
"id": "2ea20d66-380f-4a0f-a1ea-c4740293f48b",
|
|
"name": "number",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[1].text.text }}"
|
|
},
|
|
{
|
|
"id": "a22dd686-ac38-4e73-a0ec-051dce57f9fa",
|
|
"name": "severity",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[8].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "1c210cfb-2a03-4e81-a8c5-2db739d98226",
|
|
"name": "tlp",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[9].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "53e1d1a9-055a-48c2-80de-b694871c6620",
|
|
"name": "pap",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[10].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "ee630583-a6ad-4bab-ad78-7846df3ac093",
|
|
"name": "description",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[3].text }}"
|
|
},
|
|
{
|
|
"id": "48ac7d92-5177-46be-b01e-83493f18ee09",
|
|
"name": "assignee",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[1].text }}"
|
|
},
|
|
{
|
|
"id": "f9c06ecf-d3d5-490c-a848-02c88fbd3ab4",
|
|
"name": "profilepic",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[0].image_url }}"
|
|
},
|
|
{
|
|
"id": "bb4ec29d-fac2-4eb9-a177-fca9d2798514",
|
|
"name": "caseid",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[0].alt_text }}"
|
|
},
|
|
{
|
|
"id": "7a485f44-b855-4633-ba51-82e7490d7166",
|
|
"name": "tags",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[2].text }}"
|
|
},
|
|
{
|
|
"id": "a4884fc5-2d92-4c34-af9c-61240bc564d5",
|
|
"name": "status",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[7].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "449c052a-05b4-4c03-99a4-b5fe7ec0e102",
|
|
"name": "newassignee",
|
|
"type": "string",
|
|
"value": "={{ $json.response.state.values.actions_assignment_options['change-assignee'].selected_user }}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "f3d194d1-9548-43ce-a7b6-a1d6b4c1c5cd",
|
|
"name": "Prep Fields For Slack - Severity",
|
|
"type": "n8n-nodes-base.set",
|
|
"position": [
|
|
1600,
|
|
1880
|
|
],
|
|
"parameters": {
|
|
"options": {},
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "0001aed3-a3fb-4229-8fa1-1941f0ee8a12",
|
|
"name": "title",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[0].text }}"
|
|
},
|
|
{
|
|
"id": "6f40871c-ea6f-4c61-9272-9342c99637e8",
|
|
"name": "datecreated",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[1].text }}"
|
|
},
|
|
{
|
|
"id": "2ea20d66-380f-4a0f-a1ea-c4740293f48b",
|
|
"name": "number",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[1].text.text }}"
|
|
},
|
|
{
|
|
"id": "a22dd686-ac38-4e73-a0ec-051dce57f9fa",
|
|
"name": "severity",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json[\"dictionary\"][\"Severity\"][$('Edit Fields').item.json.response.state.values.actions_assignment_options.update_severity.selected_option.text.text.toUpperCase()] }} *Severity:* {{ $('Edit Fields').item.json.response.state.values.actions_assignment_options.update_severity.selected_option.text.text.toUpperCase() }}"
|
|
},
|
|
{
|
|
"id": "1c210cfb-2a03-4e81-a8c5-2db739d98226",
|
|
"name": "tlp",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[9].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "53e1d1a9-055a-48c2-80de-b694871c6620",
|
|
"name": "pap",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[10].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "ee630583-a6ad-4bab-ad78-7846df3ac093",
|
|
"name": "description",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[3].text }}"
|
|
},
|
|
{
|
|
"id": "48ac7d92-5177-46be-b01e-83493f18ee09",
|
|
"name": "assignee",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[1].text }}"
|
|
},
|
|
{
|
|
"id": "f9c06ecf-d3d5-490c-a848-02c88fbd3ab4",
|
|
"name": "profilepic",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[11].elements[0].image_url }}"
|
|
},
|
|
{
|
|
"id": "bb4ec29d-fac2-4eb9-a177-fca9d2798514",
|
|
"name": "caseid",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[0].alt_text }}"
|
|
},
|
|
{
|
|
"id": "7a485f44-b855-4633-ba51-82e7490d7166",
|
|
"name": "tags",
|
|
"type": "string",
|
|
"value": "={{ $('Edit Fields').item.json.response.message.blocks[3].fields[2].text.replaceAll(\"\\n\",\"\\\\n\").replaceAll(\"**\",\"*\") }}"
|
|
},
|
|
{
|
|
"id": "a4884fc5-2d92-4c34-af9c-61240bc564d5",
|
|
"name": "status",
|
|
"type": "string",
|
|
"value": "={{ $json.response.message.blocks[7].elements[0].text }}"
|
|
},
|
|
{
|
|
"id": "449c052a-05b4-4c03-99a4-b5fe7ec0e102",
|
|
"name": "newassignee",
|
|
"type": "string",
|
|
"value": "={{ $json.response.state.values.actions_assignment_options['change-assignee'].selected_user }}"
|
|
},
|
|
{
|
|
"id": "8278ead1-85c0-4921-ac36-9abfd44f99c8",
|
|
"name": "severityId",
|
|
"type": "number",
|
|
"value": "={{ $('Edit Fields').item.json.response.state.values.actions_assignment_options.update_severity.selected_option.value }}"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 3.3,
|
|
"notes": "This set node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "bc66064d-dc16-485a-8e95-19bead7e5ec7",
|
|
"name": "Update Case Severity",
|
|
"type": "n8n-nodes-base.theHiveProject",
|
|
"position": [
|
|
2060,
|
|
1880
|
|
],
|
|
"parameters": {
|
|
"resource": "case",
|
|
"operation": "update",
|
|
"caseUpdateFields": {
|
|
"value": {
|
|
"id": "={{ $json.caseid }}",
|
|
"flag": false,
|
|
"severity": "={{ $json.severityId }}"
|
|
},
|
|
"schema": [
|
|
{
|
|
"id": "id",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "ID",
|
|
"defaultMatch": true,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "title",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Title",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "description",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Description",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "severity",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Low",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Medium",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "High",
|
|
"value": 3
|
|
},
|
|
{
|
|
"name": "Critical",
|
|
"value": 4
|
|
}
|
|
],
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Severity (Severity of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "startDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Start Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "endDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "End Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "flag",
|
|
"type": "boolean",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Flag",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tlp",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "TLP (Confidentiality of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "pap",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "PAP (Level of exposure of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "summary",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Summary",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "status",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Duplicated",
|
|
"value": "Duplicated",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "FalsePositive",
|
|
"value": "FalsePositive",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "Indeterminate",
|
|
"value": "Indeterminate",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "InProgress",
|
|
"value": "InProgress",
|
|
"description": "Stage: InProgress"
|
|
},
|
|
{
|
|
"name": "New",
|
|
"value": "New",
|
|
"description": "Stage: New"
|
|
},
|
|
{
|
|
"name": "Other",
|
|
"value": "Other",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "TruePositive",
|
|
"value": "TruePositive",
|
|
"description": "Stage: Closed"
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "assignee",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Angel",
|
|
"value": "angel@n8n.io"
|
|
},
|
|
{
|
|
"name": "John Smith",
|
|
"value": "john@n8n.io"
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Assignee",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "impactStatus",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Impact Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "taskRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Task Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "observableRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Observable Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "addTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Add Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "removeTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Remove Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
}
|
|
],
|
|
"mappingMode": "defineBelow",
|
|
"matchingColumns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"credentials": {
|
|
"theHiveProjectApi": {
|
|
"id": "6O5aPdkMaQmc8I9B",
|
|
"name": "The Hive 5 account"
|
|
}
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This theHiveProject node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "5f4eae8d-16e2-4a3a-b8dd-7af9f7f0bb4b",
|
|
"name": "Update Case PAP",
|
|
"type": "n8n-nodes-base.theHiveProject",
|
|
"position": [
|
|
2060,
|
|
2060
|
|
],
|
|
"parameters": {
|
|
"resource": "case",
|
|
"operation": "update",
|
|
"caseUpdateFields": {
|
|
"value": {
|
|
"id": "={{ $json.caseid }}",
|
|
"pap": "={{ $json.papId }}",
|
|
"flag": false
|
|
},
|
|
"schema": [
|
|
{
|
|
"id": "id",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "ID",
|
|
"defaultMatch": true,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "title",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Title",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "description",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Description",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "severity",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Low",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Medium",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "High",
|
|
"value": 3
|
|
},
|
|
{
|
|
"name": "Critical",
|
|
"value": 4
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Severity (Severity of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "startDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Start Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "endDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "End Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "flag",
|
|
"type": "boolean",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Flag",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tlp",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "TLP (Confidentiality of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "pap",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "PAP (Level of exposure of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "summary",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Summary",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "status",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Duplicated",
|
|
"value": "Duplicated",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "FalsePositive",
|
|
"value": "FalsePositive",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "Indeterminate",
|
|
"value": "Indeterminate",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "InProgress",
|
|
"value": "InProgress",
|
|
"description": "Stage: InProgress"
|
|
},
|
|
{
|
|
"name": "New",
|
|
"value": "New",
|
|
"description": "Stage: New"
|
|
},
|
|
{
|
|
"name": "Other",
|
|
"value": "Other",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "TruePositive",
|
|
"value": "TruePositive",
|
|
"description": "Stage: Closed"
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "assignee",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Angel",
|
|
"value": "angel@n8n.io"
|
|
},
|
|
{
|
|
"name": "John Smith",
|
|
"value": "john@n8n.io"
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Assignee",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "impactStatus",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Impact Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "taskRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Task Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "observableRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Observable Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "addTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Add Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "removeTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Remove Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
}
|
|
],
|
|
"mappingMode": "defineBelow",
|
|
"matchingColumns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"credentials": {
|
|
"theHiveProjectApi": {
|
|
"id": "6O5aPdkMaQmc8I9B",
|
|
"name": "The Hive 5 account"
|
|
}
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This theHiveProject node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "c95539f5-e365-4404-897b-65af116c89cb",
|
|
"name": "Update Case TLP",
|
|
"type": "n8n-nodes-base.theHiveProject",
|
|
"position": [
|
|
2060,
|
|
2240
|
|
],
|
|
"parameters": {
|
|
"resource": "case",
|
|
"operation": "update",
|
|
"caseUpdateFields": {
|
|
"value": {
|
|
"id": "={{ $json.caseid }}",
|
|
"tlp": "={{ $json.tlpId }}",
|
|
"flag": false
|
|
},
|
|
"schema": [
|
|
{
|
|
"id": "id",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "ID",
|
|
"defaultMatch": true,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "title",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Title",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "description",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Description",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "severity",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Low",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Medium",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "High",
|
|
"value": 3
|
|
},
|
|
{
|
|
"name": "Critical",
|
|
"value": 4
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Severity (Severity of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "startDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Start Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "endDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "End Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "flag",
|
|
"type": "boolean",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Flag",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tlp",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "TLP (Confidentiality of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "pap",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "PAP (Level of exposure of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "summary",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Summary",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "status",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Duplicated",
|
|
"value": "Duplicated",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "FalsePositive",
|
|
"value": "FalsePositive",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "Indeterminate",
|
|
"value": "Indeterminate",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "InProgress",
|
|
"value": "InProgress",
|
|
"description": "Stage: InProgress"
|
|
},
|
|
{
|
|
"name": "New",
|
|
"value": "New",
|
|
"description": "Stage: New"
|
|
},
|
|
{
|
|
"name": "Other",
|
|
"value": "Other",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "TruePositive",
|
|
"value": "TruePositive",
|
|
"description": "Stage: Closed"
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "assignee",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Angel",
|
|
"value": "angel@n8n.io"
|
|
},
|
|
{
|
|
"name": "John Smith",
|
|
"value": "john@n8n.io"
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Assignee",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "impactStatus",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Impact Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "taskRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Task Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "observableRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Observable Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "addTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Add Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "removeTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Remove Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
}
|
|
],
|
|
"mappingMode": "defineBelow",
|
|
"matchingColumns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"credentials": {
|
|
"theHiveProjectApi": {
|
|
"id": "6O5aPdkMaQmc8I9B",
|
|
"name": "The Hive 5 account"
|
|
}
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This theHiveProject node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "edfedf66-df2a-421e-a53d-11ee32623be0",
|
|
"name": "Acknowledge Close Case to Slack",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"position": [
|
|
1180,
|
|
1700
|
|
],
|
|
"parameters": {
|
|
"options": {
|
|
"responseCode": 200
|
|
},
|
|
"respondWith": "noData"
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This respondToWebhook node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "791fea8b-67b3-4dd8-943f-29f750485a10",
|
|
"name": "Acknowledge Severity Update to Slack",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"position": [
|
|
1180,
|
|
1880
|
|
],
|
|
"parameters": {
|
|
"options": {
|
|
"responseCode": 200
|
|
},
|
|
"respondWith": "noData"
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This respondToWebhook node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "14f59582-7a18-44ab-bb1e-19d5141dace5",
|
|
"name": "Acknowledge PAP Update to Slack",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"position": [
|
|
1180,
|
|
2060
|
|
],
|
|
"parameters": {
|
|
"options": {
|
|
"responseCode": 200
|
|
},
|
|
"respondWith": "noData"
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This respondToWebhook node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "55b3ecfa-2be6-41f5-818c-5980f896832f",
|
|
"name": "Acknowledge TLP Update to Slack",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"position": [
|
|
1180,
|
|
2240
|
|
],
|
|
"parameters": {
|
|
"options": {
|
|
"responseCode": 200
|
|
},
|
|
"respondWith": "noData"
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This respondToWebhook node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "4a4ef31e-de26-4e4e-b0f5-bef77c8c2801",
|
|
"name": "Acknowledge Status Update to Slack",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"position": [
|
|
1180,
|
|
2420
|
|
],
|
|
"parameters": {
|
|
"options": {
|
|
"responseCode": 200
|
|
},
|
|
"respondWith": "noData"
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This respondToWebhook node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "cb7647b0-199c-4aa8-84d3-748bb52f1e7e",
|
|
"name": "Acknowledge Modal Request to Slack",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"position": [
|
|
1180,
|
|
3040
|
|
],
|
|
"parameters": {
|
|
"options": {
|
|
"responseCode": 200
|
|
},
|
|
"respondWith": "noData"
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This respondToWebhook node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "20f028c6-1e15-4d3c-a4ad-5ae716fdc1db",
|
|
"name": "Sticky Note16",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"position": [
|
|
1940,
|
|
2680
|
|
],
|
|
"parameters": {
|
|
"color": 5,
|
|
"width": 431.4429614751546,
|
|
"height": 532.2137131625435,
|
|
"content": ".item.json.caseid }}",
|
|
"flag": false,
|
|
"assignee": "={{ $json.profile.email }}"
|
|
},
|
|
"schema": [
|
|
{
|
|
"id": "id",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "ID",
|
|
"defaultMatch": true,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "title",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Title",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "description",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Description",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "severity",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Low",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Medium",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "High",
|
|
"value": 3
|
|
},
|
|
{
|
|
"name": "Critical",
|
|
"value": 4
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Severity (Severity of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "startDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Start Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "endDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "End Date",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "flag",
|
|
"type": "boolean",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Flag",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "tlp",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "TLP (Confidentiality of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "pap",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "White",
|
|
"value": 0
|
|
},
|
|
{
|
|
"name": "Green",
|
|
"value": 1
|
|
},
|
|
{
|
|
"name": "Amber",
|
|
"value": 2
|
|
},
|
|
{
|
|
"name": "Red",
|
|
"value": 3
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "PAP (Level of exposure of information)",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "summary",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Summary",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "status",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Duplicated",
|
|
"value": "Duplicated",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "FalsePositive",
|
|
"value": "FalsePositive",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "Indeterminate",
|
|
"value": "Indeterminate",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "InProgress",
|
|
"value": "InProgress",
|
|
"description": "Stage: InProgress"
|
|
},
|
|
{
|
|
"name": "New",
|
|
"value": "New",
|
|
"description": "Stage: New"
|
|
},
|
|
{
|
|
"name": "Other",
|
|
"value": "Other",
|
|
"description": "Stage: Closed"
|
|
},
|
|
{
|
|
"name": "TruePositive",
|
|
"value": "TruePositive",
|
|
"description": "Stage: Closed"
|
|
}
|
|
],
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "assignee",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Angel",
|
|
"value": "angel@n8n.io"
|
|
},
|
|
{
|
|
"name": "John Smith",
|
|
"value": "john@n8n.io"
|
|
}
|
|
],
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Assignee",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "impactStatus",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Impact Status",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": true
|
|
},
|
|
{
|
|
"id": "taskRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Task Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "observableRule",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Observable Rule",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "addTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Add Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
},
|
|
{
|
|
"id": "removeTags",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Remove Tags",
|
|
"defaultMatch": false,
|
|
"canBeUsedToMatch": false
|
|
}
|
|
],
|
|
"mappingMode": "defineBelow",
|
|
"matchingColumns": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"credentials": {
|
|
"theHiveProjectApi": {
|
|
"id": "6O5aPdkMaQmc8I9B",
|
|
"name": "The Hive 5 account"
|
|
}
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This theHiveProject node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "1915c609-edf2-4bfe-95db-88ab31ae4fa6",
|
|
"name": "Respond to Slack with 200 response",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"position": [
|
|
1220,
|
|
680
|
|
],
|
|
"parameters": {
|
|
"options": {
|
|
"responseCode": 200
|
|
},
|
|
"respondWith": "noData"
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This respondToWebhook node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "2b9b03cd-2f70-429a-b27f-9eb26663101a",
|
|
"name": "Sticky Note6",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"position": [
|
|
1660,
|
|
460
|
|
],
|
|
"parameters": {
|
|
"color": 5,
|
|
"width": 171.29382736351008,
|
|
"height": 165.28509020280688,
|
|
"content": "### 📧 GDPR Warning\nThis workflow requires additional permissions from your Slack app that may not be available in your region."
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This stickyNote node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "eb76195a-42ef-4716-9b94-ba52f3746e3c",
|
|
"name": "Sticky Note8",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"position": [
|
|
2220,
|
|
420
|
|
],
|
|
"parameters": {
|
|
"color": 5,
|
|
"width": 306.95426010827737,
|
|
"height": 207.67897543554668,
|
|
"content": "### 📧 Ensure the Slack users emails match those in TheHive\nThis assumes that your TheHive user's emails are the same as the same user's email in Slack. Please note that there is no error handling for case's assigned user, so if you assign someone that has an email in Slack that does not match the user in TheHive, it will fail. "
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This stickyNote node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "1da14415-e66a-41bc-8f6e-f57c1180924c",
|
|
"name": "Sticky Note9",
|
|
"type": "n8n-nodes-base.stickyNote",
|
|
"position": [
|
|
-420,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"width": 670.2591130283372,
|
|
"height": 1196.0687210874733,
|
|
"content": ".item.json.response.view.blocks[0].elements[1].text }}"
|
|
},
|
|
"resource": "task",
|
|
"taskFields": {
|
|
"value": {
|
|
"flag": "={{ $('Edit Fields').item.json[\"response\"][\"view\"][\"state\"][\"values\"][\"case-options\"][\"submit-task-option\"]['selected_options'].some(option => option.value === 'flagged') }}",
|
|
"group": "={{ $('Edit Fields').item.json.response.view.state.values.group_block.group_input.value }}",
|
|
"title": "={{ $('Edit Fields').item.json.response.view.state.values.title_block.title_input.value }}",
|
|
"dueDate": "={{ $('Edit Fields').item.json.response.view.state.values.due_date_block.due_date_input.selected_date }}",
|
|
"assignee": "={{ $json.profile.email }}",
|
|
"mandatory": "={{ $('Edit Fields').item.json[\"response\"][\"view\"][\"state\"][\"values\"][\"case-options\"][\"submit-task-option\"]['selected_options'].some(option => option.value === 'mandatory') }}",
|
|
"description": "={{ $('Edit Fields').item.json.response.view.state.values.description_block.description_input.value }}"
|
|
},
|
|
"schema": [
|
|
{
|
|
"id": "title",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": true,
|
|
"displayName": "Title",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "description",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Description",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "group",
|
|
"type": "string",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Group",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "status",
|
|
"type": "stirng",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Status",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "flag",
|
|
"type": "boolean",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Flag",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "startDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Start Date",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "dueDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Due Date",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "endDate",
|
|
"type": "dateTime",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "End Date",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "assignee",
|
|
"type": "options",
|
|
"display": true,
|
|
"options": [
|
|
{
|
|
"name": "Angel",
|
|
"value": "angel@n8n.io"
|
|
},
|
|
{
|
|
"name": "John Smith",
|
|
"value": "john@n8n.io"
|
|
}
|
|
],
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Assignee",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "mandatory",
|
|
"type": "boolean",
|
|
"display": true,
|
|
"removed": false,
|
|
"required": false,
|
|
"displayName": "Mandatory",
|
|
"defaultMatch": false
|
|
},
|
|
{
|
|
"id": "order",
|
|
"type": "number",
|
|
"display": true,
|
|
"removed": true,
|
|
"required": false,
|
|
"displayName": "Order",
|
|
"defaultMatch": false
|
|
}
|
|
],
|
|
"mappingMode": "defineBelow",
|
|
"matchingColumns": []
|
|
}
|
|
},
|
|
"credentials": {
|
|
"theHiveProjectApi": {
|
|
"id": "6O5aPdkMaQmc8I9B",
|
|
"name": "The Hive 5 account"
|
|
}
|
|
},
|
|
"typeVersion": 1,
|
|
"notes": "This theHiveProject node performs automated tasks as part of the workflow."
|
|
},
|
|
{
|
|
"id": "ebcd8020-b157-4c0f-a726-80dd4864cbcf",
|
|
"name": "Receive Button Press",
|
|
"type": "n8n-nodes-base.webhook",
|
|
"position": [
|
|
360,
|
|
880
|
|
],
|
|
"webhookId": "99db3e73-57d8-4107-ab02-5b7e713894ad",
|
|
"parameters": {
|
|
"path": "slackthehivewebhook",
|
|
"options": {},
|
|
"httpMethod": "POST",
|
|
"responseMode": "responseNode"
|
|
},
|
|
"typeVersion": 2,
|
|
"notes": "This webhook node performs automated tasks as part of the workflow."
|
|
}
|
|
],
|
|
"pinData": {},
|
|
"connections": {
|
|
"86f90f83-c115-4561-8c0f-432c2ebb18b5": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-86f90f83-c115-4561-8c0f-432c2ebb18b5",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-86f90f83-c115-4561-8c0f-432c2ebb18b5-50e77e7f",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-86f90f83-c115-4561-8c0f-432c2ebb18b5-7c4fac37",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-86f90f83-c115-4561-8c0f-432c2ebb18b5-beaf7b7f",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-86f90f83-c115-4561-8c0f-432c2ebb18b5-241303d2",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-86f90f83-c115-4561-8c0f-432c2ebb18b5-0a453f5c",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-86f90f83-c115-4561-8c0f-432c2ebb18b5-72782ac8",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-86f90f83-c115-4561-8c0f-432c2ebb18b5-1518e47e",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-86f90f83-c115-4561-8c0f-432c2ebb18b5-bb787b45",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"e2874195-4b4e-4288-937f-201e4a361438": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-e2874195-4b4e-4288-937f-201e4a361438",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-e2874195-4b4e-4288-937f-201e4a361438-8c8a1a3f",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-e2874195-4b4e-4288-937f-201e4a361438-768e98e9",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-e2874195-4b4e-4288-937f-201e4a361438-6ba8d629",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-e2874195-4b4e-4288-937f-201e4a361438-3fe2cd84",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-e2874195-4b4e-4288-937f-201e4a361438-07a1beab",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-e2874195-4b4e-4288-937f-201e4a361438-794ddb18",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-e2874195-4b4e-4288-937f-201e4a361438-c831a4aa",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-e2874195-4b4e-4288-937f-201e4a361438-511fcc4c",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"b7747c0c-52ec-415b-aa55-ce399b53054b": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-b7747c0c-52ec-415b-aa55-ce399b53054b",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-b7747c0c-52ec-415b-aa55-ce399b53054b-5e526ec6",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-b7747c0c-52ec-415b-aa55-ce399b53054b-3523aedc",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-b7747c0c-52ec-415b-aa55-ce399b53054b-479d5d48",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-b7747c0c-52ec-415b-aa55-ce399b53054b-7d938a67",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-b7747c0c-52ec-415b-aa55-ce399b53054b-1a08b246",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-b7747c0c-52ec-415b-aa55-ce399b53054b-b3f8c7d2",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-b7747c0c-52ec-415b-aa55-ce399b53054b-95fbf6d4",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-b7747c0c-52ec-415b-aa55-ce399b53054b-6379aba0",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"edfedf66-df2a-421e-a53d-11ee32623be0": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-edfedf66-df2a-421e-a53d-11ee32623be0",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-edfedf66-df2a-421e-a53d-11ee32623be0-94fd9c95",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-edfedf66-df2a-421e-a53d-11ee32623be0-17d07a58",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-edfedf66-df2a-421e-a53d-11ee32623be0-9fd22c71",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-edfedf66-df2a-421e-a53d-11ee32623be0-14fe9c43",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-edfedf66-df2a-421e-a53d-11ee32623be0-5dd22338",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-edfedf66-df2a-421e-a53d-11ee32623be0-71d39345",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-edfedf66-df2a-421e-a53d-11ee32623be0-0c13081f",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-edfedf66-df2a-421e-a53d-11ee32623be0-acbf46cf",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"791fea8b-67b3-4dd8-943f-29f750485a10": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-791fea8b-67b3-4dd8-943f-29f750485a10",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-791fea8b-67b3-4dd8-943f-29f750485a10-c6954819",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-791fea8b-67b3-4dd8-943f-29f750485a10-f4a4db2c",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-791fea8b-67b3-4dd8-943f-29f750485a10-319f229e",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-791fea8b-67b3-4dd8-943f-29f750485a10-71c32ca6",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-791fea8b-67b3-4dd8-943f-29f750485a10-51699091",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-791fea8b-67b3-4dd8-943f-29f750485a10-f84b3183",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-791fea8b-67b3-4dd8-943f-29f750485a10-8044cd47",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-791fea8b-67b3-4dd8-943f-29f750485a10-adf163d3",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"14f59582-7a18-44ab-bb1e-19d5141dace5": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-14f59582-7a18-44ab-bb1e-19d5141dace5",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-14f59582-7a18-44ab-bb1e-19d5141dace5-6693576f",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-14f59582-7a18-44ab-bb1e-19d5141dace5-d7670130",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-14f59582-7a18-44ab-bb1e-19d5141dace5-c6649abb",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-14f59582-7a18-44ab-bb1e-19d5141dace5-eb711eae",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-14f59582-7a18-44ab-bb1e-19d5141dace5-9bd76c08",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-14f59582-7a18-44ab-bb1e-19d5141dace5-218f0524",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-14f59582-7a18-44ab-bb1e-19d5141dace5-51b1917e",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-14f59582-7a18-44ab-bb1e-19d5141dace5-c4c97951",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"55b3ecfa-2be6-41f5-818c-5980f896832f": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-55b3ecfa-2be6-41f5-818c-5980f896832f",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-55b3ecfa-2be6-41f5-818c-5980f896832f-00267f63",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-55b3ecfa-2be6-41f5-818c-5980f896832f-8703d1ff",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-55b3ecfa-2be6-41f5-818c-5980f896832f-19e7e36e",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-55b3ecfa-2be6-41f5-818c-5980f896832f-3281a090",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-55b3ecfa-2be6-41f5-818c-5980f896832f-03120740",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-55b3ecfa-2be6-41f5-818c-5980f896832f-c30a1585",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-55b3ecfa-2be6-41f5-818c-5980f896832f-13a779f6",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-55b3ecfa-2be6-41f5-818c-5980f896832f-bf2af538",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"4a4ef31e-de26-4e4e-b0f5-bef77c8c2801": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-4a4ef31e-de26-4e4e-b0f5-bef77c8c2801",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-4a4ef31e-de26-4e4e-b0f5-bef77c8c2801-4967ac1f",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-4a4ef31e-de26-4e4e-b0f5-bef77c8c2801-2b19b892",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-4a4ef31e-de26-4e4e-b0f5-bef77c8c2801-9956a13c",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-4a4ef31e-de26-4e4e-b0f5-bef77c8c2801-599a64d7",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-4a4ef31e-de26-4e4e-b0f5-bef77c8c2801-0a0a7959",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-4a4ef31e-de26-4e4e-b0f5-bef77c8c2801-b74b6845",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-4a4ef31e-de26-4e4e-b0f5-bef77c8c2801-cbc7d9ca",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-4a4ef31e-de26-4e4e-b0f5-bef77c8c2801-a41df47c",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"cb7647b0-199c-4aa8-84d3-748bb52f1e7e": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-cb7647b0-199c-4aa8-84d3-748bb52f1e7e",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-cb7647b0-199c-4aa8-84d3-748bb52f1e7e-9084ab29",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-cb7647b0-199c-4aa8-84d3-748bb52f1e7e-4305e411",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-cb7647b0-199c-4aa8-84d3-748bb52f1e7e-7f6374aa",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-cb7647b0-199c-4aa8-84d3-748bb52f1e7e-c8141e25",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-cb7647b0-199c-4aa8-84d3-748bb52f1e7e-979637cb",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-cb7647b0-199c-4aa8-84d3-748bb52f1e7e-8dfaeea8",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-cb7647b0-199c-4aa8-84d3-748bb52f1e7e-d60c0b04",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-cb7647b0-199c-4aa8-84d3-748bb52f1e7e-86872c40",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"ad83c6b0-cde4-48b6-b505-8f9e1ded2066": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-ad83c6b0-cde4-48b6-b505-8f9e1ded2066",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ad83c6b0-cde4-48b6-b505-8f9e1ded2066-528daae1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ad83c6b0-cde4-48b6-b505-8f9e1ded2066-81b37605",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ad83c6b0-cde4-48b6-b505-8f9e1ded2066-573a2649",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ad83c6b0-cde4-48b6-b505-8f9e1ded2066-f04679f6",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ad83c6b0-cde4-48b6-b505-8f9e1ded2066-01bc2756",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ad83c6b0-cde4-48b6-b505-8f9e1ded2066-b321aef9",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ad83c6b0-cde4-48b6-b505-8f9e1ded2066-fdd7b702",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ad83c6b0-cde4-48b6-b505-8f9e1ded2066-a77e2dd3",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"f2668b62-cd3c-41d6-ada3-37e6ba331b90": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-f2668b62-cd3c-41d6-ada3-37e6ba331b90",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-f2668b62-cd3c-41d6-ada3-37e6ba331b90-a4815c94",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-f2668b62-cd3c-41d6-ada3-37e6ba331b90-d6ea8af1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-f2668b62-cd3c-41d6-ada3-37e6ba331b90-a4585c4e",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-f2668b62-cd3c-41d6-ada3-37e6ba331b90-8b7cfdaf",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-f2668b62-cd3c-41d6-ada3-37e6ba331b90-156e35da",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-f2668b62-cd3c-41d6-ada3-37e6ba331b90-03cc376e",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-f2668b62-cd3c-41d6-ada3-37e6ba331b90-11291f7c",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-f2668b62-cd3c-41d6-ada3-37e6ba331b90-14882742",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"a46648ce-f125-4de6-95cf-9c61c466e43c": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-a46648ce-f125-4de6-95cf-9c61c466e43c",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-a46648ce-f125-4de6-95cf-9c61c466e43c-bea66ab6",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-a46648ce-f125-4de6-95cf-9c61c466e43c-d4fe9e2c",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-a46648ce-f125-4de6-95cf-9c61c466e43c-1a5d80a1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-a46648ce-f125-4de6-95cf-9c61c466e43c-5652001e",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-a46648ce-f125-4de6-95cf-9c61c466e43c-ad583b82",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-a46648ce-f125-4de6-95cf-9c61c466e43c-babb0724",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-a46648ce-f125-4de6-95cf-9c61c466e43c-0b8c2d32",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-a46648ce-f125-4de6-95cf-9c61c466e43c-2f2c6eba",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"1915c609-edf2-4bfe-95db-88ab31ae4fa6": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-1915c609-edf2-4bfe-95db-88ab31ae4fa6",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-1915c609-edf2-4bfe-95db-88ab31ae4fa6-72e22a62",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-1915c609-edf2-4bfe-95db-88ab31ae4fa6-dee741e4",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-1915c609-edf2-4bfe-95db-88ab31ae4fa6-8b847a0a",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-1915c609-edf2-4bfe-95db-88ab31ae4fa6-184aa2af",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-1915c609-edf2-4bfe-95db-88ab31ae4fa6-c08d83e5",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-1915c609-edf2-4bfe-95db-88ab31ae4fa6-6ddf6a6c",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-1915c609-edf2-4bfe-95db-88ab31ae4fa6-f9efc5fc",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-1915c609-edf2-4bfe-95db-88ab31ae4fa6-c62c1945",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"ebcd8020-b157-4c0f-a726-80dd4864cbcf": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-ebcd8020-b157-4c0f-a726-80dd4864cbcf",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ebcd8020-b157-4c0f-a726-80dd4864cbcf-daf43d94",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ebcd8020-b157-4c0f-a726-80dd4864cbcf-3dbd4e03",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ebcd8020-b157-4c0f-a726-80dd4864cbcf-c7569fff",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ebcd8020-b157-4c0f-a726-80dd4864cbcf-d59fb87a",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ebcd8020-b157-4c0f-a726-80dd4864cbcf-aa52f234",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ebcd8020-b157-4c0f-a726-80dd4864cbcf-f3755542",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ebcd8020-b157-4c0f-a726-80dd4864cbcf-d4a41eb3",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "error-handler-ebcd8020-b157-4c0f-a726-80dd4864cbcf-e1998b59",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"4fd498e7-31cf-4d9f-b888-ede79e42e79f": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-4fd498e7-31cf-4d9f-b888-ede79e42e79f-327787e8",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"aa35e086-ace4-413a-9cd8-bed51dad94e7": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-aa35e086-ace4-413a-9cd8-bed51dad94e7-12f50879",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"c87cdbc8-9f86-46a1-9789-7ad992b6f01d": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "error-handler-c87cdbc8-9f86-46a1-9789-7ad992b6f01d-4b4b54cc",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"name": "Thehiveprojecttrigger Workflow",
|
|
"settings": {
|
|
"executionOrder": "v1",
|
|
"saveManualExecutions": true,
|
|
"callerPolicy": "workflowsFromSameOwner",
|
|
"errorWorkflow": null,
|
|
"timezone": "UTC",
|
|
"executionTimeout": 3600,
|
|
"maxExecutions": 1000,
|
|
"retryOnFail": true,
|
|
"retryCount": 3,
|
|
"retryDelay": 1000
|
|
},
|
|
"description": "Automated workflow: Thehiveprojecttrigger Workflow. This workflow integrates 12 different services: webhook, stickyNote, httpRequest, theHiveProjectTrigger, theHiveProject. It contains 94 nodes and follows best practices for error handling and security.",
|
|
"tags": [
|
|
"automation",
|
|
"n8n",
|
|
"production-ready",
|
|
"excellent",
|
|
"optimized"
|
|
],
|
|
"notes": "Excellent quality workflow: Thehiveprojecttrigger Workflow. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."
|
|
} |