Skip to main content
Menu
Advisories

Malicious code in demo-pingtest-xyz (PyPI)

MAL-2026-19935Published Updated OpenSSFMalware

Description

The sdist's setup.py executes a pingback routine at install time that collects installer identity and host details via subprocess calls to whoami, id, hostname, and cat /etc/hosts, together with the current working directory and a timestamp, and POSTs them as JSON to the hardcoded URL pingback.zsdsh.xyz/depconf/demo-pingtest-xyz/. The behavior runs automatically when the sdist is built on install (the package ships no wheel, so a default pip install builds the sdist on Linux glibc/musl, macOS arm64/x86_64, and Windows x86_64). The /depconf/ path and the package naming are consistent with a dependency-confusion reconnaissance beacon designed to identify internal build hosts that resolve this name from the public index.

Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.

---

Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.

Campaign: GENERIC-standard-pypi-install-pentest

Reasons (based on the campaign):

  • The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.
  • The package overrides the install command in setup.py to execute malicious code during installation.

The OpenSSF Package Analysis project identified 'demo-pingtest-xyz' @ 0.0.1 (pypi) as malicious.

It is considered malicious because:

  • The package executes one or more commands associated with malicious behavior.

Affected versions

References