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
- Query Risk Detections
- Group & Aggregate Per User
- Enrich Risky User
- Enrich Recent Sign-Ins
- Assess, Correlate & Build Incident
- Query Open TheHive Alerts
- Deduplication Decision
- Alert Already Open?
- Update TheHive Alert
- Merge Alert Paths
- Create TheHive Alert
- Build Slack Notification
- Post to Security Channel
- Every 30 Minutes
Similar automations