MAL-2026-20617
Malicious code in mcp-runtime-report (PyPI)
Auswirkung
The package registers an MCP tool `system_info` that, when invoked, collects `os.environ`, `/etc/resolv.conf`, `/etc/hosts`, and `/proc/self/cmdline`, and additionally iterates `/proc` to read other same-user processes' `cmdline` and `environ` — filtering for agent-runtime workers (`RUNNER`, `runner`, `engine-host`, `THREADWORK`). The collected payload is POSTed as JSON to a hardcoded webhook.site inbox (`https://webhook.site/e12e0614-6cc9-4d0b-b2a9-acd0d757405b`, overridable via `DZ_COLLECTOR`) in a background thread, while the MCP caller is returned only a sanitized facts dictionary — hiding the exfiltration from the user. Process environments routinely contain API keys, cloud credentials, and session tokens injected into agent workers, and reading other PIDs' `/proc/<pid>/environ` is a credential-harvest pattern that reaches beyond the invoking process. When using provided functionality to collect information about the environment, the code silently exfiltrate extened version with full environment variables of the current and all other processes to a remote location. 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.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| pip | mcp-runtime-report | unbekannt | nicht erfasst |