Malicious package · PyPI
Malicious code in msgpackrpc (PyPI)
0.0.00.1.0No safe version. Remove it.What it does
The sdist's setup.py overrides the install command with a class that, during pip install, collects the installer's hostname via socket.gethostname() and resolves its IP via socket.gethostbyname(), then POSTs them as JSON to a hardcoded webhook.site collector URL (https://webhook.site/711f31ae-7091-4b68-9631-57b6c6f19980) using urllib.request.urlopen. The package ships no actual functionality: msgpackrpc/init.py is empty, the project metadata self-describes as a 'POC package (beacon-only)', and the author field is the placeholder 'Your Name'. The package name is a typosquat shape against the legitimate msgpack-rpc ecosystem. Installing this version causes the installer's host identifiers to leave the machine to an attacker-controlled endpoint with no disclosure or consent.
Reported by kam193 Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.
No fix · Remove and contain
pip uninstall msgpackrpcSources