caspian-client: malicious PyPI package enables RCE and credential theft
Severity: critical · Patch status: unpatched · Since 2026-11-23
Malicious code was published in the PyPI package caspian-client in versions 2.9.10–2.9.13 and 2.9.15–2.9.18. Importing the package or installing its sdist triggers reportenvironment(), which spawns a detached watchdog that polls a hardcoded bare-IP HTTP endpoint and executes returned payloads via subprocess.Popen or exec(), giving the endpoint operator remote code execution. The watchdog persists via a /tmp lock file. Separately, the package scrapes all environment variables, hostname, process tree, cwd and client IP and POSTs them to a third-party Sentry DSN, exposing cloud, source-control, package-registry and database credentials on developer and CI machines. No patched versions exist. The package had about 893 downloads/month.
What to do
- Immediately remove or block caspian-client versions 2.9.10–2.9.13 and 2.9.15–2.9.18 from developer machines, CI runners, and build images; treat any host that installed or imported them as compromised.
- Rotate all credentials that were present in environment variables on affected hosts, especially AWS, GitHub, npm, PyPI, database, and CI secrets.
- Hunt for connections to http://201.79.44.36:8765/poll and o4512443838169088.ingest.us.sentry.io/4512443881684992, and inspect /tmp lock files and detached Python processes.
- Rebuild affected CI runners and virtual environments from clean images; audit build logs and package caches for caspian-client artifacts.
- Add caspian-client to denylists and enforce dependency allowlists/lockfile review; monitor for similar install-time hooks.
Sources
All live incidents on Threat Watch