Loading...
Loading...
Guidance for detection engineering in Microsoft Sentinel — building, testing, deploying, and maintaining analytics rules, hunting queries, and SOAR automation. Covers the Content Hub solution model, MITRE ATT&CK mapping, scheduled vs near-real-time (NRT) vs Fusion vs anomalies analytics, KQL detection patterns (joins, summarize, bin, materialize), entity mapping and incident enrichment, custom detections from Defender XDR vs Sentinel-only, automation rules, playbooks (Logic Apps), watchlists, threat intel matching, content as code with Azure DevOps / GitHub repositories integration, and detection lifecycle (validate → tune → version). WHEN: Sentinel analytics rule, KQL detection, MITRE mapping, Sentinel content hub, scheduled analytics, NRT rule, hunting query, Sentinel automation rule, Logic App playbook, custom detection, repositories Sentinel CI/CD, detection-as-code, watchlist, threat intel matching analytics, fusion alerts, anomalies, incident enrichment, entity mapping. DO NOT USE for Sentinel architecture/onboarding (use sentinel), Defender XDR custom detections only (overlap—use the side that owns the data), or generic KQL training.
npx skill4agent add vinayaklatthe/microsoft-security-skills sentinel-detection-engineeringsentineldefender-xdrRule of thumb: If a Microsoft solution covers 80% of the use case, install the solution and override the 20% in your repo — don't fork from scratch.
| Rule type | When to use | Latency |
|---|---|---|
| Scheduled | Most cases; KQL window-based | 5 min – 24 h |
| Near-real-time (NRT) | High-priority, single-event detections (e.g., privileged role assignment) | <1 min |
| Microsoft Security (legacy) | Forward Defender alerts as Sentinel incidents | Immediate |
| Fusion | Multi-stage attack correlation (built-in ML) | Variable |
| Anomalies | Behavior baselines (built-in ML) | Hourly |
| Threat Intelligence | TI-indicator → log match | Schedule |
take 100summarizebin(TimeGenerated, 5m)materialize()_GetWatchlist("name")*Group all alerts triggered by this rule into a single incidentSecurityEventSyslogCommonSecurityLogwhere TimeGenerated > ago(90d)Author a Sentinel scheduled rule for impossible-travel using SigninLogs with proper entity mapping.Convert a noisy detection (avg 800 alerts/day) into actionable form via tuning and grouping.Build the playbook to isolate a Defender for Endpoint device on a Sentinel incident, with an approval step in Teams.Set up Sentinel Repositories to deploy analytics rules from GitHub via PR.Write an NRT rule for newly-added Global Administrator that fires within 1 minute.Map a custom detection to MITRE ATT&CK techniques and validate coverage gaps.Build a hunting workbook for living-off-the-land binary usage across endpoints.Quarterly content review: identify zero-alert rules, validate they're not silently broken, retire or refactor.