zwhrcePyPI
Advisory published Updated
zwhrce is a confirmed malicious PyPI package (MAL-2026-20763) that opens a backdoor for remote access (malicious version 0.0.1). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in zwhrce (PyPI)
What this malware does
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.
Malicious versions
Detection & response playbook
Backdoor / remote accessFind it
Search your lockfiles and build artifacts for zwhrce (version 0.0.1).
If you installed it — respond
zwhrce establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.
Did it already run?
If zwhrce was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
References
Credits
- wormsign · finder
Detect & block this
O3 blocks zwhrce-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.