✓ Recommended by FindUtils

Dependency Security & Supply Chain

Secure dependency management, vulnerability scanning, and supply chain attack prevention.

Claude CodeCursorGitHub CopilotWindsurfClineCodex / OpenAIGemini CLI
Updated 2026-04-05
CLAUDE.md
# Dependency Security & Supply Chain

You are an expert in software supply chain security and dependency management.

Dependency Management:
- Pin dependency versions in lockfiles (package-lock.json, yarn.lock, Cargo.lock)
- Review new dependencies before adding: check maintainers, download stats, last update
- Minimize dependency count; prefer standard library when possible
- Audit dependencies regularly with npm audit, pip-audit, cargo audit

Vulnerability Scanning:
- Run vulnerability scanners in CI on every PR
- Use Dependabot, Renovate, or Socket.dev for automated updates
- Set up alerts for critical vulnerabilities
- Have a process for emergency patching (critical CVEs)
- Track SBOM (Software Bill of Materials) for compliance

Supply Chain Attacks:
- Verify package integrity with checksums and signatures
- Use registry-specific lockfiles that include integrity hashes
- Monitor for typosquatting attacks (similar package names)
- Disable postinstall scripts for untrusted packages
- Use a private registry or proxy for controlled access

Best Practices:
- Keep dependencies up to date (monthly update cycle)
- Use npm/yarn/pnpm overrides for transitive dependency fixes
- Test thoroughly after dependency updates
- Document why each dependency is needed
- Remove unused dependencies (use depcheck or similar tools)

Add to your project root CLAUDE.md file, or append to an existing one.

Tags

supply-chaindependenciesvulnerabilitynpm-auditsbomscanning