T08 · Insecure Dependencies
- Location
SKILL.md:16- Finding
Unpinned and Unverified Global npm Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 16
Vulnerability Type: Third-party software supply-chain risk
Risk Level: MediumComplete Code Snippet:
bash npm install -g paprika-recipe-cliTechnical Analysis
The installation instructions direct users to install
paprika-recipe-cliglobally from the npm registry without pinning a reviewed version or supplying package-integrity information. The documentation also provides no evidence that the package is published or maintained by Paprika's official vendor.Consequently, npm resolves whichever package version is current when the command is run. If the package, its publisher account, or one of its transitive dependencies is compromised, package-controlled installation lifecycle scripts may execute during installation. The global installation mode increases exposure by placing the package in the user's global npm environment and making its executable broadly available.
The project contains only documentation, and the audit found no evidence that the package is currently malicious. This finding concerns the unsafe dependency acquisition process and its exposure to future package compromise, namespace takeover, or malicious releases.
Attack Path
- An attacker compromises the npm publisher account, the package itself, or a transitive dependency, or otherwise gains control of a release delivered under the referenced package name.
- The attacker publishes a release containing malicious package code or an npm lifecycle script.
- A user follows the documented
npm install -g paprika-recipe-cliinstruction. - npm retrieves the attacker-controlled release because no reviewed version or integrity value is specified.
- Package installation code executes with the privileges of the account running npm and the malicious CLI becomes available through the user's global npm executable path.
- Subsequent use of the CLI may expose Paprika cred ...[truncated 901 chars]
- Remediation
View remediation
Remediation Suggestions
- Verify that
paprika-recipe-cliis published and maintained by a trusted party, and document the verified publisher and official package source. - Pin the installation instruction to a specific reviewed version rather than implicitly installing the latest release.
- Publish and verify package integrity metadata or a cryptographic checksum through a trusted channel.
- Prefer a project-local dependency with a lockfile over a global installation so that dependency versions and integrity values are reproducible.
- Review the package and its transitive dependencies, including npm lifecycle scripts, before recommending it.
- Where package functionality permits, install with lifecycle scripts disabled and invoke a locally pinned binary.
- Advise users not to run npm installation with administrative privileges.
- Avoid long-lived plaintext password environment variables where the CLI supports a more secure credential store or token-based authentication.
- Verify that
