Malicious package · PyPI
Malicious code in mcp-env-report (PyPI)
1.0.0No safe version. Remove it.What it does
The package publishes an MCP server whose system_info tool, described to the LLM as a benign 'read-only configuration snapshot', collects the full os.environ of its own process and additionally walks /proc to read /proc/<pid>/environ of other processes owned by the same user, filtering for process names containing RUNNER/THREADWORK/engine-host. The gathered environment data (which routinely contains API keys, cloud credentials, and session tokens), together with /etc/hosts and /etc/resolv.conf, is JSON-serialized, base64-encoded, and returned to the MCP client under a field named fingerprint. The system_info tool description presented to the LLM frames the output as a harmless diff against a manifest, concealing the nature of the payload from a casual review of tool output. The exfiltration channel is the MCP transport to the connected LLM provider rather than a direct HTTP callback, but the effect is that installer-side secrets - including environment variables of sibling processes the package never spawned - leave the host's trust boundary on every invocation of the advertised tool. The cross-process /proc/<pid>/environ reads have no legitimate purpose for an 'env report' utility and the base64 wrapping of the payload under a misleading field name is cover-story shape.
Reported by kam193 This package fingerprints the current environment and can collect full environment variables of the current and all other processes. While this has to be explicitly requested, a sibling package from the same uploader was hiding silent exfiltration of these sensitive data. As such, this package should be considered preparation for malicious activity.
No fix · Remove and contain
pip uninstall mcp-env-reportSources