Process
taskkill.exe
taskkill.exe is the command-line tool for ending running processes, by name or process ID, on the local machine or a remote one. Administrators use it to close hung or unwanted programs. Attackers use it to shut down antivirus, EDR, and other defenses, and to kill the applications and databases that would otherwise block file encryption.
File identity
Not observed.
Not observed.
Not observed.
Not observed.
Execution context
Not observed.
Not observed.
Not observed.
Not observed.
Not observed.
Not observed.
Ancestry
Not observed.
Not observed.
Not observed.
Not observed.
Behavior
Not observed.
Not observed.
Not observed.
Not observed.
Indicators
Not observed.
Analysis
taskkill.exe terminates processes. It selects them by image name with /im (for example /im notepad.exe) or by process ID with /pid, /f forces termination, and /t ends the whole process tree including children. With /s <host> and credentials it can kill processes on a remote machine. The genuine binary lives at C:\Windows\System32\taskkill.exe.
Legitimately, taskkill is run by administrators, scripts, and installers to close or restart programs. The process it targets, and whether the kill is forced or sweeping, are what give an instance meaning. Ending a single hung app is routine. Killing security software, or a long list of processes at once, is not.
taskkill.exe is a straightforward way to blind defenses (T1685). taskkill /f /im <security tool>.exe terminates antivirus, EDR, or logging agents so monitoring goes dark before the next stage. A taskkill aimed at known security-product process names, especially several in quick succession, is high-signal. It only works where the target is not a protected process, which is exactly why many EDRs now run as protected (PPL) to resist being killed this way.
It is also part of ransomware preparation (T1489). Before encrypting, an operator kills the processes and database or backup agents that hold files open or could interfere, so the encryptor can reach every file. A burst of taskkill against database engines (sqlservr.exe, Oracle), backup agents, and Office applications just before mass file changes is a recognizable pre-encryption pattern. Because taskkill is a normal admin tool, the targeted process names, the breadth of the kill, and the parent are what separate maintenance from sabotage.
- Image path other than
C:\Windows\System32\taskkill.exehigh /imor/pidtargeting an antivirus, EDR, or other security processhigh- A sequence killing many processes (security tools, databases, backup agents)high
/f /tforce-killing trees of security or business-critical processeshigh- Parent is an Office application, a script host, or an unfamiliar processhigh
- A remote target,
/s <host>med
Telemetry
Not observed.
Not observed.