T08 · Insecure Dependencies
- Location
SKILL.md:32- Finding
Unpinned Third-Party CLI Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:32-34andREADME.md:12-15
Vulnerability Type: Supply-chain exposure through an unpinned executable dependency
Risk Level: MediumRelevant code snippets:
SKILL.md:32-34markdown ## Install ```bash npx skills add blammectrappora/fantasy-map-generatortext `README.md:12-15` ```markdown **Via npx skills:** ```bash npx skills add blammectrappora/fantasy-map-generatortext ### Technical Analysis The documented installation command invokes the `skills` npm package through `npx` without specifying an exact package version or integrity constraint. When a package is not already installed locally, `npx` can download and execute the version currently resolved by the npm registry. The skill source is also identified by a mutable repository reference rather than an immutable commit or content hash. Consequently, the code executed by a future installation may differ from the code covered by this audit. Compromise of the npm publisher account, registry package, upstream repository, or associated release process could turn the documented installation command into a code-execution vector. No malicious dependency is present in the audited artifact, and `package.json` declares no runtime dependencies. The risk arises specifically from the mutable installation process documented for users. ### Attack Path 1. An attacker compromises the npm package, its publisher account, or the referenced upstream skill repository. 2. The attacker publishes a modified CLI release or replaces mutable upstream skill content with a malicious payload. 3. A user follows the documented `npx skills add blammectrappora/fantasy-map-generator` command. 4. `npx` resolves and executes the currently available, attacker-controlled CLI package. 5. The malicious installer or retrieved skill runs with the invoking user's operating-system permissions. ### Impact Assessm ...[truncated 505 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the
skillsCLI to a reviewed exact version, for example by usingnpx --yes skills@<exact-version> .... - Pin the skill source to an immutable commit, release artifact, or content digest rather than a mutable repository reference.
- Publish and verify cryptographic checksums or signatures for installation artifacts.
- Prefer a lockfile-backed installation process with npm integrity metadata when practical.
- Document the expected publisher, version, commit, and checksum so users can verify provenance before execution.
- In CI environments, use a pre-reviewed artifact from a trusted internal registry or cache and execute it with minimal permissions.
- Pin the
