(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
4KVideoDownloaderPlusPortable.exe 8 2026-09-12 6 days, 12 hours ago
discord_game_sdk.dll 7 2026-09-08 1 week, 3 days ago
SSAStatement.exe 12 2026-08-14 1 month ago
poc.exe.bin.txt 6 2026-07-31 1 month, 2 weeks ago
Activator.exe 10 2026-07-30 1 month, 2 weeks ago
30fb52e4bd3c4866a7b6ccedcfa7...3440ca022986a6781af669272639 8 2026-06-25 2 months, 3 weeks ago
merged.exe 6 2026-04-24 4 months, 3 weeks ago
USBWatcher.exe 7 2026-04-18 5 months ago
CVE-2026-20817_PoC.exe 8 2026-04-09 5 months, 1 week ago
Raid.exe 7 2026-04-08 5 months, 1 week ago
View All

Created

June 22, 2022

Last Revised

March 27, 2026