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.

  • Microsoft Sentinel
  • KQL
  • Azure Logic Apps
  • Azure Functions
  • Azure Monitor
  • Slack API
  • Terraform

// 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

Watching the Watchers: Identity-Tampering Detection with ChatOps Triage flow1. Event → 2. Detection → 3. Incident → 4. Route → 5. Triage → 6. Verify → 7. Confirm → 8. Update01Event02Detection03Incident04Route05Triage06 · GATEVerify07Confirm08Update
  1. Eventdirectory audit and sign-in logs land in a log workspace
  2. Detectionscheduled KQL rules mapped to ATT&CK techniques
  3. Incidentthe SIEM creates an incident with severity
  4. Routea Logic App posts to a critical or low-priority channel by severity
  5. Triageresponder clicks acknowledge or close (false positive, true positive, benign)
  6. Verify gatecallback checked: signed token, HMAC, function key, IP restriction, user authorisation, response-URL allow-list
  7. Confirmclose actions require confirmation
  8. 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.

// Related