subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
pass try: subprocess.run(["taskkill", "/F", "/IM", "python.exe"], capture_output=True, timeout=10) except Exception: pass- Confidence
- 99% confidence
- Finding
- This command force-kills every python.exe process on the host, far exceeding the scope of managing a single ComfyUI service. In an agent skill context, invoking stop/restart can terminate unrelated applications, automation, notebooks, or security tooling, causing denial of service and potential data loss.
