T08 · Insecure Dependencies
- Location
SKILL.md:12- Finding
Unpinned npm Package Is Downloaded and Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:12-15; duplicated inREADME.md:14-17
Vulnerability Type: Unpinned executable dependency
Risk Level: MediumVulnerable code:
bash # Install the skill npx clawhub install weather-alertTechnical Analysis
The installation instructions invoke
clawhubthroughnpxwithout specifying an exact reviewed version or integrity value. If the package is not already available locally,npxcan retrieve the currently resolved package from the configured npm registry and execute its command-line entry point.The effective installation code can therefore change after this skill has been audited. A compromised package release, registry account, dependency, or package-resolution configuration could cause users following the documented installation procedure to execute code that was not included in the reviewed repository.
Attack Path
- An attacker compromises the npm package, one of its transitive dependencies, its publisher account, or the registry resolution path.
- The attacker publishes or serves a malicious version under the package name resolved by
npx. - A user follows the documented
npx clawhub install weather-alertinstruction. npxdownloads the mutable package version and invokes its executable.- Malicious package code executes with the privileges and environment of the user running the command.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the installing user's account. The resulting scope could include reading or modifying files accessible to that user, accessing environment variables and developer credentials, making network requests, and installing additional user-level components. Administrator-level impact would require the user to run the command with elevated privileges or an independent privilege-escalation path.
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto an explicitly reviewed version, for example:bash npx --yes clawhub@<reviewed-version> install weather-alert - Record and verify package integrity through a lockfile or another reproducible installation mechanism.
- Document the expected publisher and registry.
- Prefer a locally installed, lockfile-managed CLI rather than downloading an executable during each installation.
- Avoid recommending elevated privileges for this command.
- Establish a dependency-update process in which version changes are reviewed and tested before documentation is updated.
- Pin
