pypi · Malicious package advisory
Malwaremy-test-package-2025-xyz
GHSA-rgjx-wfpv-whh2
Malicious code in my-test-package-2025-xyz (PyPI)
Details
**Severity:** Critical **Affected versions:** `= 1.0.1` ## Source: kam193 (a2f3ab0a3c7ef9009c99575d9dd051c4a97575435cabf5d3a4c223f53bc47b89) During installation, the package opens a reverse shell --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-05-my-test-package-2025-xyz Reasons (based on the campaign): - The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine. - 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/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/my-test-package-2025-xyz/MAL-2026-4837.json)) **References:** - https://bad-packages.kam193.eu/pypi/package/my-test-package-2025-xyz - https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/my-test-package-2025-xyz/MAL-2026-4837.json - https://github.com/advisories/GHSA-rgjx-wfpv-whh2
Compromised versions (1)
- = 1.0.1
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.