T08 · Insecure Dependencies
- Location
SKILL.md:22- Finding
Unpinned Remote Package Installation Commands
- Content
View full analysis
Vulnerability Details
File Locations:
SKILL.md:22README.md:29README.md:35
Vulnerability Type: Unpinned and mutable third-party dependencies
Risk Level: MediumVulnerable Code
SKILL.md:22:bash npx clawhub@latest install planning-with-filesREADME.md:29:bash npx add https://github.com/wpank/ai/tree/main/skills/meta/planning-with-filesREADME.md:35:bash npx clawhub@latest install planning-filesTechnical Analysis
The documented installation commands instruct users to execute remotely retrieved package code through
npxwithout pinning it to a reviewed, immutable version.The
@latesttag is mutable and may resolve to different package content after this Skill has been audited. The GitHub installation source is similarly not pinned to a commit SHA. No checksum, lockfile, provenance attestation, or signature-verification procedure is provided.The documentation also uses inconsistent package identifiers:
planning-with-filesinSKILL.mdandplanning-filesinREADME.md. This inconsistency increases the risk that users install an unintended package and could create exposure to dependency confusion or typosquatting.No evidence was found that the currently reviewed local scripts contain malicious code. The vulnerability arises from trusting mutable external dependencies at installation time.
Attack Path
- An attacker compromises the referenced registry package or upstream repository, publishes a malicious version under a mutable tag, or registers an unintended package matching the inconsistent identifier.
- A user follows one of the documented installation commands.
npxresolves and downloads the current remote package rather than a previously reviewed immutable artifact.- The downloaded package's CLI implementation or lifecycle scripts execute with the permissions of the invoking user.
- Malicious package code can access resources available to that user, alter proje ...[truncated 981 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed package version:
bash npx clawhub@3.2.1 install planning-with-filesThe example version must be replaced with a release that has actually been reviewed and approved.
-
Pin repository-based installation sources to a specific commit SHA rather than a mutable branch or directory URL.
-
Publish and document checksums or signed provenance attestations for approved artifacts. Verify them before installation.
-
Use lockfiles and integrity metadata wherever the installation workflow supports them.
-
Disable dependency lifecycle scripts with
--ignore-scriptswhen compatible with the installer. If scripts are required, document and review each script before execution. -
Reconcile
planning-with-filesandplanning-filesso every installation example uses one verified package identity. -
In CI or other sensitive environments, run installation in a sandbox or least-privileged container without production credentials, sensitive host mounts, or unnecessary network access.
-
Avoid recommending mutable tags in security-sensitive documentation. Update dependencies through an explicit review process rather than resolving the newest release automatically.
- Replace
