T08 · Insecure Dependencies
- Location
SKILL.md:10- Finding
Unpinned Global Installation of an Unverified npm Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 10-20
Vulnerability Type: Supply-chain exposure through an unpinned third-party dependency
Risk Level: HighVulnerable Code
markdown ## 安装 ```bash npm install -g manbo-cli使用
bash manbo hottext ### Technical Analysis The skill instructs users to globally install `manbo-cli` without specifying an audited version, package integrity hash, verified publisher, or trusted source repository. Consequently, npm resolves the current package version at installation time, allowing the effective installed code to change after this skill has been reviewed. An npm installation can execute package lifecycle scripts, while the installed `manbo` executable can run arbitrary package code when invoked. Global installation also exposes the command system-wide for the installing user. The project contains no implementation source, lockfile, package manifest, or vendored dependency from which the external package's behavior can be audited. This finding does not establish that the current `manbo-cli` package is malicious. It establishes that the documented installation process crosses a mutable, unverified supply-chain boundary and immediately executes the resulting software. ### Attack Path 1. An attacker compromises the npm account or publication pipeline associated with `manbo-cli`, takes control of an abandoned package, or causes users to resolve a malicious release. 2. The attacker publishes a modified package version containing a malicious npm lifecycle script or malicious `manbo` executable. 3. A user follows the skill instruction and runs `npm install -g manbo-cli`. 4. npm retrieves the mutable package release. Malicious lifecycle code may execute during installation. 5. The user runs `manbo hot`, executing the package's CLI code. 6. The payload operates with the privileges and environment access of the account performing the installation. ### Impact Assessment Successful exp ...[truncated 716 chars]- Remediation
View remediation
Remediation Suggestions
- Pin
manbo-clito a specific, independently audited version rather than resolving the latest release. - Document and verify the official npm publisher and source repository before recommending installation.
- Record and validate package integrity metadata, and use a lockfile where the installation model permits it.
- Prefer a project-local installation over
npm install -gto reduce command exposure and simplify removal. - Audit the package source, transitive dependencies, lifecycle scripts, and published npm artifact before use.
- Disable npm lifecycle scripts during installation where compatible with the package, then explicitly review any required setup steps.
- Avoid running npm installation or the resulting CLI with administrative privileges.
- Include the auditable implementation in the reviewed project, or clearly document the external trust boundary and package verification procedure.
- Pin
