cmd-execution-test
A system diagnostic tool with powerful arbitrary shell execution capabilities that could be exploited for malicious purposes despite legitimate declared use cases.
Why this conclusion was reached
2/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
1 high-risk artifacts or egress signals were extracted.
The report includes 5 attack-chain steps and 0 severe findings.
Dependencies are present but no obvious high-risk issue stands out.
Attack Chain
Entry · SKILL.md:1
manipulation · cmd-executor.mjs:41
Escalation · cmd-executor.mjs:43
reconnaissance · examples/test-commands.json:165
Impact · examples/test-commands.json:170
What drove the risk score up
--cmd parameter allows any shell command without validation
systeminfo reveals Windows product keys and detailed hardware info
Hardcoded 8.8.8.8 (Google DNS) used for ping/traceroute tests
No explicit credential theft code found
No external data transmission beyond stdout
Behaviors are declared in SKILL.md and skill-card.md
Most important evidence
Unrestricted Custom Command Execution
The --cmd parameter allows execution of arbitrary shell commands without validation or restrictions. This is a significant attack vector if the LLM agent is subject to prompt injection.
cmd-executor.mjs:41 Verbose System Information Collection
systeminfo command can expose Windows product keys, hotfixes, network cards, domain membership, and other sensitive configuration details.
cmd-executor.mjs:75 Hidden Malicious Test Scenarios
test-commands.json contains a 'malicious_tests' section with commands like 'whoami /priv' and 'systeminfo | findstr domain admin' that suggest potential use for privilege escalation and Active Directory reconnaissance.
examples/test-commands.json:158 Directory Listing with Hidden Files
Commands 'ls -la' and 'dir /a' list hidden files which may include sensitive files like .ssh, .aws, or .env.
cmd-executor.mjs:127 External Network Connectivity Tests
Hardcoded 8.8.8.8 (Google DNS) used for ping and traceroute tests. While legitimate for diagnostics, this represents outbound network activity.
cmd-executor.mjs:98 Declared capability vs actual capability
cmd-executor.mjs:5 - execSync from child_process cmd-executor.mjs:127-131 - ls/dir commands for directory listing cmd-executor.mjs:91-99 - ping, netstat, traceroute to 8.8.8.8 Indirectly exposed via systeminfo and system commands output Suspicious artifacts and egress
8.8.8.8 cmd-executor.mjs:98
https://clawhub.ai/user/qiqi704 skill-card.md:7
https://clawhub.ai/qiqi704/cs1111 skill-card.md:27
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| Node.js built-in modules only | N/A | builtin | No | No external dependencies - uses only child_process, os, and fs from Node.js standard library |
File composition
cmd-executor.mjs examples/test-commands.json skill-card.md