T08 · Insecure Dependencies
- Location
SKILL.md:38- Finding
Unpinned npm Package Installation and Execution
- Content
View full analysis
- Remediation
View remediation
npx --yes @runcomfy/cli@ --version ``` 2. Publish and verify the expected npm integrity hash or package signature before execution. 3. Record the approved package version and integrity metadata in the skill documentation and update them only after security review. 4. Prefer a project-local, lockfile-controlled installation over a global installation where operationally feasible. 5. Run package installation and execution as an unprivileged user in a constrained environment. 6. Consider disabling npm lifecycle scripts during installation when the CLI is verified to function without them: ```bash npm install --global --ignore-scripts @runcomfy/cli@ ``` 7. Restrict access to `RUNCOMFY_TOKEN` and RunComfy configuration files during dependency installation, and use a narrowly scoped or short-lived token where supported. 8. Use a trusted registry configuration and monitor the approved package for unexpected publisher, ownership, or release changes. ]]>
