MAL-2026-20944: Malicious code in shenghuo2-getshell (PyPI)

Published Dec 1, 2026
·
Updated

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

1 affected component
pip/shenghuo2-getshell=0.0.1

Event History

Dec 1, 2026
Advisory Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203