Scan Report
This report was generated in Chinese. Some content may be in Chinese.
5 /100
gateway-monitor-macos
Install and operate a local OpenClaw Gateway Monitor stack on macOS with LaunchAgent + watchdog
Gateway Monitor macOS 技能 — 合法本地监控工具,server.js 实现的监控/仪表盘功能符合 SKILL.md 声明,execSync 调用的 openclaw CLI 是预期的网关管理行为,MiniMax API 调用服务于用量追踪功能,无阴影行为或凭证外泄。
Safe to install
可直接使用。建议:增加 allowedTools 声明(filesystem:WRITE、shell:WRITE、network:READ、environment:READ);config restore 端点建议仅本地访问。
Findings 2 items
| Severity | Finding | Location |
|---|---|---|
| Low | SKILL.md 缺少 declared permissions 声明 Priv Escalation | SKILL.md:1 |
| Low | config restore API 端点可覆盖用户 openclaw.json Sensitive Access | assets/gateway-monitor/server.js:1796 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | NONE | WRITE | ✗ Violation | assets/gateway-monitor/server.js:line ~280(fs.copyFileSync ~/.openclaw/config-ba… |
| Shell | NONE | WRITE | ✗ Violation | assets/gateway-monitor/server.js:303(execSync openclaw status --json); assets/ga… |
| Network | NONE | READ | ✗ Violation | assets/gateway-monitor/server.js:29(fetchJson minimaxi.com); server.js:32(fetchJ… |
| Environment | NONE | READ | ✗ Violation | assets/gateway-monitor/server.js:269(process.env.MINIMAX_CP_KEY); server.js:20(p… |
| Skill Invoke | NONE | NONE | — | N/A |
| Clipboard | NONE | NONE | — | N/A |
| Browser | NONE | READ | ✗ Violation | assets/gateway-monitor/server.js:1883(server.listen PORT '0.0.0.0')提供 HTTP 服务端 |
| Database | NONE | NONE | — | N/A |
4 findings
Medium External URL 外部 URL
https://www.minimaxi.com/v1/api/openplatform/coding_plan/remains assets/gateway-monitor/server.js:29 Medium External URL 外部 URL
http://127.0.0.1:9981/v1/models assets/gateway-monitor/server.js:32 Medium External URL 外部 URL
http://127.0.0.1:9981 assets/gateway-monitor/server.js:154 Medium External URL 外部 URL
http://www.apple.com/DTDs/PropertyList-1.0.dtd scripts/install.sh:44 File Tree
8 files · 127.9 KB · 3870 lines JavaScript 1f · 1974L
HTML 1f · 1642L
Shell 4f · 186L
Markdown 2f · 68L
├─
▾
assets
│ └─
▾
gateway-monitor
│ ├─
▾
public
│ │ └─
index.html
HTML
│ ├─
gateway-watchdog.sh
Shell
│ └─
server.js
JavaScript
├─
▾
scripts
│ ├─
install.sh
Shell
│ ├─
status.sh
Shell
│ └─
uninstall.sh
Shell
├─
README.md
Markdown
└─
SKILL.md
Markdown
Security Positives
✓ 代码结构清晰,无混淆、无 base64 执行、无 eval
✓ server.js 对外网络请求(MiniMax)服务于用量查询功能,与 openclaw gateway 监控定位一致
✓ MiniMax API key 来自本地 env 或 auth-profile,读取后仅用于用户自身用量查询,无外传行为
✓ execSync 调用的命令均为 openclaw CLI(status/restart),是声明的网关管理行为
✓ install.sh 幂等,备份机制完善(config-backups),卸载干净
✓ watchdog.sh 为标准 LaunchAgent 健康检查,符合 macOS 运维最佳实践
✓ 无 SSH 密钥、.env、AWS 凭证等敏感文件访问
✓ SSE 流、轮询均为标准监控实现,无异常通信