T08 · Insecure Dependencies
- Location
SKILL.md:14- Finding
Unpinned Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 14-17
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code
yaml openclaw: requires: tools: [filesystem] install: "npx clawhub install orchard-fruit-trees"Technical Analysis
The installation command invokes
clawhubthroughnpxwithout specifying an exact package version or verifying package integrity. If the package is not already available locally,npxmay retrieve and execute the version currently resolved by the configured package registry.Because the resolved package is mutable after this skill has been reviewed, the command creates a supply-chain trust boundary that is not controlled by the audited repository. A compromised package maintainer account, malicious package release, registry compromise, or dependency-chain compromise could alter the code executed by this installation command.
The audited file does not itself contain a malicious payload, and exploitation depends on compromise or replacement of the externally resolved package. Nevertheless, the command permits externally controlled package code to execute during installation without a version or integrity constraint.
Attack Path
- An attacker compromises the publishing account, distribution channel, or dependency chain associated with the
clawhubpackage. - The attacker publishes a malicious version that includes harmful lifecycle scripts or executable runtime behavior.
- A user follows the installation instruction:
bash npx clawhub install orchard-fruit-trees npxresolves and downloads the mutable package release from the configured registry.- The malicious package code executes with the privileges and environment of the user running the installation command.
- Depending on those privileges, the package could access user-readable files, alter local configuration, steal credentials exposed to the process, or install ...[truncated 643 chars]
- An attacker compromises the publishing account, distribution channel, or dependency chain associated with the
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto an exact, reviewed version rather than relying on the registry's current resolution:yaml install: "npx --yes clawhub@<audited-exact-version> install orchard-fruit-trees" - Verify the package against a trusted integrity digest or signed provenance before execution.
- Document and enforce the expected package registry to reduce dependency-confusion and registry-substitution risks.
- Use a lockfile where the surrounding installation mechanism supports one, and commit the lockfile and integrity metadata for review.
- Disable or inspect package lifecycle scripts when feasible before allowing installation in a trusted environment.
- Run installation with a non-privileged account in a sandbox or container with minimal filesystem, credential, and network access.
- Establish an update process in which each new package version is reviewed before the pinned version is changed.
- Pin
