← Back to SOC feed Coverage →

ransom-note-creation-macos

kql MEDIUM Azure-Sentinel
DeviceFileEventsDeviceProcessEvents
backdoorhuntingmicrosoftofficialransomware
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-05-23T03:15:01Z · Confidence: medium

Hunt Hypothesis

Adversaries may be creating ransom notes on macOS systems to signal the start of a ransomware attack, indicating potential data encryption and extortion. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify early signs of ransomware activity and mitigate impact before encryption occurs.

KQL Query

union DeviceFileEvents, DeviceProcessEvents  
| where Timestamp >= ago(7d)  
| where ProcessCommandLine has "say \\\"Your files are encrypted\\\" waiting until completion false"

Analytic Rule Definition

id: fbe63fdf-142f-4b0a-b73e-8f16aaf46be7
name: ransom-note-creation-macos
description: |
  This query was originally published in the threat analytics report, EvilQuest signals the rise of Mac ransomware.
  As of the time of this writing (October 2020), ransomware designed to target macOS is relatively rare. EvilQuest is one of the few examples of this kind of malware on the platform.
  The query below can detect the creation of a ransom note according to the typical methods of EvilQuest operators. The command the query searches for is associated with, but not definitely indicative of, EvilQuest infections.
  Other queries related to EvilQuest ransomware can be found under the See also section below.
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - DeviceFileEvents
  - DeviceProcessEvents
tactics:
- Impact
query: |
  union DeviceFileEvents, DeviceProcessEvents  
  | where Timestamp >= ago(7d)  
  | where ProcessCommandLine has "say \\\"Your files are encrypted\\\" waiting until completion false"

Required Data Sources

Sentinel TableNotes
DeviceFileEventsEnsure this data connector is enabled
DeviceProcessEventsEnsure this data connector is enabled

MITRE ATT&CK Context

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Impact/ransom-note-creation-macos.yaml