(YARA) YARA_Detect_CloseHandle

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 Snippet(s) OS
CloseHandle, NtClose U0114 B0001.003

Matching Samples 10 most recent

Sample Name Matching Techniques First Seen Last Seen
ZAP.exe 6 2025-04-26 3 days, 3 hours ago
TCS30Autoplay_Net.exe 6 2025-04-25 5 days, 7 hours ago
SetupEngine.exe 8 2025-04-23 1 week ago
FBH.dll 10 2025-03-22 1 month, 1 week ago
MS-RPRN.exe 7 2025-03-12 1 month, 2 weeks ago
RustPatchlessCLRLoader.exe 8 2025-03-07 1 month, 3 weeks ago
stub_modified.exe 7 2025-02-18 2 months, 1 week ago
payload.exe 7 2025-02-18 2 months, 1 week ago
encrypt.exe 7 2025-02-18 2 months, 1 week ago
twain_32.dll 7 2025-02-17 2 months, 1 week ago
View All

Created

June 22, 2022

Last Revised

June 22, 2022