CloseHandle, NtClose
Created the Monday 18 March 2019. Updated 2 years ago.
When a process is debugged, calling NtClose or CloseHandle with an invalid handle will generate a STATUS_INVALID_HANDLE exception.
The exception can be cached by an exception handler. If the control is passed to the exception handler, it indicates that a debugger is present.
Technique Tags
Code Snippets
Detection Rules
Additional Resources
External Links
The resources provided below are associated links that will give you even more detailed information and research on current evasion technique. It is important to note that, while these resources may be helpful, it is important to exercise caution when following external links. As always, be careful when clicking on links from unknown sources, as they may lead to malicious content.
Matching Samples 10 most recent
| Sample Name | Matching Techniques | First Seen | Last Seen |
|---|---|---|---|
| Scalper_Telegram@Val1312q.dll | 8 | 2025-10-21 | 3 days, 3 hours ago |
| HogwartsLegacy.exe | 7 | 2025-10-16 | 1 week ago |
| Lab01-04.exe | 6 | 2025-09-26 | 3 weeks, 6 days ago |
| botnpwds.exe | 10 | 2025-09-24 | 4 weeks, 1 day ago |
| DNS-C2.exe84-rednefed-swodniw-8snoci.exe | 6 | 2025-09-23 | 1 month ago |
| hid-tools.dll | 13 | 2025-09-22 | 1 month ago |
| DelphinDesktop.dll | 9 | 2025-08-31 | 1 month, 3 weeks ago |
| avbox.exe | 9 | 2025-08-31 | 1 month, 3 weeks ago |
| Krbtool.exe | 8 | 2025-08-11 | 2 months, 1 week ago |
| hemlockwin.exe | 8 | 2025-08-06 | 2 months, 2 weeks ago |