CloseHandle, NtClose

Created the Monday 18 March 2019. Updated 1 year, 1 month 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 Identifiers

U0114 B0001.003

Technique Tags

closehandle ntclose


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
cascade-injection.exe 6 2024-11-17 19 hours, 43 minutes ago
System.Transactions.dll 10 2024-11-15 2 days, 10 hours ago
System.EnterpriseServices.Wrapper.dll 7 2024-11-15 2 days, 10 hours ago
System.EnterpriseServices.dll 9 2024-11-15 2 days, 10 hours ago
MSBuild.exe 10 2024-11-15 2 days, 13 hours ago
1_2023-09-12_12-04.exe 6 2024-11-15 3 days, 1 hour ago
Desktops.exe 7 2024-11-14 3 days, 13 hours ago
9124d7696d2b94e7959933c3f7a8...ce29cd5934a4d0379c2193b126be 8 2024-11-14 3 days, 15 hours ago
86298.EXE 6 2024-11-14 3 days, 18 hours ago
Postman.exe 9 2024-11-14 3 days, 19 hours ago
View All

Sleeping Alien

Subscribe to our Newsletter

Don't miss out on the latest and greatest updates from us! Subscribe to our newsletter and be the first to know about exciting content and future updates.