T08 · Insecure Dependencies
- Location
SKILL.md:32- Finding
Unpinned Package Execution Through the Documented npx Installation Command
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:32-34andREADME.md:9-13
Vulnerability Type: Supply-chain exposure caused by unpinned package execution
Risk Level: MediumVulnerable Code Snippets
SKILL.md:32-34:bash ## Install ```bash npx skills add omactiengartelle/surreal-art-generatortext `README.md:9-13`: ```bash ## Install ```bash npx skills add omactiengartelle/surreal-art-generatortext ### Technical Analysis The documented installation procedure invokes the `skills` package through `npx` without specifying a reviewed version or package integrity value. If the package is not already installed locally, `npx` can retrieve and execute the currently resolved package release from the configured package registry. This creates a mutable supply-chain execution boundary: the effective code executed by the installation command may differ from the version that was reviewed when this skill was published. The project does not include a lockfile, integrity hash, or other mechanism that authenticates the expected `skills` CLI artifact. The finding does not establish that the current package is malicious. The vulnerability is that the documented command trusts future registry resolution and immediately executes the resolved third-party code. ### Attack Path 1. An attacker compromises the registry account, publication pipeline, or another distribution component associated with the unpinned `skills` package. 2. The attacker publishes a malicious package release under the package name resolved by `npx`. 3. A user follows the documented installation command. 4. `npx` downloads the current mutable package version because no version or integrity constraint is specified. 5. The malicious CLI or package lifecycle behavior executes under the user's account. 6. The payload can access resources available to that user, subject to operating-system controls and the environment from ...[truncated 679 chars]- Remediation
View remediation
Remediation Suggestions
-
Pin the CLI to a specifically reviewed release, for example:
bash npx --yes skills@REVIEWED_VERSION add omactiengartelle/surreal-art-generator -
Verify and document the official package namespace and registry source before recommending the command.
-
Where supported, use a lockfile and registry integrity metadata to authenticate the downloaded package.
-
Prefer a trusted, preinstalled version of the CLI in controlled deployment environments instead of downloading executable code during installation.
-
Periodically review pinned versions and update them only after validating the package contents, publisher identity, provenance, and release signatures.
-
Apply the same hardened installation instructions consistently in both
SKILL.mdandREADME.md.
-
