pypi · Malicious package advisory
Malwaremsgpackrpc
GHSA-q7gh-hf5c-wm2g
Malicious code in msgpackrpc (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 0.0.0` ## Source: kam193 (9747a902bd61a745ec9c8f569f57417303f828b441c3e4e8c95101adf1498d13) Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose. --- Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities. Campaign: GENERIC-standard-pypi-install-pentest Reasons (based on the campaign): - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk. - The package overrides the install command in setup.py to execute malicious code during installation. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d52e5cd0c1e0b9d7d932404ce78544f14d9dffa7/osv/malicious/pypi/msgpackrpc/MAL-2026-18627.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/msgpackrpc - https://github.com/ossf/malicious-packages/blob/d52e5cd0c1e0b9d7d932404ce78544f14d9dffa7/osv/malicious/pypi/msgpackrpc/MAL-2026-18627.json - https://github.com/advisories/GHSA-q7gh-hf5c-wm2g
Compromised versions (1)
- = 0.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.