/*
    YARA Hunting Rules for Mz0A4Gxuisb (Trojan)
    Source: SystemHelpDesk Malware Families Catalog
    Reference: https://malware-families-catalog.systemhelpdesk.com/families/mz0a4gxuisb
    License: Apache-2.0
    Generated: 2026-10-16
*/

rule MALWARE_WIN_MZ0A4GXUISB_T1_ARTIFACT
{
    meta:
        description = "Tier 1 Primitive Artifact: Raw string matches for Mz0A4Gxuisb (Trojan)"
        category = "Trojan"
        tier = "T1 - Primitive Artifact"
        confidence = "Medium (Fast Triage)"
        author = "SystemHelpDesk Threat Research Desk"
        reference = "https://malware-families-catalog.systemhelpdesk.com/families/mz0a4gxuisb"
        date = "2026-10-16"
    strings:
        $fam_name = "mz0a4gxuisb" ascii wide nocase
        $alias_1 = "trojan.generic.mz0a4gxuisb" ascii wide nocase
        $alias_2 = "malware.obfuscated.dga" ascii wide nocase
        $alias_3 = "win32/trojan.heur" ascii wide nocase
    condition:
        uint16(0) == 0x5a4d and any of them
}

rule MALWARE_WIN_MZ0A4GXUISB_T3_ATTRIBUTION
{
    meta:
        description = "Tier 3 Attribution Fingerprint: Heuristic detection for Mz0A4Gxuisb tradecraft"
        category = "Trojan"
        tier = "T3 - Attribution Fingerprint"
        confidence = "High (Confirmed Family Signature)"
        author = "SystemHelpDesk Threat Research Desk"
        reference = "https://malware-families-catalog.systemhelpdesk.com/families/mz0a4gxuisb"
        date = "2026-10-16"
    strings:
        $attrib_str = "mz0a4gxuisb" ascii wide nocase
        $pe_magic = "MZ" ascii
        $net_marker1 = "http" ascii nocase
        $net_marker2 = "POST" ascii
        $net_marker3 = "User-Agent:" ascii nocase
        $steal_marker1 = "Login Data" ascii wide nocase
        $steal_marker2 = "Cookies" ascii wide nocase
        $vault_marker = "CryptUnprotectData" ascii
    condition:
        uint16(0) == 0x5a4d and $attrib_str and (1 of ($steal_marker*) or $vault_marker)
}
