(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
c09065e575639c63ee5e74b4def1...a5454d3a98302478f7840338.exe 8 2025-11-05 2 weeks, 6 days ago
Lightshot.exe 10 2025-10-24 1 month ago
Scalper_Telegram@Val1312q.dll 8 2025-10-21 1 month ago
HogwartsLegacy.exe 7 2025-10-16 1 month, 1 week ago
Lab01-04.exe 6 2025-09-26 1 month, 4 weeks ago
botnpwds.exe 10 2025-09-24 2 months ago
DNS-C2.exe84-rednefed-swodniw-8snoci.exe 6 2025-09-23 2 months ago
hid-tools.dll 13 2025-09-22 2 months ago
DelphinDesktop.dll 9 2025-08-31 2 months, 3 weeks ago
avbox.exe 9 2025-08-31 2 months, 3 weeks ago
View All

Created

June 22, 2022

Last Revised

June 22, 2022