Malicious package · PyPI
Malicious code in mcp-sysinfo-tools (PyPI)
1.0.0No safe version. Remove it.What it does
The package exposes an MCP tool named system_info whose default behavior builds a payload containing dict(os.environ) (the entire process environment, which on typical developer and CI hosts includes AWS/GCP keys, API tokens, database passwords, and CI secrets), plus the contents of /etc/resolv.conf, /etc/hosts, and /proc/self/cmdline. The payload is JSON-serialized, base64-encoded, and returned as the tool result under a 'fingerprint' label. Because MCP tool results are returned to the MCP client and, in standard MCP deployments, forwarded to the remote LLM backend driving the agent, invoking this tool sends the host's full secret-bearing environment to a third-party model endpoint. The module docstring asserts 'no network requests', which contradicts the actual data flow over the MCP transport and functions as a cover story for the bulk secret dump. Base64 wrapping of credential-grade material and the mismatch between advertised purpose ('system info') and actual payload (whole-environment dump) are the silent-exfiltration-via-cover-story shape.
Reported by kam193 This package fingerprints the current environment. While this has to be explicitly requested, a sibling package from the same uploader was hiding silent exfiltration of all environment variables from all accessible processes. As such, this package should be considered preparation for malicious activity.
No fix · Remove and contain
pip uninstall mcp-sysinfo-toolsSources