Defender XDR
Advanced Cross-Product Threat Hunting
Write advanced hunting queries that join DeviceEvents, EmailEvents, and IdentityLogonEvents to trace a multi-stage attack across your enterprise. Correlate telemetry from endpoints, email, identity, and cloud apps using KQL in the Microsoft Defender XDR unified hunting console.
Where it fits: lab 2 of 5
Investigate and respond with Defender XDR. Run incidents in the unified portal, hunt across products, build custom detections and work an attack from alert to report.
- Configure Unified Incident Management 60 min
- Advanced Cross-Product Threat Hunting 75 min
- Build Custom Detection Rules with Auto-Response 75 min
- Incident Response: Investigate a Simulated APT Attack 120 min
- OAuth Application Abuse: End-to-End SecOps Investigation 3 h
What this lab covers
In this hands-on lab you will master cross-product threat hunting in Microsoft Defender XDR by writing KQL queries that span endpoints, email, identity, and cloud app telemetry. You will begin by exploring the unified advanced hunting schema, then progressively build queries against individual data sources before joining them into powerful multi-table correlation queries that reconstruct a complete attack chain. By the end of this lab, you will have created reusable hunting queries, built a chronological attack timeline, saved queries to the shared library with MITRE ATT&CK tags, and promoted a hunting query into a custom detection rule with automated response actions.
The enterprise scenario
A financial services firm with 8,000 employees has detected unusual activity across multiple systems but cannot determine whether the events are related. The SOC team received a phishing alert from Defender for Office 365, a suspicious logon alert from Defender for Identity, and an encoded PowerShell execution alert from Defender for Endpoint. all within a 90-minute window. Each alert was triaged independently by different analysts, and none realized they were looking at a coordinated attack. The CISO has mandated that the threat hunting team develop cross-product hunting queries that can trace attack chains spanning email delivery, credential compromise, lateral movement, and data exfiltration in a single investigation. These queries must be reusable, mapped to MITRE ATT&CK, and convertible into automated detection rules for continuous protection.
What you will learn
- Navigate the unified advanced hunting schema and understand all available tables across Defender products
- Write KQL queries to detect suspicious process execution, encoded PowerShell, and LOLBins abuse on endpoints
- Hunt for phishing indicators by querying EmailEvents, EmailAttachmentInfo, and EmailUrlInfo tables
- Detect credential attacks including brute-force, pass-the-hash, and suspicious logon patterns via IdentityLogonEvents
- Join queries across products using inner join , let statements, and union to correlate multi-stage attacks
- Build a chronological attack timeline that reconstructs the full kill chain across all data sources
- Save and organize shared hunting queries with MITRE ATT&CK technique tags
- Promote a hunting query to a custom detection rule with automated response actions
Before you start
- Completed XDR Lab 01 . Unified Incident Management . You should understand the Defender portal layout, incident correlation, and have verified telemetry from all products
- Microsoft 365 E5 or E5 Security add-on . Required for access to the unified advanced hunting console across MDE, MDO, MDI, and MDA data
- Security Reader or Security Operator role (minimum) . Needed to run advanced hunting queries. Security Administrator required to save shared queries and create detection rules
- Active telemetry from at least 2 Defender products . Endpoint (DeviceEvents) and Identity (IdentityLogonEvents) data must be flowing. Email (EmailEvents) and Cloud Apps (CloudAppEvents) are recommended
- Basic KQL proficiency . You should be comfortable with where , project , summarize , order by , and take operators. See KQL reference
- Familiarity with MITRE ATT&CK framework . Understanding of tactics (Initial Access, Execution, Lateral Movement, etc.) helps map hunting queries to adversary behaviors
The 8 steps
- Understand the Advanced Hunting Schema
- Query Device Events for Suspicious Process Execution
- Query Email Events for Phishing Indicators
- Query Identity Events for Credential Attacks
- Join Queries Across Products
- Build a Multi-Stage Attack Timeline
- Create Shared Hunting Queries
- Export Results and Create Detection Rules