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 Why this conclusion was reached
2/4 dimensions flagged1 undeclared or violating capabilities were inferred.
2 lower-risk artifacts were extracted and still need context.
The report includes 0 attack-chain steps and 2 severe findings.
Dependencies are present but no obvious high-risk issue stands out.
What drove the risk score up
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
Most important evidence
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 Declared capability vs actual capability
token-watchdog.mjs:writeFileSync to ~/.openclaw/workspace/memory/ token-watchdog.mjs:44 execSync for openclaw CLI commands Reads session files, sends via openclaw CLI Suspicious artifacts and egress
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
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| Node.js built-ins | N/A | builtin | No | Uses only child_process and fs modules |
| openclaw CLI | unknown | external | No | CLI tool invoked via execSync - security depends on openclaw tool integrity |
File composition
token-watchdog.mjs SKILL.md