Malicious package · PyPI
Malicious code in torchserve-cu124-nightly (PyPI)
0.12.1.dev20241119No safe version. Remove it.What it does
The package impersonates a torchserve CUDA 12.4 nightly build (its README actually advertises a different name, 'vllm-serve-worker') and ships no real serving code. Its entire payload is a stub that, when the installed CLI is invoked, downloads an opaque binary from https://files.catbox.moe/rtiikj into ~/.cache/torchserve_cu124/runtime via urllib.request.urlretrieve, chmods it to 0o755, and replaces the current process with it via os.execve. catbox.moe is an anonymous one-shot file-sharing host with no relationship to any torchserve or vLLM publisher, and the fetched bytes are non-inspectable; the hash pin in the stub was chosen by the same party that chose the URL and does not establish provenance. The publisher-mismatch between the distribution name, the module docstring, and the README is consistent with a brand-impersonation dropper whose sole purpose is to deliver attacker-chosen code to hosts that install and run it.
Reported by kam193 Package is a dropper pretending to install a torchserve binary. During loading as a module, it downloads and executes a remote file - though in the analyzed version, the remote file was empty, suggesting it waits for weaponization.
No fix · Remove and contain
pip uninstall torchserve-cu124-nightlySources