T08 · Insecure Dependencies
- Location
SKILL.md:16- Finding
Unpinned Remote Dependencies Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:16-18,README.md:24-32
Vulnerability Type: T08: Insecure Dependencies
Risk Level: MediumVulnerable Code
SKILL.md:16-18:bash npx clawhub@latest install full-stack-featureREADME.md:24-32:bash npx add https://github.com/wpank/ai/tree/main/skills/meta/full-stack-featurebash npx clawhub@latest install full-stack-featureTechnical Analysis
The documented installation procedures use
npxto download and execute remote npm packages without immutable version or integrity constraints. In particular,clawhub@latestexplicitly selects a mutable package release. Thenpx addcommand also invokes a remotely resolved npm package while passing a GitHub source located on a mutable branch.No exact package version, Git commit hash, package-lock constraint, integrity checksum, or cryptographic signature is provided. Consequently, the code executed by these commands can change after this skill has been reviewed. If the npm package, publisher account, release process, or referenced GitHub repository is compromised, an attacker could distribute modified installer code to subsequent users.
This is a supply-chain risk rather than evidence that the currently referenced packages are malicious.
Attack Path
- An attacker compromises the npm publisher account, package release pipeline, or GitHub repository referenced by the documentation.
- The attacker publishes a malicious package version selected by
@latest, modifies the mutable repository branch, or otherwise alters a remotely resolved installer dependency. - A user follows one of the documented installation commands.
npxdownloads the changed package and executes its command or applicable lifecycle behavior with the user's privileges.- The malicious installer can perform actions available to that user, such as modifying project or user files, reading acc ...[truncated 748 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
clawhub@latestwith an explicitly reviewed, immutable package version. - Pin repository-based installation to a specific Git commit rather than a mutable branch such as
main. - Publish and verify integrity checksums or cryptographic signatures for distributed artifacts.
- Document the expected package publisher, source repository, version, and checksum so users can verify provenance before installation.
- Prefer a reviewed local or manual installation method when feasible.
- In CI environments, use lockfiles, approved registries, dependency allowlists, and restricted credentials.
- Run installation in a sandbox or least-privileged environment without unrelated secrets.
- Review installer and lifecycle scripts for every dependency update before changing the pinned version.
- Replace
