T08 · Insecure Dependencies
- Location
SKILL.md:12- Finding
Unpinned npm Package Installation and Execution
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This looks like a real OpenClaw configuration tool, but it can change and restart a live gateway and has flaws that could expose, corrupt, or misapply configuration.
Review carefully before installing or letting an agent use this on a production OpenClaw gateway. Prefer a pinned reviewed package version, test in staging, keep an independent backup, restrict permissions on ~/.openclaw and its backups, and avoid passing untrusted backup IDs or patch files.
SKILL.md:12Unpinned npm Package Installation and Execution
src/index.js:250Backup Identifier Path Traversal
src/index.js:242Configuration Backups Are Created Without Explicit Restrictive Permissions
src/index.js:237Non-Atomic Replacement of the Active Configuration
src/index.js:258Broad Process Matching May Signal Unrelated Processes
The README promotes live configuration changes, gateway restarts, and rollback behavior as routine operations, but does not prominently warn that these actions can interrupt service, affect availability, or apply invalid or dangerous configuration state. In an operational tool that modifies a running gateway, omission of an explicit warning increases the likelihood of unsafe use in production and can lead to self-inflicted denial of service.
The README instructs users to execute the package via npx without pinning a specific version, which causes the latest published package to be fetched and run at execution time. If the package is ever compromised, typo-squatted, or a malicious update is published, users may execute unreviewed code immediately with whatever privileges their shell provides.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
- Node.js 18+
- OpenClaw gateway running on localhost:18789
- Write access to `~/.openclaw/`
## License
The library advertises safe config management with automatic rollback, but the rollback path does not guarantee recovery to a healthy state. In patch(), if the new config fails health checks and the subsequent restore plus restart also fails, the function returns an error while leaving the gateway unhealthy, which can create a false sense of safety and lead to downtime or partial misconfiguration.
Detected: suspicious.dangerous_exec