(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
merged.exe 6 2026-04-24 6 days, 5 hours ago
USBWatcher.exe 7 2026-04-18 1 week, 5 days ago
CVE-2026-20817_PoC.exe 8 2026-04-09 3 weeks ago
Raid.exe 7 2026-04-08 3 weeks ago
b2a17fbdf536bd79dba9eb5e4ea3...0fdd7eb07ca6c5bdf73de001.exe 11 2026-04-07 3 weeks, 1 day ago
rootkit.exe 10 2026-03-24 1 month ago
spread.exe 6 2026-03-24 1 month ago
ngen.exe 7 2026-03-20 1 month, 1 week ago
UnPackMe_VMProtect_1.53.exe 7 2026-03-19 1 month, 1 week ago
main.exe 11 2026-02-07 2 months, 3 weeks ago
View All

Created

June 22, 2022

Last Revised

March 27, 2026