This detection rule identifies the presence of Hatman malware by monitoring for its specific behavioral signatures within the Azure Sentinel environment. Proactive hunting is essential to uncover early-stage infections that may evade standard alerts, allowing the SOC team to mitigate potential data exfiltration or lateral movement before the threat escalates.
rule hatman_payload : 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 = "9ef57fca-a536-5937-8510-b410f735a73e"
condition:
( hatman_memcpy and hatman_origcode and hatman_mftmsr ) and not ( hatman_origaddr and hatman_loadoff )
}
This YARA rule can be deployed in the following contexts:
Here are 5 specific false positive scenarios for the “Detects Hatman malware” rule, including suggested filters and exclusions tailored for an enterprise environment:
Scenario: Antivirus Engine Scanning via Scheduled Task
MsMpEng.exe or csagent.exe) when running under the “SYSTEM” account during the defined maintenance window (e.g., 02:00–04:00 UTC). Exclude process hashes known to be part of the AV engine.Scenario: Deployment of Patched Applications via Configuration Management
ccmexec.exe) or specific deployment service accounts (e.g., DOMAIN\DeploySvc). Additionally, whitelist file paths located in standard software update directories such as C:\Program Files\Microsoft Update or C:\Windows\System32\ccm.Scenario: Backup Agent Performing File Integrity Checks