(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
rootkit.exe 10 2026-03-24 3 days, 6 hours ago
spread.exe 6 2026-03-24 3 days, 6 hours ago
ngen.exe 7 2026-03-20 1 week ago
UnPackMe_VMProtect_1.53.exe 7 2026-03-19 1 week, 1 day ago
main.exe 11 2026-02-07 1 month, 2 weeks ago
main.exe 7 2026-02-03 1 month, 3 weeks ago
loader_complete.exe 10 2026-01-27 1 month, 3 weeks ago
Torture.exe 9 2025-12-16 3 months, 1 week ago
cmd.exe 7 2025-12-10 3 months, 2 weeks ago
setup.exe 11 2025-12-09 3 months, 2 weeks ago
View All

Created

June 22, 2022

Last Revised

March 27, 2026