T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned Third-Party Installation with Global Scope
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:15
Vulnerability Type: Supply-chain exposure through an unpinned package runner and mutable external repository
Risk Level: MediumVulnerable Code
bash npx skills add nexscope-ai/eCommerce-Skills --skill brand-protection-amazon -gTechnical Analysis
The documented installation command invokes the
skillspackage throughnpxwithout specifying an audited package version. It also installs skill content fromnexscope-ai/eCommerce-Skillswithout pinning an immutable commit or verifying its integrity. Both dependencies may therefore resolve to content different from the content examined during this audit.The
-goption requests global installation, increasing the installation's scope and potentially exposing other projects or users of the same environment to compromised content. This finding concerns the documented installation chain; no malicious behavior was identified in the local Python files.Attack Path
- An attacker compromises the package resolved by
npx, its publishing account, or the referenced external repository. - The attacker publishes or commits altered installation logic or skill content.
- A user follows the installation command in
SKILL.md. npxresolves and executes the mutable package version, which retrieves or installs mutable repository content.- The compromised component executes with the invoking user's privileges or places attacker-controlled content in the global skill environment.
- Subsequent skill use may execute the installed payload or expose other projects using the global installation.
Impact Assessment
Successful exploitation could provide code execution with the privileges of the user running the installation command. The attacker could modify files accessible to that user, steal user-accessible data or credentials, install malicious skill content, or compromise later sessions that consume the global installation.
T ...[truncated 283 chars]
- An attacker compromises the package resolved by
- Remediation
View remediation
Remediation Suggestions
- Pin the package runner to a reviewed version, for example by using an exact
skillspackage version rather than allowingnpxto resolve the latest release. - Pin the external repository to an immutable commit hash or signed release instead of a mutable branch.
- Require checksum, signature, or provenance verification before installation.
- Remove global installation as the default; prefer a project-local, isolated environment with least privilege.
- Use a lockfile or equivalent dependency manifest that records exact versions and integrity hashes.
- Document the expected publisher, repository, revision, and verification procedure.
- Review dependency updates before changing pinned versions, and automate supply-chain scanning in CI.
- Avoid running the installation command with administrative privileges.
- Pin the package runner to a reviewed version, for example by using an exact
