Microsoft Defender XDR
Hunting and detection

Advanced hunting overview in Microsoft Defender - Microsoft Defender XDR | Microsoft Learn

In brief

The overview’s title, headings, setup instructions, RBAC label, and retention references now use “Microsoft Defender” instead of “Microsoft Defender XDR.” Metadata and ontology links were also updated.

What Defender admins need to know

Use the updated terminology when locating or referencing this documentation. No administrator action is stated.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Advanced hunting overview in Microsoft Defender XDR - Microsoft Defender XDR | Microsoft Learn

Advanced hunting is a query-based threat hunting tool that you use to explore up to 30 days of raw Defender XDR data. When you onboard a Microsoft Sentinel workspace, you can also query analytics-tier data according to the retention configured for the workspace. You can proactively inspect events in your network to locate threat indicators and entities. The flexible access to data enables unconstrained hunting for both known and potential threats.

Advanced hunting supports two modes: guided and advanced. Use guided mode if you're not yet familiar with Kusto Query Language (KQL) or if you prefer the convenience of a query builder. Use advanced mode if you're comfortable using KQL to create queries from scratch.

  • Microsoft Defender for Identity
  • Microsoft Sentinel

To use advanced hunting, turn on Microsoft Defender. To use advanced hunting with Microsoft Sentinel, connect Microsoft Sentinel to the Defender portal.

For more information on advanced hunting in Microsoft Defender for Cloud Apps data, see Advanced hunting in Defender for Cloud Apps (video).

You need to be assigned permissions before you can run advanced hunting queries. You have the following options:

Quota or parameter Size Refresh cycle Description
Date range 30 days for native Defender XDR data. Microsoft Sentinel table retention depends on the configured analytics-tier retention. Every query Each query can look up native Defender XDR data from up to the past 30 days. When you onboard a Microsoft Sentinel workspace, the available date range for its tables depends on the configured analytics-tier retention.
Result set 100,000 rows Every query Each query can return up to 100,000 records.
Timeout 10 minutes Every query Each query can run for up to 10 minutes. If it doesn't complete within 10 minutes, the service displays an error.
CPU resources Based on tenant size Every 15 minutes The portal displays a warning whenever a query runs and the tenant consumes over 10% of allocated resources. Queries are blocked if the tenant reaches 100% until after the next 15-minute cycle.

Extend data retention

To retain supported Defender XDR hunting tables for more than 30 days, onboard a Microsoft Sentinel workspace and configure the tables' analytics-tier retention. For more information, see Configure table settings in Microsoft Sentinel.

You can also stream Defender XDR data to external services for longer retention. For more information, see: