This detection identifies adversary activity where malicious processes or scripts utilize the setstatus command to manipulate system states, potentially indicating early-stage reconnaissance or command-and-control signaling within the Azure environment. Proactively hunting for this behavior allows the SOC team to uncover stealthy lateral movement attempts that may evade standard alerting thresholds due to their low severity classification.
rule hatman_setstatus : hatman {
meta:
id = "1d5d5568-8a65-510f-a49f-aa551fb9c7a2"
strings:
$preset = { 80 00 40 3c 00 00 62 80 40 00 80 3c 40 20 03 7c
?? ?? 82 40 04 00 62 80 60 00 80 3c 40 20 03 7c
?? ?? 82 40 ?? ?? 42 38 }
condition:
$preset
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the hatman_setstatus detection rule in an enterprise environment, along with suggested filters:
Scenario: Automated Patch Deployment via SCCM/Intune
hatman_setstatus process to mark patch installation states as “Success” or “Pending” during nightly maintenance windows.ccmexec.exe (SCCM) or Microsoft.IntuneManagementService.exe, and restrict the rule trigger to business hours (e.g., 08:00–18:00) if these updates are known to run outside this window.Scenario: Endpoint Detection and Response (EDR) Health Checks
hatman_setstatus as a sub-process during their internal health check routines. This occurs when the agent verifies its own status with the management console, triggering the rule without indicating an actual threat./healthcheck, /status-report, or --agent-ping. Alternatively, whitelist the specific file path of the EDR agent’s status module (e.g., C:\Program Files\CrowdStrike\FalconAgent\hatman_setstatus.exe).Scenario: Scheduled Group Policy Application