T08 · Insecure Dependencies
- Location
README.md:15- Finding
Unpinned Remote Skill Installation Executes Mutable Third-Party Code
- Content
View full analysis
Vulnerability Details
File Location:
README.md:15-24
Vulnerability Type: Unpinned third-party package and repository installation
Risk Level: MediumVulnerable Code
bash ## Install npx skills add anivar/zod-skill -g Or with full URL: npx skills add https://github.com/anivar/zod-skillAdditional unpinned global installation recommendations appear in
README.md:95-114, including:bash npx skills add anivar/jest-skill -g npx skills add anivar/zod-testing -g npx skills add anivar/msw-skill -g npx skills add anivar/redux-saga-testing -g npx skills add anivar/redux-saga-skill -g npx skills add anivar/contributor-codebase-analyzer -gTechnical Analysis
The documented installation commands cause
npxand the skill installer to retrieve and execute content identified by mutable package names, repository branches, or tags. No exact package version, immutable Git commit SHA, checksum, signature, or integrity metadata is specified.Consequently, the code executed when a user follows these instructions can differ from the code that was originally audited. The
-goption also installs several skills globally, increasing their availability and potential influence beyond one project.This is a supply-chain weakness rather than evidence that the currently audited repository contains a malicious payload. The risk arises because a compromised publisher account, npm package, GitHub repository, dependency, or mutable branch could replace trusted content after review.
Attack Path
- An attacker compromises the relevant package publisher, GitHub repository, dependency, or distribution account.
- The attacker publishes malicious code under the same mutable package name or repository reference.
- A developer follows an installation command from the README.
npxretrieves the current installer, and the installer retrieves the current skill content.- The altered pac ...[truncated 854 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the
skillsCLI to an exact reviewed version instead of relying on the version selected dynamically bynpx. - Pin GitHub installations to immutable commit SHAs rather than mutable default branches or tags.
- Pin every recommended skill to an exact reviewed release or commit.
- Publish and verify checksums or signatures for downloadable skill artifacts where supported.
- Prefer project-local installation over
-gunless global scope is required. - Document the files and permissions changed by global installation.
- In automated environments, install reviewed dependencies through a committed lockfile and use deterministic installation commands such as
npm ci. - Run installation in a sandbox with restricted filesystem, network, credential, and environment-variable access.
- Pin the
