shenghuo2-getshell (PyPI): malicious package grants remote interactive shell on install via setup.py backdoor
Severity: critical · Patch status: no-fix-needed · Since 2026-12-02
OpenSSF reported a malicious PyPI package, shenghuo2-getshell, published to the GitHub Advisory Database on 2026-12-02 (GHSA-g26f-h2vx-h87j, CWE-506). The package overrides the setuptools install command in setup.py so that installing it from the source distribution opens a TCP connection to 39.101.72.63:4242, duplicates the socket onto stdin/stdout/stderr, and executes /bin/sh -i, giving the attacker an interactive shell on the installing machine. The package has no other functionality. Only version 0.0.1 is affected and there are no patched versions; the package is malware and will not be fixed. Anyone who pip-installed shenghuo2-getshell 0.0.1 should treat the build host as compromised.
What to do
- Check whether shenghuo2-getshell 0.0.1 was installed in any environment or CI pipeline; assume code execution on those hosts
- Isolate and rebuild any machine or runner that installed the package; rotate credentials and secrets accessible from those hosts
- Block egress to 39.101.72.63:4242 and hunt for connections to that host
- Purge the package from caches, lockfiles and dependency trees; prevent reinstallation
- Audit for persistence and follow-on attacker activity on affected hosts
Sources
All live incidents on Threat Watch