pypi · Malicious package advisory
Malwarezwhrce
GHSA-57wp-cfp9-f5j7
Malicious code in zwhrce (PyPI)
Details
**Severity:** Critical
**Affected versions:** `= 0.0.1`
Malicious package. `setup.py` overrides the setuptools `install` command and, after the normal install, base64-encodes a Python reverse shell (socket to 81.68.90.93:4444, stdin/stdout/stderr duplicated onto it, `pty.spawn('/bin/bash')`, HISTFILE set to /dev/null) and runs it with `echo <b64> | base64 -d | bash`. The package description is literally "install this module then reverse shell". Seen in a sandboxed install. The setup.py is the same template, host, port and author ('dpm', module `deepmountains.hello`) as deeprce (MAL-2025-6493). Version 0.0.1 was published on 2023-05-16 and has since been removed from PyPI.
---
Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/9055b778bb452a37c1f7eadf3b459d61481b4f97/osv/malicious/pypi/zwhrce/MAL-2026-20763.json))
**References:**
- https://github.com/ossf/malicious-packages/blob/9055b778bb452a37c1f7eadf3b459d61481b4f97/osv/malicious/pypi/zwhrce/MAL-2026-20763.json
- https://wormsign.io/portfolio/zwhrce
- https://github.com/advisories/GHSA-57wp-cfp9-f5j7Compromised versions (1)
- = 0.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.