Monitor Entra ID high-risk users with Microsoft Graph, TheHive and Slack
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs on a schedule (every 30 minutes). Along the way it connects TheHive 5 and Slack. It also calls graph.microsoft.com over HTTP.
How it runs
Trigger: On a schedule (every 30 minutes).
- Query Risk Detections (HTTP Request): calls graph.microsoft.com
- Group & Aggregate Per User (Code): runs custom JavaScript code
- Enrich Risky User (HTTP Request): calls an HTTP API
- Enrich Recent Sign-Ins (HTTP Request): calls graph.microsoft.com
- Assess, Correlate & Build Incident (Code): runs custom JavaScript code
- Query Open TheHive Alerts (TheHive 5): work with query
- Deduplication Decision (Code): runs custom JavaScript code
- Alert Already Open? (If): checks a condition and branches into true / false
- Update TheHive Alert (TheHive 5): update
- Create TheHive Alert (TheHive 5): uses TheHive 5
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: graph.microsoft.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - TheHive 5
n8n-nodes-base.theHiveProject - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - Slack
n8n-nodes-base.slack - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Quick Overview This workflow polls Microsoft Entra ID Protection for new high-risk risk detections, aggregates them per user, enriches them with risky-user and recent sign-in context from Microsoft Graph, then creates or updates matching alerts in TheHive and…