T08 · Insecure Dependencies
- Location
SKILL.md:16- Finding
Unpinned Third-Party Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 16–18
Vulnerability Type: Supply-chain risk from an unpinnednpxpackage and mutable Skill source
Risk Level: MediumVulnerable Code
bash npx skills add nexscope-ai/eCommerce-Skills --skill product-differentiation-shopify -gTechnical Analysis
The documented installation command invokes
npx skillswithout specifying an exact package version or integrity constraint. Depending on the localnpxcache and environment,npxmay retrieve and execute the current registry release of theskillspackage.The command also identifies the Skill through the mutable repository reference
nexscope-ai/eCommerce-Skills, without pinning it to a reviewed commit hash or cryptographically verified artifact. Consequently, the code and instructions executed during installation can differ from the content originally audited.This creates a time-of-check/time-of-use supply-chain exposure. If either the package registry entry, publisher account, upstream repository, or release process is compromised, following the documented command could execute or install attacker-controlled content.
Attack Path
- An attacker compromises the package publisher, package registry entry, upstream repository, or associated release credentials.
- The attacker publishes a modified version of the
skillspackage or changes the mutable Skill source. - A user follows the installation command in
SKILL.md. npxretrieves and executes the unpinned package version.- The installer retrieves the mutable Skill content and installs it globally through the
-goption. - Malicious installation logic may execute with the user's privileges, and attacker-controlled Skill content may become available across later agent sessions.
Impact Assessment
Successful exploitation could permit arbitrary code execution with the privileges of the user running the command. Potential effects include access to files ...[truncated 489 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the
skillsCLI to an exact reviewed version rather than allowingnpxto resolve the latest release. - Pin the Skill source to an immutable, reviewed commit hash or signed release artifact.
- Publish and verify cryptographic checksums or signatures before execution.
- Use a lockfile or equivalent integrity metadata where the installation mechanism supports it.
- Avoid global installation by default; prefer a project-scoped or isolated environment with least privilege.
- Do not run the installation command with elevated privileges.
- Document the expected publisher identity, package version, source commit, and verification procedure.
- Continuously monitor pinned dependencies and deliberately update them only after security review.
- Pin the
