T08 · Insecure Dependencies
- Location
scripts/upload_to_pinme.py:157- Finding
Automatic Installation of an Unpinned npm Package
- Content
View full analysis
- Remediation
View remediation
``` 2. Verify package integrity against a trusted, pre-recorded hash before execution. 3. Prefer a committed lockfile and a project-local installation over global installation. 4. Remove the unrestricted global fallback installation. 5. Require explicit user confirmation before downloading or installing executable dependencies. 6. Where compatible, disable npm lifecycle scripts during installation: ```bash npm install --ignore-scripts ... ``` 7. Run the dependency in a restricted environment with minimal filesystem, credential, and network access. 8. Treat dependency upgrades as security-sensitive changes requiring renewed review. ]]>
