WorkflowSlackOpen

Suspicious_login_detection

Triggered by a webhook. Connects Code, Condition, Gmail, HTTP request, Html, PostgreSQL, Slack, Switch. ![greynoise]({{ $env.WEBHOOKURL }} 🚦 Advanced Threat Prioritization with GreyNoise Data In this section of the workflow, the integration of GreyNoise data, particularly in the GreyNoise node, plays a pivotal role in refining the threat prioritization process. This node's interaction with GreyNoi

Front matter
name: Suspicious_login_detection
description: Triggered by a webhook. Connects Code, Condition, Gmail, HTTP request, Html, PostgreSQL, Slack, Switch. ![greynoise]({{ $env.WEBHOOK_URL }} ## 🚦 Advanced Threat Prioritization with GreyNoise Data In this section of the workflow, the integration of GreyNoise data, particularly in the `GreyNoise` node, plays a pivotal role in refining the threat prioritization process. This node's interaction with GreyNoise ensures that each alert is given an appropriate level of attention, based on the nature of the IP address involved. - **GreyNoise Analysis for Inbound Threats:** When the `GreyNoise` node ide
category: Automation
kind: Workflow
software: Code|Condition|Gmail|HTTP request|Html|PostgreSQL|Slack|Switch|Webhook

Suspicious_login_detection

Triggered by a webhook. Connects Code, Condition, Gmail, HTTP request, Html, PostgreSQL, Slack, Switch. ![greynoise]({{ $env.WEBHOOK_URL }}

🚦 Advanced Threat Prioritization with GreyNoise Data

In this section of the workflow, the integration of GreyNoise data, particularly in the GreyNoise node, plays a pivotal role in refining the threat prioritization process. This node's interaction with GreyNoise ensures that each alert is given an appropriate level of attention, based on the nature of the IP address involved.

  • GreyNoise Analysis for Inbound Threats: When the GreyNoise node ide

Steps

  • Extract relevant data (set)
  • New /login event (webhook)
  • Unknown threat? (if)
  • Get last 10 logins from the same user (postgres)
  • Query IP API1 (httpRequest)
  • New location? (if)
  • Parse User Agent (httpRequest)
  • Merge (merge)
  • New Device/Browser? (if)
  • Complete login info (merge)
  • Query user by ID (postgres)
  • New Location (noOp)
  • New Device/Browser (noOp)
  • User has email? (if)
  • HTML (html)
  • Inform user (gmail)
  • noise? (if)
  • Slack (slack)
  • Check trust level (switch)
  • Check classification (switch)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Sticky Note4 (stickyNote)
  • Sticky Note5 (stickyNote)
  • Sticky Note9 (stickyNote)
  • Sticky Note10 (stickyNote)
  • riot? (if)
  • 🔴 Priority: HIGH (set)
  • 🟡 Priority: MEDIUM (set)
  • 🟢 Priority: LOW (set)
  • GreyNoise (httpRequest)
  • IP API (httpRequest)
  • UserParser (httpRequest)
  • When clicking "Execute Workflow" (manualTrigger)
  • Example event (code)
  • Sticky Note7 (stickyNote)
  • Sticky Note11 (stickyNote)
  • Sticky Note12 (stickyNote)
  • Sticky Note13 (stickyNote)
  • Known, Do Nothing (noOp)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Postgres/2014_Postgres_Webhook_Automation_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.