Severity: Warning
File: src/Servy.Core/Helpers/ProcessKiller.cs, line 330
Description:
KillProcessesUsingFile calls KillProcessTreeAndParents(procInfo.ProcessName) using the process name returned by handle64.exe. If the name matches an unrelated system process (e.g., svchost, csrss), it will attempt to kill it.
procInfo.ProcessId is available from the parsed output but is not used. Killing by PID would be much safer and more precise.
Suggested fix:
Use KillProcessTreeAndParents with the process ID instead of the process name, or add a safelist check to prevent killing critical system processes.
Severity: Warning
File:
src/Servy.Core/Helpers/ProcessKiller.cs, line 330Description:
KillProcessesUsingFilecallsKillProcessTreeAndParents(procInfo.ProcessName)using the process name returned byhandle64.exe. If the name matches an unrelated system process (e.g.,svchost,csrss), it will attempt to kill it.procInfo.ProcessIdis available from the parsed output but is not used. Killing by PID would be much safer and more precise.Suggested fix:
Use
KillProcessTreeAndParentswith the process ID instead of the process name, or add a safelist check to prevent killing critical system processes.