cvelo
P2 · HighMalware

Malicious code in mcp-sysinfo-tools (PyPI)

  • MAL-2026-20618

Description

Show the whole description

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. 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. --- 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-sysinfo-toolsPyPI

    • No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.