Malicious code in zwhrce (PyPI)
- GHSA-57wp-cfp9-f5j7
Description
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))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
zwhrcePyPI
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.