T08 · Insecure Dependencies
- Location
SKILL.md:164- Finding
Unpinned npm Package Execution Through a Mutable Tag
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 164–164
Vulnerability Type: Insecure third-party dependency installation
Risk Level: MediumComplete Code Snippet:
bash # Install via ClawHub npx clawhub@latest install md-bootstrap-optimizerThe same installation command is also advertised in the document metadata at
SKILL.md:6.Technical Analysis
The installation procedure uses
npxto retrieve and immediately execute the npm package referenced by the mutablelatesttag. No immutable package version or integrity digest is specified. Consequently, the code executed by this command may differ from the code available when the skill was audited.This creates a supply-chain trust boundary: successful exploitation requires an attacker to compromise or maliciously publish the
clawhubpackage, one of its installation-time dependencies, or the relevant package distribution infrastructure. The reviewed file does not itself contain a malicious payload, and this finding does not establish that the current package is compromised.Attack Path
- An attacker compromises the npm publisher account, package release process, registry distribution path, or an installation-time dependency associated with
clawhub. - The attacker publishes a malicious release and causes the mutable
latesttag to resolve to it. - A user follows the documented
npx clawhub@latest install md-bootstrap-optimizerinstruction. npxdownloads and executes the attacker-controlled package in the user's environment.- The malicious package performs actions permitted by the invoking user's account, such as reading accessible files, modifying the OpenClaw workspace, installing additional payloads, or exfiltrating available credentials.
Impact Assessment
Exploited code would run with the privileges of the user invoking
npx; the command does not independently demonstrate privilege escalation. The potent ...[truncated 313 chars]- An attacker compromises the npm publisher account, package release process, registry distribution path, or an installation-time dependency associated with
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
latestreference with a specific, reviewed package version, for example:bash npx clawhub@X.Y.Z install md-bootstrap-optimizer - Document the expected package provenance and integrity metadata, and verify the downloaded artifact against a trusted digest or signed attestation before execution.
- Review and pin transitive dependencies through the package's release and lockfile process.
- Prefer a workflow that downloads and verifies the package before executing it rather than combining retrieval and execution in one command.
- Run installation under an unprivileged account in a constrained environment, granting access only to the directories required for skill installation.
- Update both occurrences of the command—
SKILL.md:6andSKILL.md:164—to prevent users from following the unsafe variant.
- Replace the mutable
