T05 · Unauthorized Access and Privilege Escalation
- Location
index.js:55- Finding
Unrestricted Host Code Execution Without Isolation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill openly runs local Node.js code, but it is framed as safe while giving that code broad access to the host system without real isolation.
Install this only if you intentionally want the agent to run trusted JavaScript with the same local access as the skill process. Do not use it for code derived from untrusted webpages, prompts, files, or users unless it is placed behind a real sandbox such as a disposable container with limited files, scrubbed environment variables, and restricted networking. Pin dependencies before deployment.
index.js:55Unrestricted Host Code Execution Without Isolation
index.js:14Timeout Does Not Reliably Terminate Spawned Process Trees
index.js:70Temporary Task Source Is Not Cleaned Up on All Failure Paths
This code takes user-supplied JavaScript, writes it to disk, and executes it with Node.js, which grants arbitrary code execution on the local system. An attacker can use this to read or modify files, access environment secrets, run network requests, install persistence, or invoke additional system commands through Node APIs, making the host fully compromiseable within the process's privileges.
The skill explicitly states it can execute Node.js snippets or full scripts locally on the host machine, but it does not prominently warn users that this enables arbitrary code execution on the local system. In an agent ecosystem, that omission is security-relevant because users or downstream components may invoke it without understanding that it has direct host execution capability, increasing the risk of accidental misuse or privilege abuse.
The dependency is specified with a caret range (^9.0.0), which permits automatic installation of newer 9.x releases and prevents reproducible builds. This increases supply-chain risk because different environments may resolve different versions, including a newly introduced vulnerable or compromised release.
"author": "OpenClaw",
"license": "MIT",
"dependencies": {
"uuid": "^9.0.0"
}
}
The manifest references uuid without an exact pinned version, while an advisory exists for some releases. Because the allowed range may resolve to an affected version and the actual installed version is unverifiable from this file alone, the package may include a known vulnerable release depending on when and how it is installed.
Detected: suspicious.dangerous_exec