T08 · Insecure Dependencies
- Location
SKILL.md:14- Finding
Unpinned CLI Executes and Globally Installs Unverified Third-Party Skills
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:14-17andSKILL.md:55-58
Vulnerability Type: Unpinned dependency execution and installation from unverified sources
Risk Level: MediumThe skill instructs the agent to execute an unpinned npm CLI package and install third-party skills globally with automatic confirmation.
bash 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 add <owner/repo@skill> -g -yTechnical Analysis
The
npx skillsinvocation does not specify a reviewed package version or integrity value. Depending on the local npm environment,npxcan retrieve and execute the currently published version of the package. Consequently, the executable code used by this workflow may change after the skill itself has been audited.The installation source is also described as GitHub or unspecified “other sources.” The instructions do not require repository verification, immutable commit references, content inspection, signature validation, or integrity checks before installation. The recommended
-g -yflags increase risk by installing the selected skill globally and suppressing interactive confirmation.This creates a supply-chain trust gap: compromise of the CLI package, a third-party skill repository, or a misleading search result could cause the agent to install attacker-controlled code or instructions.
Attack Path
- An attacker publishes, replaces, or compromises a package or skill discoverable by the Skills CLI.
- The malicious entry appears in search results or its package identifier is supplied to the agent.
- The agent runs the unpinned
npx skillsCLI, potentially downloading and executing a release that was not reviewed with ...[truncated 1043 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to a reviewed version, such as
npx skills@<approved-version>, and enforce the expected package integrity through a lockfile or equivalent verification mechanism. - Permit installations only from an explicit allowlist of trusted repository owners and repositories.
- Resolve skills to immutable commit hashes or signed releases rather than mutable branches or tags.
- Download and inspect each skill's instructions, scripts, manifests, and dependency declarations before installation or execution.
- Require explicit user approval after presenting the exact source, version or commit, requested scope, and security review results.
- Remove
-yfrom the default workflow so security-relevant installation prompts are not automatically accepted. - Avoid
-gby default. Prefer a project-local, isolated, least-privilege installation that can be removed after use. - Disable or tightly control automatic bulk updates because they can replace reviewed versions with newly published, unreviewed content.
- Pin the CLI to a reviewed version, such as
