T08 · Insecure Dependencies
- Location
references/config-reference.md:34- Finding
Unpinned Third-Party Packages Are Downloaded and Executed
- Content
View full analysis
/dev/null; then echo -e "${RED}Error: Claude Code is not installed${NC}" echo "Please run: npm install -g @anthropic-ai/claude-code" exit 1 fi ``` ### Technical Analysis ...[truncated 2471 chars]- Remediation
View remediation
" ] } ``` 2. Install dependencies through a committed lockfile and use deterministic installation commands such as `npm ci`. 3. Avoid `npx -y` for security-sensitive tools. Require explicit installation and user confirmation before first execution. 4. Validate package provenance, publisher identity, signatures or attestations, and registry integrity before installation. 5. Use npm integrity hashes or an approved internal package mirror where feasible. 6. Run MCP servers in a sandbox or container with narrowly scoped filesystem, environment, and network access. 7. Do not provide database credentials directly to an automatically downloaded executable. Use a restricted database account, secret manager, and short-lived credentials. 8. Document a reviewed upgrade process instead of implicitly accepting the latest package release. ]]>
