This hunt hypothesis targets the specific execution patterns of The Gentlemen ransomware’s self-propagating Go-based encryptor to identify early-stage Windows locker activity before widespread file encryption occurs. Proactively hunting for this behavior in Azure Sentinel is critical due to its high severity and unique propagation mechanism, which allows adversaries to rapidly compromise environments before traditional signature-based detections trigger.
rule MAL_RANSOM_Gentlemen_Jun26_1 {
meta:
description = "Detects The Gentlemen ransomware Windows locker (Storm-2697), a self-propagating Go-based encryptor"
author = "Aryu-RU"
reference = "https://www.microsoft.com/en-us/security/blog/2026/05/28/the-gentlemen-ransomware-dissecting-a-self-propagating-go-encryptor/"
date = "2026-06-16"
hash1 = "22b38dad7da097ea03aa28d0614164cd25fafeb1383dbc15047e34c8050f6f67"
hash2 = "f918535f974591ef031bd0f30a8171e3da27a6754e6426a8ba095f83195661c8"
score = 80
id = "e93ade6d-c558-426c-b8b5-c6034baf6693"
strings:
$x1 = "README-GENTLEMEN.txt" ascii /* ransom note dropped into each encrypted directory */
$x2 = "gentlemen.bmp" ascii /* wallpaper dropped to %TEMP% and set as desktop background */
$x3 = "gentlemen_system" ascii /* scheduled task created for privilege escalation */
$s1 = "[+] Encryption started" ascii /* locker console output */
$s2 = "Encrypt only mapped" ascii /* '--shares' run option */
$s3 = "Silent mode" ascii /* '--silent' run option */
condition:
uint16(0) == 0x5A4D and filesize < 30MB
and (
2 of ($x*)
or ( 1 of ($x*) and 2 of ($s*) )
)
}
This YARA rule can be deployed in the following contexts:
This rule contains 6 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the Detects The Gentlemen ransomware Windows locker (Storm-2697) rule, including suggested filters and exclusions:
Scenario: Go-based Backup Agents Performing File Encryption
DOMAIN\VeeamBackupSvc) or filter out alerts where the parent process is a known backup executable (e.g., veeam.exe, rubrik-agent.exe). Additionally, exclude file paths within dedicated backup directories like C:\Veeam\Backups or D:\RubrikSnapshots.Scenario: Scheduled Go-based Deployment Scripts
--deploy, --sync, or --backup and are initiated by the Task Scheduler (svchost.exe -k netsvcs) with a known task name like “NightlyGoDeployment”.