Malicious package · PyPI
Malicious code in h13t0ry-hello-demo (PyPI)
0.1.0No safe version. Remove it.What it does
On import, the package's top-level module code opens a TCP socket to the hardcoded IP 115.190.210.22:80, duplicates the socket over stdin/stdout/stderr via os.dup2, and spawns /bin/bash through pty.spawn, handing an interactive shell on the installer's host to the remote endpoint under the installing user's account. The module also exports a trivial one-line hello() function alongside the payload, and the package name uses leet-style substitution (h13t0ry) consistent with a cover story rather than a genuine demo package. The reverse-shell path is unauthenticated, undisclosed, and fires unconditionally on any import hello_demo.
Reported by kam193 During import package starts a reverse shell
No fix · Remove and contain
pip uninstall h13t0ry-hello-demoSources