Impact (TA0040)

Sub-technique: T1486 - Data Encrypted for Impact

Objective: Detect encryption of data to cause harm, such as ransomware attacks.

  1. Detect Encryption Tools in Use

DeviceProcessEvents
| where ProcessCommandLine has_any ("encrypt", "ransom")
| project Timestamp, DeviceName, ProcessCommandLine, InitiatingProcessAccountName, InitiatingProcessFileName, InitiatingProcessParentFileName
| order by Timestamp desc

Purpose: Identify the use of encryption tools associated with ransomware.

  1. Monitor for Mass File Renaming

DeviceFileEvents
| where ActionType == "FileRenamed"
| summarize eventCount = count() by FileName, DeviceName, InitiatingProcessAccountName, InitiatingProcessCommandLine, InitiatingProcessFileName
| where eventCount > 100
| project FileName, DeviceName, eventCount, InitiatingProcessAccountName, InitiatingProcessCommandLine, InitiatingProcessFileName
| order by eventCount desc

Purpose: Detect mass renaming of files that may indicate encryption.

  1. Detect Ransomware Note Files

DeviceFileEvents
| where FileName in ("ransomnote.txt", "readme.txt")
| project Timestamp, DeviceName, FileName, FolderPath, InitiatingProcessAccountName, InitiatingProcessCommandLine, InitiatingProcessFileName
| order by Timestamp desc

Purpose: Identify the creation of ransomware note files.

  1. Monitor for Unusual File Extensions

Purpose: Detect unusual file extensions that might indicate encryption.

  1. Detect File Deletion After Encryption

Purpose: Identify deletion of backup or temporary files after encryption.

  1. Monitor for Encryption via PowerShell

Purpose: Detect encryption commands executed via PowerShell.

  1. Detect Use of Known Ransomware Executables

Purpose: Identify known ransomware executables.

  1. Monitor for Suspicious Network Encryption Tools

Purpose: Detect network encryption tools that may be used maliciously.

  1. Detect Unusual Volume of File Modifications

Purpose: Identify a large number of file modifications, which may indicate encryption.

  1. Monitor for Attempts to Disable Antivirus

Purpose: Detect attempts to disable antivirus protections before encryption.

Last updated