扫描报告
8 /100
cost-optimizer
Smart cost optimization skill for OpenClaw. Reduces API costs by 70-97% through intelligent model routing, session management, output efficiency, and free model usage.
Legitimate OpenClaw cost-optimization skill with no malicious behavior. The pre-scan flagged `rm -rf ~` at GUIDE.md:672, but the actual file contains the correct command `rm -rf ~/.openclaw/workspace/skills/cost-optimizer` — a false positive from pattern matching on the tilde. All 29 scripts perform only declared, relevant cost-optimization operations (config analysis, model switching, monitoring) with no hidden functionality.
可以安装
Safe to use. No action required. Consider verifying the GUIDE.md line 672 content against the pre-scan IOCs if unsure.
安全发现 3 项
| 严重性 | 安全发现 | 位置 |
|---|---|---|
| 提示 | Pre-scan IOC: 'rm -rf ~' in GUIDE.md:672 — False positive 文档欺骗 | GUIDE.md:672 |
| 提示 | Token placeholders in multi-instance.sh — Legitimate examples 敏感访问 | scripts/multi-instance.sh:32 |
| 提示 | Unpinned package versions in parse-config.js 文档欺骗 | scripts/parse-config.js:1 |
| 资源类型 | 声明权限 | 推断权限 | 状态 | 证据 |
|---|---|---|---|---|
| 文件系统 | READ | READ | ✓ 一致 | All scripts read from $HOME/.openclaw/ and workspace paths. No writes to uninten… |
| 命令执行 | WRITE | WRITE | ✓ 一致 | Scripts use `bash`, `node`, `cp`, `curl` — all standard CLI tool usage declared … |
| 网络访问 | READ | READ | ✓ 一致 | webhook-report.sh POSTs cost data to user-provided webhook URLs. setup-openroute… |
| 环境变量 | NONE | NONE | — | No scripts iterate os.environ or access sensitive env vars. Config values read f… |
| 数据库 | NONE | NONE | — | No database access. Config stored in JSON files under ~/.openclaw/ |
1 严重 9 项发现
严重 危险命令 危险 Shell 命令
rm -rf ~ GUIDE.md:672 中危 外部 URL 外部 URL
https://openrouter.ai/keys GUIDE.md:13 中危 外部 URL 外部 URL
https://YOUR_DOWNLOAD_URL GUIDE.md:31 中危 外部 URL 外部 URL
https://vps.example.com:3578 GUIDE.md:603 中危 外部 URL 外部 URL
https://img.shields.io/badge/version-7.0.0-blue.svg README.md:5 中危 外部 URL 外部 URL
https://img.shields.io/badge/license-MIT-green.svg README.md:6 中危 外部 URL 外部 URL
https://img.shields.io/badge/OpenClaw-2026.3+-purple.svg README.md:7 中危 外部 URL 外部 URL
https://myclaw.example.com:3578 scripts/multi-instance.sh:37 中危 外部 URL 外部 URL
https://openrouter.ai/api/v1 scripts/setup-openrouter.sh:37 目录结构
40 文件 · 217.9 KB · 6216 行 Shell 27f · 4065L
Markdown 6f · 1858L
JavaScript 2f · 205L
JSON 5f · 88L
├─
▾
presets
│ ├─
agency-team.preset.json
JSON
│ ├─
researcher.preset.json
JSON
│ ├─
solo-coder.preset.json
JSON
│ ├─
writer.preset.json
JSON
│ └─
zero-budget.preset.json
JSON
├─
▾
references
│ ├─
model-tiers.md
Markdown
│ └─
setup-config.md
Markdown
├─
▾
scripts
│ ├─
apply-preset.sh
Shell
│ ├─
backup-config.sh
Shell
│ ├─
compaction-log.sh
Shell
│ ├─
config-diff.sh
Shell
│ ├─
context-monitor.sh
Shell
│ ├─
cost-audit.sh
Shell
│ ├─
cost-dashboard.js
JavaScript
│ ├─
cost-history.sh
Shell
│ ├─
cost-monitor.sh
Shell
│ ├─
cron-setup.sh
Shell
│ ├─
dedup-detector.sh
Shell
│ ├─
fallback-validator.sh
Shell
│ ├─
heartbeat-cost.sh
Shell
│ ├─
idle-sleep.sh
Shell
│ ├─
model-switcher.sh
Shell
│ ├─
model-test.sh
Shell
│ ├─
multi-instance.sh
Shell
│ ├─
parse-config.js
JavaScript
│ ├─
preset-manager.sh
Shell
│ ├─
prompt-tracker.sh
Shell
│ ├─
provider-compare.sh
Shell
│ ├─
provider-health.sh
Shell
│ ├─
restore-config.sh
Shell
│ ├─
session-replay.sh
Shell
│ ├─
setup-openrouter.sh
Shell
│ ├─
token-counter.sh
⚠
Shell
│ ├─
token-enforcer.sh
⚠
Shell
│ ├─
tool-audit.sh
Shell
│ └─
webhook-report.sh
Shell
├─
CHANGELOG.md
Markdown
├─
GUIDE.md
Markdown
├─
README.md
Markdown
└─
SKILL.md
Markdown
依赖分析 1 项
| 包名 | 版本 | 来源 | 已知漏洞 | 备注 |
|---|---|---|---|---|
node (built-in) | v18+ | system | 否 | No npm dependencies. Only uses Node.js built-in modules (fs). No requirements.txt or package.json. |
安全亮点
✓ All 29 scripts have clear, documented purposes aligned with the skill description
✓ No base64-encoded payloads, eval(), or obfuscated code anywhere in the codebase
✓ No credential harvesting — scripts read config files but never exfiltrate API keys or tokens
✓ No network IOCs to suspicious external IPs — all URLs point to legitimate services (openrouter.ai, discord/slack webhooks)
✓ Backup mechanism (backup-config.sh) creates snapshots before any changes, with a pre-restore backup before restore-config.sh
✓ All shell scripts use set -euo pipefail for safe execution
✓ Most scripts support --dry-run mode for preview before any changes
✓ API key validation in setup-openrouter.sh checks key format before use
✓ No supply chain risk — no external dependencies or unpinned packages
✓ Config patching is done via JSON patch files in /tmp, not direct config modification
✓ Multi-instance script requires explicit user-provided tokens per instance (not auto-harvested)