Security & FinOps · Detection
Watching the Watchers: Identity-Tampering Detection with ChatOps Triage
About 30 scheduled detection rules for identity abuse plus a chat triage loop with signed, confirmable buttons.
// Overview
Rules cover credential, owner, permission, redirect-URI and federated-credential changes, dangerous grants, privileged role assignment, device-code and password-grant flows and cross-tenant abuse. A dedicated set watches the automation identity itself. Incidents flow through a Logic App to chat; buttons let responders acknowledge or close incidents, each request validated in depth.
// The problem
Identity-management automation is a prime target; changes to app credentials or federation need fast, triaged detection.
// Flow
- Eventdirectory audit and sign-in logs land in a log workspace
- Detectionscheduled KQL rules mapped to ATT&CK techniques
- Incidentthe SIEM creates an incident with severity
- Routea Logic App posts to a critical or low-priority channel by severity
- Triageresponder clicks acknowledge or close (false positive, true positive, benign)
- Verify gatecallback checked: signed token, HMAC, function key, IP restriction, user authorisation, response-URL allow-list
- Confirmclose actions require confirmation
- Updatea Function updates the incident
// Design decisions & guardrails
- 13 layered controls on the callback path, including SSRF-safe response URL handling.
- Shared managed identity; no stored credentials in rules.
- Every failure path notifies chat.
- The non-federated sign-in rule rests on an invariant: the automation identity has no secrets, so any such sign-in is anomalous.
- Test scripts and test queries ship with the stack.
// Outcome
33 rule files: 12 high, 5 medium, 4 low and 1 informational severity in the dedicated set.