Scan Report
This report was generated in Chinese. Some content may be in Chinese.
5 /100
openclaw-usage-dashboard
OpenClaw API 使用统计仪表板,显示 token 消耗、请求计数和系统健康状况
合法的 OpenClaw 使用统计仪表板,零外部依赖,数据本地处理,设计安全。存在轻微的文件系统访问范围超出声明的瑕疵,但整体可信。
Safe to install
可安全使用。注意到读取了 openclaw.json 配置文件(超出声明的仅读日志范围),但代码有凭证过滤机制。如需进一步加固,可限制配置文件访问。
Findings 2 items
| Severity | Finding | Location |
|---|---|---|
| Low | 配置文件读取未声明 Doc Mismatch | server.js:313 |
| Low | 读取会话日志路径声明宽泛 Sensitive Access | SKILL.md:25 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | READ | ✓ Aligned | server.js:313 读取 openclaw.json 超出 SKILL.md 声明范围 |
| Shell | NONE | READ | ✓ Aligned | server.js:296-325 执行 vm_stat/df/memory_pressure 等系统命令 |
| Network | NONE | NONE | — | 仅监听 localhost:7842,无外部请求 |
| Environment | NONE | NONE | — | 仅使用 process.env.USERPROFILE 获取主目录 |
2 findings
Medium External URL 外部 URL
http://www.w3.org/2000/svg%22 dashboard.html:7 Medium External URL 外部 URL
https://clawhub.com dashboard.html:269 File Tree
5 files · 81.2 KB · 1719 lines HTML 1f · 856L
JavaScript 1f · 641L
Markdown 3f · 222L
├─
AUDIT.md
Markdown
├─
dashboard.html
HTML
├─
README.md
Markdown
├─
server.js
JavaScript
└─
SKILL.md
Markdown
Dependencies 1 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
无外部依赖 | N/A | 内置模块 | No | 仅使用 http, fs, path, os, child_process 内置模块 |
Security Positives
✓ 零外部依赖(仅用 Node.js 内置模块),无供应链风险
✓ 数据本地处理,从不外传,符合隐私设计原则
✓ 实现了凭证过滤(SECRET_PATTERNS),防止 API 密钥泄露
✓ shell 执行使用 spawn 数组参数,无注入风险
✓ HTTP 服务器仅监听 localhost,CORS 严格限制
✓ 敏感字段黑名单(RISKY_FIELDS)排除 systemPrompt、credentials 等高危字段
✓ 会话日志仅提取 usage 元数据,不处理完整消息内容
✓ 内存预算限制(MAX_SESSIONS, MEMORY_BUDGET_MB)防止资源耗尽