(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
Temp_1.exe 7 2025-01-06 1 day, 22 hours ago
kernel32.dll 13 2024-12-30 1 week, 1 day ago
PerunsFart.exe 6 2024-12-25 1 week, 6 days ago
avbox.exe 6 2024-12-11 3 weeks, 6 days ago
avbox.exe 7 2024-12-11 3 weeks, 6 days ago
test.exe 7 2024-12-06 1 month ago
EternelSuspention.exe 8 2024-12-05 1 month ago
br1.dll 10 2024-12-03 1 month ago
lnl-msfvenom.exe 7 2024-12-02 1 month ago
satan_ransomware.exe 10 2024-11-30 1 month, 1 week ago
View All

Created

June 22, 2022

Last Revised

June 22, 2022