Microsoft Defender XDR
General

Hunt for ransomware

In brief

The article was updated with a new introductory description and additional explanations for the taskkill.exe process-stop and cipher.exe multi-drive data-deletion queries. The publication date was also updated.

What Defender admins need to know

Security teams get clearer context for interpreting these ransomware-related hunting queries.

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.

Hunt for ransomware

[!INCLUDE Microsoft Defender XDR rebranding]This article shows you how to use advanced hunting queries in Microsoft Defender XDR to proactively detect signs of ransomware activity on devices. The queries target common pre-encryption behaviors—such as stopping processes, disabling services, deleting backups, and clearing event logs—and include a consolidated query that weighs multiple indicators to help you prioritize the devices that need immediate attention.

Ransomware threat overview

[!INCLUDE Microsoft Defender XDR rebranding]

Ransomware evolved rapidly from being simple commodity malware affecting individual computer users to an enterprise threat that is severely impacting industries and government institutions. Microsoft Defender XDR provides many capabilities that detect and block ransomware and associated intrusion activities. However, proactively checking for signs of compromise can help keep your network protected.

Stopping multiple processes using taskkill.exe

This query checks for attempts to stop at least 10 separate processes using the taskkill.exe utility. Ransomware often uses taskkill.exe to terminate security tools or business applications before encryption. Run the taskkill.exe process-stop detection query

// Find attempts to stop processes using taskkill.exe

Deletion of data on multiple drives using cipher.exe

This query checks for attempts to delete data on multiple drives using cipher.exe. This activityDeleting data on multiple drives using cipher.exe is typically done by ransomware to prevent recovery of data after encryption. Run the cipher.exe multi-drive data deletion detection query

// Look for cipher.exe deleting data from multiple drives