T08 · Insecure Dependencies
- Location
SKILL.md:27- Finding
Execution of Unpinned Third-Party CLI Packages and Skill Updates
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 27-30, 36, and 61-62
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable Code
bash npx -y clawhub@latest install frontend-design-ultimate npx -y clawhub@latest install shadcn-ui npx -y clawhub@latest install react-expert npx -y clawhub@latest update --allbash npx -y clawhub@latest listbash npx shadcn@latest init npx shadcn@latest add card button badge tabs table sheet sidebarTechnical Analysis
The documented setup workflow instructs users or agents to execute npm packages through
npxusing the mutablelatesttag. The-yoption also suppresses the interactive installation confirmation for the ClawHub commands.An
npxinvocation can download and execute package code, including CLI entry points and relevant installation lifecycle behavior, with the permissions of the invoking user. Becauselatestcan resolve to a different release at any time, the code ultimately executed is not necessarily the version that was reviewed.This is particularly significant because the document states that specific upstream skill versions were inspected, but the installation commands do not pin those versions. The
update --allcommand further permits all installed skills to be replaced with later, unreviewed versions. No lockfile, package-integrity validation, checksum verification, or post-download review step is specified.This finding does not establish that the named packages are currently malicious. The vulnerability is the unsafe, mutable trust boundary through which compromised or unexpectedly changed upstream code could be executed after this skill was reviewed.
Attack Path
- An attacker compromises an upstream npm package, its publisher account, a transitive dependency, or an associated skill release.
- The attacker publishes a malicious version that becomes the package's ...[truncated 1468 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace every
@latestreference with an explicitly reviewed package version, for exampleclawhub@X.Y.Zandshadcn@X.Y.Z. - Pin the installed upstream skills to the exact versions documented as inspected rather than silently selecting newer releases.
- Remove
npx -y clawhub@latest update --all. Update each dependency individually only after reviewing its release, provenance, and content. - Avoid suppressing confirmation with
-yfor security-sensitive installation and update operations. - Use a committed lockfile and deterministic package installation where the surrounding project supports it.
- Verify npm package provenance and integrity metadata before execution. For higher-assurance environments, download and inspect the package without running it, then compare an approved checksum or artifact digest.
- Review downloaded skill files before enabling them, especially scripts, executable hooks, tool instructions, and changes to required permissions.
- Execute installation tooling in a minimally privileged, isolated environment without production secrets or unrelated credentials.
- Document a controlled upgrade process requiring review and approval whenever a pinned CLI, skill, or transitive dependency changes.
- Replace every
