T08 · Insecure Dependencies
- Location
SKILL.md:31- Finding
Unpinned Third-Party Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:31-34andREADME.md:9-13
Vulnerability Type: Supply-chain risk caused by unpinned package execution
Risk Level: MediumVulnerable Code
SKILL.md:31-34:bash ## Install ```bash npx skills add omactiengartelle/dark-fantasy-art-generatortext `README.md:9-13`: ```bash ## Install ```bash npx skills add omactiengartelle/dark-fantasy-art-generatortext ### Technical Analysis The recommended installation command invokes the npm package named `skills` through `npx` without specifying a reviewed version or integrity hash. If the package is not already installed locally, `npx` can retrieve its currently published release and execute its entry point. Consequently, the effective installation code can change after this project has been reviewed. Compromise of the package publisher, npm account, package distribution channel, or a future malicious release could cause users following the documented instructions to execute unreviewed code. The repository's `package.json` does not declare the `skills` package as a pinned dependency, and no lockfile or integrity information is present to constrain the resolved artifact. ### Attack Path 1. An attacker compromises the npm package, its publisher account, or the relevant package publication workflow. 2. The attacker publishes a malicious release under the package name resolved by `npx skills`. 3. A user follows the documented installation command. 4. `npx` downloads the current package release because no version is pinned. 5. The downloaded package executes with the privileges of the user running the command. 6. Malicious package code can access resources available to that user. ### Impact Assessment Successful exploitation permits arbitrary code execution with the invoking user's privileges. Depending on the local environment, the malicious package could read accessible files and ...[truncated 295 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the installer package to a specific, reviewed version, for example by using the verified package name with an explicit version suffix.
- Use a lockfile and package-manager integrity metadata where the installation workflow permits it.
- Verify and document the expected package publisher and source repository.
- Review the pinned package version before recommending it to users.
- Prefer an installation mechanism that does not automatically execute newly downloaded third-party code.
- If
npxremains necessary, advise users to reject unexpected package installation prompts and verify the resolved package and version before execution. - Update both
SKILL.mdandREADME.mdso every documented installation path applies the same controls.
