Scan Report
8 /100
openclaw-mobile-gateway-installer
Installs and manages OpenClaw mobile gateway as a system service
openclaw-mobile-gateway-installer 是一个合法的服务安装器,代码功能与文档描述一致,未发现恶意行为、凭证收割或数据外泄迹象。预扫描标记的 rm -rf / 属于误报,实际命令为 rm -rf "${INSTALL_DIR}"(默认 /opt/openclaw-mobile-gateway),变量已安全初始化。
Safe to install
无需限制,可正常部署使用。
Findings 3 items
| Severity | Finding | Location |
|---|---|---|
| Low | 部署脚本需要 sudo 权限 Priv Escalation | install.sh:33 |
| Low | npm 依赖无版本锁定 Supply Chain | backend/package.json:14 |
| Info | 凭证写入环境配置文件 Sensitive Access | install.sh:60 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Shell | WRITE | WRITE | ✓ Aligned | install.sh:44 sudo systemctl restart; uninstall.sh:6 sudo rm -rf |
| Filesystem | WRITE | WRITE | ✓ Aligned | install.sh:37 sudo mkdir -p /opt/openclaw-mobile-gateway |
| Environment | WRITE | WRITE | ✓ Aligned | install.sh:60-66 将 OPENCLAW_* 凭证写入 /etc/openclaw-mobile-gateway/env |
| Network | NONE | READ | ✓ Aligned | backend/src/store.ts:12-36 向 openclaw.local 和 gdcp.edu.cn 域名发起健康检查 |
1 Critical 8 findings
Critical Dangerous Command 危险 Shell 命令
rm -rf / uninstall.sh:11 Medium External URL 外部 URL
https://openclaw.example.com README.md:15 Medium External URL 外部 URL
https://openclaws.example.com SKILL.md:29 Medium External URL 外部 URL
http://127.0.0.1:4800/health SKILL.md:47 Medium External URL 外部 URL
https://alpha.openclaw.local/api backend/src/store.ts:12 Medium External URL 外部 URL
https://beta.openclaw.local/api backend/src/store.ts:20 Medium External URL 外部 URL
https://prod.openclaw.local/api backend/src/store.ts:28 Medium External URL 外部 URL
https://openclaws.gdcp.edu.cn backend/src/store.ts:36 File Tree
14 files · 93.4 KB · 3230 lines TypeScript 7f · 2954L
Shell 3f · 131L
Markdown 2f · 95L
JSON 2f · 50L
├─
▾
backend
│ ├─
▾
src
│ │ ├─
app.ts
TypeScript
│ │ ├─
index.ts
TypeScript
│ │ ├─
schemas.ts
TypeScript
│ │ ├─
services.ts
TypeScript
│ │ ├─
store.ts
TypeScript
│ │ ├─
types.ts
TypeScript
│ │ └─
utils.ts
TypeScript
│ ├─
package.json
JSON
│ └─
tsconfig.json
JSON
├─
check.sh
Shell
├─
install.sh
Shell
├─
README.md
Markdown
├─
SKILL.md
Markdown
└─
uninstall.sh
Shell
Dependencies 4 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
express | ^4.19.2 | npm | No | 无版本锁定 |
cors | ^2.8.5 | npm | No | 无版本锁定 |
zod | ^3.23.8 | npm | No | 无版本锁定 |
tsx | ^4.16.2 | npm | No | devDependency,无版本锁定 |
Security Positives
✓ 无 base64 编码或 eval 混淆
✓ 无凭证收割(不遍历 os.environ 匹配敏感关键字)
✓ 无外部数据外泄(网络请求仅指向预配置的目标域名)
✓ 无反向 shell 或 C2 通信
✓ 文档描述与代码行为高度一致,无阴影功能
✓ 使用 Zod schema 进行输入校验,防止注入攻击
✓ 使用 safeSegment() 防止路径遍历