Most engineers think…
Most people assume Microsoft Sentinel is a 'magic box that just detects threats'. In reality, Sentinel fires an alert only when an analytics rule says to — and if you have no rules enabled, you get no alerts at all.
The real skill is understanding which of the five rule types to use for each detection goal: a hand-written Scheduled KQL rule for precise custom logic, a Near-Real-Time rule when latency matters, a Microsoft Security rule to absorb alerts from Defender products, Fusion ML to catch multistage attacks you could never write a single KQL query for, and Anomaly rules to flag unusual behaviour baselines. Knowing that distinction — plus how to map every rule to MITRE ATT&CK and tune out false positives — is what separates a detection engineer from someone who just pressed 'Deploy'.
① The five analytics rule types — your detection menu
Every Microsoft Sentinel alert is born from one of five analytics rule types. Scheduled rules are KQL queries you author (or deploy from the Content Hub) that run on a configurable interval — every 5 minutes to once a day — against Log Analytics tables. They are the workhorse of custom detection engineering. Near-Real-Time (NRT) rules are a special subset: hardcoded to run every minute with sub-5-minute end-to-end latency, ideal for high-priority detections like privilege escalation or credential spray where seconds matter.
Microsoft Security rules require no KQL at all: they auto-import alerts from connected Microsoft products — Microsoft Defender for Endpoint, Microsoft Defender for Cloud, Microsoft Defender for Identity, and others — and let you filter by product and severity threshold. Fusion is a Microsoft-managed ML engine you cannot author yourself; it correlates seemingly unrelated low-fidelity signals across multiple attack stages (initial access, lateral movement, exfiltration) into a single high-confidence multistage-attack incident. Anomaly rules use ML to build a behavioural baseline over time and fire when an entity strays significantly from that baseline — no static threshold needed.
How many analytics rule types does Microsoft Sentinel offer?
② Scheduled & NRT rules — writing KQL detections that hold up
A Scheduled rule has four key dials: the KQL query itself, the query frequency (how often it runs), the lookback window (how far back the query looks each time), and the alert threshold (how many results trigger an alert). The most common mistake is setting a lookback shorter than the frequency — you create a gap and miss events. Set lookback to at least equal the frequency, or longer for slow-burn detections.
Entity mapping and alert grouping
Entity mapping tells Sentinel which KQL columns are Accounts, Hosts, IPs, or URLs so the SOC can pivot on them. Alert grouping controls whether multiple rule hits within a time window merge into one incident or create separate ones — merge aggressively to reduce alert fatigue. NRT rules share the same KQL and entity-mapping interface but strip away the frequency dial (always 1 minute) and restrict queries to a single table for speed. Use NRT for your top-tier, time-sensitive detections only; their compute cost is higher.
Runs every 60 seconds, captures the preceding minute, gives sub-5-minute alert latency. Single-table KQL queries only. Reserve for your highest-priority detections.
Microsoft-managed ML that correlates multiple low-fidelity signals across kill-chain stages into one high-confidence multistage-attack incident. You cannot author Fusion rules, but you can toggle which signal types it consumes.
Trains an ML baseline on entity behaviour over time; fires a low-severity anomaly record when an entity drifts beyond the baseline. Use Flighting mode first, validate, then promote to Production.
Auto-imports alerts from connected Microsoft products (Defender for Endpoint, Defender for Cloud, Defender for Identity). No KQL needed — just select the product and the severity filter.
Set your Scheduled rule lookback window to at least equal the query frequency — ideally a bit longer — otherwise events ingested in the gap between runs are never evaluated and you will miss detections silently.
What is the most common mistake when configuring a Scheduled rule query window?
③ Fusion & Anomaly rules — letting ML carry the heavy multistage load
Fusion is Sentinel's correlation engine for multistage attacks. It ingests signals from across your connector estate — anomalous sign-ins, impossible travel, malware detections, suspicious process execution, unusual data access — and uses scalable ML to find combinations that indicate a coherent kill-chain even when no single signal crosses a threshold. The output is a Fusion incident with all contributing signals listed, mapped to MITRE ATT&CK tactics, and a high confidence score. You cannot tune the Fusion model directly, but you can toggle which source signal types it consumes.
Anomaly rules work differently: each rule observes one specific behaviour (e.g. login-hour distribution, data-volume per user, process execution patterns) over a training window, sets a statistical baseline, and fires a low-severity anomaly record when an entity drifts beyond the threshold. Anomalies are not incidents by themselves — they feed Fusion and can be queried in hunting. The important operations task is to set the anomaly rule to Flighting mode first, validate the baseline fits your environment, then promote to Production.
Fusion is Microsoft-managed ML. You cannot edit its internal thresholds or correlation logic. What you can do is control which anomaly-signal sources it consumes. If Fusion fires false positives, investigate the contributing anomaly or Defender signals, not the Fusion rule itself.
▶ Watch a credential-spray become a Fusion incident
A real multistage attack flows from raw log to Fusion incident. Press Play for the healthy detection, then Break it to see the classic failure.
A user has logged in from London and then from Mumbai 20 minutes later. Which Sentinel feature is most likely to surface this as part of a multistage attack?
④ Detection tuning & MITRE ATT&CK coverage — closing the gaps
Detection engineering in Sentinel has two loops. The first is tuning: start in Observe mode (rule creates alerts but no incidents), watch the false-positive rate for a week, add KQL where exclusions or tighten entity filters, then promote to Active. Use watchlists (CSV lookup tables in Sentinel) to maintain exception lists without touching the KQL query itself — update the watchlist, not the rule. Use automation rules to auto-close known-safe patterns the moment an incident opens.
The second loop is coverage. Sentinel's MITRE ATT&CK page shows a heat-map of every active and available rule mapped to a technique cell. Cells that are empty mean no active rule covers that technique — an adversary using it would be invisible. Detection engineers review this matrix, prioritise the emptiest cells against their threat model, and deploy or write rules to fill them. Content Hub solutions (Microsoft-authored rule packs for specific products and threats) are the fastest way to add coverage; custom Scheduled rules fill the remaining gaps specific to your environment.
Priya at a Mumbai fintech company faces this
A newly deployed Scheduled rule for 'multiple failed logins followed by success' fires 400 incidents on the first day, flooding the SOC queue and burning analyst goodwill.
The KQL threshold was set to 3 failed logins before 1 success, which is too low for this environment where shared service accounts routinely retry on transient failures.
Open Analytics ▸ Active rules ▸ rule detail ▸ Simulate alerts. Most matches are service accounts with known retry patterns — not real brute-force attempts.
Analytics ▸ Active rules ▸ Edit rule ▸ Set rule logic ▸ QueryCreate a Sentinel watchlist of approved service-account UPNs. Add a where AccountUPN !in (watchlist) filter to the KQL. Raise the threshold to 10 failures. Switch to Observe mode for 3 days, confirm false-positive rate drops, then promote back to Active.
Re-run simulation: only genuine human accounts exceeding 10 failures and not on the watchlist now produce alerts. SOC incident volume drops by over 90% while real attack patterns still fire.
Go to Microsoft Sentinel ▸ Threat management ▸ MITRE ATT&CK. Any empty cell means no active rule covers that technique. Prioritise empty cells in your threat model and deploy Content Hub rule packs or custom Scheduled rules to fill gaps before an adversary exploits them.
Your SOC is overwhelmed with false positives from a scheduled detection rule. Which approach reduces noise without deleting the rule?
🤖 Ask the AI Tutor
Tap any question — instant, scoped to this lesson. No login, no waiting.
Pre-curated from vendor docs + community Q&A, scoped to this lesson. For a live prod issue, paste your export into chat.techclick.in.
📝 Wrap-up assessment — six more
You've answered 4 inline. Six left. 70% (7 of 10) marks the lesson complete on your profile. Tap Submit all answers at the end.
🧠 In your own words
Type one line: what is the difference between a Scheduled rule and an NRT rule, and when would you choose NRT? Then compare with the expert version.
🗣 Teach a friend
Best way to lock it in — explain it in one line to a teammate. Tap to generate a paste-ready summary.
📖 Glossary
- Scheduled rule
- A KQL-based analytics rule that runs on a configurable interval (5 min to 1 day) against Log Analytics tables to detect specific patterns.
- NRT (Near-Real-Time) rule
- A KQL analytics rule hardcoded to run every 60 seconds on a single table, delivering sub-5-minute alert latency for high-priority detections.
- Fusion engine
- Microsoft-managed ML correlation engine that combines low-fidelity signals from multiple kill-chain stages into one high-confidence multistage-attack incident.
- Anomaly rule
- An ML rule that builds a behavioural baseline for an entity and fires a low-severity anomaly record when the entity strays beyond that baseline.
- Microsoft Security rule
- An analytics rule that auto-imports alerts from connected Microsoft products (Defender for Endpoint, Defender for Cloud, etc.) with no KQL authoring required.
- Entity mapping
- A Scheduled or NRT rule setting that identifies which KQL output columns represent Accounts, Hosts, IPs or URLs for incident correlation and entity analytics.
- Watchlist
- A CSV-based lookup table uploaded to Sentinel and referenced in KQL queries to maintain exception lists without modifying the core rule logic.
- MITRE ATT&CK coverage page
- A Sentinel view that maps every active and available rule to a MITRE ATT&CK technique cell, showing detection coverage gaps as empty cells.
📚 Sources
- Microsoft Learn — Threat detection in Microsoft Sentinel. learn.microsoft.com/en-us/azure/sentinel/threat-detection
- Microsoft Learn — Near-real-time (NRT) analytics rules in Microsoft Sentinel. learn.microsoft.com/en-us/azure/sentinel/near-real-time-rules
- Microsoft Learn — Configure multistage attack detection (Fusion) rules in Microsoft Sentinel. learn.microsoft.com/en-us/azure/sentinel/configure-fusion-rules
- Microsoft Learn — View MITRE ATT&CK coverage in Microsoft Sentinel. learn.microsoft.com/en-us/azure/sentinel/mitre-coverage
- Microsoft Learn — Create Analytics Rules for Microsoft Sentinel Solutions. learn.microsoft.com/en-us/azure/sentinel/sentinel-analytic-rules-creation
- Microsoft Community Hub — Automating export of Microsoft Sentinel analytic rules mapped to MITRE tactics & techniques. techcommunity.microsoft.com
What's next?
Got analytics rules down? Next, explore Microsoft Sentinel automation rules and playbooks — how to auto-triage incidents, enrich entities, and fire Logic App workflows without writing a single line of KQL.