T08 · Insecure Dependencies
- Location
SKILL.md:12- Finding
Unpinned npx Package Execution Creates a Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:12-14; also present atREADME.md:7-9
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code
SKILL.md:12-14:bash # Install the skill npx clawhub install inbox-triageREADME.md:7-9:bash # Install via clawhub npx clawhub install inbox-triageTechnical Analysis
The installation instructions invoke
clawhubthroughnpxwithout specifying an exact package version, package integrity digest, or trusted registry configuration. If the package is not already installed locally,npxmay download and execute the version currently resolved by the configured npm registry.The code executed during installation can therefore change independently of the reviewed Skill. Compromise of the package publisher, registry account, package name, or dependency graph could cause installation-time code to differ from the audited artifact.
This finding does not establish that the current
clawhubpackage is malicious. The vulnerability is the absence of dependency pinning and integrity verification before execution.Attack Path
- An attacker compromises the package publisher, registry account, or another component involved in resolving the
clawhubpackage. - The attacker publishes a malicious package version or modifies a dependency used during installation.
- A user follows the documented Quick Start command.
npxresolves and downloads the attacker-controlled version.- Package lifecycle or CLI code executes with the privileges of the user running the command.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the installing user's account. The resulting access could include files, credentials, environment variables, and network resources available to that account. The command does not itself request elevated privileges, so the direct priv ...[truncated 59 chars]
- An attacker compromises the package publisher, registry account, or another component involved in resolving the
- Remediation
View remediation
Remediation Suggestions
- Pin the installer to an exact audited version, rather than allowing
npxto resolve the latest available release. - Commit and verify a lockfile where the installation workflow supports one.
- Use registry-provided integrity hashes or signed release artifacts.
- Document the expected package registry and reject unexpected registry overrides.
- Prefer a separately installed and verified CLI over downloading executable code as part of a one-line Skill installation command.
- Add release procedures that re-audit the exact pinned package whenever the version changes.
- Pin the installer to an exact audited version, rather than allowing
