T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Third-Party Global Installation Creates a Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 13-17
Vulnerability Type: Unpinned third-party dependency and mutable installation source
Risk Level: MediumVulnerable Code
markdown ## Installation ```bash npx skills add nexscope-ai/eCommerce-Skills --skill ecommerce-content-marketing -gtext ### Technical Analysis The documented installation command invokes the `skills` npm CLI through `npx` without specifying an exact package version. It then installs Skill content globally from the mutable `nexscope-ai/eCommerce-Skills` repository reference without pinning an immutable commit or verifying artifact integrity. As a result, the components installed when a user runs this command may differ from those reviewed during this audit. The effective installation content depends on the latest package and repository state at execution time. Compromise of the npm package, source repository, release process, or a maintainer account could therefore expose users to modified code or malicious Skill instructions. The audited project itself contains only `SKILL.md`; no embedded malicious scripts, credential access, persistence mechanisms, privilege escalation, or local execution payloads were found. The risk arises specifically from the external, unpinned installation path. ### Attack Path 1. An attacker compromises the npm package used by `npx`, the referenced repository, a maintainer account, or the associated release pipeline. 2. The attacker publishes a malicious CLI version or modifies the repository content resolved by the mutable reference. 3. A user follows the documented installation command. 4. `npx` retrieves the currently resolved CLI package, and the command retrieves Skill content from the current upstream repository state. 5. The unreviewed content is installed globally. 6. Depending on the compromised component's behavior, malicious code could execute during installation or malicious Skill instructions could affect later a ...[truncated 704 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the npm CLI to an exact, audited version rather than allowing
npxto resolve the latest version:bash npx --yes skills@<exact-version> ... - Pin the Skill source to an immutable Git commit or a cryptographically verified release artifact instead of a mutable repository reference.
- Publish and verify SHA-256 checksums or signed provenance for installation artifacts.
- Avoid global installation unless it is operationally necessary. Prefer a project-local, isolated installation with minimal permissions.
- Configure
npxto avoid unexpected package resolution and interactive package substitution. - Review dependency lockfiles and release provenance before publishing installation instructions.
- Run installation in a sandbox or restricted environment that has no access to production credentials or sensitive user files.
- Re-audit the exact pinned release whenever the dependency or source revision is updated.
- Pin the npm CLI to an exact, audited version rather than allowing
