Windows API reference
NtTerminateProcess
Terminates a process and its threads by handle.
- Library
- Ntdll.dll
- Category
- Evasion
- Suspicion
- medium
- MITRE ATT&CK
- Not mapped
Detection summary
NtTerminateProcess maps to Sysmon Event 5 and Microsoft-Windows-Kernel-Process; these events record the OS effect, not the API call.
- Sysmon: Sysmon Event 5
- ETW: Microsoft-Windows-Kernel-Process
- Notes: Sysmon Event 5 records process termination; it confirms the exit but not the code path that requested it. Microsoft-Windows-Kernel-Process provides process, thread and image lifecycle events when enabled.
Sources and documentation
- Microsoft Learn documentation (equivalent API documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Task managers, installers and security tools that need to terminate a process by handle.
Related APIs
- TerminateProcess — Kernel32.dll