T08 · Insecure Dependencies
- Location
package.json:8- Finding
Mandatory Installation of an Unpinned Dependency
- Content
View full analysis
- Remediation
View remediation
" ``` 2. Generate, review, and commit `pnpm-lock.yaml`. 3. Replace the mandatory installation command with: ```text pnpm install --frozen-lockfile --ignore-scripts ``` 4. If a package genuinely requires a lifecycle script, explicitly allow only that reviewed package rather than allowing installation scripts generally. 5. Do not require package reinstallation on every execution. Install once from a frozen dependency graph and verify package integrity before transaction operations. 6. Keep wallet material outside the project directory and ensure dependency installation occurs before any credential is made available. 7. Consider running dependency installation and transaction-signing operations in separate environments with different privileges. ]]>
