(YARA) Detect CsrGetProcessID Usage
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 | Categories | Snippet(s) |
|---|---|---|---|
| CsrGetProcessID | U0115 |
|
Created
June 22, 2022
Last Revised
March 27, 2026