(YARA) Detect CloseHandle / NtClose Usage

Download Raw

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

Associated Techniques

Technique Name Technique ID's Categories Snippet(s)
CloseHandle, NtClose U0114 B0001.003

Matching Samples 10 most recent

Sample Name Matching Techniques First Seen Last Seen
CVE-2026-20817_PoC.exe 8 2026-04-09 1 week ago
Raid.exe 7 2026-04-08 1 week, 1 day ago
b2a17fbdf536bd79dba9eb5e4ea3...0fdd7eb07ca6c5bdf73de001.exe 11 2026-04-07 1 week, 2 days ago
rootkit.exe 10 2026-03-24 3 weeks, 2 days ago
spread.exe 6 2026-03-24 3 weeks, 2 days ago
ngen.exe 7 2026-03-20 3 weeks, 6 days ago
UnPackMe_VMProtect_1.53.exe 7 2026-03-19 4 weeks, 1 day ago
main.exe 11 2026-02-07 2 months, 1 week ago
main.exe 7 2026-02-03 2 months, 1 week ago
loader_complete.exe 10 2026-01-27 2 months, 2 weeks ago
View All

Created

June 22, 2022

Last Revised

March 27, 2026