T08 · Insecure Dependencies
- Location
SKILL.md:17- Finding
Unpinned Third-Party Package Is Automatically Downloaded and Executed
- Content
View full analysis
- Remediation
View remediation
"] ``` 2. Prefer an explicit installation step backed by a committed lockfile and npm integrity metadata instead of downloading code during each MCP launch. 3. Review the selected package version, its lifecycle scripts, and its transitive dependencies before deployment. 4. Use automated dependency monitoring and require a new security review before updating the pinned version. 5. Run the MCP server in a sandbox or container with: - A dedicated low-privilege account. - Read-only access to only the files it needs. - Restricted outbound network access. - No unnecessary home-directory or project-wide access. 6. Supply only `TRIPADVISOR_API_KEY` to the process rather than inheriting unrelated sensitive environment variables. 7. Store the API key through a protected secret-management mechanism where supported. If a configuration file must contain it, restrict file permissions and ensure `.mcp.json` is excluded from version control. 8. Use a dedicated, revocable, least-privilege API key with quota controls and monitor it for unexpected usage. ]]>
