cmd-execution-test
Skill 声明为系统诊断工具,但存在未记录的重大阴影功能:可通过 --cmd 参数执行任意 shell 命令,且 skill-card.md 明确承认可执行「unrestricted shell commands」。
Why this conclusion was reached
3/4 dimensions flagged1 undeclared or violating capabilities were inferred.
1 high-risk artifacts or egress signals were extracted.
The report includes 3 attack-chain steps and 1 severe findings.
Dependency information is incomplete, so supply-chain confidence stays limited.
Attack Chain
Entry · SKILL.md:1
Escalation · cmd-executor.mjs:89
Impact · cmd-executor.mjs:52
What drove the risk score up
SKILL.md未提及--cmd参数,但代码允许执行任意shell命令
skill-card.md明确承认'can execute unrestricted shell commands'
文档声称诊断工具,实际可执行RCE
Most important evidence
未声明的任意命令执行能力
SKILL.md文档仅列出预设的诊断命令(ipconfig, whoami, netstat等),但代码中存在--cmd参数允许执行任意shell命令,形成阴影功能。这使得skill可被滥用为命令执行工具。
cmd-executor.mjs:42-44 Skill-card.md与SKILL.md声明不一致
skill-card.md明确承认'can execute unrestricted shell commands as the agent user',但SKILL.md未提及此能力,存在文档欺骗。
skill-card.md:17 execSync以agent权限执行任意命令
executeCommand使用execSync直接执行命令,无沙箱、无过滤、无审计,可用于提权或横向移动。
cmd-executor.mjs:52-74 收集系统敏感信息
收集hostname、username、系统环境变量等信息,可能包含敏感配置。
cmd-executor.mjs:119-120 Declared capability vs actual capability
cmd-executor.mjs:89-93 --cmd参数允许任意命令 仅使用dir/ls读取目录内容 仅ping/traceroute测试连通性 systeminfo/env命令收集环境信息 Suspicious artifacts and egress
8.8.8.8 cmd-executor.mjs:98
https://clawhub.ai/user/qiqi704 skill-card.md:9
https://clawhub.ai/qiqi704/skills/cs1111 skill-card.md:39
Dependencies and supply chain
There are no structured dependency warnings.
File composition
cmd-executor.mjs skill-card.md