T08 · Insecure Dependencies
- Location
SKILL.md:17- Finding
Unpinned Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 17 and 24
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code
yaml openclaw: requires: tools: [filesystem] install: "npx clawhub install braided-rag-rug-making-basics"shell npx clawhub install braided-rag-rug-making-basicsTechnical Analysis
The documented installation command invokes
clawhubthroughnpxwithout specifying a reviewed version, integrity hash, lockfile, or trusted package provenance. If the package is absent locally,npxcan retrieve it from the configured package registry and execute its package entry point.Consequently, the code executed during installation can differ from the code that existed when this skill was reviewed. The audited project contains only
SKILL.md; it does not include the implementation of the externally retrievedclawhubpackage, so that implementation and its transitive dependencies cannot be verified from the project contents.This creates a software supply-chain exposure. Exploitation would require compromise or malicious replacement of the package, its maintainer account, the configured registry, or a relevant dependency.
Attack Path
- An attacker compromises the
clawhubpackage, a maintainer account, the package registry, or a dependency resolved by the package. - The attacker publishes a malicious version that remains compatible with the unversioned package name.
- A user follows the documented command:
shell npx clawhub install braided-rag-rug-making-basics npxresolves and downloads the attacker-controlled package version.- The malicious package code executes with the permissions and environment available to the invoking user.
- The payload may access or alter files and processes permitted to that user, including project data and credentials exposed through the execution environment.
Impact Assessment
Successful exploi ...[truncated 626 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto a specific, reviewed version, for example:shell npx --yes clawhub@<reviewed-version> install braided-rag-rug-making-basics - Record and verify package integrity using a lockfile and registry-provided integrity hashes.
- Configure and document the expected trusted registry rather than relying on ambient npm configuration.
- Review the pinned package and relevant transitive dependencies before recommending execution.
- Run installation with a nonprivileged account and a minimal environment that does not expose unrelated credentials.
- Prefer a preinstalled, independently verified CLI over downloading and executing package code at invocation time.
- Establish a controlled update process in which version changes are explicitly reviewed and tested before the documented command is updated.
- Pin
