Windows API reference
TerminateProcess
Terminates a process and all of its threads.
- Library
- Kernel32.dll
- Category
- Evasion
- Suspicion
- medium
- MITRE ATT&CK
- T1685 Disable or Modify Tools
Detection summary
TerminateProcess 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 (direct documentation)
Not yet human-reviewed. Page metadata generated .
Legitimate use
Task managers, installers, update services and security tools that need to stop a process.
Related APIs
- NtTerminateProcess — Ntdll.dll