T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned Global Installation of a Third-Party Executable Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 15-20
Vulnerability Type: Unpinned third-party executable dependency
Risk Level: MediumVulnerable Code
bash # 安装 npm install -g pixshop # 登录(浏览器 OAuth) pixshop loginTechnical Analysis
The Skill directs users or agents to install the latest available
pixshopnpm package globally without specifying a reviewed version, lockfile, or integrity hash. A global npm installation can execute package lifecycle scripts during installation and place executable code on the user'sPATH.Because the package implementation is not included in this project, its installation behavior, lifecycle scripts, transitive dependencies, and subsequent handling of authentication credentials and media cannot be verified by this audit. The effective code may also change whenever the package publisher releases a new version, even though the reviewed
SKILL.mdremains unchanged.This constitutes an insecure dependency and supply-chain risk. The finding does not establish that the current npm package is malicious; it identifies the unsafe, mutable installation mechanism documented by the Skill.
Attack Path
- An attacker compromises the package publisher, npm account, release pipeline, or a transitive dependency.
- The attacker publishes a malicious or compromised version under the package name used by the documented command.
- A user or agent follows the Skill and runs
npm install -g pixshop, which resolves to the latest mutable release. - npm installs the package globally and may execute attacker-controlled lifecycle scripts.
- The installed executable subsequently runs through commands such as
pixshop login, potentially exposing OAuth session data, local files submitted for processing, or other user-accessible resources.
Impact Assessment
Malicious installation scripts or CLI code could execute with the privileges of the user perform ...[truncated 553 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to a specifically reviewed version, for example
pixshop@<reviewed-version>, rather than installing the latest release implicitly. - Record and verify package integrity information and document the expected npm scope, publisher, registry, and upstream source repository.
- Prefer a project-local installation governed by a committed lockfile instead of a global installation.
- Review the package's lifecycle scripts, bundled files, transitive dependencies, and authentication behavior before recommending execution.
- Install and run the CLI in a least-privileged, isolated environment with access limited to files intentionally submitted for processing.
- Where operationally feasible, disable npm lifecycle scripts during installation and explicitly validate whether the reviewed CLI requires them.
- Avoid elevated installation and execution. Ensure credentials and configuration files use restrictive filesystem permissions.
- Establish a controlled dependency-update process that repeats security review before changing the pinned version.
- Pin the CLI to a specifically reviewed version, for example
