Scan Report
This report was generated in Chinese. Some content may be in Chinese.
30 /100
gateway-monitor-installer
Install, update, run, and remove OpenClaw Gateway Monitor + Gateway Watchdog on macOS via LaunchAgent
功能完整的 OpenClaw Gateway 监控安装工具,安装逻辑清晰、无恶意行为,但存在文档-实现差异(未声明 API 服务器和配置恢复功能)及 restore-config 端点可修改系统配置的隐患。
Safe to install
建议补全 SKILL.md 文档声明 API 服务器功能;考虑对 /api/restore-config 添加额外鉴权或限制访问来源。整体可用于生产环境,但需注意本地网络暴露风险。
Findings 4 items
| Severity | Finding | Location |
|---|---|---|
| Medium | SKILL.md 未声明 API 服务器功能 Doc Mismatch | SKILL.md:1 |
| Medium | /api/restore-config 可修改系统配置文件 Priv Escalation | assets/bin/gateway-monitor-server.js:580 |
| Low | 读取 MiniMax 凭证配置文件 Sensitive Access | assets/bin/gateway-monitor-server.js:215 |
| Low | API 服务器监听 0.0.0.0 扩展攻击面 Priv Escalation | assets/bin/gateway-monitor-server.js:700 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | WRITE | WRITE | ✓ Aligned | install.sh:22-24, gateway-monitor-server.js:restore-config |
| Shell | WRITE | WRITE | ✓ Aligned | install.sh:50-54 launchctl commands |
| Network | NONE | READ | ✗ Violation | gateway-monitor-server.js:MINIMAX_REMAINS_URL fetch |
| Environment | NONE | READ | ✗ Violation | gateway-monitor-server.js:MINIMAX_CP_KEY env read |
| credential | NONE | READ | ✗ Violation | gateway-monitor-server.js:MINIMAX_AUTH_PROFILE_PATH read |
3 findings
Medium External URL 外部 URL
http://127.0.0.1:18990 SKILL.md:40 Medium External URL 外部 URL
https://www.minimaxi.com/v1/api/openplatform/coding_plan/remains assets/bin/gateway-monitor-server.js:28 Medium External URL 外部 URL
http://127.0.0.1:18990/api/summary scripts/status.sh:25 File Tree
6 files · 42.9 KB · 1527 lines JavaScript 1f · 1321L
Shell 4f · 159L
Markdown 1f · 47L
├─
▾
assets
│ └─
▾
bin
│ ├─
gateway-monitor-server.js
JavaScript
│ └─
gateway-watchdog.sh
Shell
├─
▾
scripts
│ ├─
install.sh
Shell
│ ├─
status.sh
Shell
│ └─
uninstall.sh
Shell
└─
SKILL.md
Markdown
Security Positives
✓ 代码结构清晰,无混淆或隐藏执行逻辑
✓ 无 base64 编码、eval() 动态执行或反向 shell 等高危指标
✓ launchctl 操作符合 macOS 系统管理规范
✓ restore-config 仅操作备份文件,降低破坏风险
✓ maskKey() 函数对 API key 进行脱敏处理
✓ 包含完整的错误处理和超时机制
✓ 使用 set -euo pipefail 强化 Shell 脚本安全性