T08 · Insecure Dependencies
- Location
SKILL.md:28- Finding
Unpinned npx Installation Introduces Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:28-31andREADME.md:11-14
Vulnerability Type: Unpinned third-party package and mutable skill source
Risk Level: MediumVulnerable Code
SKILL.md:28-31:bash ## Install ```bash npx skills add omactiengartelle/album-cover-skilltext `README.md:11-14`: ```bash **Via npx skills:** ```bash npx skills add omactiengartelle/album-cover-skilltext ### Technical Analysis The documented installation command invokes the `skills` npm package through `npx` without pinning a package version. It also identifies the skill by a mutable repository-style reference rather than a verified release or immutable commit. Consequently, the code resolved and executed during a future installation may differ from the code reviewed in this audit. If the npm package, its dependencies, the referenced skill source, or a maintainer account is compromised, the installation process could retrieve and execute modified content under the privileges of the installing user. The audited project itself does not contain a malicious dependency or install script. This finding concerns the unsafe, mutable installation path documented by the project. ### Attack Path 1. An attacker compromises the `skills` npm package, one of its transitive dependencies, the referenced skill repository, or a relevant publisher account. 2. The attacker publishes or serves a modified version containing malicious installation behavior. 3. A user follows the documented unversioned `npx skills add` command. 4. `npx` resolves the currently available package rather than an audited, immutable version. 5. The compromised package or skill executes with the permissions of the user running the command. ### Impact Assessment Successful exploitation could permit arbitrary code execution with the installing user's privileges. Depending on that user's permissions, the attacker could read or mod ...[truncated 266 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the
skillsnpm package to a reviewed version, for example by using an exact semantic version rather than the latest available release. - Pin the installed skill to an immutable commit digest or a cryptographically verified release.
- Publish checksums or signatures for released skill artifacts and verify them before execution.
- Review and lock transitive dependencies used by the installer.
- Avoid installation workflows that automatically execute mutable remote content.
- Document how users can verify the package publisher, release signature, commit identifier, and artifact integrity before installation.
- Pin the
