T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:37
- Finding
- Unpinned Third-Party Installer and Mutable Skill Source<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, line 37 **Vulnerability Type**: Unpinned third-party dependency execution **Risk Level**: Medium ### Vulnerable Code ```sh npx skills add powmcp/skills --skill publish-weekly-episode-without-feed-breakage ``` ### Technical Analysis The documented installation command invokes `npx` without pinning the `skills` package to a reviewed version and identifies `powmcp/skills` without an immutable version or commit hash. Consequently, the components resolved when a user runs this command may differ from those available when the Skill was audited. Because `npx` can download and execute package code, compromise of the package registry entry, publisher account, or referenced upstream Skill repository could cause users to execute altered installer or dependency code. This is a supply-chain weakness rather than evidence that the currently reviewed project contains malicious code. ### Attack Path 1. An attacker compromises the publisher account, package source, distribution channel, or mutable `powmcp/skills` repository. 2. The attacker publishes a modified version containing malicious installation behavior. 3. A user follows the documented unpinned `npx` installation command. 4. The package manager resolves the attacker-controlled version rather than a previously reviewed release. 5. Malicious code executes with the permissions of the user running the command. Successful exploitation depends on compromise or malicious modification of an upstream source. ### Impact Assessment The command may execute downloaded code with the invoking user's privileges. Depending on those privileges and the malicious payload, impact could include: - Reading or modifying files accessible to the user. - Accessing credentials or tokens available to the process. - Modifying development configuration or installed Skills. - Running additional commands or downloading further payloads. - Compromising projects and sessions o ...[truncated 183 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin the `skills` CLI package to a specific reviewed version: ```sh npx skills@<reviewed-version> add ... ``` 2. Pin `powmcp/skills` to an immutable release tag or, preferably, a verified commit hash. 3. Publish and verify cryptographic integrity hashes or signed release provenance for distributed packages. 4. Use lockfiles where the installation workflow supports them and require reproducible dependency resolution. 5. Document the expected package publisher, source repository, release identifier, and checksum so users can verify authenticity before execution. 6. Avoid automatic execution of newly resolved dependencies. Download and inspect the package first in sensitive environments, or run installation in a restricted sandbox with no secrets and minimal filesystem access. 7. Establish dependency update review procedures so version changes receive security review before documentation is updated. ]]>
