Configure detections
Unlock the complete study guide + 25 practice exams totaling 1,498 questions.
Bundled into the existing Microsoft Certified: Security Operations Analyst Associate premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Detection rules in three families
- Preparing a custom detection query
- Custom detection frequency and lookback
- Custom detection alert details and enrichment
- Custom detection response actions
- Custom detection rule scope
- Managing existing custom detection rules
- Scheduled rules from Content hub templates
- Scheduled rule query requirements
- Scheduled rule timing: interval, lookback, first run
- Controlling scheduled rule output
- Alert enhancement in Sentinel analytics rules
- NRT analytics rules
- Managed-logic rules: threat intelligence, Fusion, ML
- Anomaly rules and the Flighting cycle
- Analyzing coverage with the MITRE ATT&CK matrix
- Practice: configuring custom detections and Sentinel analytics rules
Query-based rules: custom detection vs scheduled rule vs NRT rule
| Setting | Custom detection (Defender XDR) | Scheduled rule (Sentinel) | NRT rule (Sentinel) |
|---|---|---|---|
| Where you build it | Advanced hunting or the Custom detection rules page in the Defender portal | Analytics rule wizard, from a template or from scratch | Analytics rule wizard, from a template or from scratch |
| Run frequency | Continuous (NRT), hourly, 3, 12, or 24 hours; Custom 5 minutes to 14 days for Sentinel-only data | Run query every: 5 minutes to 14 days | Fixed: once every minute |
| Lookback | Fixed pair with Defender data (hourly reads 4 hours, 24 hours reads 30 days); configurable for Sentinel-only data | Lookup data from the last: 5 minutes to 14 days, never shorter than the interval | Events ingested in the preceding minute |
| Time basis and delay | ingestion_time(), so late-arriving events are still evaluated | Built-in five-minute delay | Ingestion time, two-minute delay |
| Alerts per run | Up to 150 | Up to 150; per-event mode gives 149 alerts plus a summary only when results exceed 150 events | Up to 30; per-event mode gives 29 alerts plus a summary only when results exceed 30 events |
| Multiple tables | Yes, except at Continuous (NRT): one table, no joins or unions | Yes; no search * or union * | Yes, across tables and workspaces |
| Built-in response actions | Yes on Defender data: device, file, user, and email actions | None; respond through automation rules and playbooks | None; respond through automation rules and playbooks |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- https://learn.microsoft.com/en-us/azure/sentinel/threat-detection
- https://learn.microsoft.com/en-us/defender-xdr/custom-detection-rules
- https://learn.microsoft.com/en-us/defender-xdr/custom-detection-manage
- https://learn.microsoft.com/en-us/azure/sentinel/work-with-anomaly-rules
- https://learn.microsoft.com/en-us/azure/sentinel/near-real-time-rules
- https://learn.microsoft.com/en-us/azure/sentinel/scheduled-rules-overview
- https://learn.microsoft.com/en-us/defender-xdr/investigate-alerts
- https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-deviceevents-table
- https://learn.microsoft.com/en-us/kusto/query/arg-max-aggregation-function
- https://learn.microsoft.com/en-us/azure/sentinel/scoping
- https://learn.microsoft.com/en-us/defender-xdr/exclude-analytics-rules-correlation
- https://learn.microsoft.com/en-us/kusto/query/bag-unpack-plugin
- https://learn.microsoft.com/en-us/azure/sentinel/map-data-fields-to-entities
- https://learn.microsoft.com/en-us/azure/sentinel/surface-custom-details-in-alerts
- https://learn.microsoft.com/en-us/azure/sentinel/customize-alert-details
- https://learn.microsoft.com/en-us/azure/sentinel/use-matching-analytics-to-detect-threats
- https://learn.microsoft.com/en-us/azure/sentinel/anomalies-reference
- https://learn.microsoft.com/en-us/azure/sentinel/mitre-coverage