T08 · Insecure Dependencies
Warning
- Location
- README.md:14
- Finding
- Unpinned Global Installation from Mutable Remote Sources## Vulnerability Details **File Location**: `README.md`, lines 14–18 **Vulnerability Type**: Unpinned third-party dependencies and mutable Git repository installation **Risk Level**: Medium ### Vulnerable Code ```markdown ## Install ```bash npx skills add https://github.com/Hey-Salad/partnerships-ecosystem-skill --skill partnerships-ecosystem --yes --global ``` ``` ### Technical Analysis The documented installation command invokes the `skills` package through `npx` without specifying an audited package version. It also installs Skill content directly from a GitHub repository without pinning it to a commit hash or immutable release artifact. Consequently, the command may retrieve content that differs from the version covered by this audit. The `--yes` option suppresses interactive confirmation, while `--global` increases the installation scope. Although no malicious content was found in the audited project files, the command creates a supply-chain risk because both the package resolved by `npx` and the repository contents can change after review. ### Attack Path 1. An attacker compromises the npm package, GitHub repository, release process, or a maintainer account. 2. The attacker publishes a modified package version or replaces repository content with malicious Skill instructions or another payload. 3. A user copies and executes the installation command from `README.md`. 4. `npx` resolves the unpinned package, and the installer retrieves the current mutable repository content. 5. The `--yes` option bypasses confirmation, and the content is installed globally. 6. Any malicious behavior supported by the compromised installer or installed content runs under the permissions of the invoking user. ### Impact Assessment A compromised package or repository could alter globally installed Skill content and affect compatible agent sessions that load it. If the invoked package executes installation hooks or other code, c ...[truncated 266 chars]
- Remediation
- ## Remediation Suggestions 1. Pin the `skills` CLI to an exact, audited version rather than allowing `npx` to resolve a mutable version. 2. Pin the GitHub source to a full commit SHA or use a signed, immutable release artifact. 3. Publish and verify a cryptographic checksum or signature for the Skill package. 4. Remove `--yes` so users can review the requested operation before installation. 5. Avoid `--global` unless global installation is operationally necessary; prefer a project-local or isolated installation. 6. Document the exact versions and commit reviewed by the security audit. 7. Re-audit and update integrity metadata whenever dependencies or Skill content change.
