token-watchdog
Undeclared shell execution via execSync found in code not mentioned in SKILL.md documentation. The skill claims to 'read .jsonl files directly' but actually executes openclaw CLI commands for alerts and agent control.
The code uses execSync() from child_process module to execute 'openclaw message send' and 'openclaw agent' commands. SKILL.md only mentions reading .jsonl files directly and does not disclose that shell commands are executed.
token-watchdog.mjs:44 为什么得出这个结论
2/4 个维度触发发现 1 项声明之外的能力或越权行为。
提取到 2 个一般风险产物,需要结合上下文判断。
报告包含 0 步攻击链,另有 2 项高危或严重发现。
依赖结构存在,但暂未看到明显高危告警。
风险分是怎么被拉高的
SKILL.md claims 'reads session .jsonl file directly (no API call needed)' but code uses execSync to run openclaw CLI commands
Agent pause functionality via 'openclaw agent -m' not mentioned in documentation
Users instructed to curl script from ddaekeu3-cyber.github.io without integrity verification
最关键的证据
Undeclared Shell Execution via execSync
The code uses execSync() from child_process module to execute 'openclaw message send' and 'openclaw agent' commands. SKILL.md only mentions reading .jsonl files directly and does not disclose that shell commands are executed.
token-watchdog.mjs:44 Agent Control Function Not Declared
The pauseAgent() function can send messages to control the OpenClaw agent. This capability to control agent behavior is not mentioned in documentation.
token-watchdog.mjs:56 Remote Script Download Without Integrity Check
SKILL.md instructs users to download the script via curl from a GitHub Pages URL without recommending signature verification or checksum validation.
SKILL.md:29 Undeclared File Write Operations
Code writes to ~/.openclaw/workspace/memory/token-watchdog.log and token-watchdog-state.json. SKILL.md only mentions reading session files.
token-watchdog.mjs:83 Hardcoded Telegram Target ID
Telegram target '8616468733' is hardcoded in CONFIG. While this may be expected for a personal tool, it limits flexibility and may not match user's configuration.
token-watchdog.mjs:17 声明能力 vs 实际能力
token-watchdog.mjs:writeFileSync to ~/.openclaw/workspace/memory/ token-watchdog.mjs:44 execSync for openclaw CLI commands Reads session files, sends via openclaw CLI 可疑产物与外联
https://ddaekeu3-cyber.github.io/synapse-ai/tools/token-watchdog/token-watchdog.mjs SKILL.md:29
https://ddaekeu3-cyber.github.io/synapse-ai/ SKILL.md:82
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| Node.js built-ins | N/A | builtin | 否 | Uses only child_process and fs modules |
| openclaw CLI | unknown | external | 否 | CLI tool invoked via execSync - security depends on openclaw tool integrity |
文件构成
token-watchdog.mjs SKILL.md