MAL-2026-20617 Malicious code in mcp-runtime-report (PyPI)
- Published
- Updated
- Exploit status
- No public exploit known
Description
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (ab3aeb005ce5e62d5730874b933b090d1dcc2aa4ecf604ccdf8fad45bdd0707b)
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.
Source: kam193 (7d46b3d2a3e2eab90360c81ba3a58b67dd73d8a4a7e4a7c8a19f9c936251a7bd)
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.
Upgrade path
1 package: 0 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi mcp-runtime-report(PyPI) | = 1.0.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi mcp-runtime-report(PyPI) | = 1.0.0 | No fix listed |
References
- bad-packages.kam193.eu
- pypi.org product