/*
    YARA Hunting Rules for Predatorthief (Backdoor)
    Source: SystemHelpDesk Malware Families Catalog
    Reference: https://malware-families-catalog.systemhelpdesk.com/families/predatorthief
    License: Apache-2.0
    Generated: 2026-10-16
*/

rule MALWARE_WIN_PREDATORTHIEF_T1_ARTIFACT
{
    meta:
        description = "Tier 1 Primitive Artifact: Raw string matches for Predatorthief (Backdoor)"
        category = "Backdoor"
        tier = "T1 - Primitive Artifact"
        confidence = "Medium (Fast Triage)"
        author = "SystemHelpDesk Threat Research Desk"
        reference = "https://malware-families-catalog.systemhelpdesk.com/families/predatorthief"
        date = "2026-10-16"
    strings:
        $fam_name = "predatorthief" ascii wide nocase
        $alias_1 = "trojan.predatorthethief" ascii wide nocase
        $alias_2 = "pws.predator" ascii wide nocase
        $alias_3 = "trojanspy.predatorthief" ascii wide nocase
    condition:
        uint16(0) == 0x5a4d and any of them
}

rule MALWARE_WIN_PREDATORTHIEF_T3_ATTRIBUTION
{
    meta:
        description = "Tier 3 Attribution Fingerprint: Heuristic detection for Predatorthief tradecraft"
        category = "Backdoor"
        tier = "T3 - Attribution Fingerprint"
        confidence = "High (Confirmed Family Signature)"
        author = "SystemHelpDesk Threat Research Desk"
        reference = "https://malware-families-catalog.systemhelpdesk.com/families/predatorthief"
        date = "2026-10-16"
    strings:
        $attrib_str = "predatorthief" ascii wide nocase
        $pe_magic = "MZ" ascii
        $net_marker1 = "http" ascii nocase
        $net_marker2 = "POST" ascii
        $net_marker3 = "User-Agent:" ascii nocase
        $rat_marker1 = "SetWindowsHookEx" ascii
        $rat_marker2 = "CurrentVersion\\Run" ascii wide nocase
        $shell_marker = "cmd.exe" ascii wide nocase
    condition:
        uint16(0) == 0x5a4d and $attrib_str and (2 of ($rat_marker*, $shell_marker))
}
