scope-drift-detection

Detect and quantify scope drift across Entra ID service principals and user accounts.

231|64|Updated Dec 16, 2025
One-click install
npx skills add https://github.com/SCStelz/security-investigator --skill scope-drift-detection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scope-drift-detection
Source: https://github.com/SCStelz/security-investigator/tree/main/.github/skills/scope-drift-detection
Command: npx skills add https://github.com/SCStelz/security-investigator --skill scope-drift-detection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects and quantifies scope drift across Entra ID service principals and user accounts, enabling proactive risk management by identifying gradual access expansion and behavioral changes before incidents occur.

Core Features & Use Cases

  • 90-day behavioral baseline per entity (SPNs and users) with comparative drift scoring
  • Cross-source correlation with AuditLogs, DeviceNetworkEvents, SecurityAlert, and Identity Protection
  • Outputs inline summaries or Markdown reports for investigation handoffs

Quick Start

Ask me to run a scope drift investigation for a service principal or a user account. The skill will automatically detect the entity type, select the appropriate data sources, compute drift scores across defined dimensions, and render results in your preferred output mode.

Frequently Asked Questions about scope-drift-detection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect scope drift for Entra ID service principals and user accounts?

Scope drift is detected by establishing a 90-day behavioral baseline for Entra ID service principals and user accounts, then comparing recent activity to calculate a multi-dimension drift score. You simply request an investigation for a specific SPN or UPN to start the analysis.

What data sources are needed to quantify identity scope drift in Microsoft Sentinel?

Quantifying identity scope drift requires correlating data across Microsoft Sentinel sources including AuditLogs, SigninLogs, SecurityAlert, DeviceNetworkEvents, and Identity Protection. These sources provide the behavioral signals needed to compute the 90-day baseline and multi-dimension drift score.

Can I generate Markdown investigation reports for scope drift analysis?

Yes, you can generate Markdown reports for scope drift analysis. The skill outputs results in either inline summaries for quick triage or structured Markdown reports specifically formatted for enterprise security investigation handoffs and team review.

What is a drift score in identity and access management security?

A drift score in identity security quantifies the behavioral deviation of service principals and user accounts from their established 90-day baseline. This multi-dimension metric identifies gradual access expansion and behavioral changes across Entra ID entities before security incidents occur.

Does scope drift detection work with both service principals and user accounts?

Yes, scope drift detection works with both Entra ID service principals and user accounts. The skill automatically detects the specified entity type, selects the appropriate data sources, and applies the 90-day baseline comparison and drift scoring calculation accordingly.