This rule detects the presence of Hatman malware by identifying its specific execution patterns and file artifacts within the Azure Sentinel environment. Proactive hunting for this threat is essential to uncover early-stage infections that may evade standard signature-based detection, allowing the SOC team to mitigate potential data exfiltration or lateral movement before escalation occurs.
rule hatman_compiled_python : hatman {
meta:
description = "Detects Hatman malware"
reference = "https://ics-cert.us-cert.gov/MAR-17-352-01-HatMan%E2%80%94Safety-System-Targeted-Malware"
date = "2017/12/19"
author = "DHS/NCCIC/ICS-CERT"
id = "fd156669-72b4-59a5-8f36-aac21d7b3105"
condition:
hatman_nullsub and hatman_setstatus and hatman_dividers
}
This YARA rule can be deployed in the following contexts:
Here are 4 specific false positive scenarios for the “Detects Hatman malware” rule, including suggested filters and exclusions tailored for an enterprise environment:
Scenario: Scheduled Antivirus Full Scan by Microsoft Defender
Process Name being MsMpEng.exe or Antimalware Service Executable, combined with a time-based filter to exclude alerts generated between 01:00 and 05:00 UTC during scheduled maintenance windows.Scenario: Endpoint Configuration Management via SCCM/Intune
HKLM\Software hive and creating new service entries, which overlaps significantly with Hatman’s persistence mechanisms.CcmExec.exe (SCCM) or IntuneManagementExtension.exe, specifically filtering out events related to “Policy Application” or “Software Deployment” actions that match the rule’s specific registry modification signatures.Scenario: Legacy Backup Agent Activity (Veeam/Commvault)
C:\ProgramData directory. Hatman malware is known to target similar directories; the backup agent’s process tree can be mis