T08 · Insecure Dependencies
- Location
SKILL.md:34- Finding
Unpinned External Dependencies Are Downloaded and Executed
- Content
View full analysis
- Remediation
View remediation
"] ``` 2. Prefer installing the verified package in advance instead of allowing `npx -y` to download executable content when the MCP server starts. 3. Pin Git-based installation to a reviewed commit or cryptographically verified signed release tag: ```bash git clone https://github.com/brave/brave-search-mcp-server cd brave-search-mcp-server git checkout ``` 4. Use a committed lockfile and reproducible installation commands such as `npm ci` to prevent unexpected transitive dependency changes. 5. Verify package integrity using npm integrity metadata, release signatures, checksums, or an internal package mirror. 6. Review npm lifecycle scripts before installation. Where compatible with the package’s build process, disable unnecessary lifecycle scripts. 7. Run the MCP server under a dedicated, least-privileged account or sandbox with restricted filesystem and network access. 8. Expose only the required API key to the process, rotate it if compromise is suspected, and configure provider-side usage limits and monitoring. ]]>
