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.
为什么得出这个结论
2/4 个维度触发声明资源与推断能力基本一致。
提取到 1 个高危 IOC 或外联信号。
报告包含 5 步攻击链,另有 0 项高危或严重发现。
依赖结构存在,但暂未看到明显高危告警。
攻击链
初始入口 · SKILL.md:1
manipulation · cmd-executor.mjs:41
权限提升 · cmd-executor.mjs:43
reconnaissance · examples/test-commands.json:165
最终危害 · examples/test-commands.json:170
风险分是怎么被拉高的
--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
最关键的证据
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 声明能力 vs 实际能力
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 可疑产物与外联
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
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| Node.js built-in modules only | N/A | builtin | 否 | No external dependencies - uses only child_process, os, and fs from Node.js standard library |
文件构成
cmd-executor.mjs examples/test-commands.json skill-card.md