cmd-execution-test
发现文档-行为不一致:SKILL.md 仅声明预定义诊断命令,但代码实际支持 --cmd 参数执行任意shell命令,存在未声明的高危能力
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 0 severe findings.
Dependency information is incomplete, so supply-chain confidence stays limited.
Attack Chain
Entry · SKILL.md:1
Escalation · cmd-executor.mjs:22
Impact · cmd-executor.mjs:50
What drove the risk score up
SKILL.md 仅描述 --type 参数的预定义命令集,但代码支持 --cmd 执行任意shell命令,这是典型的阴影功能
代码使用 execSync 直接执行命令,无任何命令白名单或过滤机制
Most important evidence
未声明的 --cmd 自定义命令执行能力
SKILL.md 文档仅描述了 --type 参数支持的 systeminfo/network/filesystem 预定义命令集,但代码第22行支持 --cmd 参数允许执行任意shell命令,这是典型的文档-行为不一致(阴影功能)
cmd-executor.mjs:22 硬编码第三方IP地址
代码第98行硬编码 8.8.8.8 (Google DNS) 用于网络测试,这是标准DNS服务器但缺乏灵活性
cmd-executor.mjs:98 Declared capability vs actual capability
cmd-executor.mjs:50 代码使用 execSync 执行任意命令 cmd-executor.mjs:98-105 使用 ping/traceroute/nslookup 进行网络诊断,符合文档声明 cmd-executor.mjs:107-112 使用 dir/ls/tree 列出目录,符合文档声明 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
There are no structured dependency warnings.
File composition
cmd-executor.mjs skill-card.md