Advanced hunting in Microsoft Defender XDR to detect ransomware indicators
SUMMARY
Microsoft has published methods using Defender XDR's advanced hunting queries to proactively detect common pre-encryption ransomware behaviors—such as process termination, service disabling, backup and shadow copy deletion, and event log clearing. The guidance includes integrated queries that weight multiple indicators to prioritize hosts, along with several concrete KQL examples (for example: detecting 10+ process terminations by taskkill.exe or 10+ log deletions by wevtutil).
Microsoft's documentation shows how to actively detect common pre-ransomware behaviors via advanced hunting queries that can run on Defender XDR (and Microsoft Sentinel). The focus is on actions that commonly occur before encryption, including process terminations, service disablement, deletion of shadow copies and backups, event log clearing, and changes to boot configuration.
The article provides multiple concrete Kusto Query Language (KQL) examples for detecting individual signs. Examples include a query to detect 10 or more process terminations by taskkill.exe, a similar detection for net stop, a query to detect operations using cipher.exe with the /w flag that wipe multiple drives in a short time, and a query to detect 10 or more log deletions by wevtutil.
Because single detections often generate many false positives, the documentation also presents a method that aggregates and weights multiple indicators—a unified query—to check whether multiple attack indicators appear on the same endpoint and thus identify high-priority devices. The documentation is intended for direct copying and execution in Microsoft's advanced hunting editor.
A caution notes that many of the behaviors described can also occur during legitimate administrative activity, so it is recommended to verify whether multiple indicators are present on the same host. Accessing the document requires authentication, and running the queries requires a Defender XDR environment and appropriate permissions.
- #ransomware
- #advanced hunting
- #Defender XDR
Source
Microsoft — https://learn.microsoft.com/en-us/defender-xdr/advanced-hunting-find-ransomwareThis article summarizes the content of the source below. Refer to the original source for accuracy. Last updated: October 30, 2026
Was this article helpful?
Written & reviewed

Reviewed byYutaro SasaoFounder & CEO, MediaLeap Inc.
CEO of MediaLeap Inc. Working on both sides of web advertising and web media since 2013; founded the company in May 2025.
Review scope: cross-checking against primary sources (official and government announcements), verifying claims stay within the facts, and checking source attribution。Last reviewed:
Written by:Leak Watch editorial team (AI-assisted drafts verified against sources by the editorial team) · Reviewer profile · Request a correction