Domain 1 β€” Module 10 of 12 83%
10 of 28 overall
Domain 1: Manage a Security Operations Environment Free ⏱ ~14 min read

Sentinel Analytics & Threat Intelligence

Build your detection engine in Sentinel. Learn how scheduled, NRT, threat intelligence, and ML analytics rules work, and how to ingest and use threat indicators for proactive detection.

Analytics rules: the Sentinel detection engine

Simple explanation

Think of analytics rules as tripwires. You set them across doorways, corridors, and windows. When someone crosses one, an alarm sounds.

In Sentinel, analytics rules continuously monitor your ingested data. When a rule’s KQL query matches, it creates an alert which becomes an incident for analysts to investigate. Different rule types run at different speeds β€” some check every 5 minutes, some react within seconds, and some use machine learning to spot things humans would miss.

Sentinel also lets you ingest threat intelligence β€” known-bad IP addresses, domains, file hashes β€” and match them against your data automatically. If someone in your org connects to a known C2 server, Sentinel catches it.

The four analytics rule types

Each rule type serves a different detection need β€” use all four for comprehensive coverage
FeatureScheduledNRTThreat IntelligenceMachine Learning
Query languageFull KQLSimplified KQL (some operators restricted)Automatic (no query needed)Automatic (built-in models)
Frequency5 min to 14 daysEvery ~1 minuteContinuous matchingConfigurable
LatencyMinutes to hoursSeconds to ~1 minuteNear real-timeVaries
CustomisationFull β€” write any KQL logicLimited β€” no joins, limited operatorsNone β€” rule matches indicators against dataTune thresholds and parameters
Best forComplex, multi-table detection logicTime-critical single-table detectionsKnown IOC matching (IPs, domains, hashes)Detecting unknown behavioural anomalies
Entity mappingYes β€” full controlYes β€” full controlAutomaticAutomatic

Scheduled rules (most common)

Scheduled rules are the workhorses. You write a KQL query, set the frequency, define the lookback window, and map entities.

Key configuration:

  • Query frequency β€” how often the rule runs (e.g., every 5 minutes)
  • Lookback period β€” how far back in time the query searches (e.g., last 5 minutes)
  • Alert threshold β€” minimum results to trigger (e.g., greater than 0)
  • Entity mapping β€” connect query columns to Sentinel entities
  • Event grouping β€” group all events into one alert, or create one alert per result

Example: brute force detection

SigninLogs
| where TimeGenerated > ago(5m)
| where ResultType == "50126"  // Invalid username or password
| summarize FailedAttempts = count() by UserPrincipalName, IPAddress
| where FailedAttempts > 10

NRT rules (near-real time)

NRT rules sacrifice flexibility for speed. They run every minute with almost zero lag.

Restrictions compared to scheduled:

  • No cross-resource queries
  • No joins with other tables
  • Limited operators
  • Only one table per query

Best for: single-table, time-critical detections like β€œadmin account logged in from a new country” or β€œhigh-severity alert from a critical server.”

Threat intelligence rules

TI rules automatically match your ingested threat indicators against incoming data. No KQL required β€” you configure which indicator types to match and which data tables to search.

Machine learning rules

ML rules use Microsoft’s behavioural models to detect anomalies β€” unusual patterns that rules-based logic might miss. Examples: unusual login times, abnormal data volumes, first-time access to sensitive resources.

Exam tip: NRT vs scheduled

The exam tests whether you know when to use NRT vs scheduled:

  • β€œDetect X within minutes” β†’ NRT (if the logic is simple and single-table)
  • β€œCorrelate events across multiple tables” β†’ Scheduled (NRT does not support joins)
  • β€œDetect anomalous behaviour” β†’ ML rules
  • β€œMatch known IOCs” β†’ Threat intelligence rules

Threat intelligence ingestion

Before TI rules can detect anything, you need threat indicators in Sentinel.

Ingestion methods

MethodSourceWhat It Provides
Microsoft Defender Threat Intelligence (MDTI)Microsoft’s own TIHigh-fidelity indicators from Microsoft’s security research
STIX/TAXII feedsIndustry threat intel sharing (ISACs, open-source feeds)IP addresses, domains, file hashes, URLs from community sources
Threat Intelligence Platforms (TIPs)Commercial TI (Recorded Future, Anomali, MISP)Enriched indicators with context and confidence scores
Threat Intelligence Upload Indicators APIManual or scripted uploadCustom indicators from your own research
Manual indicatorsSentinel TI bladeIndividual indicators added by analysts

Indicator lifecycle

Every indicator has:

  • Type β€” IP, domain, URL, file hash, email address
  • Confidence β€” how reliable the indicator is (0-100)
  • Valid from/to β€” time window the indicator is active
  • Threat type β€” malware, C2, phishing, botnet, etc.
  • Source β€” where the indicator came from
Scenario: Anika's TI setup for Sentinel Shield

Anika configures threat intelligence for her MSSP clients:

  • MDTI connector β€” enabled for all workspaces (high-quality Microsoft indicators)
  • STIX/TAXII feed from the Financial Services ISAC (FS-ISAC) β€” for financial clients only
  • Custom indicators β€” Anika’s team adds IOCs from their own incident investigations via the Upload API
  • TI analytics rule β€” matches all ingested indicators against CommonSecurityLog (firewall), Syslog, and SigninLogs

When a client’s firewall logs show a connection to a known C2 IP from the FS-ISAC feed, an incident is automatically created.

Question

What are the four types of Sentinel analytics rules?

Click or press Enter to reveal answer

Answer

1. Scheduled β€” KQL queries on a configurable schedule. 2. NRT (Near-Real Time) β€” simplified queries running every minute. 3. Threat Intelligence β€” automatic IOC matching against log data. 4. Machine Learning β€” behavioural anomaly detection using Microsoft's models.

Click to flip back

Question

Why would you choose an NRT rule over a scheduled rule?

Click or press Enter to reveal answer

Answer

NRT rules run every ~1 minute with minimal latency, making them ideal for time-critical detections. However, they cannot use joins, cross-resource queries, or some KQL operators. Choose NRT when speed matters more than query complexity.

Click to flip back

Question

What are three ways to ingest threat indicators into Sentinel?

Click or press Enter to reveal answer

Answer

1. Microsoft Defender Threat Intelligence (MDTI) connector β€” Microsoft's own TI. 2. STIX/TAXII feeds β€” industry and open-source threat intel. 3. Threat Intelligence Upload Indicators API β€” custom/manual indicators from your own research.

Click to flip back

Knowledge Check

Anika needs a detection that alerts within 60 seconds when an admin account logs in from a new country. The logic only involves the SigninLogs table. What rule type should she use?

Knowledge Check

James wants to detect when any device in Pacific Meridian connects to a known command-and-control IP address from a threat intelligence feed. What should he configure?

Knowledge Check

Anika has an NRT rule detecting admin logins from new countries. It fires 15 times per week β€” 13 are legitimate VPN connections from travelling executives. She wants to reduce noise without losing detection for real attacks. What is the BEST approach?

Next up: Your detections are running. But how do you know if they actually cover the threats that matter? Let’s map your coverage against the MITRE ATT&CK framework.