T08 · Insecure Dependencies
- Location
SKILL.md:5- Finding
Unpinned Global Installation of a Third-Party CLI Package
- Content
View full analysis
- Remediation
View remediation
``` 2. Record and verify the expected npm package integrity digest and package provenance before installation. Update the digest only after reviewing a new release. 3. Prefer a project-local installation with a committed lockfile over global installation: ```bash npm install --save-exact bizmuse-cli@ ``` Invoke the pinned local binary through a controlled wrapper or `npm exec --offline` where supported. 4. Disable npm lifecycle scripts during installation if the package does not require them: ```bash npm install --ignore-scripts --save-exact bizmuse-cli@ ``` Confirm compatibility before making this the documented installation method. 5. Run the CLI in a sandbox or restricted execution environment with access only to the media files and output directory required for the current task. 6. Avoid elevated installation. Do not run the npm command with `sudo` or an administrator account. 7. Restrict outbound network access to the endpoints required by npm during installation and BizMuse during operation. 8. Review the pinned CLI release and its dependency graph, monitor it for newly disclosed vulnerabilities, and require explicit review before upgrading. 9. Keep the existing guidance that API keys must not be entered into chat or stored in project files, and document how users can revoke or rotate a key if dependency compromise is suspected. ]]>
