Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / Monitoring, Ops & Incidents

Monitoring, Ops & Incidents

Monitor Entra ID high-risk users with Microsoft Graph, TheHive and Slack

On a schedule, it monitors systems using Slack, TheHive.

What it does

# Monitor Entra ID High-Risk Users with TheHive + Slack Automatically monitors Microsoft Entra ID Protection for high-risk identity detections, groups detections per user, enriches each user with identity and recent sign-in context, correlates deterministic risk signals, prevents duplicate TheHive alerts, and notifies the SOC in Slack. ### How it works 1. Runs every 30 minutes and checks Microsoft Graph for high-risk detections from the recent lookback window. 2. Groups multiple detections for the same user into one investigation item. 3. Enriches the user with risky-user details, roles, and recent sign-in/device context. 4. Applies deterministic correlation rules to classify the event as HIGH or CRITICAL. 5. Checks TheHive for an existing active alert using a stable per-user source reference. 6. Creates or updates the TheHive alert and sends a Slack notification only for a new or materially changed alert. ### Setup 1. Connect a Microsoft Entra OAuth2 credential with access to: - IdentityRiskEvent.Read.All - IdentityRiskyUser.Read.All - AuditLog.Read.All 2. Connect a TheHive 5 credential with permission to query, create, and update alerts. 3. Connect Slack and select the SOC/security channel. 4. Review the lookback window, severity rules, and TheHive URL placeholder before activation. 5. Test with controlled Entra risk events before enabling in production. ### Security design Detection, enrichment, correlation, alerting, and notification only. No destructive remediation is performed automatically. ### Customization Adjust the polling interval, detection lookback, correlation rules, severity thresholds, TheHive alert fields, observable handling, and Slack message format to match your environment.

The steps

  1. Query Risk Detections
  2. Group & Aggregate Per User
  3. Enrich Risky User
  4. Enrich Recent Sign-Ins
  5. Assess, Correlate & Build Incident
  6. Query Open TheHive Alerts
  7. Deduplication Decision
  8. Alert Already Open?
  9. Update TheHive Alert
  10. Merge Alert Paths
  11. Create TheHive Alert
  12. Build Slack Notification
  13. Post to Security Channel
  14. Every 30 Minutes

Similar automations