Scan Report
65 /100
grok-swarm
Multi-agent intelligence powered by Grok 4.20 Multi-Agent Beta
cli.py实现了未在SKILL.md中声明的--execute参数,允许执行任意shell命令,构成明确的代码执行风险。
Do not install this skill
必须删除或文档化--execute功能。评估是否需要该参数,或将其作为明确的可选能力声明。
Attack Chain 3 steps
◎
Entry 用户通过SKILL.md了解工具,误认为只是代码生成
SKILL.md:1⬡
Escalation 攻击者利用未声明的--execute参数执行任意命令
bridge/cli.py:229◉
Impact 反弹shell或数据窃取
N/AFindings 5 items
| Severity | Finding | Location |
|---|---|---|
| High | 未声明的shell执行功能 Doc Mismatch | bridge/cli.py:229 |
| High | 任意命令执行风险 RCE | bridge/cli.py:229 |
| Medium | 多处读取API凭证 Credential Theft | bridge/grok_bridge.py:62 |
| Medium | 网络通信未声明 Doc Mismatch | bridge/grok_bridge.py:29 |
| Low | 依赖无版本锁定 Supply Chain | install.sh:51 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Shell | NONE | WRITE | ✗ Violation | bridge/cli.py:229-237 subprocess.run(args.execute, shell=True) |
| Environment | NONE | READ | ✗ Violation | bridge/grok_bridge.py:74-75 os.environ.get(OPENROUTER_API_KEY) |
| Filesystem | WRITE | WRITE | ✓ Aligned | SKILL.md声明File Writing能力,apply.py实现 |
| Network | NONE | READ | ✗ Violation | bridge/grok_bridge.py:29 OpenRouter API调用 |
1 findings
Medium External URL 外部 URL
https://openrouter.ai/api/v1 bridge/grok_bridge.py:29 File Tree
7 files · 39.0 KB · 1255 lines Python 3f · 851L
JavaScript 1f · 204L
Markdown 1f · 89L
Shell 1f · 84L
JSON 1f · 27L
├─
▾
bridge
│ ├─
apply.py
Python
│ ├─
cli.py
Python
│ ├─
grok_bridge.py
Python
│ └─
index.js
JavaScript
├─
install.sh
Shell
├─
openclaw.plugin.json
JSON
└─
SKILL.md
Markdown
Dependencies 1 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
openai | >=1.0.0 | pip | No | 无版本锁定,存在供应链风险 |
Security Positives
✓ apply.py实现了路径遍历保护(_safe_dest函数)
✓ 文件写入有dry-run模式(默认),防止意外覆盖
✓ 有进程级超时保护(index.js)
✓ 代码结构清晰,有适当的错误处理