This hunt targets adversary behavior characterized by the execution of known Locky or Kuluoz ransomware payloads to identify early-stage encryption activities before data exfiltration occurs. Proactively hunting for these signatures in Azure Sentinel is critical because their current low severity rating may cause them to be overlooked amidst high-volume noise, necessitating manual verification to prevent potential widespread data loss.
rule Locky_Ransomware : ransom {
meta:
description = "Detects Locky Ransomware (matches also on Win32/Kuluoz)"
author = "Florian Roth (with the help of binar.ly)"
reference = "https://goo.gl/qScSrE"
date = "2016-02-17"
hash = "5e945c1d27c9ad77a2b63ae10af46aee7d29a6a43605a9bfbf35cebbcff184d8"
strings:
$o1 = { 45 b8 99 f7 f9 0f af 45 b8 89 45 b8 } // address=0x4144a7
$o2 = { 2b 0a 0f af 4d f8 89 4d f8 c7 45 } // address=0x413863
condition:
all of ($o*)
}
This YARA rule can be deployed in the following contexts:
This rule contains 2 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the Locky Ransomware / Win32:Kuluoz detection rule in an enterprise environment, along with suggested filters or exclusions:
Antivirus Engine Updates and Scans
MsMpEng.exe, ccSvcHst.exe, or Cnsys.exe) accesses and temporarily locks thousands of files in common directories (like %TEMP% or C:\ProgramData), mimicking the rapid file access patterns associated with Locky.MsMpEng.exe, ccSvcHst.exe) and restrict detection to non-standard user directories (excluding %TEMP%, %LOCALAPPDATA%\Temp, and the specific installation paths of the AV software).Enterprise Backup and Imaging Agents
C:\Users) to create snapshots or incremental backups. The high volume of file metadata changes and temporary lock states can trigger the heuristic logic for Win32:Kuluoz/Locky.VeeamAgent.exe, SimAgent.exe, AcronisService.exe) from the detection rule. Additionally, add a time-based filter to suppress alerts for these specific process names during known maintenance windows (e.g., 02:00 – 05:00 local time