(YARA) YARA_Detect_CsrGetProcessID

Download Raw

rule Detect_CsrGetProcessID: AntiDebug {
    meta: 
        description = "Detect CsrGetProcessID as anti-debug"
        author = "Unprotect"
        comment = "Experimental rule"
    strings:
        $1 = "CsrGetProcessID" fullword ascii
        $2 = "GetModuleHandle" fullword ascii
    condition:   
       uint16(0) == 0x5A4D and filesize < 1000KB and 2 of them 
}

Associated Techniques

Technique Name Technique ID's Snippet(s) OS
CsrGetProcessID U0115

Created

June 22, 2022

Last Revised

June 22, 2022