Suspicious_login_detection
Triggered by a webhook. Connects Code, Condition, Gmail, HTTP request, Html, PostgreSQL, Slack, Switch. 
- 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).
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
- Httprequest Workflow: Slack, Code and Condition (n8n workflow collection) (Wait)
- Webhook Workflow: ServiceNow, Slack and Respond To Webhook
- Phishing_analysis__URLScan_io_and_Virustotal_
- Gmailtrigger Workflow: Aggregate, Code and Condition
- Noop Workflow: Redis, Code and Condition
- Manualtrigger Workflow: ServiceNow, Slack and Condition
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.