T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:76
- Finding
- Unpinned Package Execution in the Recommended Installation Command## Vulnerability Details **File Location**: `SKILL.md:76-79` **Vulnerability Type**: Unpinned third-party package and repository installation **Risk Level**: Medium ### Vulnerable Code ```bash # One-click installation using the skills CLI npx skills add zhaoxinghua09-cell/agent-skills -g ``` ### Technical Analysis The recommended installation procedure invokes the `skills` package through `npx` without specifying an immutable package version or integrity hash. Depending on the local npm configuration and cache state, `npx` can retrieve and execute the latest published version of that package. The referenced skill repository is also identified by a mutable repository name rather than a commit hash or signed release. Consequently, neither the installation tool nor the installed repository content is cryptographically tied to the version reviewed in this audit. This creates a supply-chain trust boundary: compromise of the npm package, its maintainer account, the source repository, or related distribution infrastructure could cause users following the documented command to execute or install content that differs from the audited package. The audited project itself does not automatically run this command, and no existing compromise of the named package or repository was established. Exploitation therefore requires a supply-chain compromise and a user or Agent following the installation instructions. ### Attack Path 1. An attacker compromises the npm package used by `npx`, its publisher account, or the referenced source repository. 2. The attacker publishes a changed package version or replaces skill content in the mutable repository branch. 3. A user or Agent follows the installation command in `SKILL.md`. 4. `npx` downloads and executes the unpinned package under the invoking user's privileges. 5. The compromised installer executes arbitrary package lifecycle or application logic, or installs altered skills that run lat ...[truncated 420 chars]
- Remediation
- ## Remediation Suggestions - Pin the CLI to a reviewed version, such as `npx skills@<exact-version>`, rather than resolving the latest release. - Pin installed repository content to an immutable commit hash or signed release tag. - Publish SHA-256 checksums or signed attestations for release artifacts and verify them before installation. - Use npm lockfiles and package integrity metadata where the installation workflow permits them. - Avoid recommending elevated execution. Document that installation should run with the minimum required privileges. - Periodically audit the pinned installer version and update it through a controlled review process.
