T08 · Insecure Dependencies
- Location
SKILL.md:55- Finding
Unpinned Third-Party Package Execution Through npx
- Content
View full analysis
- Remediation
View remediation
\ --url "https://www.cpbox.io/api/x402/suggest?q=albert&rich=true&count=10" \ --method GET ``` 2. Install the dependency through a package manifest and commit a lockfile so that both the direct dependency and its transitive dependencies are reproducible. 3. Verify package integrity using registry-provided integrity metadata or a separately published checksum. Revalidate the package before updating the pinned version. 4. Document the expected official registry and source repository to reduce dependency-confusion and registry-substitution risks. 5. Review the package and relevant transitive dependencies before approving upgrades, particularly code that interacts with wallets, signing APIs, environment variables, or local credential stores. 6. Run the payment client in a restricted environment with minimal filesystem and network access. 7. Use a dedicated wallet with limited funds, narrowly scoped signing authority, explicit transaction confirmation, and spending limits. Do not expose unrelated wallet seed phrases or private keys to the process. 8. Consider installing the verified package ahead of time and invoking the locked local binary instead of permitting runtime download and execution. ]]>
