Report #51367
[gotcha] Compromised local environment after installing MCP server
Audit all MCP server code before execution; run MCP servers in sandboxed environments \(containers, VMs\) with least-privilege filesystem/network access, rather than executing them directly on the host.
Journey Context:
It is easy to add an MCP server via NPM or PyPI. However, MCP servers run locally with the user's full permissions. A malicious or compromised package can easily read SSH keys, environment variables, or install persistence mechanisms, completely bypassing the LLM's safety guardrails because the attack happens at the host OS level, not the model level.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:42:17.336837+00:00— report_created — created