T09 · Insecure Skill Coding Practices
- Location
scripts/install_watchdog_admin.bat:27- Finding
Elevated Installer Terminates Unrelated Node.js and Windows Script Host Processes
- Content
View full analysis
Vulnerability Details
File Location:
scripts/install_watchdog_admin.bat, lines 27–28
Vulnerability Type: Unscoped elevated process termination
Risk Level: MediumVulnerable Code
bat taskkill /f /im wscript.exe >nul 2>&1 taskkill /f /im node.exe >nul 2>&1Technical Analysis
The documented installation procedure instructs the user to run this batch file as Administrator. The script then uses
taskkill /f /imto forcibly terminate every accessible process whose image name iswscript.exeornode.exe.The operation is not restricted to the OpenClaw Gateway process, its scheduled task, its command line, or a previously recorded process ID. Consequently, authorization to restart the Gateway is expanded into authority to terminate unrelated Node.js and Windows Script Host processes, including processes in other user sessions when permitted by the installer’s elevated token.
This is a reachable coding defect rather than evidence of malicious intent. The scheduled-task changes and hidden launchers are disclosed as part of the Skill’s watchdog functionality.
Attack Path
- An administrator follows the documented deployment instructions and runs
install_watchdog_admin.batwith elevated privileges. - An unrelated user or application has an active process named
node.exeorwscript.exe. - The installer reaches lines 27–28 while restarting the Gateway.
taskkill /f /immatches processes solely by executable image name.- Windows forcibly terminates all matching processes accessible to the elevated installer, not only the OpenClaw Gateway.
No attacker-controlled command injection is required. The affected processes only need to use one of the broadly targeted executable names when the installer runs.
Impact Assessment
The defect can cause cross-user or system-wide denial of service against unrelated Node.js applications and Windows Script Host workloads. It may interrupt development servers, automation, servic ...[truncated 297 chars]
- An administrator follows the documented deployment instructions and runs
- Remediation
View remediation
Remediation Suggestions
- Stop only the intended scheduled task, for example:
bat schtasks /End /TN "OpenClaw Gateway"- Restart the Gateway through its named scheduled task rather than killing processes by image name.
- If direct termination is unavoidable, record the Gateway PID when it starts and verify the PID’s executable path and command line before terminating it.
- Do not use
/IM node.exeor/IM wscript.exefrom an elevated installer because those executable names are shared by unrelated applications. - Handle stop and restart failures explicitly and abort rather than falling back to system-wide process termination.
