Cyber Intelligence
Microsoft Sentinel · 50-55% of exam

L10. Analytics Rules: Scheduled, NRT and Fusion

Video generating

Check back soon for the video lesson on Analytics Rules: Scheduled, NRT and Fusion

Analytics rules are the detection engine in Microsoft Sentinel. This lesson covers rule types, scheduled query configuration, near-real-time rules, Fusion ML-based detections, and rule tuning strategies for the SC-200 exam.

Analytics Rule Types

Microsoft Sentinel offers four types of analytics rules:

Rule TypeDetection LatencyUse Case
Scheduled5 min to 14 days (configurable)Custom detections with KQL queries
NRT (Near-Real-Time)~1 minuteLow-latency detection for critical threats
FusionVariesML-based multi-stage attack detection
Microsoft securityReal-timeAlerts from Microsoft Defender products

Scheduled Analytics Rules

Scheduled rules run KQL queries at defined intervals. Key configuration parameters:

  • Query: The KQL detection logic
  • Run frequency: How often the rule executes (e.g., every 5 minutes, every hour)
  • Lookup period: How far back the query looks (e.g., last 5 minutes, last 1 hour)
  • Alert threshold: Minimum results to trigger an alert
  • Entity mapping: Map query results to Sentinel entities (Account, Host, IP, URL, File)
  • Alert grouping: Group alerts into a single incident or create separate incidents
Exam tip: The lookup period should be equal to or greater than the run frequency. If frequency is 5 minutes and lookup is 5 minutes, there is no gap. If lookup is less than frequency, events can be missed.

Example scheduled rule:

SigninLogs
| where TimeGenerated > ago(1h)
| where ResultType == "50053"
| where Location != "US"
| summarize AttemptCount = count() by UserPrincipalName, IPAddress, Location
| where AttemptCount > 5

Near-Real-Time (NRT) Rules

NRT rules run every minute with a 1-minute lookup window. They are designed for detections that require minimal delay:

  • No configurable frequency (fixed at ~1 minute)
  • Support most KQL operators (with some limitations)
  • Cannot use cross-workspace queries
  • Cannot use the join operator or external data sources

Use NRT rules for high-priority detections like ransomware encryption patterns or critical system changes. Exam tip: NRT rules have a fixed run frequency and cannot use joins or cross-workspace queries. If the question describes a detection needing joins, the answer is a scheduled rule.

Fusion Rules

Fusion uses machine learning to detect multi-stage attacks by correlating low-fidelity alerts from multiple sources. For example:

  1. Suspicious sign-in from an unusual location (Entra ID)
  2. Inbox rule creation forwarding emails (Office 365)
  3. Mass file download from SharePoint (Cloud Apps)

Individually, these alerts might not warrant investigation. Fusion correlates them into a high-confidence incident.

Fusion detects scenarios like:

  • Ransomware deployment following credential compromise
  • Data exfiltration after lateral movement
  • Crypto mining after initial access

Fusion rules are enabled by default and cannot be customized (you cannot modify the ML logic).

Entity Mapping

Entity mapping links query results to Sentinel entity types:

  • Account: UserPrincipalName, SID, AADUserId
  • Host: HostName, FQDN, IP Address
  • IP: Address
  • URL: Url
  • File: Name, Directory, Hash
  • Mailbox: MailboxPrimaryAddress

Proper entity mapping enables:

  • Investigation graph visualization
  • Entity pages with aggregated information
  • Entity behavior analytics (UEBA)
  • Automated response actions targeting the entity

Alert Grouping

Alert grouping controls how alerts from the same rule are combined into incidents:

  • Group all alerts into a single incident: Reduces noise when the same rule fires repeatedly
  • Group alerts by selected entities: Creates separate incidents per entity (e.g., per user or per host)
  • Limit group to a time window: Auto-close the group after a defined period

Tuning and Suppression

To reduce false positives:

  • Add exclusion conditions to the KQL query
  • Use analytics rule suppression (pause the rule after it fires for a specified duration)
  • Adjust alert thresholds
  • Refine entity mapping for better correlation
Exam Focus Points
  • Scheduled rules have configurable frequency and lookup periods. The lookup must be >= the frequency to avoid gaps.
  • NRT rules run every ~1 minute but cannot use joins or cross-workspace queries.
  • Fusion uses ML to correlate low-fidelity alerts from multiple sources into high-confidence multi-stage attack incidents.
  • Entity mapping connects query results to Sentinel entities (Account, Host, IP, URL, File, Mailbox).
  • Alert grouping by entity creates separate incidents per user or host instead of a single combined incident.
  • Fusion rules are enabled by default and their ML logic cannot be customized.
Knowledge Check

1. A detection query uses a join between SecurityEvent and a watchlist table. Which analytics rule type can run this query?

2. A scheduled analytics rule runs every 10 minutes with a lookup period of 5 minutes. What is the risk?

3. Which Sentinel analytics rule type uses machine learning to correlate alerts from multiple Microsoft products into multi-stage attack incidents?