T08 · Insecure Dependencies
- Location
SKILL.md:3- Finding
Unpinned Global Installation of a Third-Party CLI Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:3
Vulnerability Type: Unpinned third-party dependency installed globally
Risk Level: MediumVulnerable Code Snippet:
bash npm install -g mmx-cliTechnical Analysis
The skill instructs users to install the
mmx-clinpm package globally without specifying a reviewed version, integrity hash, lockfile, verified publisher, or trusted repository. Consequently, the installed implementation can change independently of the reviewed skill.npm package installation may execute lifecycle scripts, while a global installation places executable files in shared command locations. The actual CLI implementation is not included in this project, so its credential handling, network behavior, filesystem access, update logic, and installation scripts cannot be verified through this audit.
This creates a supply-chain risk if the package is compromised, transferred to an untrusted publisher, replaced by a malicious release, or unexpectedly modified in a future version.
Attack Path
- An attacker compromises the npm package publisher account, package repository, or release process.
- The attacker publishes a malicious version under the expected
mmx-clipackage name. - A user or Agent follows the skill instruction and runs
npm install -g mmx-cli. - npm resolves the latest available release rather than a previously reviewed version.
- Malicious lifecycle code may execute during installation, or a malicious global
mmxexecutable may be installed. - The malicious package subsequently runs with the privileges of the installing or invoking user.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the installing user's account. Depending on that account's privileges and environment, the package could access user-readable files, environment variables, authentication material, shell configuration, Agent workspaces, a ...[truncated 134 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to a specific reviewed version, such as
mmx-cli@X.Y.Z. - Document the official package publisher and source repository so users can verify provenance.
- Verify package integrity using an approved lockfile, registry integrity metadata, signatures, or reproducible release artifacts.
- Prefer a project-local installation over a global installation to reduce system-wide impact.
- Review package lifecycle scripts and the transitive dependency tree before recommending installation.
- Introduce an explicit review and controlled upgrade process instead of automatically adopting the latest release.
- Avoid elevated installation privileges and execute the CLI in a restricted environment with only the filesystem and network access required for the task.
- Pin the CLI to a specific reviewed version, such as
