(YARA) Detect CloseHandle / NtClose Usage
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 |
|---|---|---|---|
| airgpu-5d6531e9-49i1wd.exe | 11 | 2026-10-24 | 1 week, 3 days ago |
| airgpu-1050a2df-yogzjf.exe | 11 | 2026-10-24 | 1 week, 3 days ago |
| airgpu-ded8c03b-bokslz.exe | 11 | 2026-10-24 | 1 week, 3 days ago |
| setup.exe | 12 | 2026-10-04 | 4 weeks, 1 day ago |
| new.exe | 8 | 2026-09-29 | 1 month ago |
| 4KVideoDownloaderPlusPortable.exe | 8 | 2026-09-12 | 1 month, 3 weeks ago |
| discord_game_sdk.dll | 7 | 2026-09-08 | 1 month, 3 weeks ago |
| SSAStatement.exe | 12 | 2026-08-14 | 2 months, 2 weeks ago |
| poc.exe.bin.txt | 6 | 2026-07-31 | 3 months ago |
| Activator.exe | 10 | 2026-07-30 | 3 months ago |
Created
June 22, 2022
Last Revised
March 27, 2026