Malicious code in mcp-env-report (PyPI)
- MAL-2026-20616
Description
Show the whole descriptionHide the whole description
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. 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. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-11-mcp-runtime-report Reasons (based on the campaign): - exfiltration-env-variables - action-hidden-in-lib-usage - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.
Text from the OSV record.
Affected
mcp-env-reportPyPI
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.