← Back to SOC feed Coverage →

hatman compiled python

yara LOW Yara-Rules
community
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Yara-Rules →
Retrieved: 2026-06-30T11:00:00Z · Confidence: medium

Hunt Hypothesis

This detection identifies adversaries utilizing Hatman to compile Python scripts into executable binaries, a technique designed to evade static analysis and signature-based defenses by obscuring source code. SOC teams should proactively hunt for this behavior in Azure Sentinel to uncover stealthy command-and-control or payload delivery mechanisms that might otherwise bypass traditional script monitoring controls.

YARA Rule

rule hatman_compiled_python : hatman {
    condition:
        filesize < 100KB and hatman_nullsub and hatman_setstatus and hatman_dividers
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

False Positive Guidance

Here are 4 specific false positive scenarios for the hatman_compiled_python detection rule in an enterprise environment, including suggested filters and exclusions:

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/MALW_TRITON_HATMAN.yar