MAL-2026-20944: Malicious code in shenghuo2-getshell (PyPI)
Malicious package. shenghuo2-getshell overrides the setuptools install command in setup.py. When the package is installed from its source distribution it opens a TCP connection to 39.101.72.63:4242, duplicates the socket onto stdin, stdout and stderr, and runs /bin/sh -i, handing the remote host an interactive shell on the installing machine. The package has no other functionality.
Affected Software
Event History
Frequently Asked Questions
Under what installation conditions does the malicious code execute?
The code executes when shenghuo2-getshell is installed from its source distribution. Its setup.py overrides the setuptools install command, so the payload runs during installation.
What access does an attacker obtain if installation succeeds?
The package connects to 39.101.72.63 on TCP port 4242 and starts an interactive /bin/sh shell with its input, output, and error streams attached to that connection. The remote host can therefore interact with a shell on the installing machine using the privileges of the installation process.
What should be checked when investigating possible exposure?
Check whether shenghuo2-getshell was installed from a source distribution and review network activity for outbound TCP connections to 39.101.72.63:4242 around the installation time. A successful connection may indicate that an interactive shell was provided to the remote host.