← Back to SOC feed Coverage →

PoetRat Python

yara LOW Yara-Rules
backdoorcommunity
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-07-13T23:00:01Z · Confidence: medium

Hunt Hypothesis

This detection identifies adversary activity involving the execution of PoetRat Python scripts, which are often used for initial reconnaissance and data exfiltration within cloud workloads. Proactively hunting for this behavior in Azure Sentinel is essential to uncover early-stage lateral movement or persistence mechanisms that may evade standard alerting due to their low severity classification.

YARA Rule

rule PoetRat_Python
{
    meta:
        Author = "Nishan Maharjan"
        Description = "A yara rule to catch PoetRat python scripts"
        Data = "6th May 2020"
    strings:

        // Any of the strings that stand out in the files, these are for the multiple python files, not just for a single file
        $encrptionFunction = "Affine"
        $commands = /version|ls|cd|sysinfo|download|upload|shot|cp|mv|link|register|hid|compress|jobs|exit|tasklist|taskkill/
        $domain = "dellgenius.hopto.org"
        $grammer_massacre = /BADD|Bad Error Happened|/
        $mayBePresent = /self\.DIE|THE_GUID_KEY/
        $pipe_out = "Abibliophobia23"
        $shot = "shot_{0}_{1}.png"
    condition:
        3 of them        
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 7 string patterns in its detection logic.

False Positive Guidance

Here are 4 specific false positive scenarios for the PoetRat Python detection rule in an enterprise environment, along with suggested filters and exclusions:

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