(YARA) YARA_Detect_CloseHandle
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 |
---|---|---|---|
wireguard-installer.exe | 7 | 2025-06-12 | 1 hour, 34 minutes ago |
131da83b521f610819141d5c7403...abb22ef504a7593955a65f07.exe | 9 | 2025-06-12 | 3 hours, 28 minutes ago |
MSBuild.exe | 10 | 2024-11-15 | 8 hours, 32 minutes ago |
RuntimeBroker.exe | 11 | 2025-06-05 | 6 days, 22 hours ago |
tel.exe | 13 | 2025-06-01 | 1 week, 4 days ago |
cobalt_sample.exe | 13 | 2025-05-25 | 2 weeks, 4 days ago |
flushes.exe | 7 | 2025-05-24 | 2 weeks, 4 days ago |
unload_sysmon_x64.exe | 6 | 2025-05-18 | 3 weeks, 4 days ago |
ZAP.exe | 6 | 2025-04-26 | 1 month, 2 weeks ago |
TCS30Autoplay_Net.exe | 6 | 2025-04-25 | 1 month, 2 weeks ago |
Created
June 22, 2022
Last Revised
June 22, 2022