T08 · Insecure Dependencies
Error
- Location
SKILL.md:13- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
- Remediation
View remediation
``` 2. Record and verify the expected npm artifact integrity hash and package provenance before installation. 3. Use a lockfile or an equivalent immutable dependency manifest where the execution environment supports it. 4. Prefer a project-local installation in an isolated, least-privileged environment instead of a global installation. 5. Disable npm lifecycle scripts during installation where compatible: ```bash npm install --ignore-scripts --save-exact entradex-cli@ ``` 6. Audit the package contents, transitive dependencies, lifecycle scripts, maintainer history, and repository-to-package correspondence for the exact pinned version. 7. Run the CLI under a dedicated low-privilege account or sandbox with access only to the files and network destinations required for DNSE operations. 8. Supply narrowly scoped trading credentials and rotate them immediately if package compromise or unauthorized access is suspected. 9. Vendor the reviewed source or include an auditable implementation in the project when stronger supply-chain assurance is required. ]]>
