Home › Studies › SC-200 › Threat Hunting › Advanced Hunting & KQL

Advanced Hunting & KQL

Choosing tables · KQL operators and optimization · threat analytics · hunting graph · blast radius · Sentinel graph

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Advanced hunting basics

Advanced hunting is a query-based tool for exploring up to 30 days of raw Defender data. With a Microsoft Sentinel workspace onboarded you can also query analytics-tier data for the retention configured on the workspace. Data comes from Defender for Endpoint, Defender for Office 365, Defender for Cloud Apps, Defender for Identity and Microsoft Sentinel.

QuotaValue
Date range30 days for native Defender data
Result set100,000 rows
Timeout10 minutes
Results size64 MB
CPUWarning above 10% of allocated resources; blocked at 100% until the next 15-minute cycle

Pick the right table

Need to findTable
Process creationDeviceProcessEvents
Network connectionsDeviceNetworkEvents
File creation or modificationDeviceFileEvents
Registry changesDeviceRegistryEvents
Device sign-ins and authenticationDeviceLogonEvents
DLL loadingDeviceImageLoadEvents
Email delivery and blockingEmailEvents
Files attached to email / URLs in emailEmailAttachmentInfo / EmailUrlInfo
Post-delivery email actionsEmailPostDeliveryEvents
Safe Links clicksUrlClickEvents
AD and Microsoft online service authenticationIdentityLogonEvents
Queries for AD objectsIdentityQueryEvents
Domain controller eventsIdentityDirectoryEvents
Entra interactive and non-interactive sign-insEntraIdSignInEvents
Service principal and managed identity sign-insEntraIdSpnSignInEvents
Microsoft Graph API requestsGraphAPIAuditEvents
Activity in Office 365 and other cloud appsCloudAppEvents
Alerts and the entities in themAlertInfo / AlertEvidence
Installed software and its vulnerabilitiesDeviceTvmSoftwareInventory / DeviceTvmSoftwareVulnerabilities
Teams messagesMessageEvents
Defender for Cloud audit eventsCloudAuditEvents

Some tables are marked Preview on the schema page, such as BehaviorInfo and DisruptionAndResponseEvents. Use the schema reference (View reference next to a table) for columns and ActionType values.

KQL operators and optimization

OperatorUse
whereFilter rows by a predicate
summarizeAggregate a table
joinMerge two tables on matching columns
projectChoose, rename or compute columns
extendAdd calculated columns
top / limitReturn the first N rows
makesetDynamic array of distinct values
findMatch a predicate across tables

Example shape from Learn: a time filter first, then the process filter, then command-line strings, then project and top.

Result viewNotes
Table (default)Export to an Excel workbook
Column, pie, line, scatter, area, stacked area, time chartExport as a JPEG; summarize first, add | render columnchart to force a chart

Threat analytics

Threat analytics is in-product threat intelligence from Microsoft security researchers, plus OSINT articles. Each report analyzes a tracked threat and uses data from your network to show whether the threat is active and whether protections are in place.

Dashboard sectionLists
Latest threatsMost recently published or updated reports, with active and resolved alerts
High-impact threatsHighest number of active and resolved alerts
Highest exposure threatsExposure from vulnerability severity and number of exploitable devices
Report tabWhat it shows
OverviewSummary, impact and exposure charts
Analyst reportAttack chains, MITRE mapping, recommendations and hunting guidance
Related incidentsIncidents and alerts from Defender for Endpoint, Identity, Office 365, Cloud Apps and Cloud
Impacted assetsDevices, users, mailboxes, apps and cloud resources
Endpoints exposureExposure level and update deployment status
Recommended actionsMitigations tracked in Microsoft Secure Score
Indicators (preview)IOCs, including expired ones; verified customers only

Hunting graph, blast radius and Sentinel graph

The hunting graph renders threat scenarios as interactive graphs of nodes (entities) and edges (relationships). Find it at Investigation & response > Hunting > Advanced hunting with the hunting graph icon, or Create new > Hunting graph. Steps: select a scenario and enter inputs, apply filters, then Run scenario.

Predefined scenarioUse
Attack paths to critical assetRoutes through nodes toward a target (lateral movement)
Entity relationship mapDirect connections of one entity
Paths between two entitiesIs there a path from one entity to another
Access to key vaultsWho and what can reach a key vault
Potential data exfiltration by deviceStorage accounts a device can access
Choke points to SQL data storesNodes in the most paths to SQL stores
Paths to domain adminsNon-privileged users to Domain Admins
Kerberoast paths to critical assetsKerberoast-vulnerable accounts and escalation routes

CLI and PowerShell

TaskAzure CLIPowerShell
First hunting query: PowerShell download activity// Finds PowerShell execution events that could involve a download union DeviceProcessEvents, DeviceNetworkEvents | where Timestamp > ago(7d) // Pivoting on PowerShell processes | where FileName in~ ("powershell.exe", "powershell_ise.exe") // Suspicious commands | where ProcessCommandLine has_any("WebClient", "DownloadFile", "DownloadData", "DownloadString", "WebRequest", "Shellcode", "http", "https") | project Timestamp, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, RemoteIP, RemoteUrl, RemotePort, RemoteIPType | top 100 by Timestamp-
Chart alerts by severityAlertInfo | summarize Total = count() by Severity | render columnchart-
Inner join on a time-filtered file hashEmailAttachmentInfo | where Timestamp > ago(1h) | where Subject == "Document Attachment" and FileName == "Document.pdf" | join kind=inner (DeviceFileEvents | where Timestamp > ago(1h)) on SHA256-
Cross-workspace tableworkspace('<Workspace ID or Azure Resource ID>').<Table Name>-

Exam Tips

Tick each tip once you can answer it without looking.

“Advanced hunting: how far back for native Defender data” → 30 days. Trap: Longer retention needs a Sentinel workspace with analytics-tier retention.

“Per-query limits in advanced hunting: rows and run time” → 100,000 rows, 10 minutes (64 MB of results).

“Process creation events” → DeviceProcessEvents. Trap: DeviceEvents holds other event types such as antivirus and exploit protection detections.

“Which user clicked a Safe Links URL” → UrlClickEvents.

“On-premises domain controller activity” → IdentityDirectoryEvents. Trap: IdentityLogonEvents covers authentication; IdentityQueryEvents covers AD object queries.

“Entra sign-ins in advanced hunting” → EntraIdSignInEvents (service principals: EntraIdSpnSignInEvents).

“Look for exact text inside words vs speed” → Use has instead of contains. Trap: contains searches substrings and costs more.

“Join keeps only one row per key from the left table” → The default innerunique flavor: use kind=inner.

“Join: which table goes on the left” → The smaller one.

“Unscoped search or union over all tables” → Avoid; use search in (table list).

“Link a parent process to its children on Windows” → ProcessUniqueId and InitiatingProcessUniqueId. Trap: Process IDs are recycled.

“Which Microsoft Defender license doesn't grant threat analytics” → Defender for Endpoint P1.

“Which threat report tab lists IOCs, including expired ones” → Indicators (preview; verified customers).

“Threat analytics: mitigations you can act on and track” → Recommended actions (tracked in Secure Score). Trap: The analyst report can hold more actions that Secure Score doesn't track.

“Show paths from compromised node to critical targets in an incident” → Blast radius (View blast radius on the node). Trap: It extends and replaces Attack path analysis.

“Hunting graph: find nodes in the most paths to SQL stores” → Choke points to SQL data stores scenario.

“Blast radius hop limits” → Seven hops max: five cloud, five on-premises, three hybrid.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Threat Hunting overviewSentinel Hunting & Data Lake →