T08 · Insecure Dependencies
- Location
SKILL.md:25- Finding
Unpinned Third-Party CLI and Unreviewed Global Skill Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 25-30, 50, and 83-88
Vulnerability Type: Supply-chain risk caused by unpinned third-party tooling and unattended global installation
Risk Level: MediumComplete Code Snippet:
markdown **Key commands:** - `npx skills find [query]` - Search for skills interactively or by keyword - `npx skills add <package>` - Install a skill from GitHub or other sources - `npx skills check` - Check for skill updates - `npx skills update` - Update all installed skillsbash npx skills find [query]markdown ### Step 4: Offer to Install If the user wants to proceed, you can install the skill for them: ```bash npx skills add <owner/repo@skill> -g -yThe
-gflag installs globally (user-level) and-yskips confirmation prompts.text ### Technical Analysis The skill directs the agent to execute `npx skills` without pinning the npm CLI to a reviewed version or integrity-verified artifact. `npx` can resolve and execute package content obtained from an external package registry, meaning the code executed at audit time may differ from the code executed later. The workflow also permits skills from GitHub or other sources to be installed globally with `-g`, while `-y` suppresses interactive confirmation. The documented process does not require an immutable commit reference, source allowlist, package-content review, lifecycle-script review, checksum validation, or provenance verification before installation. This creates a supply-chain boundary in which a compromised, replaced, dependency-confused, typo-squatted, or intentionally malicious CLI or skill package could introduce attacker-controlled code or instructions. Global user-level installation increases the affected scope beyond a temporary project environment. ### Attack Path 1. An attacker compromises the unpinned `skills` npm package, one of its dependencies, or ...[truncated 1383 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to an explicitly reviewed version, such as
npx skills@<approved-version>, and enforce package-lock or integrity verification where supported. - Resolve skill sources to immutable commit hashes rather than mutable branches, tags, or unversioned repository references.
- Remove
-gand-yfrom the default workflow. Prefer isolated, project-local installation and retain an explicit confirmation prompt. - Require informed user approval that displays the exact package, version, repository, commit hash, installation scope, and commands that will be executed.
- Restrict installation to an allowlist of verified publishers and repositories.
- Download packages into a quarantine directory and inspect all files, manifests, dependencies, executable scripts, hooks, and lifecycle scripts before installation.
- Disable package lifecycle scripts unless they are strictly required and separately reviewed.
- Perform installation in a sandbox with minimal filesystem, network, credential, and tool access.
- Verify checksums, signatures, and publisher provenance before execution, and fail closed if validation is unavailable or unsuccessful.
- Record the approved version and integrity metadata so later updates cannot silently replace reviewed content.
- Pin the CLI to an explicitly reviewed version, such as
